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

Information

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

Files

Defined Constant

Theorems

x. replicate 0 x = []

x n. replicate (suc n) x = x :: replicate n x

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

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

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

(∃!) = λp. () p x y. p x p y x = y

e f. ∃!fn. fn 0 = e n. fn (suc n) = f (fn n) n