Package option-dest-thm: Properties of option type destructors
Information
name | option-dest-thm |
version | 1.7 |
description | Properties of option type destructors |
author | Joe Hurd <joe@gilith.com> |
license | MIT |
provenance | HOL Light theory extracted on 2011-11-15 |
requires | bool option-thm option-dest-def |
show | Data.Bool Data.Option |
Files
- Package tarball option-dest-thm-1.7.tgz
- Theory file option-dest-thm.thy (included in the package tarball)
Theorem
⊦ ∀x. case none some x = x
Input Type Operators
- →
- bool
- Data
- Option
- option
- Option
Input Constants
- =
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- ∨
- T
- Option
- case
- none
- some
- Bool
Assumptions
⊦ T
⊦ (∀) = λp. p = λx. T
⊦ (⇒) = λ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 T T
⊦ (∃) = λ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