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

Information

namelist-last-def
version1.47
descriptionDefinition of the last list function
authorJoe Leslie-Hurd <joe@gilith.com>
licenseHOLLight
provenanceHOL Light theory extracted on 2014-11-04
checksum063834272449def434a9b7e136fcd1ca34b70eb4
requiresbool
list-def
list-dest
showData.Bool
Data.List

Files

Defined Constant

Theorem

h t. last (h :: t) = if null t then h else last t

External Type Operators

External 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

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