summaryrefslogtreecommitdiff
path: root/test-suite/failure/proofirrelevance.v
blob: 93e159e8bd2d3c172e5b7219e9c9c9073835b018 (plain)
1
2
3
4
5
6
7
8
9
10
11
(* This was working in version 8.1beta (bug in the Sort-polymorphism
   of inductive types), but this is inconsistent with classical logic
   in Prop *)

Inductive bool_in_prop : Type := hide : bool -> bool_in_prop
with bool : Type := true : bool | false : bool.

Lemma not_proof_irrelevance : ~ forall (P:Prop) (p p':P), p=p'.
intro H; pose proof (H bool_in_prop (hide true) (hide false)); discriminate.
Qed.