Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Janno
iris-coq
Commits
a39468f8
Commit
a39468f8
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Clean up some 'this is ugly' marked parts.
parent
93ce2c21
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
barrier/lifting.v
+6
-16
6 additions, 16 deletions
barrier/lifting.v
with
6 additions
and
16 deletions
barrier/lifting.v
+
6
−
16
View file @
a39468f8
...
...
@@ -118,14 +118,9 @@ Lemma wp_cas_fail_pst E σ l e1 v1 e2 v2 v' Q :
(
ownP
σ
★
▷
(
ownP
σ
-★
Q
LitFalseV
))
⊑
wp
E
(
Cas
(
Loc
l
)
e1
e2
)
Q
.
Proof
.
intros
Hvl
Hl
.
etransitivity
;
last
eapply
wp_lift_step
with
(
σ1
:=
σ
)
(
φ
:=
λ
e'
σ'
,
e'
=
LitFalse
∧
σ'
=
σ
);
last
first
.
-
intros
e2'
σ2'
ef
Hstep
.
inversion_clear
Hstep
;
first
done
.
(* FIXME this rewriting is rather ugly. *)
exfalso
.
rewrite
Hvl
in
Hv1
.
case
:
Hv1
=>?;
subst
v1
.
rewrite
Hlookup
in
H
.
case
:
H
=>?;
subst
v'
.
done
.
-
do
3
eexists
.
eapply
CasFailS
;
eassumption
.
-
reflexivity
.
-
reflexivity
.
(
φ
:=
λ
e'
σ'
,
e'
=
LitFalse
∧
σ'
=
σ
)
(
E1
:=
E
);
auto
;
last
first
.
-
by
inversion_clear
1
;
simplify_map_equality
.
-
do
3
eexists
;
econstructor
;
eauto
.
-
rewrite
-
pvs_intro
.
apply
sep_mono
;
first
done
.
apply
later_mono
.
apply
forall_intro
=>
e2'
.
apply
forall_intro
=>
σ2'
.
...
...
@@ -177,14 +172,9 @@ Proof.
eapply
ForkS
.
-
reflexivity
.
-
apply
later_mono
.
apply
forall_intro
=>
e2
.
apply
forall_intro
=>
ef
.
apply
impl_intro_l
.
apply
const_elim_l
.
intros
[
->
->
]
.
(* FIXME RJ This is ridicolous. *)
transitivity
(
True
★
wp
coPset_all
e
(
λ
_,
True
:
iProp
heap_lang
Σ
))
%
I
;
first
by
rewrite
left_id
.
apply
sep_mono
;
last
reflexivity
.
rewrite
-
wp_value'
;
last
reflexivity
.
by
apply
const_intro
.
apply
forall_intro
=>
e2
;
apply
forall_intro
=>
ef
.
apply
impl_intro_l
,
const_elim_l
=>
-
[
->
->
]
/=
;
apply
sep_intro_True_l
;
auto
.
by
rewrite
-
wp_value'
//
;
apply
const_intro
.
Qed
.
Lemma
wp_lift_pure_step
E
(
φ
:
expr
→
Prop
)
Q
e1
:
...
...
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