src/HOL/BCV/Types0.thy
author wenzelm
Mon, 29 Nov 1999 15:52:49 +0100
changeset 8039 a901bafe4578
parent 7626 5997f35954d7
permissions -rw-r--r--
Goal: tuned pris;

(*  Title:      HOL/BCV/Types0.thy
    ID:         $Id$
    Author:     Tobias Nipkow
    Copyright   1999 TUM

Types for the register machine
*)

Types0 = SemiLattice +

datatype typ = Atyp | Btyp | Ctyp | Top

instance typ :: ord
instance typ :: plus

defs
le_typ "t1 <= t2 == (t1=t2) | (t1=Atyp & t2=Btyp) | (t2=Top)"
less_typ "(t1::typ) < t2 == t1 <= t2 & t1 ~= t2"
plus_typ "t1 + t2 == if t1<=t2 then t2 else if t2 <= t1 then t1 else Top"

end