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
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
Dan Frumin
iris-coq
Commits
e06b1653
Commit
e06b1653
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused and not really maintained Hoare lifiting lemmas.
parent
7e480ad4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
_CoqProject
+0
-1
0 additions, 1 deletion
_CoqProject
program_logic/hoare_lifting.v
+0
-91
0 additions, 91 deletions
program_logic/hoare_lifting.v
with
0 additions
and
92 deletions
_CoqProject
+
0
−
1
View file @
e06b1653
...
@@ -64,7 +64,6 @@ algebra/gset.v
...
@@ -64,7 +64,6 @@ algebra/gset.v
algebra/coPset.v
algebra/coPset.v
program_logic/model.v
program_logic/model.v
program_logic/adequacy.v
program_logic/adequacy.v
program_logic/hoare_lifting.v
program_logic/lifting.v
program_logic/lifting.v
program_logic/invariants.v
program_logic/invariants.v
program_logic/viewshifts.v
program_logic/viewshifts.v
...
...
This diff is collapsed.
Click to expand it.
program_logic/hoare_lifting.v
deleted
100644 → 0
+
0
−
91
View file @
7e480ad4
From
iris
.
algebra
Require
Import
upred_tactics
.
From
iris
.
program_logic
Require
Export
hoare
lifting
.
From
iris
.
program_logic
Require
Import
ownership
.
From
iris
.
proofmode
Require
Import
tactics
pviewshifts
.
Local
Notation
"{{ P } } ef ?@ E {{ v , Q } }"
:=
(
default
True
%
I
ef
(
λ
e
,
ht
E
P
e
(
λ
v
,
Q
)))
(
at
level
20
,
P
,
ef
,
Q
at
level
200
,
format
"{{ P } } ef ?@ E {{ v , Q } }"
)
:
uPred_scope
.
Local
Notation
"{{ P } } ef ?@ E {{ v , Q } }"
:=
(
True
⊢
default
True
ef
(
λ
e
,
ht
E
P
e
(
λ
v
,
Q
)))
(
at
level
20
,
P
,
ef
,
Q
at
level
200
,
format
"{{ P } } ef ?@ E {{ v , Q } }"
)
:
C_scope
.
Section
lifting
.
Context
{
Λ
:
language
}
{
Σ
:
iFunctor
}
.
Implicit
Types
e
:
expr
Λ
.
Implicit
Types
P
Q
R
:
iProp
Λ
Σ
.
Implicit
Types
Ψ
:
val
Λ
→
iProp
Λ
Σ
.
Lemma
ht_lift_step
E1
E2
P
P
σ
1
Φ
1
Φ
2
Ψ
e1
:
E2
⊆
E1
→
to_val
e1
=
None
→
(
P
={
E1
,
E2
}=>
∃
σ
1
,
■
reducible
e1
σ
1
∧
▷
ownP
σ
1
★
▷
P
σ
1
σ
1
)
∧
(
∀
σ
1
e2
σ
2
ef
,
■
prim_step
e1
σ
1
e2
σ
2
ef
★
ownP
σ
2
★
P
σ
1
σ
1
={
E2
,
E1
}=>
Φ
1
e2
σ
2
ef
★
Φ
2
e2
σ
2
ef
)
∧
(
∀
e2
σ
2
ef
,
{{
Φ
1
e2
σ
2
ef
}}
e2
@
E1
{{
Ψ
}}
)
∧
(
∀
e2
σ
2
ef
,
{{
Φ
2
e2
σ
2
ef
}}
ef
?@
⊤
{{
_
,
True
}}
)
⊢
{{
P
}}
e1
@
E1
{{
Ψ
}}
.
Proof
.
iIntros
(
??
)
"#(#Hvs&HΦ&He2&Hef) ! HP"
.
iApply
(
wp_lift_step
E1
E2
_
e1
);
auto
.
iPvs
(
"Hvs"
with
"HP"
)
as
(
σ
1
)
"(%&Hσ&HP)"
;
first
set_solver
.
iPvsIntro
.
iExists
σ
1.
repeat
iSplit
.
by
eauto
.
iFrame
.
iNext
.
iIntros
(
e2
σ
2
ef
)
"[#Hstep Hown]"
.
iSpecialize
(
"HΦ"
$
!
σ
1
e2
σ
2
ef
with
"[-]"
).
by
iFrame
"Hstep HP Hown"
.
iPvs
"HΦ"
as
"[H1 H2]"
;
first
by
set_solver
.
iPvsIntro
.
iSplitL
"H1"
.
-
by
iApply
"He2"
.
-
destruct
ef
as
[
e
|
];
last
done
.
by
iApply
(
"Hef"
$
!
_
_
(
Some
e
)).
Qed
.
Lemma
ht_lift_atomic_step
E
P
e1
σ
1
:
atomic
e1
→
reducible
e1
σ
1
→
(
∀
e2
σ
2
ef
,
{{
■
prim_step
e1
σ
1
e2
σ
2
ef
★
P
}}
ef
?@
⊤
{{
_
,
True
}}
)
⊢
{{
▷
ownP
σ
1
★
▷
P
}}
e1
@
E
{{
v
,
∃
σ
2
ef
,
ownP
σ
2
★
■
prim_step
e1
σ
1
(
of_val
v
)
σ
2
ef
}}
.
Proof
.
iIntros
(
?
Hsafe
)
"#Hef"
.
iApply
(
ht_lift_step
E
E
_
(
λ
σ
1
'
,
P
∧
σ
1
=
σ
1
'
)
%
I
(
λ
e2
σ
2
ef
,
ownP
σ
2
★
■
(
is_Some
(
to_val
e2
)
∧
prim_step
e1
σ
1
e2
σ
2
ef
))
%
I
(
λ
e2
σ
2
ef
,
■
prim_step
e1
σ
1
e2
σ
2
ef
★
P
)
%
I
);
try
by
(
eauto
using
reducible_not_val
).
repeat
iSplit
.
-
iIntros
"![Hσ1 HP]"
.
iExists
σ
1.
iPvsIntro
.
iSplit
.
by
eauto
.
iFrame
.
by
auto
.
-
iIntros
(
?
e2
σ
2
ef
)
"! (%&Hown&HP&%)"
.
iPvsIntro
.
subst
.
iFrame
.
iSplit
;
iPureIntro
;
auto
.
split
;
eauto
.
-
iIntros
(
e2
σ
2
ef
)
"! [Hown #Hφ]"
;
iDestruct
"Hφ"
as
%
[[
v2
<-%
of_to_val
]
?
].
iApply
wp_value
'
.
iExists
σ
2
,
ef
.
by
iSplit
.
-
done
.
Qed
.
Lemma
ht_lift_pure_step
E
P
P
'
Ψ
e1
:
to_val
e1
=
None
→
(
∀
σ
1
,
reducible
e1
σ
1
)
→
(
∀
σ
1
e2
σ
2
ef
,
prim_step
e1
σ
1
e2
σ
2
ef
→
σ
1
=
σ
2
)
→
(
∀
e2
ef
σ
,
{{
■
prim_step
e1
σ
e2
σ
ef
★
P
}}
e2
@
E
{{
Ψ
}}
)
∧
(
∀
e2
ef
σ
,
{{
■
prim_step
e1
σ
e2
σ
ef
★
P
'
}}
ef
?@
⊤
{{
_
,
True
}}
)
⊢
{{
▷
(
P
★
P
'
)
}}
e1
@
E
{{
Ψ
}}
.
Proof
.
iIntros
(
?
Hsafe
Hpure
)
"[#He2 #Hef] ! HP"
.
iApply
wp_lift_pure_step
;
auto
.
iNext
;
iIntros
(
e2
ef
σ
Hstep
).
iDestruct
"HP"
as
"[HP HP']"
;
iSplitL
"HP"
.
-
iApply
"He2"
;
by
iSplit
.
-
destruct
ef
as
[
e
|
];
last
done
.
iApply
(
"Hef"
$
!
_
(
Some
e
));
by
iSplit
.
Qed
.
Lemma
ht_lift_pure_det_step
E
P
P
'
Ψ
e1
e2
ef
:
to_val
e1
=
None
→
(
∀
σ
1
,
reducible
e1
σ
1
)
→
(
∀
σ
1
e2
'
σ
2
ef
'
,
prim_step
e1
σ
1
e2
'
σ
2
ef
'
→
σ
1
=
σ
2
∧
e2
=
e2
'
∧
ef
=
ef
'
)
→
{{
P
}}
e2
@
E
{{
Ψ
}}
∧
{{
P
'
}}
ef
?@
⊤
{{
_
,
True
}}
⊢
{{
▷
(
P
★
P
'
)
}}
e1
@
E
{{
Ψ
}}
.
Proof
.
iIntros
(
?
Hsafe
Hpuredet
)
"[#He2 #Hef]"
.
iApply
ht_lift_pure_step
;
eauto
.
by
intros
;
eapply
Hpuredet
.
iSplit
;
iIntros
(
e2
'
ef
'
σ
).
-
iIntros
"! [% ?]"
.
edestruct
Hpuredet
as
(
_
&->&->
).
done
.
by
iApply
"He2"
.
-
destruct
ef
'
as
[
e
'
|
];
last
done
.
iIntros
"! [% ?]"
.
edestruct
Hpuredet
as
(
_
&->&->
).
done
.
by
iApply
"Hef"
.
Qed
.
End
lifting
.
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