Package list-take-drop-def: Definition of the list take and drop functions

Information

namelist-take-drop-def
version1.56
descriptionDefinition of the list take and drop functions
authorJoe Leslie-Hurd <joe@gilith.com>
licenseMIT
provenanceHOL Light theory extracted on 2014-11-04
checksumf26a31693c829c949307b3874ff5c37247a42a83
requiresbool
list-dest
list-length
natural
showData.Bool
Data.List
Number.Natural

Files

Defined Constants

Theorems

l. drop 0 l = l

l. take 0 l = []

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

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

External Type Operators

External Constants

Assumptions

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

t. (x. t) t

() = λp. p = λx.

t. t

() = λp q. p q p

h t. head (h :: t) = h

h t. tail (h :: t) = t

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

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

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

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