Analysis I, Section 3.4: Images and inverse images #
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:
- Images and inverse images of (Mathlib) functions, within the framework of Section 3.1 set theory. (The Section 3.3 functions are now deprecated and will not be used further.)
- Connection with Mathlib's image
f '' Sand preimagef ⁻¹' Snotions.
Tips from past users #
Users of the companion who have completed the exercises in this section are welcome to send their tips for future users in this section as PRs.
- (Add tip here)
Connection with Mathlib's notion of image. Note the need to utilize the Subtype.val coercion
to make everything type consistent.
Example 3.4.2
Equations
Instances For
Definition 3.4.4 (inverse images). Again, it is not required that U be a subset of Y.
Equations
- Chapter3.SetTheory.Set.preimage f U = X.specify fun (x : X.toSubtype) => ↑(f x) ∈ U
Instances For
Equations
Equations
- ↑f = (Chapter3.SetTheory.function_to_object X Y) f
Instances For
This coercion has to be a CoeOut rather than a
Coe because the input type X → Y contains
parameters not present in the output type Output
Equations
Remark 3.4.11
Exercise 3.4.1
Helper lemma for Exercise 3.4.7.