| 1 |
Axiom X : forall {T:Type}, T. |
| 2 |
Unset Printing Notations. |
| 3 |
|
| 4 |
#[projections(primitive)] |
| 5 |
Record bi : Type := Bi |
| 6 |
{ bi_car :> Type; |
| 7 |
bi_sep : forall (_ : bi_car) (_ : bi_car), bi_car; |
| 8 |
bi_exist : forall (A : Type) (_ : forall _ : A, bi_car), bi_car; }. |
| 9 |
|
| 10 |
|
| 11 |
Axiom genv : Set. |
| 12 |
Existing Class genv. |
| 13 |
|
| 14 |
|
| 15 |
Axiom biIndex : Set. |
| 16 |
Existing Class biIndex. |
| 17 |
Axiom monPred : biIndex -> bi -> Type. |
| 18 |
|
| 19 |
Record seal (A : Type) (f : A) : Type := Build_seal { unseal : A; seal_eq : unseal = f }. |
| 20 |
|
| 21 |
|
| 22 |
Axiom monPred_exist_def : |
| 23 |
forall (I : biIndex) (PROP : bi) (A : Type) (_ : forall _ : A, monPred I PROP), |
| 24 |
monPred I PROP. |
| 25 |
|
| 26 |
Axiom monPred_exist_aux |
| 27 |
: forall (I : biIndex) (PROP : bi), seal _ (@monPred_exist_def I PROP). |
| 28 |
|
| 29 |
Definition monPred_exist |
| 30 |
: forall {I : biIndex} {PROP : bi} (A : Type) (_ : forall _ : A, monPred I PROP), |
| 31 |
monPred I PROP := |
| 32 |
fun (I : biIndex) (PROP : bi) => unseal _ _ (@monPred_exist_aux I PROP). |
| 33 |
|
| 34 |
Axiom monPred_sep_def : forall {I : biIndex} {PROP : bi}, (monPred I PROP) -> (monPred I PROP) -> monPred I PROP. |
| 35 |
Axiom monPred_sep_aux : |
| 36 |
forall {I : biIndex} {PROP : bi}, seal _ (@monPred_sep_def I PROP). |
| 37 |
Definition monPred_sep |
| 38 |
: forall {I : biIndex} {PROP : bi}, (monPred I PROP) -> (monPred I PROP) -> monPred I PROP := |
| 39 |
fun (I : biIndex) (PROP : bi) => unseal _ _ monPred_sep_aux. |
| 40 |
|
| 41 |
Definition monPredI |
| 42 |
: biIndex -> bi -> bi |
| 43 |
:= |
| 44 |
fun (I : biIndex) (PROP : bi) => |
| 45 |
{| |
| 46 |
bi_car := monPred I PROP; |
| 47 |
bi_exist := monPred_exist; |
| 48 |
bi_sep := monPred_sep; |
| 49 |
|}. |
| 50 |
|
| 51 |
|
| 52 |
Axiom gFunctors : Set. |
| 53 |
Existing Class gFunctors. |
| 54 |
|
| 55 |
Axiom iProp : bi. |
| 56 |
|
| 57 |
Definition mpredI |
| 58 |
: forall (_ : biIndex) (_ : gFunctors), bi := |
| 59 |
fun (thread_info : biIndex) (Σ : gFunctors) => monPredI thread_info iProp |
| 60 |
. |
| 61 |
|
| 62 |
Arguments mpredI {thread_info Σ}. |
| 63 |
|
| 64 |
Definition mpred |
| 65 |
: forall (_ : biIndex) (_ : gFunctors), Type := |
| 66 |
fun (thread_info : biIndex) (Σ : gFunctors) => bi_car (@mpredI thread_info Σ). |
| 67 |
Arguments mpred {thread_info Σ}. |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
Axiom Timeless : forall {X:Type} (x:X), Prop. |
| 72 |
Axiom State : Set. |
| 73 |
Axiom ec_kont_t : Set. |
| 74 |
Axiom arch : Set. |
| 75 |
Axiom ptr : Set. |
| 76 |
|
| 77 |
|
| 78 |
Axiom cpp_logic : forall (_ : biIndex) (_ : gFunctors), Type. |
| 79 |
|
| 80 |
Axiom GlobalCfg : Type. |
| 81 |
Axiom GlobalGName : GlobalCfg -> Set. |
| 82 |
Axiom GlobalG : forall {ti : biIndex} {Σ : gFunctors}, cpp_logic ti Σ -> Set. |
| 83 |
Axiom CpuGlobalG : forall {ti : biIndex} {Σ : gFunctors}, cpp_logic ti Σ -> Set. |
| 84 |
|
| 85 |
|
| 86 |
Axiom NovaAbsPred : forall {thread_info : biIndex} {_Σ : gFunctors}, cpp_logic thread_info _Σ -> arch -> Type. |
| 87 |
|
| 88 |
Axiom UserAbsPred : forall {thread_info : biIndex} {_Σ : gFunctors}, cpp_logic thread_info _Σ -> genv -> Type. |
| 89 |
Axiom G : forall {ti : biIndex} {_Σ : gFunctors} (Σ : cpp_logic ti _Σ) {σ : genv}, GlobalCfg -> @UserAbsPred ti _Σ Σ σ -> Type. |
| 90 |
Axiom GName : forall {_ : GlobalCfg} {thread_info : biIndex} {_Σ : gFunctors} {Σ : cpp_logic thread_info _Σ} {σ : genv} {_ : @UserAbsPred thread_info _Σ Σ σ}, Set. |
| 91 |
Axiom ecInv : |
| 92 |
forall {H : GlobalCfg} {ti : biIndex} {_Σ : gFunctors} {Σ : cpp_logic ti _Σ} {σ : genv} {arch : arch}, |
| 93 |
NovaAbsPred Σ arch -> forall {H2 : @UserAbsPred ti _Σ Σ σ}, @GName H ti _Σ Σ σ H2 -> ec_kont_t -> bool -> @mpred ti _. |
| 94 |
|
| 95 |
Axiom __at : |
| 96 |
forall {ti : biIndex} {Σ0 : gFunctors} {Σ : cpp_logic ti Σ0}, |
| 97 |
ptr -> @mpredI ti _ -> @mpredI ti _. |
| 98 |
|
| 99 |
Goal |
| 100 |
forall |
| 101 |
(Tr : forall PROP : bi, bi_car PROP) |
| 102 |
(H : GlobalCfg) (H0 : GlobalCfg) (ti : biIndex) (_Σ : gFunctors) |
| 103 |
(Σ : cpp_logic ti _Σ) (σ : genv) (arch : arch) (H1 : @NovaAbsPred ti _Σ Σ arch) (H2 : @UserAbsPred ti _Σ Σ σ) |
| 104 |
(H5 : GlobalGName H0) (H7 : @GlobalG ti _Σ Σ) (H8 : @CpuGlobalG ti _Σ Σ) |
| 105 |
(G0 : @G ti _Σ Σ σ H H2) (t3 : @GName H ti _Σ Σ σ H2) (nvs : ec_kont_t) |
| 106 |
(body : mpredI) |
| 107 |
(recall_bit : bool) |
| 108 |
(novastateinv : forall |
| 109 |
(_ : GlobalGName H0) (_ : @GlobalG ti _Σ Σ) |
| 110 |
(_ : @CpuGlobalG ti _Σ Σ) (_ : @G ti _Σ Σ σ H H2) |
| 111 |
(_ : bool) (_ : bool) (_ : bool) (_ : State), |
| 112 |
@mpred ti _Σ) |
| 113 |
(_ : forall (a1 : ptr) (a3 : bool), |
| 114 |
@Timeless (@mpredI ti _Σ) |
| 115 |
(@bi_sep (@mpredI ti _Σ) (@ecInv H ti _Σ Σ σ arch H1 H2 t3 nvs a3) |
| 116 |
(@bi_exist (@mpredI ti _Σ) State |
| 117 |
(fun m : State => |
| 118 |
@bi_exist (@mpredI ti _Σ) bool |
| 119 |
(fun about_to_ipc_reply : bool => |
| 120 |
@bi_exist (@mpredI ti _Σ) bool |
| 121 |
(fun past_recall_in_roundup_impl : bool => |
| 122 |
(@bi_sep (@mpredI ti _Σ) (Tr (@mpredI ti _Σ)) |
| 123 |
(@bi_sep (@mpredI ti _Σ) (Tr (@mpredI ti _Σ)) |
| 124 |
(@bi_sep (@mpredI ti _Σ) (Tr (@mpredI ti _Σ)) |
| 125 |
(@bi_sep (@mpredI ti _Σ) (Tr (@mpredI ti _Σ)) |
| 126 |
(@bi_sep (@mpredI ti _Σ) |
| 127 |
(novastateinv H5 H7 H8 G0 |
| 128 |
about_to_ipc_reply a3 past_recall_in_roundup_impl m) |
| 129 |
(@__at ti _Σ Σ a1 |
| 130 |
(Tr _))))))))))))), |
| 131 |
@Timeless (@mpredI ti _Σ) |
| 132 |
(@bi_sep (@mpredI ti _Σ) (@ecInv H ti _Σ Σ σ arch H1 H2 t3 nvs recall_bit) |
| 133 |
(@bi_exist (@mpredI ti _Σ) State |
| 134 |
(fun m : State => |
| 135 |
@bi_exist (@mpredI ti _Σ) bool |
| 136 |
(fun about_to_ipc_reply : bool => |
| 137 |
@bi_exist (@mpredI ti _Σ) bool |
| 138 |
(fun past_recall_in_roundup_impl : bool => |
| 139 |
(@bi_sep (@mpredI ti _Σ) (Tr (@mpredI ti _Σ)) |
| 140 |
(@bi_sep (@mpredI ti _Σ) (Tr (@mpredI ti _Σ)) |
| 141 |
(@bi_sep (@mpredI ti _Σ) (Tr (@mpredI ti _Σ)) |
| 142 |
(@bi_sep (@mpredI ti _Σ) (Tr (@mpredI ti _Σ)) |
| 143 |
(@bi_sep (@mpredI ti _Σ) |
| 144 |
(novastateinv H5 H7 H8 G0 about_to_ipc_reply |
| 145 |
recall_bit past_recall_in_roundup_impl m) body)))))))))). |
| 146 |
Proof. |
| 147 |
intros *. |
| 148 |
intros T. |
| 149 |
Fail progress intros. |
| 150 |
Timeout 1 ( |
| 151 |
(with_strategy opaque [bi_sep bi_exist] autoapply T with typeclass_instances) |
| 152 |
|| idtac |
| 153 |
). |
| 154 |
|
| 155 |
Strategy opaque [ |
| 156 |
bi_sep |
| 157 |
bi_exist |
| 158 |
]. |
| 159 |
Timeout 1 (autoapply T with typeclass_instances || idtac). |
| 160 |
Abort. |