Skip to content
Snippets Groups Projects
Commit 4882ecf8 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Shorten some stuff in heap_lang.

parent a7996f11
No related branches found
No related tags found
No related merge requests found
...@@ -287,9 +287,7 @@ Qed. ...@@ -287,9 +287,7 @@ Qed.
Lemma alloc_fresh e v σ : Lemma alloc_fresh e v σ :
let l := fresh (dom _ σ) in let l := fresh (dom _ σ) in
to_val e = Some v head_step (Alloc e) σ (Loc l) (<[l:=v]>σ) None. to_val e = Some v head_step (Alloc e) σ (Loc l) (<[l:=v]>σ) None.
Proof. Proof. by intros; apply AllocS, (not_elem_of_dom (D:=gset _)), is_fresh. Qed.
by intros; apply AllocS, (not_elem_of_dom (D:=gset positive)), is_fresh.
Qed.
End heap_lang. End heap_lang.
...@@ -302,8 +300,7 @@ Program Canonical Structure heap_lang : language := {| ...@@ -302,8 +300,7 @@ Program Canonical Structure heap_lang : language := {|
Solve Obligations with eauto using heap_lang.to_of_val, heap_lang.of_to_val, Solve Obligations with eauto using heap_lang.to_of_val, heap_lang.of_to_val,
heap_lang.values_stuck, heap_lang.atomic_not_val, heap_lang.atomic_step. heap_lang.values_stuck, heap_lang.atomic_not_val, heap_lang.atomic_step.
Global Instance heap_lang_ctx K : Global Instance heap_lang_ctx K : LanguageCtx heap_lang (heap_lang.fill K).
LanguageCtx heap_lang (heap_lang.fill K).
Proof. Proof.
split. split.
* eauto using heap_lang.fill_not_val. * eauto using heap_lang.fill_not_val.
......
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