Package list-length-def: Definition of the list length function

Information

namelist-length-def
version1.42
descriptionDefinition of the list length function
authorJoe Leslie-Hurd <joe@gilith.com>
licenseHOLLight
provenanceHOL Light theory extracted on 2014-01-13
requiresbool
list-def
natural
showData.Bool
Data.List
Number.Natural

Files

Defined Constant

Theorems

length [] = 0

h t. length (h :: t) = suc (length t)

External Type Operators

External Constants

Assumptions

() = λp. p ((select) p)

() = λp. p = λx.

() = λp q. p q p

() = λp q. (λf. f p q) = λf. f

r. (x. y. r x y) f. x. r x (f x)

b f. fn. fn [] = b h t. fn (h :: t) = f h t (fn t)