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

Information

namelist-filter-def
version1.38
descriptionDefinition of the list filter function
authorJoe Hurd <joe@gilith.com>
licenseHOLLight
provenanceHOL Light theory extracted on 2012-08-06
requiresbool
list-def
showData.Bool
Data.List

Files

Defined Constant

Theorems

p. filter p [] = []

p h t. filter p (h :: t) = if p h then h :: filter p t else filter p 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)