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
Pierre Roux
Iris
Commits
3b5472b5
Commit
3b5472b5
authored
6 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
A bit of refactoring in the proof mode code.
parent
c6af67f9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/proofmode/ltac_tactics.v
+8
-10
8 additions, 10 deletions
theories/proofmode/ltac_tactics.v
with
8 additions
and
10 deletions
theories/proofmode/ltac_tactics.v
+
8
−
10
View file @
3b5472b5
...
@@ -470,6 +470,12 @@ Local Tactic Notation "iIntro" "#" constr(H) :=
...
@@ -470,6 +470,12 @@ Local Tactic Notation "iIntro" "#" constr(H) :=
|
(* subgoal *)
]
|
(* subgoal *)
]
|
fail
1
"iIntro: nothing to introduce"
]
.
|
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"
"_"
:=
Local
Tactic
Notation
"iIntro"
"_"
:=
iStartProof
;
iStartProof
;
first
first
...
@@ -741,10 +747,7 @@ Ltac iSpecializePat_go H1 pats :=
...
@@ -741,10 +747,7 @@ Ltac iSpecializePat_go H1 pats :=
iRevertHyp
H1
with
(
fun
p
=>
iRevertHyp
H1
with
(
fun
p
=>
iSpecializePat_go
H2tmp
pats1
;
iSpecializePat_go
H2tmp
pats1
;
[.
.
(* side-conditions of [iSpecialize] *)
[.
.
(* side-conditions of [iSpecialize] *)
|
lazymatch
p
with
|
iIntro
H1
as
p
]);
|
true
=>
iIntro
#
H1
|
_
=>
iIntro
H1
end
]);
(* We put the stuff below outside of the closure to get less verbose
(* We put the stuff below outside of the closure to get less verbose
Ltac backtraces (which would otherwise include the whole closure). *)
Ltac backtraces (which would otherwise include the whole closure). *)
[.
.
(* side-conditions of [iSpecialize] *)
[.
.
(* side-conditions of [iSpecialize] *)
...
@@ -1531,12 +1534,7 @@ Tactic Notation "iRevertIntros" constr(Hs) "with" tactic(tac) :=
...
@@ -1531,12 +1534,7 @@ Tactic Notation "iRevertIntros" constr(Hs) "with" tactic(tac) :=
lazymatch
Hs
with
lazymatch
Hs
with
|
[]
=>
tac
|
[]
=>
tac
|
ESelPure
::
?Hs
=>
fail
"iRevertIntros: % not supported"
|
ESelPure
::
?Hs
=>
fail
"iRevertIntros: % not supported"
|
ESelIdent
?p
?H
::
?Hs
=>
|
ESelIdent
?p
?H
::
?Hs
=>
iRevertHyp
H
;
go
Hs
;
iIntro
H
as
p
iRevertHyp
H
;
go
Hs
;
match
p
with
|
true
=>
iIntro
#
H
|
false
=>
iIntro
H
end
end
in
end
in
try
iStartProof
;
let
Hs
:=
iElaborateSelPat
Hs
in
go
Hs
.
try
iStartProof
;
let
Hs
:=
iElaborateSelPat
Hs
in
go
Hs
.
...
...
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