Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Pierre-Marie Pédrot
Iris
Commits
3b5472b5
Commit
3b5472b5
authored
Dec 25, 2018
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit of refactoring in the proof mode code.
parent
c6af67f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
theories/proofmode/ltac_tactics.v
theories/proofmode/ltac_tactics.v
+8
-10
No files found.
theories/proofmode/ltac_tactics.v
View file @
3b5472b5
...
...
@@ -470,6 +470,12 @@ Local Tactic Notation "iIntro" "#" constr(H) :=
|
(* subgoal *)
]
|
fail
1
"iIntro: nothing to introduce"
].
Local
Tactic
Notation
"iIntro"
constr
(
H
)
"as"
constr
(
p
)
:
=
lazymatch
p
with
|
true
=>
iIntro
#
H
|
_
=>
iIntro
H
end
.
Local
Tactic
Notation
"iIntro"
"_"
:
=
iStartProof
;
first
...
...
@@ -741,10 +747,7 @@ Ltac iSpecializePat_go H1 pats :=
iRevertHyp
H1
with
(
fun
p
=>
iSpecializePat_go
H2tmp
pats1
;
[..
(* side-conditions of [iSpecialize] *)
|
lazymatch
p
with
|
true
=>
iIntro
#
H1
|
_
=>
iIntro
H1
end
])
;
|
iIntro
H1
as
p
])
;
(* We put the stuff below outside of the closure to get less verbose
Ltac backtraces (which would otherwise include the whole closure). *)
[..
(* side-conditions of [iSpecialize] *)
...
...
@@ -1531,12 +1534,7 @@ Tactic Notation "iRevertIntros" constr(Hs) "with" tactic(tac) :=
lazymatch
Hs
with
|
[]
=>
tac
|
ESelPure
::
?Hs
=>
fail
"iRevertIntros: % not supported"
|
ESelIdent
?p
?H
::
?Hs
=>
iRevertHyp
H
;
go
Hs
;
match
p
with
|
true
=>
iIntro
#
H
|
false
=>
iIntro
H
end
|
ESelIdent
?p
?H
::
?Hs
=>
iRevertHyp
H
;
go
Hs
;
iIntro
H
as
p
end
in
try
iStartProof
;
let
Hs
:
=
iElaborateSelPat
Hs
in
go
Hs
.
...
...
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