Package unit: The unit type
Information
name | unit |
version | 1.12 |
description | The unit type |
author | Joe Hurd <joe@gilith.com> |
license | MIT |
requires | bool |
show | Data.Bool Data.Unit |
Files
- Package tarball unit-1.12.tgz
- Theory file unit.thy (included in the package tarball)
Defined Type Operator
- Data
- Unit
- unit
- Unit
Defined Constant
- Data
- Unit
- ()
- Unit
Theorems
⊦ ∀v. v = ()
⊦ ∀f g. f = g
⊦ ∀e. ∃fn. fn () = e
⊦ ∀e. ∃!fn. fn () = e
⊦ ∀P. P () ⇒ ∀x. P x
Input Type Operators
- →
- bool
Input Constants
- =
- select
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- ∃!
- T
- Bool
Assumptions
⊦ T
⊦ ∀t. t ⇒ t
⊦ (∃) = λp. p ((select) p)
⊦ ∀t. (∀x. t) ⇔ t
⊦ (∀) = λp. p = λx. T
⊦ ∀t. (t ⇔ T) ⇔ t
⊦ ∀t. T ∧ t ⇔ t
⊦ (⇒) = λp q. p ∧ q ⇔ p
⊦ ∀x y. x = y ⇔ y = x
⊦ (∧) = λp q. (λf. f p q) = λf. f T T
⊦ (∃) = λp. ∀q. (∀x. p x ⇒ q) ⇒ q
⊦ ∀f g. (∀x. f x = g x) ⇔ f = g
⊦ ∀p. (∃!x. p x) ⇔ (∃x. p x) ∧ ∀x x'. p x ∧ p x' ⇒ x = x'