aboutsummaryrefslogtreecommitdiff
path: root/theories
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2017-09-04 21:55:51 +0200
committerPierre-Marie Pédrot2017-09-04 22:15:54 +0200
commit01a3776cb801ed6cbeba895d04f75e62fd6f091a (patch)
tree66c4c6e7304ec4e92e7dcafbbb7b26978c2bb27a /theories
parent0012f73a1822b97dd8bc8963bc77490cde83e89f (diff)
More notations for primitive tactics.
Diffstat (limited to 'theories')
-rw-r--r--theories/Notations.v23
1 files changed, 23 insertions, 0 deletions
diff --git a/theories/Notations.v b/theories/Notations.v
index 5ed47336ad..ad89bc5cfc 100644
--- a/theories/Notations.v
+++ b/theories/Notations.v
@@ -383,6 +383,12 @@ Ltac2 Notation "eexact" c(thunk(open_constr)) := exact0 true c.
Ltac2 Notation reflexivity := Std.reflexivity ().
+Ltac2 symmetry0 cl :=
+ Std.symmetry (default_on_concl cl).
+
+Ltac2 Notation "symmetry" cl(opt(clause)) := symmetry0 cl.
+Ltac2 Notation symmetry := symmetry.
+
Ltac2 Notation assumption := Std.assumption ().
Ltac2 Notation etransitivity := Std.etransitivity ().
@@ -412,3 +418,20 @@ end.
Ltac2 Notation "subst" ids(list0(ident)) := subst0 ids.
Ltac2 Notation subst := subst.
+
+Ltac2 Notation "discriminate" arg(opt(destruction_arg)) :=
+ Std.discriminate false arg.
+
+Ltac2 Notation "ediscriminate" arg(opt(destruction_arg)) :=
+ Std.discriminate true arg.
+
+Ltac2 Notation "injection" arg(opt(destruction_arg)) ipat(opt(seq("as", intropatterns))):=
+ Std.injection false ipat arg.
+
+Ltac2 Notation "einjection" arg(opt(destruction_arg)) ipat(opt(seq("as", intropatterns))):=
+ Std.injection true ipat arg.
+
+(** Congruence *)
+
+Ltac2 f_equal0 () := ltac1:(f_equal).
+Ltac2 Notation f_equal := f_equal0 ().