From 3bd6c650480c842088dd8ab2d5397ad310a4e152 Mon Sep 17 00:00:00 2001 From: herbelin Date: Wed, 21 Nov 2001 00:15:02 +0000 Subject: Nouveaux exemples git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2222 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/success/Cases.v | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/test-suite/success/Cases.v b/test-suite/success/Cases.v index 313f8f74a2..88c2b38b6b 100644 --- a/test-suite/success/Cases.v +++ b/test-suite/success/Cases.v @@ -1,10 +1,3 @@ -(***********************************************************************) -(* v * The Coq Proof Assistant / The Coq Development Team *) -(* Cases O eq O of O x y => O | (S x) y z => x end. (* Non dependent form of annotation *) Type Cases O eq of O x => O | (S x) y => x end. +(* Combining dependencies and non inductive arguments *) +Type [A:Set][a:A][H:O=O]<[x][H]H==H>Cases H a of _ _ => (refl_eqT ? H) end. + +(* Interaction with coercions *) +Parameter bool2nat : bool -> nat. +Coercion bool2nat : bool >-> nat. +Check [x](Cases x of O => true | (S _) => O end :: nat). + (****************************************************************************) (* All remaining examples come from Cristina Cornes' V6 TESTS/MultCases.v *) -- cgit v1.2.3