Package option-dest: Option type destructors
Information
name | option-dest |
version | 1.30 |
description | Option type destructors |
author | Joe Hurd <joe@gilith.com> |
license | MIT |
requires | bool option-def option-thm |
show | Data.Bool Data.Option |
Files
- Package tarball option-dest-1.30.tgz
- Theory file option-dest.thy (included in the package tarball)
Defined Constants
- Data
- Option
- case
- isNone
- isSome
- Option
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
- →
- bool
- Data
- Option
- option
- Option
Input Constants
- =
- select
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- ∨
- ¬
- F
- T
- Option
- none
- some
- Bool
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
⊦ ∀p. (∀x. ∃y. p x y) ⇔ ∃y. ∀x. p x (y x)
⊦ ∀NONE' SOME'. ∃fn. fn none = NONE' ∧ ∀a. fn (some a) = SOME' a