src/HOL/Option.thy
author paulson
Wed, 05 Nov 1997 13:23:46 +0100
changeset 4153 e534c4c32d54
parent 4133 0a08c2b9b1ed
child 4192 c38ab5af38b5
permissions -rw-r--r--
Ran expandshort, especially to introduce Safe_tac

(*  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