Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
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
Model registry
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
Iris
stdpp
Commits
cf9f43cb
Commit
cf9f43cb
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Expand comment in `select`; based on `iSelect` in Iris.
parent
06531b45
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!221
Fix documentation of `select` to state that it selects the "last" hypothesis.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/tactics.v
+5
-1
5 additions, 1 deletion
theories/tactics.v
with
5 additions
and
1 deletion
theories/tactics.v
+
5
−
1
View file @
cf9f43cb
...
@@ -519,7 +519,11 @@ hypothesis due to limitations in the Ltac1 tactic runtime (see
...
@@ -519,7 +519,11 @@ hypothesis due to limitations in the Ltac1 tactic runtime (see
https://gitter.im/coq/coq?at=5e96c82f85b01628f04bbb89). *)
https://gitter.im/coq/coq?at=5e96c82f85b01628f04bbb89). *)
Tactic
Notation
"select"
open_constr
(
pat
)
tactic3
(
tac
)
:=
Tactic
Notation
"select"
open_constr
(
pat
)
tactic3
(
tac
)
:=
lazymatch
goal
with
lazymatch
goal
with
(* The [unify] is necessary, otherwise holes in [pat] stay as side-conditions *)
(** Before running [tac] on the hypothesis [H] we must first unify the
pattern [pat] with the term it matched against. This forces every evar
coming from [pat] (and in particular from the holes [_] it contains and
from the implicit arguments it uses) to be instantiated. If we do not do
so then shelved goals are produced for every such evar. *)
|
H
:
pat
|
-
_
=>
let
T
:=
(
type
of
H
)
in
unify
T
pat
;
tac
H
|
H
:
pat
|
-
_
=>
let
T
:=
(
type
of
H
)
in
unify
T
pat
;
tac
H
end
.
end
.
(** [select_revert] reverts the first hypothesis matching [pat]. *)
(** [select_revert] reverts the first hypothesis matching [pat]. *)
...
...
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