| 1 |
Axiom F : forall (b : bool), b = true -> |
| 2 |
forall (i : unit), i = i -> True. |
| 3 |
|
| 4 |
Goal True. |
| 5 |
Proof. |
| 6 |
unshelve (refine (F _ _ _ _)). |
| 7 |
+ exact true. |
| 8 |
+ exact tt. |
| 9 |
+ exact (@eq_refl bool true). |
| 10 |
+ exact (@eq_refl unit tt). |
| 11 |
Qed. |
| 12 |
|
| 13 |
(* This was failing in 8.6, because of ?a:nat being wrongly duplicated *) |
| 14 |
|
| 15 |
Goal (forall a : nat, a = 0 -> True) -> True. |
| 16 |
intros F. |
| 17 |
unshelve (eapply (F _);clear F). |
| 18 |
2:reflexivity. |
| 19 |
Qed. |
| 20 |
|
| 21 |
(* same think but using Ltac2 refine *) |
| 22 |
Require Import Ltac2.Ltac2. |
| 23 |
|
| 24 |
Goal True. |
| 25 |
Proof. |
| 26 |
(* Ltac2 refine is more like simple_refine *) |
| 27 |
unshelve (refine '(F _ _ _ _); Control.shelve_unifiable ()). |
| 28 |
+ exact true. |
| 29 |
+ exact tt. |
| 30 |
+ exact (@eq_refl bool true). |
| 31 |
+ exact (@eq_refl unit tt). |
| 32 |
Qed. |
| 33 |
|
| 34 |
Goal (forall a : nat, a = 0 -> True) -> True. |
| 35 |
intros F. |
| 36 |
unshelve (eapply (&F _);clear F). |
| 37 |
2:reflexivity. |
| 38 |
Qed. |