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

Merge branch 'clear-intuit-sound' into 'master'

Add soundness lemma for envs_clear_intuitionistic

See merge request iris/iris!850
parents 5d023ba4 fc717f6b
No related branches found
No related tags found
No related merge requests found
...@@ -738,6 +738,16 @@ Proof. ...@@ -738,6 +738,16 @@ Proof.
- rewrite -persistent_and_sep_assoc left_id. done. - rewrite -persistent_and_sep_assoc left_id. done.
Qed. Qed.
Lemma envs_clear_intuitionistic_sound Δ :
of_envs Δ
env_and_persistently (env_intuitionistic Δ) of_envs (envs_clear_intuitionistic Δ).
Proof.
rewrite !of_envs_eq /envs_clear_spatial /=. apply pure_elim_l=> Hwf.
rewrite persistent_and_sep_1.
rewrite (pure_True); first by rewrite 2!left_id.
destruct Hwf. constructor; simpl; auto using Enil_wf.
Qed.
Lemma env_spatial_is_nil_intuitionistically Δ : Lemma env_spatial_is_nil_intuitionistically Δ :
env_spatial_is_nil Δ = true of_envs Δ of_envs Δ. env_spatial_is_nil Δ = true of_envs Δ of_envs Δ.
Proof. Proof.
......
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