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
Environments
Terraform modules
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
Ike Mulder
Iris
Commits
0a1c37a3
Commit
0a1c37a3
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Syntax for framing the entire persistent context.
parent
095086fe
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.md
+4
-2
4 additions, 2 deletions
ProofMode.md
proofmode/tactics.v
+36
-23
36 additions, 23 deletions
proofmode/tactics.v
with
40 additions
and
25 deletions
ProofMode.md
+
4
−
2
View file @
0a1c37a3
...
...
@@ -70,8 +70,10 @@ Elimination of logical connectives
Separating logic specific tactics
---------------------------------
-
`iFrame "H0 ... Hn"`
: cancel the hypotheses
`H0 ... Hn`
in the goal. When
`iFrame`
is called without arguments, it attempts to frame all spatial
-
`iFrame "H0 ... Hn"`
: cancel the hypotheses
`H0 ... Hn`
in the goal. The
symbol
`★`
can be used to frame as much of the spatial context as possible,
and the symbol
`#`
can be used to repeatedly frame as much of the persistent
context as possible. When without arguments, it attempts to frame all spatial
hypotheses.
-
`iCombine "H1" "H2" as "H"`
: turns
`H1 : P1`
and
`H2 : P2`
into
`H : P1 ★ P2`
.
...
...
This diff is collapsed.
Click to expand it.
proofmode/tactics.v
+
36
−
23
View file @
0a1c37a3
...
...
@@ -399,29 +399,6 @@ Local Tactic Notation "iSepDestruct" constr(H) "as" constr(H1) constr(H2) :=
apply
_
||
fail
"iSepDestruct:"
H
":"
P
"not separating destructable"
|
env_cbv
;
reflexivity
||
fail
"iSepDestruct:"
H1
"or"
H2
" not fresh"
|]
.
Tactic
Notation
"iFrame"
constr
(
Hs
)
:=
let
rec
go
Hs
:=
match
Hs
with
|
[]
=>
idtac
|
?H
::
?Hs
=>
eapply
tac_frame
with
_
H
_
_
_;
[
env_cbv
;
reflexivity
||
fail
"iFrame:"
H
"not found"
|
let
R
:=
match
goal
with
|
-
Frame
?R
_
_
=>
R
end
in
apply
_
||
fail
"iFrame: cannot frame"
R
|
lazy
iota
beta
;
go
Hs
]
end
in
let
Hs
:=
words
Hs
in
go
Hs
.
Tactic
Notation
"iFrame"
:=
let
rec
go
Hs
:=
match
Hs
with
|
[]
=>
idtac
|
?H
::
?Hs
=>
try
iFrame
H
;
go
Hs
end
in
match
goal
with
|
|
-
of_envs
?Δ
⊢
_
=>
let
Hs
:=
eval
cbv
in
(
env_dom
(
env_spatial
Δ
))
in
go
Hs
end
.
Tactic
Notation
"iCombine"
constr
(
H1
)
constr
(
H2
)
"as"
constr
(
H
)
:=
eapply
tac_combine
with
_
_
_
H1
_
_
H2
_
_
H
_;
[
env_cbv
;
reflexivity
||
fail
"iCombine:"
H1
"not found"
...
...
@@ -431,6 +408,42 @@ Tactic Notation "iCombine" constr(H1) constr(H2) "as" constr(H) :=
apply
_
||
fail
"iCombine: cannot combine"
H1
":"
P1
"and"
H2
":"
P2
|
env_cbv
;
reflexivity
||
fail
"iCombine:"
H
"not fresh"
|]
.
(** Framing *)
Local
Ltac
iFrameHyp
H
:=
eapply
tac_frame
with
_
H
_
_
_;
[
env_cbv
;
reflexivity
||
fail
"iFrame:"
H
"not found"
|
let
R
:=
match
goal
with
|
-
Frame
?R
_
_
=>
R
end
in
apply
_
||
fail
"iFrame: cannot frame"
R
|
lazy
iota
beta
]
.
Local
Ltac
iFramePersistent
:=
let
rec
go
Hs
:=
match
Hs
with
[]
=>
idtac
|
?H
::
?Hs
=>
repeat
iFrameHyp
H
;
go
Hs
end
in
match
goal
with
|
|
-
of_envs
?Δ
⊢
_
=>
let
Hs
:=
eval
cbv
in
(
env_dom
(
env_persistent
Δ
))
in
go
Hs
end
.
Local
Ltac
iFrameSpatial
:=
let
rec
go
Hs
:=
match
Hs
with
[]
=>
idtac
|
?H
::
?Hs
=>
try
iFrameHyp
H
;
go
Hs
end
in
match
goal
with
|
|
-
of_envs
?Δ
⊢
_
=>
let
Hs
:=
eval
cbv
in
(
env_dom
(
env_spatial
Δ
))
in
go
Hs
end
.
Tactic
Notation
"iFrame"
constr
(
Hs
)
:=
let
rec
go
Hs
:=
match
Hs
with
|
[]
=>
idtac
|
"#"
::
?Hs
=>
iFramePersistent
;
go
Hs
|
"★"
::
?Hs
=>
iFrameSpatial
;
go
Hs
|
?H
::
?Hs
=>
iFrameHyp
H
;
go
Hs
end
in
let
Hs
:=
words
Hs
in
go
Hs
.
Tactic
Notation
"iFrame"
:=
iFrameSpatial
.
(** * Existential *)
Tactic
Notation
"iExists"
uconstr
(
x1
)
:=
eapply
tac_exist
;
...
...
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