Analysis I, Section 8.4: The axiom of choice #
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:
- Review of Mathlib's dependent product type
∀ α, X α. - The axiom of choice in various equivalent forms, as well as the countable axiom of choice.
As the Chapter 3 set theory has been deprecated for many chapters at this point, we will not insert the axiom of choice directly into that theory in this text; but this could be accomplished if desired
(e.g., by extending the Chapter3.SetTheory class to a Chapter3.SetTheoryWithChoice class), and
students are welcome to attempt this separately. Instead, we will use Mathlib's native
Classical.choice axiom. Technically, this axiom has already been used quite frequently in the
text already, in large part because Mathlib uses Classical.choice to derive many weaker statements,
such as the law of the excluded middle. So the distinctions made in the original text regarding
whether a given statement or not uses the axiom of choice are somewhat blurred in this formalization.
It is theoretically possible to restore this distinction by removing the reliance on Mathlib and
working throughout with custom structures such as Chapter3.SetTheory and
Chapter3.SetTheoryWithChoice, but this would be extremely tedious and not attempted here.
Definition 8.4.1 (Infinite Cartesian products). We will avoid using this definition in favor
of the Mathlib form ∀ α, X α which we will shortly show is equivalent to (or more precisely,
generalizes) this one.
Because Lean does not allow unrestricted unions of types, we cheat slightly here by assuming all the
X α are sets in a common universe U. Note that the Mathlib definition does not have this
restriction.
Instances For
Equivalence with Mathlib's product
Equations
- One or more equations did not get rendered due to their size.
Instances For
Example 8.4.2.
Equations
- Chapter8.Function.equiv = { toFun := fun (f : I → X) => f, invFun := fun (f : I → X) => f, left_inv := ⋯, right_inv := ⋯ }
Instances For
Equations
- Chapter8.product_zero_equiv = { toFun := fun (f : (i : Fin 0) → X i) => PUnit.unit, invFun := fun (x : PUnit.{?u.13}) (i : Fin 0) => nomatch i, left_inv := ⋯, right_inv := ⋯ }
Instances For
Lemma 8.4.5
Proposition 8.4.7 / Exercise 8.4.1
Exercise 8.4.1. The spirit of the question here is to establish this result directly
from exists_function, avoiding previous results that relied more explicitly
on the axiom of choice.
Exercise 8.4.2. The spirit of the question here is to establish this result directly
from exists_set_singleton_intersect, avoiding previous results that relied more explicitly
on the axiom of choice.
Exercise 8.4.3
Exercise 8.4.3. The spirit of the question here is to establish this result directly
from Function.Injective.inv_surjective, avoiding previous results that relied more explicitly
on the axiom of choice.