]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/library/nat/nat.ma
...
[helm.git] / helm / software / matita / library / nat / nat.ma
index b600072c61ba97cfa9e862251d04c566b3a0e765..b098279e62e9ed3ecf1cf99a04e564faaf3bbf2c 100644 (file)
 (*                                                                        *)
 (**************************************************************************)
 
-set "baseuri" "cic:/matita/nat/nat".
-
 include "higher_order_defs/functions.ma".
 
 inductive nat : Set \def
   | O : nat
   | S : nat \to nat.
 
+interpretation "Natural numbers" 'N = nat.
+alias num (instance 0) = "natural number".
+
 definition pred: nat \to nat \def
  \lambda n:nat. match n with
  [ O \Rightarrow  O
  | (S p) \Rightarrow p ].
 
 theorem pred_Sn : \forall n:nat.n=(pred (S n)).
- intros. reflexivity.
+ intros. simplify. reflexivity.
 qed.
 
 theorem injective_S : injective nat nat S.