Package list-dest-thm: Properties of list type destructors

Information

namelist-dest-thm
version1.9
descriptionProperties of list type destructors
authorJoe Hurd <joe@gilith.com>
licenseHOLLight
provenanceHOL Light theory extracted on 2011-12-18
requiresbool
list-def
list-thm
list-dest-def
showData.Bool
Data.List

Files

Theorems

l. null l l = []

l. case [] (::) l = l

l. ¬(l = []) head l :: tail l = l

Input Type Operators

Input Constants

Assumptions

T

null []

¬F T

¬T F

F p. p

(¬) = λp. p F

() = λp. p = λx. T

t. (T t) t

t. F t T

t. T t t

t. (F t) ¬t

h t. ¬null (h :: t)

() = λp q. p q p

h t. ¬(h :: t = [])

h t. head (h :: t) = h

h t. tail (h :: t) = t

b f. case b f [] = b

() = λ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

b f h t. case b f (h :: t) = f h t

P. P [] (a0 a1. P a1 P (a0 :: a1)) x. P x