From 7273f8f1e72fd2d72c6ea54c13895580e66b872d Mon Sep 17 00:00:00 2001 From: herbelin Date: Fri, 27 Oct 2006 10:37:58 +0000 Subject: Check that sort-polymorphic inductive types is not too lax git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9297 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/failure/proofirrelevance.v | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test-suite/failure/proofirrelevance.v diff --git a/test-suite/failure/proofirrelevance.v b/test-suite/failure/proofirrelevance.v new file mode 100644 index 0000000000..eedf2612b3 --- /dev/null +++ b/test-suite/failure/proofirrelevance.v @@ -0,0 +1,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. + -- cgit v1.2.3