Package option-map-thm: Properties of the option map function
Information
name | option-map-thm |
version | 1.8 |
description | Properties of the option map function |
author | Joe Leslie-Hurd <joe@gilith.com> |
license | MIT |
provenance | HOL Light theory extracted on 2012-08-06 |
requires | bool function option-map-def option-thm |
show | Data.Bool Data.Option Function |
Files
- Package tarball option-map-thm-1.8.tgz
- Theory file option-map-thm.thy (included in the package tarball)
Theorems
⊦ map id = id
⊦ ∀f g. map f ∘ map g = map (f ∘ g)
⊦ ∀f g x. map (f ∘ g) x = map f (map g x)
Input Type Operators
- →
- bool
- Data
- Option
- option
- Option
Input Constants
- =
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- ∨
- ¬
- ⊥
- ⊤
- Option
- map
- none
- some
- Bool
- Function
- id
- ∘
Assumptions
⊦ ⊤
⊦ ¬⊥ ⇔ ⊤
⊦ ∀t. t ⇒ t
⊦ ∀x. id x = x
⊦ ∀t. (∀x. t) ⇔ t
⊦ (∀) = λp. p = λx. ⊤
⊦ ∀t. ⊥ ∧ t ⇔ ⊥
⊦ ∀t. ⊤ ∧ t ⇔ t
⊦ ∀t. ⊥ ⇒ t ⇔ ⊤
⊦ ∀t. ⊤ ⇒ t ⇔ t
⊦ ∀t. t ⇒ ⊤ ⇔ ⊤
⊦ ∀t. ⊥ ∨ t ⇔ t
⊦ ∀t. ⊤ ∨ t ⇔ ⊤
⊦ ∀f. map f none = none
⊦ ∀t. t ⇒ ⊥ ⇔ ¬t
⊦ (⇒) = λp q. p ∧ q ⇔ p
⊦ ∀t. (t ⇔ ⊤) ∨ (t ⇔ ⊥)
⊦ ∀x y. x = y ⇔ y = x
⊦ ∀x. x = none ∨ ∃a. x = some a
⊦ ∀f a. map f (some a) = some (f a)
⊦ (∧) = λp q. (λf. f p q) = λf. f ⊤ ⊤
⊦ (∃) = λp. ∀q. (∀x. p x ⇒ q) ⇒ q
⊦ ∀f g x. (f ∘ g) x = f (g x)
⊦ ∀f g. (∀x. f x = g x) ⇔ f = g
⊦ (∨) = λp q. ∀r. (p ⇒ r) ⇒ (q ⇒ r) ⇒ r