test-suite/bugs/bug_5351.v
raw| 1 | Polymorphic Inductive T:Type := t. |
| 2 | Polymorphic Definition general_ok (pre: T -> Prop) := forall v, pre v. |
| 3 | Polymorphic Definition ok := general_ok (fun _ => True). |
| 4 | |
| 5 | Definition ok' := True. |
| 6 | |
| 7 | Theorem ok_equiv : ok <-> ok'. |
| 8 | unfold ok, ok', general_ok. |
| 9 | intuition. |
| 10 | Qed. |
| 11 | |
| 12 | Corollary ok_equiv' (H:ok) : False. |
| 13 | Proof. |
| 14 | destruct ok_equiv; intuition. |
| 15 | try match goal with |
| 16 | | [ H: _ -> _, H': _ |- _ ] => |
| 17 | specialize (H H'); fail 10 "bad" |
| 18 | end. |
| 19 | Abort. |