X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambdadelta%2Fground_2%2Flib%2Flist.ma;h=0ea6ae2856d4f3c128a59af277b3674002280315;hp=ffce3128641951c7429d9aaeef7ae488dd000305;hb=3c8da07d7a5d7cf0432a83732a6d103f527afaef;hpb=2976c347e18717e691825ebdf73a5ce941c57d1b diff --git a/matita/matita/contribs/lambdadelta/ground_2/lib/list.ma b/matita/matita/contribs/lambdadelta/ground_2/lib/list.ma index ffce31286..0ea6ae285 100644 --- a/matita/matita/contribs/lambdadelta/ground_2/lib/list.ma +++ b/matita/matita/contribs/lambdadelta/ground_2/lib/list.ma @@ -12,7 +12,7 @@ (* *) (**************************************************************************) -include "ground_2/notation/constructors/nil_0.ma". +include "ground_2/notation/constructors/circledE_1.ma". include "ground_2/notation/constructors/oplusright_3.ma". include "ground_2/lib/arith.ma". @@ -22,7 +22,7 @@ inductive list (A:Type[0]) : Type[0] := | nil : list A | cons: A → list A → list A. -interpretation "nil (list)" 'Nil = (nil ?). +interpretation "nil (list)" 'CircledE A = (nil A). interpretation "cons (list)" 'OPlusRight A hd tl = (cons A hd tl). @@ -50,11 +50,11 @@ lemma length_cons (A:Type[0]) (l:list A) (a:A): |a⨮l| = ↑|l|. (* Basic inversion lemmas on length *****************************************) -lemma length_inv_zero_dx (A:Type[0]) (l:list A): |l| = 0 → l = ◊. +lemma length_inv_zero_dx (A:Type[0]) (l:list A): |l| = 0 → l = Ⓔ. #A * // #a #l >length_cons #H destruct qed-. -lemma length_inv_zero_sn (A:Type[0]) (l:list A): 0 = |l| → l = ◊. +lemma length_inv_zero_sn (A:Type[0]) (l:list A): 0 = |l| → l = Ⓔ. /2 width=1 by length_inv_zero_dx/ qed-. lemma length_inv_succ_dx (A:Type[0]) (l:list A) (x): |l| = ↑x →