aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/failure
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2006-10-27 10:37:58 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2006-10-27 10:37:58 +0000
commit7273f8f1e72fd2d72c6ea54c13895580e66b872d (patch)
treee8c941408ab5ce264f20b33c28e259ac422aa115 /test-suite/failure
parentc24ca569e61f77d1b4d16496e4671ea58f963a4c (diff)
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
Diffstat (limited to 'test-suite/failure')
-rw-r--r--test-suite/failure/proofirrelevance.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/test-suite/failure/proofirrelevance.v b/test-suite/failure/proofirrelevance.v
new file mode 100644
index 000000000..eedf2612b
--- /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.
+