Package list-append-thm: Properties of appending lists
Information
name | list-append-thm |
version | 1.21 |
description | Properties of appending lists |
author | Joe Leslie-Hurd <joe@gilith.com> |
license | HOLLight |
provenance | HOL Light theory extracted on 2012-10-11 |
requires | bool list-append-def list-def list-dest list-length list-set natural set |
show | Data.Bool Data.List Number.Natural Set |
Files
- Package tarball list-append-thm-1.21.tgz
- Theory file list-append-thm.thy (included in the package tarball)
Theorems
⊦ ∀l. l @ [] = l
⊦ ∀l. null (concat l) ⇔ all null l
⊦ ∀h t. (h :: []) @ t = h :: t
⊦ ∀l1 l2. null (l1 @ l2) ⇔ null l1 ∧ null l2
⊦ ∀l1 l2. length (l1 @ l2) = length l1 + length l2
⊦ ∀l1 l2. toSet (l1 @ l2) = toSet l1 ∪ toSet l2
⊦ ∀l1 l2 l3. l1 @ l2 @ l3 = (l1 @ l2) @ l3
⊦ ∀l1 l2. l1 @ l2 = [] ⇔ l1 = [] ∧ l2 = []
⊦ ∀l1 l2 x. member x (l1 @ l2) ⇔ member x l1 ∨ member x l2
⊦ ∀p l1 l2. all p (l1 @ l2) ⇔ all p l1 ∧ all p l2
⊦ ∀p l1 l2. any p (l1 @ l2) ⇔ any p l1 ∨ any p l2
Input Type Operators
- →
- bool
- Data
- List
- list
- List
- Number
- Natural
- natural
- Natural
- Set
- set
Input Constants
- =
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- ∨
- ¬
- ⊤
- List
- ::
- @
- []
- all
- any
- concat
- length
- member
- null
- toSet
- Bool
- Number
- Natural
- +
- suc
- zero
- Natural
- Set
- ∅
- insert
- ∈
- ∪
Assumptions
⊦ ⊤
⊦ null []
⊦ length [] = 0
⊦ concat [] = []
⊦ toSet [] = ∅
⊦ ∀p. all p []
⊦ ∀t. (∀x. t) ⇔ t
⊦ (∀) = λp. p = λx. ⊤
⊦ ∀t. (⊤ ⇔ t) ⇔ t
⊦ ∀n. 0 + n = n
⊦ ∀l. [] @ l = l
⊦ ∀s. ∅ ∪ s = s
⊦ ∀l. null l ⇔ l = []
⊦ (⇒) = λp q. p ∧ q ⇔ p
⊦ ∀l. length l = 0 ⇔ null l
⊦ ∀h t. length (h :: t) = suc (length t)
⊦ ∀l x. member x l ⇔ x ∈ toSet l
⊦ (∧) = λp q. (λf. f p q) = λf. f ⊤ ⊤
⊦ ∀h t. toSet (h :: t) = insert h (toSet t)
⊦ ∀x s. insert x ∅ ∪ s = insert x s
⊦ ∀m n. suc m + n = suc (m + n)
⊦ ∀h t. concat (h :: t) = h @ concat t
⊦ ∀t1 t2. ¬(t1 ∨ t2) ⇔ ¬t1 ∧ ¬t2
⊦ ∀p l. ¬any (λx. ¬p x) l ⇔ all p l
⊦ ∀p. (∀x y. p x y) ⇔ ∀y x. p x y
⊦ ∀l h t. (h :: t) @ l = h :: t @ l
⊦ ∀s t u. s ∪ t ∪ u = s ∪ (t ∪ u)
⊦ ∀p l. any p l ⇔ ∃x. x ∈ toSet l ∧ p x
⊦ ∀m n. m + n = 0 ⇔ m = 0 ∧ n = 0
⊦ ∀p h t. all p (h :: t) ⇔ p h ∧ all p t
⊦ ∀p q r. (p ∨ q) ∧ r ⇔ p ∧ r ∨ q ∧ r
⊦ ∀s t x. x ∈ s ∪ t ⇔ x ∈ s ∨ x ∈ t
⊦ ∀p q. (∃x. p x ∨ q x) ⇔ (∃x. p x) ∨ ∃x. q x
⊦ ∀p. p [] ∧ (∀h t. p t ⇒ p (h :: t)) ⇒ ∀l. p l