Package set-finite: Finite sets

Information

nameset-finite
version1.42
descriptionFinite sets
authorJoe Hurd <joe@gilith.com>
licenseMIT
requiresbool
function
natural
pair
set-def
set-thm
showData.Bool
Data.Pair
Function
Number.Natural
Set

Files

Defined Constants

Theorems

finite

finite universe

infinite universe

a. finite (insert a )

s. infinite s ¬finite s

s. infinite s ¬(s = )

x s. finite s finite (insert x s)

s x. finite s finite (delete s x)

s x. finite (delete s x) finite s

s x. finite (insert x s) finite s

s t. finite s finite (s \ t)

s. finite s a. ¬(a s)

f s. finite s finite (image f s)

s t. finite t s t finite s

s t. infinite s s t infinite t

n. finite { m. m | m < n }

n. finite { m. m | m n }

s t. finite (s t) finite s finite t

s t. finite s finite t finite (s t)

s t. infinite s finite t infinite (s \ t)

s t. finite s finite t finite (s t)

s t. finite s finite t finite (cross s t)

s. finite s a. x. x s x a

s. finite s finite { t. t | t s }

s. finite s (finite (bigUnion s) t. t s finite t)

s. finite (bigUnion s) finite s t. t s finite t

a. finite a a = x s. a = insert x s finite s

s P. finite s finite { x. x | x s P x }

FINITE'.
    FINITE' (x s. FINITE' s FINITE' (insert x s))
    a. finite a FINITE' a

f s. (x y. f x = f y x = y) infinite s infinite (image f s)

f. (x y. f x = f y x = y) s. infinite (image f s) infinite s

f s. finite s finite { y. y | x. x s y = f x }

f s t.
    finite t t image f s s'. finite s' s' s t = image f s'

f s t.
    finite t t image f s s'. finite s' s' s t image f s'

s t. finite s finite t finite { x y. (x, y) | x s y t }

p.
    p (x s. p s ¬(x s) finite s p (insert x s))
    s. finite s p s

p f s.
    (t. finite t t image f s p t)
    t. finite t t s p (image f t)

f s.
    (x y. x s y s f x = f y x = y)
    (finite (image f s) finite s)

f A. (x y. f x = f y x = y) finite A finite { x. x | f x A }

f t.
    finite t (y. y t finite { x. x | f x = y })
    finite { x. x | f x t }

f s t.
    finite s (x. x s finite (t x))
    finite { x y. f x y | x s y t x }

d s t.
    finite s finite t
    finite { f. f | (x. x s f x t) x. ¬(x s) f x = d }

f A s.
    (x y. x s y s f x = f y x = y) finite A
    finite { x. x | x s f x A }

f s t.
    finite t (y. y t finite { x. x | x s f x = y })
    finite { x. x | x s f x t }

Input Type Operators

Input Constants

Assumptions

¬

¬

bigUnion =

x. x universe

t. t t

s. s s

p. p

fromPredicate (λx. ) =

x. ¬(x )

t. t ¬t

(¬) = λp. p

t. (x. t) t

t. (x. t) t

t. (λx. t x) = t

() = λp. p = λx.

t. ¬¬t t

t. ( t) t

t. (t ) t

t. t

t. t t

t. t

t. t t

t. t

t. t t

t. t

t. t t

t. t

t. t t

t. t

s. s = s

universe = insert (insert )

t. (t ) ¬t

t. t ¬t

x s. delete s x s

m n. m max m n

m n. n max m n

s t. s s t

s t. s t s

s t. s \ t s

s t. s t s

s t. t s s

() = λp q. p q p

t. (t ) (t )

s. s s =

p x. p x p ((select) p)

x y. x = y y = x

a b. (a b) a b

p x. x fromPredicate p p x

m n. ¬(m n) n < m

m n. m < suc n m n

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

() = λp. q. (x. p x q) q

x s. x s insert x s = s

x s. insert x s = insert x s

t1 t2. ¬t1 ¬t2 t2 t1

s u. bigUnion (insert s u) = s bigUnion u

{ m. m | m < 0 } =

f g x. (f g) x = f (g x)

x s. delete s x = s ¬(x s)

p. (xy. p xy) x y. p (x, y)

() = λp q. r. (p r) (q r) r

x s. x s insert x (delete s x) = s

f. fn. x y. fn (x, y) = f x y

f s x. x s f x image f s

p. (x y. p x y) y x. p x y

p q. (x. p q x) p x. q x

m n. m < suc n m = n m < n

x s t. s insert x t delete s x t

p q r. p q r p q r

t1 t2 t3. (t1 t2) t3 t1 t2 t3

m n p. m n n p m p

s t u. s t u s \ t u

s t u. s t u = s (t u)

s t. s t x. x s x t

s t. (x. x s x t) s = t

f s t. s t image f s image f t

f g s. image (f g) s = image f (image g s)

p. p 0 (n. p n p (suc n)) n. p n

s x. x bigUnion s t. t s x t

p x. x { y. y | p y } p x

x y s. x insert y s x = y x s

s t x. x s t x s x t

p q. (x. p x q x) (x. p x) x. q x

y s f. y image f s x. y = f x x s

p1 p2 q1 q2. (p1 p2) (q1 q2) p1 q1 p2 q2

p1 p2 q1 q2. (p1 p2) (q1 q2) p1 q1 p2 q2

p c x y. p (if c then x else y) (c p x) (¬c p y)

t. { x y. (x, y) | x y t x } =

f s. image f s = { y. y | x. x s y = f x }

p f s. (y. y image f s p y) x. x s p (f x)

p f s. (y. y image f s p y) x. x s p (f x)

s t. cross s t = { x y. (x, y) | x s y t }

n. { m. m | m < suc n } = insert n { m. m | m < n }

p a b. (a, b) { x y. (x, y) | p x y } p a b

d t.
    { f. f | (x. x f x t) x. ¬(x ) f x = d } =
    insert (λx. d)

p f q. (z. z { x y. f x y | p x y } q z) x y. p x y q (f x y)

s t a.
    { x y. (x, y) | x insert a s y t x } =
    image (, a) (t a) { x y. (x, y) | x s y t x }

s.
    { t. t | t s } =
    image (λp. { x. x | p x })
      { p. p | (x. x s p x universe) x. ¬(x s) (p x ) }

d a s t.
    { f. f |
      (x. x insert a s f x t) x. ¬(x insert a s) f x = d } =
    image (λ(b, g) x. if x = a then b else g x)
      (cross t { f. f | (x. x s f x t) x. ¬(x s) f x = d })