1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
18 include "list/list.ma".
19 include "decidable_kit/list_aux.ma".
20 (* tests from "Dependent Coersion" by Luo and Soloviev *)
22 inductive vec (A : Type) : nat -> Type :=
24 | vcons : ∀a:A.∀n:nat.vec A n -> vec A (S n).
26 axiom c : ∀A,B.∀l:list A.vec B (length A l).
28 axiom veclen : ∀A,n.vec A n -> nat.
30 coercion cic:/matita/tests/coercions_dependent/c.con.
32 alias num (instance 0) = "natural number".
33 definition xxx := veclen nat ? [3; 4; 7].