]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/nlibrary/basics/list.ma
made executable again
[helm.git] / helm / software / matita / nlibrary / basics / list.ma
index 92eddc705b642fb8f984d55c2aea81dc62d68cb1..94ef847b00c4aa70ba0ed10f5b97b8d6c3146082 100644 (file)
@@ -39,7 +39,7 @@ ndefinition not_nil: ∀A:Type.list A → Prop ≝
 
 ntheorem nil_cons:
   ∀A:Type.∀l:list A.∀a:A. a::l ≠ [].
-  #A; #l; #a; #Heq; nchange with (not_nil ? (a::l));
+  #A; #l; #a; napply nmk; #Heq; nchange with (not_nil ? (a::l));
   nrewrite > Heq; //;
 nqed.
 
@@ -73,13 +73,14 @@ ntheorem associative_append:
  ∀A:Type.associative (list A) (append A).
 #A; #l1; #l2; #l3; nelim l1; nnormalize; //; nqed.
 
+(* deleterio per auto 
 ntheorem cons_append_commute:
   ∀A:Type.∀l1,l2:list A.∀a:A.
     a :: (l1 @ l2) = (a :: l1) @ l2.
-//; nqed.
+//; nqed. *)
 
 ntheorem append_cons:∀A.∀a:A.∀l,l1.l@(a::l1)=(l@[a])@l1.
-#A; #a; #l; #l1; napply symmetric_eq.
+#A; #a; #l; #l1; napply sym_eq.
 napply associative_append.
 (* /2/; *) nqed.