Documentation

Analysis.Section_8_1

Analysis I, Section 8.1: Countability #

I have attempted to make the translation as faithful a paraphrasing as possible of the original text. When there is a choice between a more idiomatic Lean solution and a more faithful translation, I have generally chosen the latter. In particular, there will be places where the Lean code could be "golfed" to be more elegant and idiomatic, but I have consciously avoided doing so.

Main constructions and results of this section:

Note that as the Chapter 3 set theory has been deprecated, we will not re-use relevant constructions from that theory here, replacing them with Mathlib counterparts instead.

@[reducible, inline]
abbrev Chapter8.EqualCard (X Y : Type) :

The definition of equal cardinality. For simplicity we restrict attention to the Type 0 universe. This is analogous to Chapter3.SetTheory.Set.EqualCard, but we are not using the latter since the Chapter 3 set theory is deprecated.

Equations
Instances For

    Relation with Mathlib's Equiv concept

    Equivalence with Mathlib's Cardinal.mk concept

    theorem Chapter8.EqualCard.symm {X Y : Type} (hXY : EqualCard X Y) :
    theorem Chapter8.EqualCard.trans {X Y Z : Type} (hXY : EqualCard X Y) (hYZ : EqualCard Y Z) :
    @[reducible, inline]
    Equations
    Instances For
      @[reducible, inline]
      Equations
      Instances For
        theorem Chapter8.Finite.equiv {X Y : Type} (hXY : EqualCard X Y) :

        Equivalence with Mathlib's Denumerable concept (cf. Remark 8.1.2)

        Equivalence with Mathlib's Countable typeclass

        theorem Chapter8.Nat.exists_unique_min {X : Set } (hX : X.Nonempty) :
        ∃! m : , m X nX, m n

        Proposition 8.1.4 (Well ordering principle / Exercise 8.1.2

        def Chapter8.Int.exists_unique_min :
        Decidable (∀ (X : Set ), X.Nonempty∃! m : , m X nX, m n)
        Equations
        Instances For
          def Chapter8.NNRat.exists_unique_min :
          Decidable (∀ (X : Set ℚ≥0), X.Nonempty∃! m : ℚ≥0, m X nX, m n)
          Equations
          Instances For
            @[reducible, inline]
            noncomputable abbrev Chapter8.Nat.min (X : Set ) :
            Equations
            Instances For
              theorem Chapter8.Nat.min_spec {X : Set } (hX : X.Nonempty) :
              min X X nX, min X n
              theorem Chapter8.Nat.min_eq {X : Set } (hX : X.Nonempty) {a : } (ha : a X nX, a n) :
              min X = a
              theorem Chapter8.Nat.min_eq_find {X : Set } (hX : X.Nonempty) :

              Equivalence with Mathlib's Nat.find method

              Corollary 8.1.7

              theorem Chapter8.AtMostCountable.subset' {A : Type} {X Y : Set A} (hX : AtMostCountable X) (hY : Y X) :

              Proposition 8.1.8 / Exercise 8.1.4

              theorem Chapter8.AtMostCountable.image {X : Type} (hX : CountablyInfinite X) {Y : Type} (f : XY) :

              Corollary 8.1.9 / Exercise 8.1.5

              theorem Chapter8.CountablyInfinite.union {A : Type} {X Y : Set A} (hX : CountablyInfinite X) (hY : CountablyInfinite Y) :

              Proposition 8.1.10 / Exercise 8.1.7

              Corollary 8.1.14 / Exercise 8.1.8

              @[reducible, inline]

              Exercise 8.1.10. Note the lack of the noncomputable keyword in the abbrev.

              Equations
              Instances For