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

Information

nameoption-map-def
version1.8
descriptionDefinition of the option map function
authorJoe Leslie-Hurd <joe@gilith.com>
licenseMIT
provenanceHOL Light theory extracted on 2012-08-06
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)

Input Type Operators

Input 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

p. (x. y. p x y) y. x. p x (y x)

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