Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Paolo G. Giarrusso
iris
Commits
9c55bc2c
Commit
9c55bc2c
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue #54.
parent
adfa0752
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/proofmode/tactics.v
+11
-4
11 additions, 4 deletions
theories/proofmode/tactics.v
with
11 additions
and
4 deletions
theories/proofmode/tactics.v
+
11
−
4
View file @
9c55bc2c
...
@@ -709,6 +709,7 @@ Local Tactic Notation "iDestructHyp" constr(H) "as" "(" simple_intropattern(x1)
...
@@ -709,6 +709,7 @@ Local Tactic Notation "iDestructHyp" constr(H) "as" "(" simple_intropattern(x1)
(** * Introduction tactic *)
(** * Introduction tactic *)
Local
Tactic
Notation
"iIntro"
"("
simple_intropattern
(
x
)
")"
:=
Local
Tactic
Notation
"iIntro"
"("
simple_intropattern
(
x
)
")"
:=
try
iStartProof
;
try
first
try
first
[
(* (∀ _, _) *)
apply
tac_forall_intro
[
(* (∀ _, _) *)
apply
tac_forall_intro
|
(* (?P → _) *)
eapply
tac_impl_intro_pure
;
|
(* (?P → _) *)
eapply
tac_impl_intro_pure
;
...
@@ -721,7 +722,9 @@ Local Tactic Notation "iIntro" "(" simple_intropattern(x) ")" :=
...
@@ -721,7 +722,9 @@ Local Tactic Notation "iIntro" "(" simple_intropattern(x) ")" :=
|
(* ⌜_ → _⌝ *)
apply
tac_pure_impl_intro
];
|
(* ⌜_ → _⌝ *)
apply
tac_pure_impl_intro
];
intros
x
.
intros
x
.
Local
Tactic
Notation
"iIntro"
constr
(
H
)
:=
first
Local
Tactic
Notation
"iIntro"
constr
(
H
)
:=
iStartProof
;
first
[
(* (?Q → _) *)
[
(* (?Q → _) *)
eapply
tac_impl_intro
with
_
H
;
(* (i:=H) *)
eapply
tac_impl_intro
with
_
H
;
(* (i:=H) *)
[
reflexivity
||
fail
1
"iIntro: introducing"
H
[
reflexivity
||
fail
1
"iIntro: introducing"
H
...
@@ -732,7 +735,9 @@ Local Tactic Notation "iIntro" constr(H) := first
...
@@ -732,7 +735,9 @@ Local Tactic Notation "iIntro" constr(H) := first
[
env_cbv
;
reflexivity
||
fail
1
"iIntro:"
H
"not fresh"
|]
[
env_cbv
;
reflexivity
||
fail
1
"iIntro:"
H
"not fresh"
|]
|
fail
1
"iIntro: nothing to introduce"
]
.
|
fail
1
"iIntro: nothing to introduce"
]
.
Local
Tactic
Notation
"iIntro"
"#"
constr
(
H
)
:=
first
Local
Tactic
Notation
"iIntro"
"#"
constr
(
H
)
:=
iStartProof
;
first
[
(* (?P → _) *)
[
(* (?P → _) *)
eapply
tac_impl_intro_persistent
with
_
H
_;
(* (i:=H) *)
eapply
tac_impl_intro_persistent
with
_
H
_;
(* (i:=H) *)
[
let
P
:=
match
goal
with
|
-
IntoPersistentP
?P
_
=>
P
end
in
[
let
P
:=
match
goal
with
|
-
IntoPersistentP
?P
_
=>
P
end
in
...
@@ -746,12 +751,14 @@ Local Tactic Notation "iIntro" "#" constr(H) := first
...
@@ -746,12 +751,14 @@ Local Tactic Notation "iIntro" "#" constr(H) := first
|
fail
1
"iIntro: nothing to introduce"
]
.
|
fail
1
"iIntro: nothing to introduce"
]
.
Local
Tactic
Notation
"iIntroForall"
:=
Local
Tactic
Notation
"iIntroForall"
:=
try
iStartProof
;
lazymatch
goal
with
lazymatch
goal
with
|
|
-
∀
_,
?P
=>
fail
|
|
-
∀
_,
?P
=>
fail
|
|
-
∀
_,
_
=>
intro
|
|
-
∀
_,
_
=>
intro
|
|
-
_
⊢
(
∀
x
:
_,
_)
=>
iIntro
(
x
)
|
|
-
_
⊢
(
∀
x
:
_,
_)
=>
iIntro
(
x
)
end
.
end
.
Local
Tactic
Notation
"iIntro"
:=
Local
Tactic
Notation
"iIntro"
:=
try
iStartProof
;
lazymatch
goal
with
lazymatch
goal
with
|
|
-
_
→
?P
=>
intro
|
|
-
_
→
?P
=>
intro
|
|
-
_
⊢
(_
-∗
_)
=>
iIntro
(?)
||
let
H
:=
iFresh
in
iIntro
#
H
||
iIntro
H
|
|
-
_
⊢
(_
-∗
_)
=>
iIntro
(?)
||
let
H
:=
iFresh
in
iIntro
#
H
||
iIntro
H
...
@@ -785,11 +792,11 @@ Tactic Notation "iIntros" constr(pat) :=
...
@@ -785,11 +792,11 @@ Tactic Notation "iIntros" constr(pat) :=
|
?pat
::
?pats
=>
|
?pat
::
?pats
=>
let
H
:=
iFresh
in
iIntro
H
;
iDestructHyp
H
as
pat
;
go
pats
let
H
:=
iFresh
in
iIntro
H
;
iDestructHyp
H
as
pat
;
go
pats
end
end
in
let
pats
:=
intro_pat
.
parse
pat
in
iStartProof
;
go
pats
.
in
let
pats
:=
intro_pat
.
parse
pat
in
go
pats
.
Tactic
Notation
"iIntros"
:=
iIntros
[
IAll
]
.
Tactic
Notation
"iIntros"
:=
iIntros
[
IAll
]
.
Tactic
Notation
"iIntros"
"("
simple_intropattern
(
x1
)
")"
:=
Tactic
Notation
"iIntros"
"("
simple_intropattern
(
x1
)
")"
:=
try
iStartProof
;
iIntro
(
x1
)
.
iIntro
(
x1
)
.
Tactic
Notation
"iIntros"
"("
simple_intropattern
(
x1
)
Tactic
Notation
"iIntros"
"("
simple_intropattern
(
x1
)
simple_intropattern
(
x2
)
")"
:=
simple_intropattern
(
x2
)
")"
:=
iIntros
(
x1
);
iIntro
(
x2
)
.
iIntros
(
x1
);
iIntro
(
x2
)
.
...
...
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