Package list-concat: The list concat function
Information
name | list-concat |
version | 1.27 |
description | The list concat function |
author | Joe Hurd <joe@gilith.com> |
license | MIT |
requires | bool list-def list-dest list-append list-quant |
show | Data.Bool Data.List |
Files
- Package tarball list-concat-1.27.tgz
- Theory file list-concat.thy (included in the package tarball)
Defined Constant
- Data
- List
- concat
- List
Theorems
⊦ concat [] = []
⊦ ∀l. null (concat l) ⇔ all null l
⊦ ∀h t. concat (h :: t) = h @ concat t
Input Type Operators
- →
- bool
- Data
- List
- list
- List
Input Constants
- =
- select
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- T
- List
- ::
- @
- []
- all
- null
- Bool
Assumptions
⊦ T
⊦ null []
⊦ ∀p. all p []
⊦ (∃) = λp. p ((select) p)
⊦ (∀) = λp. p = λx. T
⊦ ∀t. (T ⇔ t) ⇔ t
⊦ (⇒) = λp q. p ∧ q ⇔ p
⊦ (∧) = λp q. (λf. f p q) = λf. f T T
⊦ ∀l m. null (l @ m) ⇔ null l ∧ null m
⊦ ∀p. (∀x. ∃y. p x y) ⇔ ∃y. ∀x. p x (y x)
⊦ ∀p h t. all p (h :: t) ⇔ p h ∧ all p t
⊦ ∀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)