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

Information

namelist-length-def
version1.47
descriptionDefinition of the list length function
authorJoe Leslie-Hurd <joe@gilith.com>
licenseHOLLight
provenanceHOL Light theory extracted on 2014-11-04
checksumcaa3601213368924beca9a89f305cadb705aafad
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

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