src/FOL/ex/Nat2.thy
changeset 352 fd3ab8bcb69d
parent 0 a5a9c433f639
child 1322 9b3d3362a048
equal deleted inserted replaced
351:1718ce07a584 352:fd3ab8bcb69d
     1 (*  Title: 	FOL/ex/nat2.thy
     1 (*  Title: 	FOL/ex/nat2.thy
     2     ID:         $Id$
     2     ID:         $Id$
     3     Author: 	Tobias Nipkow
     3     Author: 	Tobias Nipkow
     4     Copyright   1991  University of Cambridge
     4     Copyright   1994  University of Cambridge
     5 
     5 
     6 Theory for examples of simplification and induction on the natural numbers
     6 Theory for examples of simplification and induction on the natural numbers
     7 *)
     7 *)
     8 
     8 
     9 Nat2 = FOL +
     9 Nat2 = FOL +
    10 
    10 
    11 types nat 0
    11 types nat
    12 arities nat :: term
    12 arities nat :: term
    13 
    13 
    14 consts succ,pred :: "nat => nat"
    14 consts
       
    15  succ,pred :: "nat => nat"
    15        "0" :: "nat"	("0")
    16        "0" :: "nat"	("0")
    16        "+" :: "[nat,nat] => nat" (infixr 90)
    17        "+" :: "[nat,nat] => nat" (infixr 90)
    17   "<","<=" :: "[nat,nat] => o"   (infixr 70)
    18   "<","<=" :: "[nat,nat] => o"   (infixr 70)
    18 
    19 
    19 rules
    20 rules