Package list-nub-def: Definition of the list nub function
Information
name | list-nub-def |
version | 1.54 |
description | Definition of the list nub function |
author | Joe Leslie-Hurd <joe@gilith.com> |
license | MIT |
provenance | HOL Light theory extracted on 2014-11-04 |
checksum | 735f102133e15de34e7dc5e79ef39fd8f06518ee |
requires | bool list-def list-reverse |
show | Data.Bool Data.List |
Files
- Package tarball list-nub-def-1.54.tgz
- Theory source file list-nub-def.thy (included in the package tarball)
Defined Constants
- Data
- List
- nub
- nubReverse
- List
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
- →
- bool
- Data
- List
- list
- List
External Constants
- =
- select
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- cond
- ⊤
- List
- ::
- []
- member
- reverse
- Bool
Assumptions
⊦ ⊤
⊦ (∃) = λp. p ((select) p)
⊦ (∀) = λp. p = λx. ⊤
⊦ (⇒) = λp q. p ∧ q ⇔ p
⊦ (∧) = λp q. (λf. f p q) = λf. f ⊤ ⊤
⊦ ∀b f. ∃fn. fn [] = b ∧ ∀h t. fn (h :: t) = f h t (fn t)