Skip to content
Snippets Groups Projects
Commit 0b4a2a55 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

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!219remove unused find_pat tactic
Pipeline #40741 passed
......@@ -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`):
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment