Package option-dest-def: Definition of option type destructors
Information
name | option-dest-def |
version | 1.55 |
description | Definition of option type destructors |
author | Joe Leslie-Hurd <joe@gilith.com> |
license | MIT |
provenance | HOL Light theory extracted on 2014-06-12 |
requires | bool option-def |
show | Data.Bool Data.Option |
Files
- Package tarball option-dest-def-1.55.tgz
- Theory source file option-dest-def.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)
⊦ ∀b f. case b f none = b
⊦ ∀b f a. case b f (some a) = f a
External Type Operators
- →
- bool
- Data
- Option
- option
- Option
External Constants
- =
- select
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- ¬
- ⊥
- ⊤
- Option
- none
- some
- Bool
Assumptions
⊦ ⊤
⊦ (∃) = λp. p ((select) p)
⊦ (∀) = λp. p = λx. ⊤
⊦ ∀t. (t ⇔ ⊤) ⇔ t
⊦ ∀t. (t ⇔ ⊥) ⇔ ¬t
⊦ (⇒) = λp q. p ∧ q ⇔ p
⊦ (∧) = λp q. (λf. f p q) = λf. f ⊤ ⊤
⊦ (∃) = λp. ∀q. (∀x. p x ⇒ q) ⇒ q
⊦ ∀r. (∀x. ∃y. r x y) ⇔ ∃f. ∀x. r x (f x)
⊦ ∀b f. ∃fn. fn none = b ∧ ∀a. fn (some a) = f a