Package list-nub-def: list-nub-def

Information

namelist-nub-def
version1.14
descriptionlist-nub-def
authorJoe Hurd <joe@gilith.com>
licenseHOLLight
provenanceHOL Light theory extracted on 2011-09-12
showData.Bool

Files

Defined Constants

Theorems

l.
    Data.List.nub l =
    Data.List.reverse (Data.List.nubReverse (Data.List.reverse l))

Data.List.nubReverse Data.List.[] = Data.List.[]
  h t.
    Data.List.nubReverse (Data.List.:: h t) =
    if Data.List.member h t then Data.List.nubReverse t
    else Data.List.:: h (Data.List.nubReverse 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

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