]> matita.cs.unibo.it Git - helm.git/commitdiff
uses ligatures (as a sample)
authorStefano Zacchiroli <zack@upsilon.cc>
Wed, 21 Sep 2005 14:39:50 +0000 (14:39 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Wed, 21 Sep 2005 14:39:50 +0000 (14:39 +0000)
helm/matita/library/list/list.ma

index 0b7340d051ce5fc1f34e4f5480bea986df6c5247..1973dadab299683c4d775d2d409cdc764843faf4 100644 (file)
@@ -28,9 +28,9 @@ notation "hvbox(l1 break @ l2)"
   right associative with precedence 47
   for @{'append $l1 $l2 }.
 
-inductive list (A:Set) : Set \def
+inductive list (A:Set) : Set :=
   | nil: list A
-  | cons: A \to list A \to list A.
+  | cons: A -> list A -> list A.
 
 interpretation "nil" 'nil = (cic:/matita/list/list.ind#xpointer(1/1/1) _).
 interpretation "cons" 'cons hd tl =
@@ -38,21 +38,21 @@ interpretation "cons" 'cons hd tl =
 
 theorem nil_cons:
   \forall A:Set.\forall l:list A.\forall a:A.
-    a::l \neq [].
+    a::l <> [].
   intros.
   unfold; intros.
   discriminate H.
 qed.
 
-let rec id_list A (l: list A) on l \def
+let rec id_list A (l: list A) on l :=
   match l with
-  [ nil \Rightarrow []
-  | (cons hd tl) \Rightarrow hd :: id_list A tl ].
+  [ nil => []
+  | (cons hd tl) => hd :: id_list A tl ].
 
-let rec append A (l1: list A) l2 on l1 \def
+let rec append A (l1: list A) l2 on l1 :=
   match l1 with
-  [ nil \Rightarrow l2
-  | (cons hd tl) \Rightarrow hd :: append A tl l2 ].
+  [ nil => l2
+  | (cons hd tl) => hd :: append A tl l2 ].
 
 interpretation "append" 'append l1 l2 = (cic:/matita/list/append.con _ l1 l2).