diff options
| author | Pierre-Marie Pédrot | 2017-07-28 17:53:42 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2017-07-30 00:20:30 +0200 |
| commit | 0f72b089de52ad7d26d71e56003b140fa5012635 (patch) | |
| tree | 9fe0d82fc1c30e0a4740dfc23a876e0a8aa817a9 /tests/stuff | |
| parent | 23f10f3a1a0fd6498cad975b39af5dd3a8559f06 (diff) | |
Exporting more internals from Coq implementation.
Diffstat (limited to 'tests/stuff')
| -rw-r--r-- | tests/stuff/ltac2.v | 8 |
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 |
