src/HOL/Nat.thy
author oheimb
Wed, 12 Aug 1998 17:40:18 +0200
changeset 5307 6a699d5cdef4
parent 5188 633ec5f6c155
child 5499 1787c44ae4ed
permissions -rw-r--r--
minor adaption for SML/NJ

(*  Title:      HOL/Nat.thy
    ID:         $Id$
    Author:     Tobias Nipkow
    Copyright   1997 TU Muenchen

Nat is a partial order
*)

Nat = NatDef + Inductive +

setup
  DatatypePackage.setup

rep_datatype nat
  distinct "[[Suc_not_Zero, Zero_not_Suc]]"
  inject   "[[Suc_Suc_eq]]"
  induct   nat_induct

instance nat :: order (le_refl,le_trans,le_anti_sym,nat_less_le)
instance nat :: linorder (nat_le_linear)

consts
  "^"           :: ['a::power,nat] => 'a            (infixr 80)

end