src/HOL/Nat.thy
author wenzelm
Sun, 16 Jul 2000 20:53:19 +0200
changeset 9360 82e8b18e6985
parent 7702 35c7e0df749f
child 9436 62bb04ab4b01
permissions -rw-r--r--
more robust tuple syntax (still improper, though!);

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

Type "nat" is a linear order, and a datatype
*)

Nat = NatDef + Inductive +

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