Package option-dest-thm: Properties of option type destructors
Information
name | option-dest-thm |
version | 1.11 |
description | Properties 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-dest-def option-thm |
show | Data.Bool Data.Option |
Files
- Package tarball option-dest-thm-1.11.tgz
- Theory source file option-dest-thm.thy (included in the package tarball)
Theorem
⊦ ∀x. case none some x = x
External Type Operators
- →
- bool
- Data
- Option
- option
- Option
External Constants
- =
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- ∨
- ⊤
- Option
- case
- none
- some
- Bool
Assumptions
⊦ ⊤
⊦ (∀) = λp. p = λx. ⊤
⊦ (⇒) = λp q. p ∧ q ⇔ p
⊦ ∀b f. case b f none = b
⊦ ∀x. x = none ∨ ∃a. x = some a
⊦ (∧) = λp q. (λf. f p q) = λf. f ⊤ ⊤
⊦ (∃) = λp. ∀q. (∀x. p x ⇒ q) ⇒ q
⊦ ∀b f a. case b f (some a) = f a
⊦ (∨) = λp q. ∀r. (p ⇒ r) ⇒ (q ⇒ r) ⇒ r