Documentation

Books.IntroductiontoRealAnalysisVolumeI_JiriLebl_2025.Chapters.Chap00.section03_part1

@[reducible, inline]
abbrev ElementCollection (α : Type u) :

Definition 0.3.1: A set is a collection of objects called elements or members. A set with no objects is the empty set, written (or {}).

Equations
Instances For
    @[reducible, inline]

    The empty set from Definition 0.3.1 is mathlib's .

    Equations
    Instances For

      The book's notion of set coincides with mathlib's Set.

      @[reducible, inline]

      Definition 0.3.2: (i) A ⊆ B means every x ∈ A also satisfies x ∈ B; (ii) A = B when each is a subset of the other (otherwise A ≠ B); (iii) A ⊂ B when A ⊆ B but A ≠ B.

      Equations
      Instances For

        The book's notion of subset is mathlib's .

        The book's definition of equality of sets is mutual inclusion.

        @[reducible, inline]

        Book notion of a proper subset: contained but not equal.

        Equations
        Instances For

          The book's notion of proper subset coincides with mathlib's strict subset .

          Example 0.3.3: Standard sets of numbers: the naturals , integers , rationals , even naturals {2m}, and reals , with inclusions ℕ ⊆ ℤ ⊆ ℚ ⊆ ℝ.

          Equations
          Instances For

            Example 0.3.3 (continued).

            Equations
            Instances For

              Example 0.3.3 (continued).

              Equations
              Instances For

                Example 0.3.3 (continued).

                Equations
                Instances For

                  Example 0.3.3: The canonical embeddings realize the chain ℕ ⊆ ℤ ⊆ ℚ ⊆ ℝ.

                  @[reducible, inline]

                  Definition 0.3.4: (i) union A ∪ B = {x : x ∈ A ∨ x ∈ B}; (ii) intersection A ∩ B = {x : x ∈ A ∧ x ∈ B}; (iii) relative complement (set difference) A \ B = {x : x ∈ A ∧ x ∉ B}; (iv) complement Bᶜ means the difference from the ambient universe or an understood superset; (v) sets are disjoint when their intersection is empty.

                  Equations
                  Instances For
                    theorem mem_unionElementCollection {α : Type u} {A B : ElementCollection α} {x : α} :
                    @[reducible, inline]
                    Equations
                    Instances For
                      @[reducible, inline]
                      Equations
                      Instances For
                        @[reducible, inline]
                        Equations
                        Instances For
                          @[reducible, inline]
                          Equations
                          Instances For
                            theorem deMorgan_compl_union {α : Type u} {B C : Set α} :
                            (B C) = B C
                            theorem deMorgan_compl_inter {α : Type u} {B C : Set α} :
                            (B C) = B C
                            theorem deMorgan_diff_union {α : Type u} {A B C : Set α} :
                            A \ (B C) = A \ B (A \ C)
                            theorem deMorgan_diff_inter {α : Type u} {A B C : Set α} :
                            A \ (B C) = A \ B A \ C
                            theorem deMorgan_sets {α : Type u} {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

                            Theorem 0.3.5 (DeMorgan). For sets A, B, C, (B ∪ C)ᶜ = Bᶜ ∩ Cᶜ and (B ∩ C)ᶜ = Bᶜ ∪ Cᶜ; more generally, A \ (B ∪ C) = (A \ B) ∩ (A \ C) and A \ (B ∩ C) = (A \ B) ∪ (A \ C).