Documentation

Atlas.RealAnalysis.code.SetTheory.Basic

theorem SetTheory.de_morgan_laws {α : Type u_1} (A B C : Set α) :
(B C) = B C (B C) = B C A \ (B C) = A \ B (A \ C) A \ (B C) = A \ B A \ C

De Morgan's Laws. For sets A, B, C: the complement of a union is the intersection of complements, the complement of an intersection is the union of complements, and the analogous identities for set differences: A \ (B ∪ C) = (A \ B) ∩ (A \ C) and A \ (B ∩ C) = (A \ B) ∪ (A \ C).

theorem SetTheory.well_ordering_nat (S : Set ) (hS : S.Nonempty) :
xS, yS, x y

Well-ordering of . Every nonempty subset S ⊆ ℕ contains a least element, that is, there exists x ∈ S such that x ≤ y for all y ∈ S.

theorem SetTheory.induction_principle (P : Prop) (base : P 1) (step : ∀ (m : ), P mP (m + 1)) (n : ) :
n 1P n

Principle of mathematical induction (starting at 1). If P 1 holds and P m → P (m + 1) for all m, then P n holds for every natural number n ≥ 1.

theorem SetTheory.set_relations {α : Type u_1} (A B : Set α) :
(A B aA, a B) (A = B A B B A) (A B A B A B)

Basic set relations. A ⊆ B means every element of A lies in B; A = B is equivalent to mutual inclusion A ⊆ B and B ⊆ A; and A ⊂ B (proper subset) is equivalent to A ⊆ B together with A ≠ B.