Package list-last-def: list-last-def

Information

namelist-last-def
version1.10
descriptionlist-last-def
authorJoe Hurd <joe@gilith.com>
licenseHOLLight
provenanceHOL Light theory extracted on 2011-07-20
showData.Bool

Files

Defined Constant

Theorem

h t.
    Data.List.last (Data.List.:: h t) =
    if t = Data.List.[] then h else Data.List.last t

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

NIL' CONS'.
    fn.
      fn Data.List.[] = NIL'
      a0 a1. fn (Data.List.:: a0 a1) = CONS' a0 a1 (fn a1)