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
efd340e5
Commit
efd340e5
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
provide tactics to more easily apply wands
parent
75aed833
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
algebra/upred.v
+15
-0
15 additions, 0 deletions
algebra/upred.v
program_logic/auth.v
+3
-3
3 additions, 3 deletions
program_logic/auth.v
program_logic/sts.v
+3
-3
3 additions, 3 deletions
program_logic/sts.v
with
21 additions
and
6 deletions
algebra/upred.v
+
15
−
0
View file @
efd340e5
...
@@ -623,6 +623,21 @@ Lemma wand_elim_l' P Q R : P ⊑ (Q -★ R) → (P ★ Q) ⊑ R.
...
@@ -623,6 +623,21 @@ Lemma wand_elim_l' P Q R : P ⊑ (Q -★ R) → (P ★ Q) ⊑ R.
Proof
.
intros
->
;
apply
wand_elim_l
.
Qed
.
Proof
.
intros
->
;
apply
wand_elim_l
.
Qed
.
Lemma
wand_elim_r
'
P
Q
R
:
Q
⊑
(
P
-
★
R
)
→
(
P
★
Q
)
⊑
R
.
Lemma
wand_elim_r
'
P
Q
R
:
Q
⊑
(
P
-
★
R
)
→
(
P
★
Q
)
⊑
R
.
Proof
.
intros
->
;
apply
wand_elim_r
.
Qed
.
Proof
.
intros
->
;
apply
wand_elim_r
.
Qed
.
Lemma
wand_apply_l
P
Q
Q
'
R
R
'
:
P
⊑
(
Q
'
-
★
R
'
)
→
R
'
⊑
R
→
Q
⊑
Q
'
→
(
P
★
Q
)
⊑
R
.
Proof
.
intros
->
->
<-
;
apply
wand_elim_l
.
Qed
.
Lemma
wand_apply_r
P
Q
Q
'
R
R
'
:
P
⊑
(
Q
'
-
★
R
'
)
→
R
'
⊑
R
→
Q
⊑
Q
'
→
(
Q
★
P
)
⊑
R
.
Proof
.
intros
->
->
<-
;
apply
wand_elim_r
.
Qed
.
Lemma
wand_apply_l
'
P
Q
Q
'
R
:
P
⊑
(
Q
'
-
★
R
)
→
Q
⊑
Q
'
→
(
P
★
Q
)
⊑
R
.
Proof
.
intros
->
<-
;
apply
wand_elim_l
.
Qed
.
Lemma
wand_apply_r
'
P
Q
Q
'
R
:
P
⊑
(
Q
'
-
★
R
)
→
Q
⊑
Q
'
→
(
Q
★
P
)
⊑
R
.
Proof
.
intros
->
<-
;
apply
wand_elim_r
.
Qed
.
Lemma
wand_frame_l
P
Q
R
:
(
Q
-
★
R
)
⊑
(
P
★
Q
-
★
P
★
R
).
Proof
.
apply
wand_intro_l
.
rewrite
-
assoc
.
apply
sep_mono_r
,
wand_elim_r
.
Qed
.
Lemma
wand_frame_r
P
Q
R
:
(
Q
-
★
R
)
⊑
(
Q
★
P
-
★
R
★
P
).
Proof
.
apply
wand_intro_l
.
rewrite
!
[(
_
★
P
)
%
I
]
comm
-
assoc
.
apply
sep_mono_r
,
wand_elim_r
.
Qed
.
Lemma
sep_and
P
Q
:
(
P
★
Q
)
⊑
(
P
∧
Q
).
Lemma
sep_and
P
Q
:
(
P
★
Q
)
⊑
(
P
∧
Q
).
Proof
.
auto
.
Qed
.
Proof
.
auto
.
Qed
.
Lemma
impl_wand
P
Q
:
(
P
→
Q
)
⊑
(
P
-
★
Q
).
Lemma
impl_wand
P
Q
:
(
P
→
Q
)
⊑
(
P
-
★
Q
).
...
...
This diff is collapsed.
Click to expand it.
program_logic/auth.v
+
3
−
3
View file @
efd340e5
...
@@ -116,9 +116,9 @@ Section auth.
...
@@ -116,9 +116,9 @@ Section auth.
rewrite
(
auth_opened
(
E
∖
N
))
!
pvs_frame_r
!
sep_exist_r
.
rewrite
(
auth_opened
(
E
∖
N
))
!
pvs_frame_r
!
sep_exist_r
.
apply
(
fsa_strip_pvs
fsa
).
apply
exist_elim
=>
a
'
.
apply
(
fsa_strip_pvs
fsa
).
apply
exist_elim
=>
a
'
.
rewrite
(
forall_elim
a
'
).
rewrite
[(
▷
_
★
_
)
%
I
]
comm
.
rewrite
(
forall_elim
a
'
).
rewrite
[(
▷
_
★
_
)
%
I
]
comm
.
(
*
Getting
this
wand
eliminated
is
really
annoying
.
*
)
eapply
wand_apply_r
;
first
(
by
eapply
(
wand_frame_l
(
own
γ
_
)));
last
first
.
rewrite
[(
■
_
★
_
)
%
I
]
comm
-!
assoc
[(
▷φ
_
★
_
★
_
)
%
I
]
assoc
[(
▷φ
_
★
_
)
%
I
]
comm
.
{
rewrite
assoc
[(
_
★
own
_
_
)
%
I
]
comm
-
assoc
.
done
.
}
rewrite
wand_elim_r
fsa_frame_l
.
rewrite
fsa_frame_l
.
apply
(
fsa_mono_pvs
fsa
)
=>
x
.
apply
(
fsa_mono_pvs
fsa
)
=>
x
.
rewrite
sep_exist_l
;
apply
exist_elim
=>
L
.
rewrite
sep_exist_l
;
apply
exist_elim
=>
L
.
rewrite
sep_exist_l
;
apply
exist_elim
=>
Lv
.
rewrite
sep_exist_l
;
apply
exist_elim
=>
Lv
.
...
...
This diff is collapsed.
Click to expand it.
program_logic/sts.v
+
3
−
3
View file @
efd340e5
...
@@ -133,9 +133,9 @@ Section sts.
...
@@ -133,9 +133,9 @@ Section sts.
rewrite
(
sts_opened
(
E
∖
N
))
!
pvs_frame_r
!
sep_exist_r
.
rewrite
(
sts_opened
(
E
∖
N
))
!
pvs_frame_r
!
sep_exist_r
.
apply
(
fsa_strip_pvs
fsa
).
apply
exist_elim
=>
s
.
apply
(
fsa_strip_pvs
fsa
).
apply
exist_elim
=>
s
.
rewrite
(
forall_elim
s
).
rewrite
[(
▷
_
★
_
)
%
I
]
comm
.
rewrite
(
forall_elim
s
).
rewrite
[(
▷
_
★
_
)
%
I
]
comm
.
(
*
Getting
this
wand
eliminated
is
really
annoying
.
*
)
eapply
wand_apply_r
;
first
(
by
eapply
(
wand_frame_l
(
own
γ
_
)));
last
first
.
rewrite
[(
■
_
★
_
)
%
I
]
comm
-!
assoc
[(
▷φ
_
★
_
★
_
)
%
I
]
assoc
[(
▷φ
_
★
_
)
%
I
]
comm
.
{
rewrite
assoc
[(
_
★
own
_
_
)
%
I
]
comm
-
assoc
.
done
.
}
rewrite
wand_elim_r
fsa_frame_l
.
rewrite
fsa_frame_l
.
apply
(
fsa_mono_pvs
fsa
)
=>
x
.
apply
(
fsa_mono_pvs
fsa
)
=>
x
.
rewrite
sep_exist_l
;
apply
exist_elim
=>
s
'
.
rewrite
sep_exist_l
;
apply
exist_elim
=>
s
'
.
rewrite
sep_exist_l
;
apply
exist_elim
=>
T
'
.
rewrite
sep_exist_l
;
apply
exist_elim
=>
T
'
.
...
...
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