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
Gaëtan Gilbert
Iris
Commits
c208c95d
Commit
c208c95d
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
New iFresh' H tactic that generates names starting with H.
parent
efcef7e0
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
proofmode/tactics.v
+6
-4
6 additions, 4 deletions
proofmode/tactics.v
with
6 additions
and
4 deletions
proofmode/tactics.v
+
6
−
4
View file @
c208c95d
...
@@ -19,15 +19,17 @@ Ltac env_cbv :=
...
@@ -19,15 +19,17 @@ Ltac env_cbv :=
match
goal
with
|
-
?u
=>
let
v
:=
eval
env_cbv
in
u
in
change
v
end
.
match
goal
with
|
-
?u
=>
let
v
:=
eval
env_cbv
in
u
in
change
v
end
.
(** * Misc *)
(** * Misc *)
Ltac
iFresh
:=
(* Tactic Notation tactics cannot return terms *)
Ltac
iFresh'
H
:=
lazymatch
goal
with
lazymatch
goal
with
|
-
of_envs
?Δ
⊢
_
=>
|
-
of_envs
?Δ
⊢
_
=>
(* [vm_compute fails] if any of the hypotheses in [Δ] contain evars, so
(* [vm_compute fails] if any of the hypotheses in [Δ] contain evars, so
first use [cbv] to compute the domain of [Δ] *)
first use [cbv] to compute the domain of [Δ] *)
let
Hs
:=
eval
cbv
in
(
envs_dom
Δ
)
in
let
Hs
:=
eval
cbv
in
(
envs_dom
Δ
)
in
eval
vm_compute
in
(
fresh_string_of_set
"~"
(
of_list
Hs
))
eval
vm_compute
in
(
fresh_string_of_set
H
(
of_list
Hs
))
|
_
=>
constr
:(
"~"
)
|
_
=>
H
end
.
end
.
Ltac
iFresh
:=
iFresh'
"~"
.
Tactic
Notation
"iTypeOf"
constr
(
H
)
tactic
(
tac
):=
Tactic
Notation
"iTypeOf"
constr
(
H
)
tactic
(
tac
):=
let
Δ
:=
match
goal
with
|
-
of_envs
?Δ
⊢
_
=>
Δ
end
in
let
Δ
:=
match
goal
with
|
-
of_envs
?Δ
⊢
_
=>
Δ
end
in
...
@@ -785,7 +787,7 @@ Tactic Notation "iIntros" "(" simple_intropattern(x1) simple_intropattern(x2)
...
@@ -785,7 +787,7 @@ Tactic Notation "iIntros" "(" simple_intropattern(x1) simple_intropattern(x2)
Tactic
Notation
"iRevertIntros"
"with"
tactic
(
tac
)
:=
Tactic
Notation
"iRevertIntros"
"with"
tactic
(
tac
)
:=
match
goal
with
match
goal
with
|
|
-
of_envs
?Δ
⊢
_
=>
|
|
-
of_envs
?Δ
⊢
_
=>
let
Hs
:=
constr
:
(
reverse
(
env_dom
(
env_spatial
Δ
)))
in
let
Hs
:=
eval
cbv
in
(
reverse
(
env_dom
(
env_spatial
Δ
)))
in
iRevert
[
"★"
];
tac
;
iIntros
Hs
iRevert
[
"★"
];
tac
;
iIntros
Hs
end
.
end
.
Tactic
Notation
"iRevertIntros"
"("
ident
(
x1
)
")"
"with"
tactic
(
tac
):=
Tactic
Notation
"iRevertIntros"
"("
ident
(
x1
)
")"
"with"
tactic
(
tac
):=
...
...
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