| 1 |
Goal ((forall (t : Type) (x y : t), |
| 2 |
True -> |
| 3 |
x = y)) -> False. |
| 4 |
Proof. |
| 5 |
intro HG. |
| 6 |
let P := lazymatch goal with |
| 7 |
| [ H : forall t x y, True -> @?P t x y |
| 8 |
|- _ ] |
| 9 |
=> P |
| 10 |
end in |
| 11 |
pose (f := P). |
| 12 |
unify f (fun (t : Type) (x y : t) => x = y). |
| 13 |
Abort. |
| 14 |
|
| 15 |
Goal True. |
| 16 |
Proof. |
| 17 |
let c := lazymatch constr:(fun (T : nat -> Type) (y : nat) (_ : T y) => y) with |
| 18 |
| fun _ y _ => @?C y => C |
| 19 |
end in |
| 20 |
pose (f := c). |
| 21 |
unify f (fun n : nat => n). |
| 22 |
Abort. |
| 23 |
|
| 24 |
Goal (forall x : nat, x = x -> x = x \/ x = x) -> True. |
| 25 |
Proof. |
| 26 |
intro. |
| 27 |
let P := lazymatch goal with |
| 28 |
| [ H : forall y, @?P y -> @?P y \/ _ |- _ ] |
| 29 |
=> P |
| 30 |
end in |
| 31 |
pose (f := P). |
| 32 |
unify f (fun x : nat => x = x). |
| 33 |
Abort. |
| 34 |
|
| 35 |
Goal (forall x : nat, x = x -> x = x \/ x = x) -> True. |
| 36 |
Proof. |
| 37 |
intro. |
| 38 |
lazymatch goal with |
| 39 |
| [ H : forall y, @?P y -> @?Q y \/ _ |- _ ] |
| 40 |
=> idtac |
| 41 |
end. |
| 42 |
Abort. |
| 43 |
|
| 44 |
Axiom eq : forall {T} (_ : T), Prop. |
| 45 |
|
| 46 |
Goal forall _ : (forall t (_ : eq t) (x : t), eq x), Prop. |
| 47 |
Proof. |
| 48 |
intro. |
| 49 |
let P := lazymatch goal with |
| 50 |
| [ H : forall t _ x, @?P t x |- _ ] |
| 51 |
=> P |
| 52 |
end in |
| 53 |
pose (f := P). |
| 54 |
Abort. |