Documentation

Analysis.Section_8_5

@[implicit_reducible]
def Chapter8.PartialOrder.mk {X : Type} [LE X] (hrefl : ∀ (x : X), x x) (hantisymm : ∀ (x y : X), x yy xx = y) (htrans : ∀ (x y z : X), x yy zx z) :
Equations
  • Chapter8.PartialOrder.mk hrefl hantisymm htrans = { le := fun (x1 x2 : X) => x1 x2, le_refl := hrefl, le_trans := htrans, lt_iff_le_not_ge := , le_antisymm := hantisymm }
Instances For
    Equations
    Instances For
      @[implicit_reducible]
      noncomputable def Chapter8.LinearOrder.mk {X : Type} [PartialOrder X] (htotal : IsTotal X) :
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[implicit_reducible]
        noncomputable def Chapter8.LinearOrder.subtype {X : Type} [LinearOrder X] (A : Set X) :
        Equations
        Instances For
          theorem Chapter8.IsTotal.subtype {X : Type} [PartialOrder X] {A : Set X} (hA : IsTotal X) :
          IsTotal A
          theorem Chapter8.IsTotal.subset {X : Type} [PartialOrder X] {A B : Set X} (hA : IsTotal A) (hAB : B A) :
          IsTotal B
          @[reducible, inline]
          Equations
          Instances For
            theorem Chapter8.IsMax.iff {X : Type} [PartialOrder X] (x : X) :
            IsMax x ¬∃ (y : X), x < y

            Definition 8.5.5 (Maximal and minimal elements). Here we use Mathlib's IsMax and IsMin.

            theorem Chapter8.IsMin.iff {X : Type} [PartialOrder X] (x : X) :
            IsMin x ¬∃ (y : X), x > y
            theorem Chapter8.WellFoundedLT.iff (X : Type) [LinearOrder X] :
            WellFoundedLT X ∀ (A : Set X), A.Nonempty∃ (x : A), IsMin x

            Definition 8.5.8. We use [LinearOrder X] [WellFoundedLT X] to describe well-ordered sets.

            theorem Chapter8.WellFoundedLT.iff' {X : Type} [PartialOrder X] (h : IsTotal X) :
            WellFoundedLT X ∀ (A : Set X), A.Nonempty∃ (x : A), IsMin x
            theorem Chapter8.IsMax.ofFinite {X : Type} [LinearOrder X] [Finite X] [Nonempty X] :
            ∃ (x : X), IsMax x

            Exercise 8.5.8

            theorem Chapter8.IsMin.ofFinite {X : Type} [LinearOrder X] [Finite X] [Nonempty X] :
            ∃ (x : X), IsMin x
            theorem Chapter8.WellFoundedLT.subset {X : Type} [PartialOrder X] {A B : Set X} (hA : IsTotal A) [hwell : WellFoundedLT A] (hAB : B A) :
            theorem Chapter8.WellFoundedLT.strong_induction {X : Type} [LinearOrder X] [WellFoundedLT X] {P : XProp} (h : ∀ (n : X), (∀ m < n, P m)P n) (n : X) :
            P n

            Proposition 8.5.10 / Exercise 8.5.10

            @[reducible, inline]
            abbrev Chapter8.IsUpperBound {X : Type} [PartialOrder X] (A : Set X) (x : X) :

            Definition 8.5.12 (Upper bounds and strict upper bounds)

            Equations
            Instances For
              theorem Chapter8.IsUpperBound.iff {X : Type} [PartialOrder X] (A : Set X) (x : X) :

              Connection with Mathlib's upperBounds

              @[reducible, inline]
              abbrev Chapter8.IsStrictUpperBound {X : Type} [PartialOrder X] (A : Set X) (x : X) :
              Equations
              Instances For
                theorem Chapter8.IsStrictUpperBound.iff {X : Type} [PartialOrder X] (A : Set X) (x : X) :
                IsStrictUpperBound A x yA, y < x
                theorem Chapter8.IsMin.iff_lowerbound {X : Type} [PartialOrder X] {Y : Set X} (hY : IsTotal Y) (x₀ : X) :
                (∃ (hx₀ : x₀ Y), IsMin x₀, hx₀) x₀ Y xY, x₀ x

                A convenient way to simplify the notion of having x₀ as a minimal element.

                theorem Chapter8.IsMin.iff_lowerbound' {X : Type} [PartialOrder X] {Y : Set X} (hY : IsTotal Y) :
                (∃ (x₀ : Y), IsMin x₀) x₀Y, xY, x₀ x
                theorem Chapter8.WellFoundedLT.partialOrder {X : Type} [PartialOrder X] (x₀ : X) :
                ∃ (Y : Set X), IsTotal Y WellFoundedLT Y (∃ (hx₀ : x₀ Y), IsMin x₀, hx₀) ¬∃ (x : X), IsStrictUpperBound Y x

                Lemma 8.5.14

                theorem Chapter8.Zorns_lemma {X : Type} [PartialOrder X] [Nonempty X] (hchain : ∀ (Y : Set X), IsTotal Y Y.Nonempty∃ (x : X), IsUpperBound Y x) :
                ∃ (x : X), IsMax x

                Lemma 8.5.15 (Zorn's lemma) / Exercise 8.5.14

                Exercise 8.5.1

                Equations
                Instances For
                  @[reducible]

                  Exercise 8.5.3: The divisibility ordering on PNat.

                  Equations
                  Instances For
                    theorem Chapter8.PNat.divOrder_exists :
                    ∃ (h₀ : PartialOrder ℕ+), LE.le = fun (x y : ℕ+) => ∃ (n : ℕ+), y = n * x
                    theorem Chapter8.PNat.divOrder_not_linear :
                    ¬∃ (h₀ : LinearOrder ℕ+), LE.le = fun (x y : ℕ+) => ∃ (n : ℕ+), y = n * x
                    def Chapter8.Ex_8_5_5_b :
                    Decidable (∀ (X Y : Type) (h : LinearOrder Y) (f : XY), ∃ (h₀ : LinearOrder X), LE.le = fun (x y : X) => f x < f y x = y)
                    Equations
                    Instances For
                      @[reducible, inline]

                      Exercise 8.5.6

                      Equations
                      Instances For
                        Equations
                        Instances For
                          def Chapter8.Lex' (α : Type) :

                          Exercise 8.5.12. Here we make a copy of Mathlib's Lex wrapper for lexicographical orderings. This wrapper is needed because products X × Y of ordered sets are given the default instance of the product partial order instead of the lexicographical one.

                          Equations
                          Instances For
                            @[implicit_reducible]
                            Equations
                            • One or more equations did not get rendered due to their size.
                            @[implicit_reducible]
                            Equations
                            theorem Chapter8.inj_trichotomy {X Y : Type} (h : ¬∃ (f : XY), Function.Injective f) :
                            ∃ (g : YX), Function.Injective g

                            Exercise 8.5.15

                            @[implicit_reducible]

                            Exercise 8.5.16: The set of partial orderings on X, ordered by "coarser than", is itself a partial order.

                            Equations
                            @[reducible]

                            The discrete ordering (x ≤ y ↔ x = y) is the unique minimal element.

                            Equations
                            Instances For

                              A partial ordering is maximal in the coarser order iff it is total.

                              Any partial ordering extends to a total ordering (by Zorn's lemma).

                              theorem Chapter8.exists_set_singleton_intersect' {I U : Type} {X : ISet U} (h : Set.univ.PairwiseDisjoint X) (hne : ∀ (α : I), Nonempty (X α)) :
                              ∃ (Y : Set U), ∀ (α : I), Nat.card ↑(Y X α) = 1

                              Exercise 8.5.17: Use Zorn's lemma to reprove Exercise 8.4.2

                              theorem Chapter8.hausdorff_of_zorns_lemma {X : Type} [PartialOrder X] :
                              ∃ (M : Set X), Maximal (fun (S : Set X) => IsTotal S) M

                              Exercise 8.5.18

                              theorem Chapter8.zorns_lemma_of_hausdorff {X : Type} [PartialOrder X] [Nonempty X] (hhausdorff : ∃ (M : Set X), Maximal (fun (S : Set X) => IsTotal S) M) (hchain : ∀ (Y : Set X), IsTotal Y Y.Nonempty∃ (x : X), IsUpperBound Y x) :
                              ∃ (x : X), IsMax x

                              Exercise 8.5.19: A well-ordered subset of X: a subset with a linear order and well-foundedness.

                              Instances For

                                (W, ≤) is an initial segment of (W', ≤') if W ⊆ W', the orderings agree on W, and W = {y ∈ W' : y <' x} for some x ∈ W'.

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  @[implicit_reducible]

                                  The ordering on well-ordered subsets: equal or initial segment.

                                  Equations
                                  • One or more equations did not get rendered due to their size.

                                  The empty well-ordered subset.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For

                                    The maximal elements are precisely the well-orderings of all of X.

                                    The well-ordering principle: every set has a well-ordering.

                                    theorem Chapter8.axiom_of_choice_of_well_ordering (hwo : ∀ (T : Type), ∃ (l : LinearOrder T), WellFoundedLT T) {I : Type} {X : IType} (hne : ∀ (i : I), Nonempty (X i)) :
                                    Nonempty ((i : I) → X i)

                                    Well-ordering principle implies axiom of choice. Well-order the disjoint union Σ i, X i, then pick the minimum of each fiber.

                                    theorem Chapter8.maximal_disjoint_subcollection {X : Type} (Ω : Set (Set X)) (hne : Ω) :
                                    Ω'Ω, Ω'.Pairwise Disjoint CΩ, AΩ', (C A).Nonempty

                                    Exercise 8.5.20

                                    theorem Chapter8.exists_set_singleton_intersect_of_maximal_disjoint (hmds : ∀ (X : Type) (Ω : Set (Set X)), ΩΩ'Ω, Ω'.Pairwise Disjoint CΩ, AΩ', (C A).Nonempty) {I U : Type} {X : ISet U} (h : Set.univ.PairwiseDisjoint X) (hne : ∀ (α : I), Nonempty (X α)) :
                                    ∃ (Y : Set U), ∀ (α : I), Nat.card ↑(Y X α) = 1

                                    The maximal disjoint subcollection property implies Exercise 8.4.2, hence is equivalent to the axiom of choice.