aboutsummaryrefslogtreecommitdiff
path: root/theories
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2017-09-13 21:44:43 +0200
committerPierre-Marie Pédrot2017-09-13 22:48:48 +0200
commit46095430ed07306ba3380ea8192540793c5c0a26 (patch)
tree53c64ee743a469c560f78f9e3521dfc831e1b537 /theories
parentc7c1f9b2da838a604c479bb2bc162fef621524ed (diff)
Adding quotations for the generalize tactic.
Diffstat (limited to 'theories')
-rw-r--r--theories/Notations.v6
1 files changed, 6 insertions, 0 deletions
diff --git a/theories/Notations.v b/theories/Notations.v
index 9b39942ca5..e393002f55 100644
--- a/theories/Notations.v
+++ b/theories/Notations.v
@@ -284,6 +284,12 @@ Ltac2 Notation "einduction"
use(thunk(opt(seq("using", constr, with_bindings)))) :=
induction0 true ic use.
+Ltac2 generalize0 gen :=
+ enter_h false (fun _ gen => Std.generalize gen) gen.
+
+Ltac2 Notation "generalize" gen(thunk(generalizations)) :=
+ generalize0 gen.
+
Ltac2 destruct0 ev ic use :=
let f ev use := Std.destruct ev ic use in
enter_h ev f use.