Package list-append-thm: Properties of appending lists

Information

namelist-append-thm
version1.18
descriptionProperties of appending lists
authorJoe Hurd <joe@gilith.com>
licenseHOLLight
provenanceHOL Light theory extracted on 2012-03-24
requiresbool
list-append-def
list-def
list-dest
list-length
list-set
natural
set
showData.Bool
Data.List
Number.Natural
Set

Files

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. exists p (l1 @ l2) exists p l1 exists p l2

Input Type Operators

Input Constants

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. ¬exists (λ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. exists 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