Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.ModuleSectionIdentity |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.SectionValueAdditive |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Scalar.SectionNonvanishing |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.NonvanishingAddition |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.BasisSectionRatioSubring |
| 6 | |
| 7 | /-! # Ring Section Basis -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coefficient.RingSectionBasis |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Section bases over any coefficient ring give actual sheaf sections, |
| 14 | finite scalar decompositions, and generation of their regular ratios. -/ |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open scoped BigOperators |
| 17 | universe u v |
| 18 | variable {R : Type u} [CommRing R] {X : Scheme.{u}} |
| 19 | |
| 20 | def coefficientRingSectionAddEquiv (c : R →+* Γ(X, ⊤)) (M : X.Modules) : |
| 21 | (Line.Bundles.structureModule X ⟶ M) ≃+ (GlobalSectionsFunctor.coefficientGlobalSectionsFunctor c).obj M where |
| 22 | __ := (Global.Sections.moduleSectionHomEquiv M).trans (Global.ModuleSectionIdentity.coefficientGlobalSectionsNativeIso c M).symm.toEquiv |
| 23 | map_add' _ _ := rfl |
| 24 | |
| 25 | theorem coefficientRingSectionAddEquiv_scalar (c : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 26 | (r : R) (s : Line.Bundles.structureModule X ⟶ M) : |
| 27 | coefficientRingSectionAddEquiv c M (Scalar.SectionValues.scalarSection (c r) s) = |
| 28 | r • coefficientRingSectionAddEquiv c M s := by |
| 29 | apply (Global.ModuleSectionIdentity.coefficientGlobalSectionsNativeIso c M).injective |
| 30 | rw [map_smul] |
| 31 | change (Global.ModuleSectionIdentity.coefficientGlobalSectionsNativeIso c M) |
| 32 | ((Global.ModuleSectionIdentity.coefficientGlobalSectionsNativeIso c M).symm (Global.Sections.moduleSectionHomEquiv M (Scalar.SectionValues.scalarSection (c r) s))) = |
| 33 | r • (Global.ModuleSectionIdentity.coefficientGlobalSectionsNativeIso c M) |
| 34 | ((Global.ModuleSectionIdentity.coefficientGlobalSectionsNativeIso c M).symm (Global.Sections.moduleSectionHomEquiv M s)) |
| 35 | erw [LinearEquiv.apply_symm_apply, LinearEquiv.apply_symm_apply] |
| 36 | exact Scalar.SectionValues.scalarSection_globalValue (c r) s |
| 37 | |
| 38 | def coefficientRingBasisFamily (c : R →+* Γ(X, ⊤)) (M : X.Modules) {ι : Type v} |
| 39 | (b : Module.Basis ι R ((GlobalSectionsFunctor.coefficientGlobalSectionsFunctor c).obj M)) : |
| 40 | ι → (Line.Bundles.structureModule X ⟶ M) := fun i => (coefficientRingSectionAddEquiv c M).symm (b i) |
| 41 | |
| 42 | theorem section_eq_coefficientRing_basis_sum (c : R →+* Γ(X, ⊤)) (M : X.Modules) |
| 43 | {ι : Type v} [Fintype ι] (b : Module.Basis ι R ((GlobalSectionsFunctor.coefficientGlobalSectionsFunctor c).obj M)) |
| 44 | (s : Line.Bundles.structureModule X ⟶ M) : |
| 45 | s = ∑ i, Scalar.SectionValues.scalarSection (c (b.repr (coefficientRingSectionAddEquiv c M s) i)) |
| 46 | (coefficientRingBasisFamily c M b i) := by |
| 47 | apply (coefficientRingSectionAddEquiv c M).injective |
| 48 | rw [map_sum] |
| 49 | simp only [coefficientRingSectionAddEquiv_scalar, coefficientRingBasisFamily, |
| 50 | AddEquiv.apply_symm_apply] |
| 51 | exact (b.sum_repr (coefficientRingSectionAddEquiv c M s)).symm |
| 52 | |
| 53 | theorem coefficientRingBasisFamily_covers (c : R →+* Γ(X, ⊤)) (L : Line.Bundles.LineBundle X) |
| 54 | {ι : Type v} [Fintype ι] (b : Module.Basis ι R ((GlobalSectionsFunctor.coefficientGlobalSectionsFunctor c).obj L.sheaf)) |
| 55 | (h : ∀ x : X, ∃ s : Line.Bundles.structureModule X ⟶ L.sheaf, x ∈ Ample.LineBundles.sectionNonvanishing s) : |
| 56 | ∀ x : X, ∃ i, x ∈ Ample.LineBundles.sectionNonvanishing (coefficientRingBasisFamily c L.sheaf b i) := by |
| 57 | intro x |
| 58 | obtain ⟨s, hs⟩ := h x |
| 59 | rw [section_eq_coefficientRing_basis_sum c L.sheaf b s] at hs |
| 60 | obtain ⟨i, _, hi⟩ := L.mem_sectionNonvanishing_sum Finset.univ _ x hs |
| 61 | exact ⟨i, Scalar.SectionNonvanishing.scalarSection_nonvanishing_le L _ _ hi⟩ |
| 62 | |
| 63 | theorem pullbackSection_scalarSection {Y : Scheme.{u}} (f : Y ⟶ X) {M : X.Modules} |
| 64 | (r : Γ(X, ⊤)) (s : Line.Bundles.structureModule X ⟶ M) : |
| 65 | Ample.LineBundles.pullbackSection f (Scalar.SectionValues.scalarSection r s) = Scalar.SectionValues.scalarSection (f.appTop r) (Ample.LineBundles.pullbackSection f s) := by |
| 66 | apply (Global.Sections.moduleSectionHomEquiv _).injective |
| 67 | rw [Pullback.SectionGlobalValue.pullbackSection_globalValue, Scalar.SectionValues.scalarSection_globalValue, Scalar.SectionValues.scalarSection_globalValue, |
| 68 | Pullback.SectionGlobalValue.pullbackSection_globalValue] |
| 69 | exact ((Scheme.Modules.pullbackPushforwardAdjunction f).unit.app M).app_smul |
| 70 | r (Global.Sections.moduleSectionHomEquiv M s) |
| 71 | |
| 72 | theorem sectionRatio_scalarSection {M : X.Modules} |
| 73 | (s t : Line.Bundles.structureModule X ⟶ M) (r : Γ(X, ⊤)) : |
| 74 | Section.Frames.sectionRatio s (Scalar.SectionValues.scalarSection r t) = |
| 75 | (Ample.LineBundles.sectionNonvanishing s).ι.appTop r * Section.Frames.sectionRatio s t := by |
| 76 | rw [Frame.Coordinates.sectionRatio_eq_frameCoordinate, Frame.Coordinates.sectionRatio_eq_frameCoordinate, pullbackSection_scalarSection] |
| 77 | let U := Ample.LineBundles.sectionNonvanishing s |
| 78 | change Frame.Coordinates.structureModuleEndValue U.toScheme |
| 79 | ((Scalar.SectionValues.scalarSection (U.ι.appTop r) (Ample.LineBundles.pullbackSection U.ι t)) ≫ inv (Ample.LineBundles.pullbackSection U.ι s)) = _ |
| 80 | rw [show Scalar.SectionValues.scalarSection (U.ι.appTop r) (Ample.LineBundles.pullbackSection U.ι t) ≫ inv (Ample.LineBundles.pullbackSection U.ι s) = |
| 81 | Scalar.SectionValues.scalarSection (U.ι.appTop r) (Ample.LineBundles.pullbackSection U.ι t ≫ inv (Ample.LineBundles.pullbackSection U.ι s)) from |
| 82 | Category.assoc _ _ _] |
| 83 | exact Scalar.SectionValues.scalarSection_globalValue (U.ι.appTop r) |
| 84 | (Ample.LineBundles.pullbackSection U.ι t ≫ inv (Ample.LineBundles.pullbackSection U.ι s)) |
| 85 | |
| 86 | theorem sectionRatio_mem_of_coefficientRing_basis (c : R →+* Γ(X, ⊤)) {M : X.Modules} |
| 87 | (s : Line.Bundles.structureModule X ⟶ M) {ι : Type v} [Fintype ι] |
| 88 | (b : Module.Basis ι R ((GlobalSectionsFunctor.coefficientGlobalSectionsFunctor c).obj M)) |
| 89 | (C : Subring Γ((Ample.LineBundles.sectionNonvanishing s).toScheme, ⊤)) |
| 90 | (hc : ∀ r : R, (Ample.LineBundles.sectionNonvanishing s).ι.appTop (c r) ∈ C) |
| 91 | (hb : ∀ i, Section.Frames.sectionRatio s (coefficientRingBasisFamily c M b i) ∈ C) |
| 92 | (t : Line.Bundles.structureModule X ⟶ M) : Section.Frames.sectionRatio s t ∈ C := by |
| 93 | rw [section_eq_coefficientRing_basis_sum c M b t] |
| 94 | change BasisSectionRatioSubring.sectionRatioAddHom s (∑ i, |
| 95 | Scalar.SectionValues.scalarSection (c (b.repr (coefficientRingSectionAddEquiv c M t) i)) |
| 96 | (coefficientRingBasisFamily c M b i)) ∈ C |
| 97 | rw [map_sum] |
| 98 | apply C.sum_mem |
| 99 | intro i _ |
| 100 | change Section.Frames.sectionRatio s (Scalar.SectionValues.scalarSection _ (coefficientRingBasisFamily c M b i)) ∈ C |
| 101 | rw [sectionRatio_scalarSection] |
| 102 | exact C.mul_mem (hc _) (hb i) |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coefficient.RingSectionBasis |