Package list-dest: List type destructors
Information
name | list-dest |
version | 1.22 |
description | List type destructors |
author | Joe Hurd <joe@gilith.com> |
license | MIT |
requires | bool list-def list-thm |
show | Data.Bool Data.List |
Files
- Package tarball list-dest-1.22.tgz
- Theory file list-dest.thy (included in the package tarball)
Defined Constants
- Data
- List
- case
- head
- null
- tail
- List
Theorems
⊦ null []
⊦ ∀l. null l ⇔ l = []
⊦ ∀l. case [] (::) l = l
⊦ ∀h t. ¬null (h :: t)
⊦ ∀h t. head (h :: t) = h
⊦ ∀h t. tail (h :: t) = t
⊦ ∀b f. case b f [] = b
⊦ ∀l. ¬(l = []) ⇒ head l :: tail l = l
⊦ ∀b f h t. case b f (h :: t) = f h t
Input Type Operators
- →
- bool
- Data
- List
- list
- List
Input Constants
- =
- select
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- ∨
- ¬
- F
- T
- List
- ::
- []
- Bool
Assumptions
⊦ T
⊦ ¬F ⇔ T
⊦ ¬T ⇔ F
⊦ F ⇔ ∀p. p
⊦ (¬) = λp. p ⇒ F
⊦ (∃) = λP. P ((select) P)
⊦ (∀) = λp. p = λx. T
⊦ ∀t. (T ⇔ t) ⇔ t
⊦ ∀t. (t ⇔ T) ⇔ t
⊦ ∀t. F ⇒ t ⇔ T
⊦ ∀t. T ⇒ t ⇔ t
⊦ ∀t. (F ⇔ t) ⇔ ¬t
⊦ ∀t. (t ⇔ F) ⇔ ¬t
⊦ (⇒) = λp q. p ∧ q ⇔ p
⊦ ∀h t. ¬(h :: t = [])
⊦ (∧) = λp q. (λf. f p q) = λf. f T T
⊦ (∃) = λP. ∀q. (∀x. P x ⇒ q) ⇒ q
⊦ ∀x. x = [] ∨ ∃a0 a1. x = a0 :: a1
⊦ (∨) = λp q. ∀r. (p ⇒ r) ⇒ (q ⇒ r) ⇒ r
⊦ ∀P. P [] ∧ (∀a0 a1. P a1 ⇒ P (a0 :: a1)) ⇒ ∀x. P x
⊦ ∀NIL' CONS'.
∃fn. fn [] = NIL' ∧ ∀a0 a1. fn (a0 :: a1) = CONS' a0 a1 (fn a1)