aboutsummaryrefslogtreecommitdiff
path: root/tests/stuff
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2017-08-02 13:49:48 +0200
committerPierre-Marie Pédrot2017-08-02 14:00:35 +0200
commitda8eec98d095482c0e12c0ece9725a300e5f3d57 (patch)
tree7a7c2a76737313900f6fb8a95a76f8b61e8f9794 /tests/stuff
parente50d86c836cf492a637db056b446bb4c70b2e40b (diff)
More examples
Diffstat (limited to 'tests/stuff')
-rw-r--r--tests/stuff/ltac2.v13
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/stuff/ltac2.v b/tests/stuff/ltac2.v
index 6b30d42c09..95bff7e569 100644
--- a/tests/stuff/ltac2.v
+++ b/tests/stuff/ltac2.v
@@ -55,10 +55,6 @@ Ltac2 qux3 x := constr:(nat -> ltac2:(refine (fun () => hyp x))).
Print Ltac2 qux3.
-Ltac2 qux4 f x := x, (f x, x).
-
-Print Ltac2 qux4.
-
Ltac2 Type rec nat := [ O | S (nat) ].
Ltac2 message_of_nat n :=
@@ -137,17 +133,10 @@ Std.ecase (hyp @H, Std.ExplicitBindings [Std.NamedHyp @n, '0]).
refine (fun () => 'eq_refl).
Qed.
-Ltac2 rec do n tac := match Int.equal n 0 with
-| true => ()
-| false => tac (); do (Int.sub n 1) tac
-end.
-
-Print Ltac2 do.
-
Goal forall x, 1 + x = x + 1.
Proof.
refine (fun () => '(fun x => _)).
Std.cbv {
Std.rBeta := true; Std.rMatch := true; Std.rFix := true; Std.rCofix := true;
- Std.rZeta := true; Std.rDelta := false; rConst := [];
+ Std.rZeta := true; Std.rDelta := false; Std.rConst := [];
} { Std.on_hyps := None; Std.on_concl := Std.AllOccurrences }.