Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rodolphe Lepigre
Iris
Commits
8b8d6ae2
Commit
8b8d6ae2
authored
Sep 20, 2016
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make iFrame finish the goal if everything has been framed.
parent
15480a66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
ProofMode.md
ProofMode.md
+3
-0
proofmode/tactics.v
proofmode/tactics.v
+9
-2
No files found.
ProofMode.md
View file @
8b8d6ae2
...
...
@@ -92,6 +92,9 @@ Separating logic specific tactics
Notice that framing spatial hypotheses makes them disappear, but framing Coq
or persistent hypotheses does not make them disappear.
This tactic finishes the goal in case everything in the conclusion has been
framed.
-
`iCombine "H1" "H2" as "H"`
: turns
`H1 : P1`
and
`H2 : P2`
into
`H : P1 ★ P2`
.
...
...
proofmode/tactics.v
View file @
8b8d6ae2
...
...
@@ -432,17 +432,24 @@ Tactic Notation "iCombine" constr(H1) constr(H2) "as" constr(H) :=
|
env_cbv
;
reflexivity
||
fail
"iCombine:"
H
"not fresh"
|].
(** Framing *)
Local
Ltac
iFrameFinish
:
=
lazy
iota
beta
;
try
match
goal
with
|
|-
_
⊢
True
=>
exact
(
uPred
.
pure_intro
_
_
I
)
end
.
Local
Ltac
iFramePure
t
:
=
let
φ
:
=
type
of
t
in
eapply
(
tac_frame_pure
_
_
_
_
t
)
;
[
apply
_
||
fail
"iFrame: cannot frame"
φ
|].
[
apply
_
||
fail
"iFrame: cannot frame"
φ
|
iFrameFinish
].
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
].
|
iFrameFinish
].
Local
Ltac
iFrameAnyPure
:
=
repeat
match
goal
with
H
:
_
|-
_
=>
iFramePure
H
end
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment