Commit 03758fe2 authored by Jonas Kastberg's avatar Jonas Kastberg

Updated variable rule to be in line with paper version

parent 0b9a055c
Pipeline #27608 passed with stage
in 5 minutes and 40 seconds
......@@ -16,11 +16,13 @@ Section properties.
(** Variable properties *)
Lemma ltyped_var Γ (x : string) A :
Γ !! x = Some A Γ x : A delete x Γ.
<[x := A]>Γ x : A delete x Γ.
Proof.
iIntros (HΓx) "!>"; iIntros (vs) "HΓ /=".
iDestruct (env_ltyped_lookup with "HΓ") as (v ->) "[HA HΓ]"; first done.
iApply wp_value. eauto with iFrame.
iIntros "!>" (vs) "HΓ /=".
iDestruct (env_ltyped_lookup with "HΓ") as (v ->) "[HA HΓ]";
first by apply lookup_insert.
iApply wp_value. iFrame "HA".
by rewrite delete_insert_delete.
Qed.
(** Subtyping *)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment