src/HOL/Nat.thy
author wenzelm
Mon Oct 04 21:44:28 1999 +0200 (1999-10-04)
changeset 7702 35c7e0df749f
parent 5714 b4f2e281a907
child 9436 62bb04ab4b01
permissions -rw-r--r--
removed DatatypePackage.setup;
     1 (*  Title:      HOL/Nat.thy
     2     ID:         $Id$
     3     Author:     Tobias Nipkow
     4     Copyright   1997 TU Muenchen
     5 
     6 Type "nat" is a linear order, and a datatype
     7 *)
     8 
     9 Nat = NatDef + Inductive +
    10 
    11 rep_datatype nat
    12   distinct Suc_not_Zero, Zero_not_Suc
    13   inject   Suc_Suc_eq
    14   induct   nat_induct
    15 
    16 instance nat :: order (le_refl,le_trans,le_anti_sym,nat_less_le)
    17 instance nat :: linorder (nat_le_linear)
    18 
    19 consts
    20   "^"           :: ['a::power,nat] => 'a            (infixr 80)
    21 
    22 end