Package list-last-thm: Properties of the last list function

Information

namelist-last-thm
version1.40
descriptionProperties of the last list function
authorJoe Leslie-Hurd <joe@gilith.com>
licenseHOLLight
provenanceHOL Light theory extracted on 2014-11-01
checksum0cfd933fb08d599e25b803c64b380e8894f15a64
requiresbool
list-dest
list-last-def
showData.Bool
Data.List

Files

Theorems

x. last (x :: []) = x

x1 x2 l. last (x1 :: x2 :: l) = last (x2 :: l)

External Type Operators

External Constants

Assumptions

null []

p. p

(¬) = λp. p

t. (x. t) t

() = λp. p = λx.

h t. ¬null (h :: t)

() = λp q. p q p

t1 t2. (if then t1 else t2) = t2

t1 t2. (if then t1 else t2) = t1

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

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