test-suite/failure/proofirrelevance.v
raw| 1 | (* This was working in version 8.1beta (bug in template polymorphism), |
| 2 | but this is inconsistent with classical logic in Prop *) |
| 3 | |
| 4 | Inductive bool_in_prop : Type := hide : bool -> bool_in_prop |
| 5 | with bool : Type := true : bool | false : bool. |
| 6 | |
| 7 | Lemma not_proof_irrelevance : ~ forall (P:Prop) (p p':P), p=p'. |
| 8 | intro H. |
| 9 | Fail pose proof (H bool_in_prop (hide true) (hide false)). |
| 10 | Abort. |
| 11 | (*discriminate. |
| 12 | Qed.*) |
| 13 |