Package list-fold-def: Definition of the list fold operations

Information

namelist-fold-def
version1.9
descriptionDefinition of the list fold operations
authorJoe Hurd <joe@gilith.com>
licenseMIT
provenanceHOL Light theory extracted on 2012-06-08
requiresbool
list-def
showData.Bool
Data.List
Function

Files

Defined Constants

Theorems

f b. foldr f b [] = b

f b l. foldl f b l = foldr (C f) b (reverse l)

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

Input Type Operators

Input Constants

Assumptions

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

() = λp. p = λx.

() = λp q. p q p

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

() = λp. q. (x. p x q) q

p. (x. y. p x y) y. x. p x (y x)

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