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

Information

namelist-nub-def
version1.49
descriptionDefinition of the list nub function
authorJoe Leslie-Hurd <joe@gilith.com>
licenseMIT
provenanceHOL Light theory extracted on 2014-01-13
requiresbool
list-def
list-reverse
showData.Bool
Data.List

Files

Defined Constants

Theorems

nubReverse [] = []

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

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

r. (x. y. r x y) f. x. r x (f x)

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