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
0b4a2a55
Commit
0b4a2a55
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Plain Diff
Merge branch 'ralf/find_pat' into 'master'
remove unused find_pat tactic Closes
#93
See merge request
!219
parents
71b66d70
00e29c8b
No related branches found
No related tags found
1 merge request
!219
remove unused find_pat tactic
Pipeline
#40741
passed
4 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
theories/tactics.v
+0
-11
0 additions, 11 deletions
theories/tactics.v
with
1 addition
and
11 deletions
CHANGELOG.md
+
1
−
0
View file @
0b4a2a55
...
...
@@ -45,6 +45,7 @@ Coq 8.8 and 8.9 are no longer supported.
-
Remove
`omega`
import and hint database in
`tactics`
file.
-
Add
`rename select <pat> into <name>`
tactic to find a hypothesis by pattern
and give it a fixed name.
-
Remove unused
`find_pat`
tactic that was made mostly obsolete by
`select`
.
The following
`sed`
script should perform most of the renaming
(on macOS, replace
`sed`
by
`gsed`
, installed via e.g.
`brew install gnu-sed`
):
...
...
This diff is collapsed.
Click to expand it.
theories/tactics.v
+
0
−
11
View file @
0b4a2a55
...
...
@@ -508,17 +508,6 @@ Ltac block_goal := match goal with [ |- ?T ] => change (block T) end.
Ltac
unblock_goal
:=
unfold
block
in
*.
(** The following tactic can be used to add support for patterns to tactic notation:
It will search for the first subterm of the goal matching [pat], and then call [tac]
with that subterm. *)
Ltac
find_pat
pat
tac
:=
match
goal
with
|
-
context
[
?x
]
=>
unify
pat
x
with
typeclass_instances
;
tryif
tac
x
then
idtac
else
fail
2
end
.
(** [select] finds the first hypothesis matching [pat] and passes it
to the continuation [tac]. Its main advantage over using [match goal
with ] directly is that it is shorter. If [pat] matches multiple
...
...
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