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

Information

nameoption-map-def
version1.17
descriptionDefinition of the option map function
authorJoe Leslie-Hurd <joe@gilith.com>
licenseMIT
provenanceHOL Light theory extracted on 2014-11-04
checksumca8ea042fa4ca486f389b79b2ba49e95409989b8
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

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