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
William Mansky
Iris
Commits
bc4b0cc2
Commit
bc4b0cc2
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Strong framing by default for persistent hypotheses.
parent
f0582c61
Branches
strong_frame
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/proofmode/tactics.v
+9
-4
9 additions, 4 deletions
theories/proofmode/tactics.v
theories/tests/proofmode.v
+5
-5
5 additions, 5 deletions
theories/tests/proofmode.v
with
14 additions
and
9 deletions
theories/proofmode/tactics.v
+
9
−
4
View file @
bc4b0cc2
...
...
@@ -182,14 +182,19 @@ Local Ltac iFramePure t :=
|
iFrameFinish
]
.
Local
Ltac
iFrameHyp
strong
H
:=
eapply
tac_frame
with
_
H
_
_
_;
[
env_cbv
;
reflexivity
||
fail
"iFrame:"
H
"not found"
(* Create an evar so we can remember whether the hypothesis is persistent. If
it is, we won't drop the hypothesis anyway, so we can use strong framing
safely. *)
let
q
:=
fresh
in
evar
(
q
:
bool
);
eapply
tac_frame
with
_
H
q
_
_;
[
env_cbv
;
apply
:
reflexivity
(* reflexivity fails because of the evar *)
||
fail
"iFrame:"
H
"not found"
|
let
R
:=
match
goal
with
|
-
Frame
?R
_
_
=>
R
end
in
lazymatch
strong
with
lazymatch
eval
compute
in
(
q
||
strong
)
with
|
false
=>
apply
_
|
true
=>
typeclasses
eauto
with
typeclass_instances
strong_frame
end
||
fail
"iFrame: cannot frame"
R
|
iFrameFinish
]
.
|
unfold
q
;
clear
q
;
iFrameFinish
]
.
Local
Ltac
iFrameAnyPure
:=
repeat
match
goal
with
H
:
_
|
-
_
=>
iFramePure
H
end
.
...
...
This diff is collapsed.
Click to expand it.
theories/tests/proofmode.v
+
5
−
5
View file @
bc4b0cc2
...
...
@@ -147,10 +147,10 @@ Lemma demo_17 (M : ucmraT) (P Q R : uPred M) `{!PersistentP R} :
P
-∗
Q
-∗
R
-∗
R
∗
Q
∗
P
∗
R
∨
False
.
Proof
.
iIntros
"HP HQ #HR"
.
iCombine
"HR HQ HP HR"
as
"H"
.
auto
.
Qed
.
Lemma
demo_18
(
M
:
ucmraT
)
(
P
Q
R
:
uPred
M
)
:
P
-∗
Q
-∗
R
-∗
(
P
∗
Q
∨
R
∗
False
)
.
Lemma
demo_18
(
M
:
ucmraT
)
(
P
Q
Q2
R
:
uPred
M
)
`{
!
PersistentP
Q2
}
:
P
-∗
Q
-∗
Q2
-∗
R
-∗
(
P
∗
Q
∗
Q2
∨
R
∗
False
)
.
Proof
.
iIntros
"^$ HQ HR {^$HR}"
.
iAssert
(
Q
∨
False
)
%
I
with
"[^$HQ]"
as
"[HQ|[]]"
.
iFrame
"^HQ"
.
iIntros
"^$ HQ
1 #HQ2
HR {^$HR}"
.
iAssert
(
Q
∨
False
)
%
I
with
"[^$HQ
1
]"
as
"[HQ
1
|[]]"
.
iFrame
"^HQ
1 HQ2
"
.
Qed
.
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