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

Information

namelist-length-def
version1.20
descriptionDefinition of the list length function
authorJoe Hurd <joe@gilith.com>
licenseHOLLight
provenanceHOL Light theory extracted on 2011-11-27
requiresbool
list-def
showData.Bool
Data.List
Number.Natural

Files

Defined Constant

Theorems

length [] = 0

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

Input Type Operators

Input Constants

Assumptions

T

() = λP. P ((select) P)

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

() = λp q. p q p

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

NIL' CONS'.
    fn. fn [] = NIL' a0 a1. fn (a0 :: a1) = CONS' a0 a1 (fn a1)