Skip to content
Snippets Groups Projects
Commit e546ce9e authored by Ralf Jung's avatar Ralf Jung
Browse files

actually solve_proper can do this

parent 5a46ccf6
No related branches found
No related tags found
No related merge requests found
...@@ -25,10 +25,7 @@ Arguments bi_greatest_fixpoint : simpl never. ...@@ -25,10 +25,7 @@ Arguments bi_greatest_fixpoint : simpl never.
Global Instance least_fixpoint_ne {PROP : bi} {A : ofeT} n : Global Instance least_fixpoint_ne {PROP : bi} {A : ofeT} n :
Proper (pointwise_relation (A PROP) (pointwise_relation A (dist n)) ==> Proper (pointwise_relation (A PROP) (pointwise_relation A (dist n)) ==>
dist n ==> dist n) bi_least_fixpoint. dist n ==> dist n) bi_least_fixpoint.
Proof. Proof. solve_proper. Qed.
intros F1 F2 HF x1 x2 Hx. rewrite /bi_least_fixpoint /=.
do 7 (fast_done || f_equiv). apply HF.
Qed.
Section least. Section least.
Context {PROP : bi} {A : ofeT} (F : (A PROP) (A PROP)) `{!BiMonoPred F}. Context {PROP : bi} {A : ofeT} (F : (A PROP) (A PROP)) `{!BiMonoPred F}.
...@@ -87,10 +84,7 @@ Qed. ...@@ -87,10 +84,7 @@ Qed.
Global Instance greatest_fixpoint_ne {PROP : bi} {A : ofeT} n : Global Instance greatest_fixpoint_ne {PROP : bi} {A : ofeT} n :
Proper (pointwise_relation (A PROP) (pointwise_relation A (dist n)) ==> Proper (pointwise_relation (A PROP) (pointwise_relation A (dist n)) ==>
dist n ==> dist n) bi_greatest_fixpoint. dist n ==> dist n) bi_greatest_fixpoint.
Proof. Proof. solve_proper. Qed.
intros F1 F2 HF x1 x2 Hx. rewrite /bi_greatest_fixpoint /=.
do 7 (fast_done || f_equiv). apply HF.
Qed.
Section greatest. Section greatest.
Context {PROP : bi} {A : ofeT} (F : (A PROP) (A PROP)) `{!BiMonoPred F}. Context {PROP : bi} {A : ofeT} (F : (A PROP) (A PROP)) `{!BiMonoPred F}.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment