Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simcha van Collem
Iris
Commits
df418290
Commit
df418290
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Simplify some heap_lang proofs.
parent
f8e693e7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
heap_lang/lang.v
+10
-13
10 additions, 13 deletions
heap_lang/lang.v
with
10 additions
and
13 deletions
heap_lang/lang.v
+
10
−
13
View file @
df418290
...
...
@@ -279,26 +279,23 @@ Proof. intros [??? -> -> ?]; eauto using fill_not_val, values_head_stuck. Qed.
Lemma
atomic_not_val
e
:
atomic
e
→
to_val
e
=
None
.
Proof
.
destruct
e
;
naive_solver
.
Qed
.
Lemma
atomic_fill_item
Ki
e
:
atomic
(
fill_item
Ki
e
)
→
is_Some
(
to_val
e
)
.
Proof
.
intros
.
destruct
Ki
;
simplify_eq
/=
;
destruct_conjs
;
repeat
(
case_match
||
contradiction
);
eauto
.
Qed
.
Lemma
atomic_fill
K
e
:
atomic
(
fill
K
e
)
→
to_val
e
=
None
→
K
=
[]
.
Proof
.
rewrite
eq_None_not_Some
.
destruct
K
as
[|[]
K
];
try
(
naive_solver
eauto
using
fill_val
);
[|]
.
(* Oh wow, this si getting annoying... *)
-
simpl
;
destruct
K
as
[|[]
K
];
try
contradiction
;
[]
.
simpl
.
destruct
e
;
simpl
;
try
contradiction
.
naive_solver
.
-
simpl
.
destruct
(
of_val
v1
)
eqn
:
EQ
;
try
contradiction
;
[]
.
destruct
e0
;
try
contradiction
;
[]
.
destruct
K
as
[|[]
K
];
try
contradiction
;
[]
.
simpl
.
destruct
e
;
simpl
;
try
contradiction
.
naive_solver
.
destruct
K
as
[|
Ki
K
];
[
done
|]
.
rewrite
eq_None_not_Some
=>
/=
?
[];
eauto
using
atomic_fill_item
,
fill_val
.
Qed
.
Lemma
atomic_head_step
e1
σ1
e2
σ2
ef
:
atomic
e1
→
head_step
e1
σ1
e2
σ2
ef
→
is_Some
(
to_val
e2
)
.
Proof
.
intros
Hatomic
Hstep
.
destruct
Hstep
;
simpl
;
rewrite
?to_of_val
;
try
naive_solver
;
[]
.
simpl
in
Hatomic
.
destruct
e1
;
try
contradiction
;
[]
.
destruct
e2
;
try
contradiction
;
[]
.
naive_solver
.
destruct
2
;
simpl
;
rewrite
?to_of_val
;
try
by
eauto
.
repeat
(
case_match
||
contradiction
||
simplify_eq
/=
);
eauto
.
Qed
.
Lemma
atomic_step
e1
σ1
e2
σ2
ef
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment