Package option-dest: Option type destructors

Information

nameoption-dest
version1.25
descriptionOption type destructors
authorJoe 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

Input Type Operators

Input Constants

Assumptions

T

() = λP. P ((select) P)

() = λp. p = λx. T

t. (t T) t

t. (t F) ¬t

() = λp q. p q p

x. x = none a. x = some a

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

() = λP. q. (x. P x q) q

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

NONE' SOME'. fn. fn none = NONE' a. fn (some a) = SOME' a