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
Amin Timany
iris-coq
Commits
f400f576
Commit
f400f576
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Create eauto hint for iPvsIntro.
parent
3e0408b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
proofmode/pviewshifts.v
+3
-0
3 additions, 0 deletions
proofmode/pviewshifts.v
tests/one_shot.v
+2
-2
2 additions, 2 deletions
tests/one_shot.v
with
5 additions
and
2 deletions
proofmode/pviewshifts.v
+
3
−
0
View file @
f400f576
...
...
@@ -181,3 +181,6 @@ Tactic Notation "iTimeless" constr(H) :=
Tactic
Notation
"iTimeless"
constr
(
H
)
"as"
constr
(
Hs
)
:=
iTimeless
H
;
iDestruct
H
as
Hs
.
Hint
Extern
2
(
of_envs
_
⊢
_)
=>
match
goal
with
|
-
_
⊢
(|
=
{_}=>
_)
%
I
=>
iPvsIntro
end
.
This diff is collapsed.
Click to expand it.
tests/one_shot.v
+
2
−
2
View file @
f400f576
...
...
@@ -52,7 +52,7 @@ Proof.
iPvsIntro
.
iApply
"Hf"
;
iSplit
.
-
iIntros
{
n
}
"!"
.
wp_let
.
iInv
>
N
as
"[[Hl Hγ]|H]"
;
last
iDestruct
"H"
as
{
m
}
"[Hl Hγ]"
.
+
iApply
wp_pvs
.
wp_cas_suc
.
iSplitL
;
[|
by
iLeft
;
iPvsIntro
]
.
+
iApply
wp_pvs
.
wp_cas_suc
.
iSplitL
;
[|
by
iLeft
]
.
iPvs
(
own_update
with
"Hγ"
)
as
"Hγ"
.
{
by
apply
cmra_update_exclusive
with
(
y
:=
Cinr
(
DecAgree
n
))
.
}
iPvsIntro
;
iRight
;
iExists
n
;
by
iSplitL
"Hl"
.
...
...
@@ -79,7 +79,7 @@ Proof.
iCombine
"Hγ"
"Hγ'"
as
"Hγ"
.
iDestruct
(
own_valid
with
"#Hγ"
)
as
%
[
=->
]
%
dec_agree_op_inv
.
iSplitL
"Hl"
;
[
iRight
;
by
eauto
|]
.
wp_match
.
iApply
wp_assert'
.
wp_op
=>?;
iPvsIntro
;
simplify_eq
/=
;
eauto
.
wp_match
.
iApply
wp_assert'
.
wp_op
=>?;
simplify_eq
/=
;
eauto
.
Qed
.
Lemma
hoare_one_shot
(
Φ
:
val
→
iProp
)
:
...
...
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