src/HOL/Option.thy
author nipkow
Fri, 28 Nov 1997 07:41:24 +0100
changeset 4321 2a2956ccb86c
parent 4192 c38ab5af38b5
child 4752 1c334bd00038
permissions -rw-r--r--
Removed dead code.

(*  Title:      Option.thy
    ID:         $Id$
    Author:     Tobias Nipkow
    Copyright   1994  TU Muenchen

Datatype 'a option
*)

Option = Arith +

datatype 'a option = None | Some 'a

constdefs

  the		:: "'a option => 'a"
 "the == %y. case y of None => arbitrary | Some x => x"

  option_map	:: "('a => 'b) => ('a option => 'b option)"
 "option_map == %f y. case y of None => None | Some x => Some (f x)"

end