From 1853b9a3fa77f29f41bc3cf131d691a7690e258b Mon Sep 17 00:00:00 2001 From: herbelin Date: Tue, 17 Oct 2006 16:39:46 +0000 Subject: Clarification des contraintes sur le contexte de paramètres des inductifs dans le test de sous-typage (exigence du même nombre d'arguments uniformes attendus mais pas d'exigence spéciale sur les définitions locales du contexte à partir du moment où les types et constructeurs sont convertibles quand généralisés par rapport au contexte de paramètres) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9247 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/modules/ind.v | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test-suite') diff --git a/test-suite/modules/ind.v b/test-suite/modules/ind.v index a15f390a38..3af94c3b91 100644 --- a/test-suite/modules/ind.v +++ b/test-suite/modules/ind.v @@ -41,3 +41,9 @@ Check (N.f M.A). End C. +(* Check subtyping of the context of parameters of the inductive types *) +(* Only the number of expected uniform parameters and the convertibility *) +(* of the inductive arities and constructors types are checked *) + +Module Type S. Inductive I (x:=0) (y:nat): Set := c: x=y -> I y. End S. +Module P : S. Inductive I (y':nat) (z:=y'): Set := c : 0=y' -> I y'. End P. -- cgit v1.2.3