Package option-map-def: Definition of the option map function

Information

nameoption-map-def
version1.12
descriptionDefinition of the option map function
authorJoe Leslie-Hurd <joe@gilith.com>
licenseMIT
provenanceHOL Light theory extracted on 2014-01-13
requiresbool
option-def
showData.Bool
Data.Option

Files

Defined Constant

Theorems

f. map f none = none

f a. map f (some a) = some (f a)

External Type Operators

External Constants

Assumptions

() = λp. p ((select) p)

() = λp. p = λx.

() = λp q. p q p

() = λp q. (λf. f p q) = λf. f

() = λp. q. (x. p x q) q

r. (x. y. r x y) f. x. r x (f x)

b f. fn. fn none = b a. fn (some a) = f a