aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2017-07-28 17:53:42 +0200
committerPierre-Marie Pédrot2017-07-30 00:20:30 +0200
commit0f72b089de52ad7d26d71e56003b140fa5012635 (patch)
tree9fe0d82fc1c30e0a4740dfc23a876e0a8aa817a9 /tests
parent23f10f3a1a0fd6498cad975b39af5dd3a8559f06 (diff)
Exporting more internals from Coq implementation.
Diffstat (limited to 'tests')
-rw-r--r--tests/stuff/ltac2.v8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/stuff/ltac2.v b/tests/stuff/ltac2.v
index 4950a20ec4..35546ef6c1 100644
--- a/tests/stuff/ltac2.v
+++ b/tests/stuff/ltac2.v
@@ -120,7 +120,6 @@ Abort.
Goal True.
Proof.
-
let x () := plus (fun () => 0) (fun _ => 1) in
match case x with
| Val x =>
@@ -131,6 +130,13 @@ match case x with
end.
Abort.
+Goal (forall n : nat, n = 0 -> False) -> True.
+Proof.
+refine (fun () => '(fun H => _)).
+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