Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
doc(Lib/General/Geometry): add docstrings in LineBundles
sangxsh2a5f3afdafe2
diff --git a/src/Lib/General/Geometry/LineBundles.lean b/src/Lib/General/Geometry/LineBundles.leanindex 2401c31c1d4..0ac97be4848 100644--- a/src/Lib/General/Geometry/LineBundles.lean+++ b/src/Lib/General/Geometry/LineBundles.lean@@ -242,6 +242,7 @@ variable {X Y : Scheme} {κ : Type}/-! ### Points that land in an open -/+/-- If a morphism `t` lands in `U` and `U ≤ V`, then `t` lands in `V`. -/lemma LandsIn.mono {t : Y ⟶ X} {V : X.Opens} (ht : LandsIn t U) (h_le : U ≤ V) : LandsIn t V :=ht.trans (t.preimage_mono h_le)@@ -256,6 +257,7 @@ lemma exists_landsIn_of_isOpenCover {V : κ → Y.Opens} (hV : IsOpenCover V) [I(t : Spec B ⟶ Y) : ∃ i : κ, LandsIn t (V i) := bysimpa only [landsIn_iff_mem] using hV.exists_mem (t (closedPoint B))+/-- The opens `M.opens` of a line bundle `M` on `Y` form an open cover of `Y`. -/lemma LineBundle.isOpenCover (M : LineBundle Y κ) : IsOpenCover M.opens := M.cover/-- For a local ring `B`, a point `t : Spec B ⟶ Y` lands in some member of the open cover@@ -375,6 +377,7 @@ namespace PointFnlemma ofSection_eq (h : LandsIn t U) (s : Γ(X, U)) : ofSection s A t = evalSection t h s :=dite_eq_left h+/-- At a point `t` that does not land in `U`, the function of a section over `U` is `0`. -/lemma ofSection_eq_zero (h : ¬LandsIn t U) (s : Γ(X, U)) : ofSection s A t = 0 := dite_eq_right h/-- Let `W ≤ p ⁻¹ᵁ U`, let `s` be a section over `U`, and let the point `x` land in `W`. The value@@ -387,6 +390,7 @@ lemma ofSection_appLE {x : Spec A ⟶ Y} (p : Y ⟶ X) {W : Y.Opens} (h_le : W(appLE_comp_appLE_assoc x p U W ⊤ h_le h (ΓSpecIso A).hom).symmsimp [ofSection_eq h, ofSection_eq h_comp, h_eval]+/-- The function of a section `s` over `U` is regular on `U`. -/lemma isRegularOn_ofSection : (ofSection s).IsRegularOn U := byintro A B φ t hthave h_eval : evalSection (Spec.map φ ≫ t) (ht.comp _) = evalSection t ht ≫ φ := by@@ -545,9 +549,11 @@ lemma exists_ofSection (hf : f.IsRegularOn U) :/-- If `f` is regular on `U`, its pull-back along `p : Y ⟶ X` is regular on the preimage of `U`. -/lemma pull (hf : f.IsRegularOn U) : (f.pull p).IsRegularOn (p ⁻¹ᵁ U) := by aesop_cat+/-- A function that is regular on `U` is regular on every smaller open `V ≤ U`. -/lemma mono (hf : f.IsRegularOn U) {V : X.Opens} (h_le : V ≤ U) : f.IsRegularOn V :=fun _ _ φ t ht ↦ hf φ t (ht.mono h_le)+/-- The product of a function regular on `U` and one regular on `V` is regular on `U ⊓ V`. -/lemma mul (hf : f.IsRegularOn U) {V : X.Opens} (hg : g.IsRegularOn V) :(f * g).IsRegularOn (U ⊓ V) := byintro A B φ t ht@@ -949,11 +955,14 @@ instance : AddCommGroup (Pic X) where(Quotient.ind fun _ ↦ picClass_mul_one) (Quotient.ind fun _ ↦ picClass_mul_inv)add_comm a b := Quotient.inductionOn₂ a b fun _ _ ↦ picClass_mul_comm+/-- The class of the tensor product `L.mul M` is the sum of the classes of `L` and `M`. -/@[simp]lemma LineBundle.picClass_mul : (L.mul M).picClass = L.picClass + M.picClass := rfl+/-- The class of the trivial line bundle `one` is `0` in the Picard group. -/lemma LineBundle.picClass_one : (one : LineBundle X Unit).picClass = 0 := rfl+/-- Every element of the Picard group is the class of some line bundle. -/lemma Pic.exists_picClass_eq (c : Pic X) : ∃ (ι : Type) (L : LineBundle X ι), L.picClass = c := byobtain ⟨ι, L⟩ := cexact ⟨ι, L, rfl⟩@@ -973,6 +982,7 @@ def pull : Pic X →+ Pic Y :=rintro ⟨L⟩ ⟨M⟩rfl+/-- Pull-back along `p` sends the class of a line bundle `K` to the class of its pull-back. -/@[simp]lemma pull_picClass : pull p K.picClass = (K.pull p).picClass := rfl@@ -981,6 +991,7 @@ lemma pull_comp (c : Pic X) : pull (q ≫ p) c = pull q (pull p c) := byobtain ⟨L⟩ := crfl+/-- Pull-back along the identity of `X` is the identity on the Picard group. -/@[simp]lemma pull_id (c : Pic X) : pull (𝟙 X) c = c := byobtain ⟨L⟩ := c