Package option-dest: Option type destructors

Information

nameoption-dest
version1.50
descriptionOption type destructors
authorJoe Leslie-Hurd <joe@gilith.com>
licenseMIT
requiresbool
option-def
option-thm
showData.Bool
Data.Option

Files

Defined Constants

Theorems

isNone none

¬isSome none

a. isSome (some a)

a. ¬isNone (some a)

x. case none some x = x

b f. case b f none = b

b f a. case b f (some a) = f a

External Type Operators

External Constants

Assumptions

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

() = λp. p = λx.

t. (t ) t

t. (t ) ¬t

() = λp q. p q p

x. x = none a. x = some a

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

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

() = λp q. r. (p r) (q r) r

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

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