Skip to content
Snippets Groups Projects
Commit 98c1df36 authored by Jonas Kastberg's avatar Jonas Kastberg
Browse files

Removed redundant monotonicity lemma for typing judgement

parent 43d27b91
No related branches found
No related tags found
No related merge requests found
...@@ -52,17 +52,3 @@ Proof. ...@@ -52,17 +52,3 @@ Proof.
iDestruct (He $!∅ with "[]") as "He"; first by rewrite /env_ltyped. iDestruct (He $!∅ with "[]") as "He"; first by rewrite /env_ltyped.
iEval (rewrite -(subst_map_empty e)). iApply (wp_wand with "He"); auto. iEval (rewrite -(subst_map_empty e)). iApply (wp_wand with "He"); auto.
Qed. Qed.
Theorem ltyped_mono `{!heapG Σ} Γ1 Γ1' Γ2 Γ2' e τ1 τ2 :
( vs, env_ltyped Γ1 vs -∗ env_ltyped Γ1' vs) -∗
( vs, env_ltyped Γ2' vs -∗ env_ltyped Γ2 vs) -∗
τ1 <: τ2 -∗ (Γ1' e : τ1 Γ2') -∗ (Γ1 e : τ2 Γ2).
Proof.
iIntros "#HΓ1 #HΓ2 #Hle #Hltyped" (vs) "!> Henv".
iDestruct ("HΓ1" with "Henv") as "Henv".
iDestruct ("Hltyped" with "Henv") as "Hltyped'".
iApply (wp_wand with "Hltyped'").
iIntros (v) "[H1 Henv]".
iDestruct ("HΓ2" with "Henv") as "Henv".
iFrame "Henv". by iApply "Hle".
Qed.
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