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.Affine.Frames |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineOpen.QuasicoherentLocalization |
| 3 | import Mathlib.RingTheory.Flat.Localization |
| 4 | |
| 5 | /-! # Affine Sections Flat -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundle.AffineSectionsFlat |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Sections of an actual HilbertConstruction line bundle on any affine open form a flat module over its section ring. -/ |
| 12 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 13 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 14 | universe u |
| 15 | |
| 16 | def overFrameSectionsIso {X : Scheme.{u}} (M : X.Modules) (U : X.Opens) |
| 17 | (e : M.over U ≅ SheafOfModules.unit (X.ringCatSheaf.over U)) : |
| 18 | Γ(M, U) ≃ₗ[Γ(X, U)] Γ(X, U) := |
| 19 | ((PresheafOfModules.evaluation _ (op (Over.mk (𝟙 U)))).mapIso |
| 20 | ((SheafOfModules.forget _).mapIso e)).toLinearEquiv |
| 21 | |
| 22 | theorem lineBundle_affineOpen_sections_flat {X : Scheme.{u}} (L : Line.Bundles.LineBundle X) (U : X.affineOpens) : |
| 23 | Module.Flat Γ(X, U.1) Γ(L.sheaf, U.1) := by |
| 24 | have : L.sheaf.IsQuasicoherent := L.isQuasicoherent |
| 25 | choose V hx hv using L.locallyTrivial |
| 26 | have hV : ⨆ x : X, V x = ⊤ := by |
| 27 | apply top_unique |
| 28 | intro x _ |
| 29 | exact Opens.mem_iSup.mpr ⟨x, hx x⟩ |
| 30 | let t : Set Γ(X, U.1) := {f | ∃ i : X, X.basicOpen f ≤ V i} |
| 31 | have hopen : ⨆ f : t, X.basicOpen f.1 = U.1 := by |
| 32 | apply le_antisymm |
| 33 | · exact iSup_le fun f => X.basicOpen_le f.1 |
| 34 | · calc |
| 35 | U.1 = U.1 ⊓ ⊤ := by simp |
| 36 | _ = U.1 ⊓ ⨆ i, V i := by rw [hV] |
| 37 | _ = ⨆ i, U.1 ⊓ V i := by rw [inf_iSup_eq] |
| 38 | _ ≤ ⨆ f : t, X.basicOpen f.1 := by |
| 39 | refine iSup_le fun i => ?_ |
| 40 | rintro x hx |
| 41 | obtain ⟨f, hf, hxf⟩ := U.2.exists_basicOpen_le ⟨x, hx.2⟩ hx.1 |
| 42 | have hle : X.basicOpen f ≤ ⨆ g : t, X.basicOpen g.1 := |
| 43 | le_iSup_of_le (⟨f, i, hf⟩ : t) le_rfl |
| 44 | exact hle hxf |
| 45 | have ht : Ideal.span t = ⊤ := U.2.iSup_basicOpen_eq_self_iff.mp hopen |
| 46 | let (g : t) : Algebra Γ(X, U.1) Γ(X, X.basicOpen g.1) := inferInstance |
| 47 | let (g : t) : Module Γ(X, U.1) Γ(L.sheaf, X.basicOpen g.1) := |
| 48 | Module.compHom _ (algebraMap Γ(X, U.1) Γ(X, X.basicOpen g.1)) |
| 49 | let (g : t) : IsLocalization.Away g.1 Γ(X, X.basicOpen g.1) := U.2.isLocalization_basicOpen g.1 |
| 50 | let (g : t) : IsScalarTower Γ(X, U.1) Γ(X, X.basicOpen g.1) Γ(L.sheaf, X.basicOpen g.1) := |
| 51 | IsScalarTower.of_algebraMap_smul fun _ _ => rfl |
| 52 | let φ : (g : t) → Γ(L.sheaf, U.1) →ₗ[Γ(X, U.1)] Γ(L.sheaf, X.basicOpen g.1) := fun g => { |
| 53 | toFun := L.sheaf.presheaf.map (homOfLE (X.basicOpen_le g.1)).op |
| 54 | map_add' := (L.sheaf.presheaf.map (homOfLE (X.basicOpen_le g.1)).op).hom.map_add |
| 55 | map_smul' := fun r x => L.sheaf.map_smul (homOfLE (X.basicOpen_le g.1)) r x } |
| 56 | have : ∀ g : t, IsLocalizedModule.Away g.1 (φ g) := fun g => |
| 57 | AffineOpen.QuasicoherentLocalization.affineOpen_quasicoherent_sections_localize L.sheaf U g.1 |
| 58 | apply Module.flat_of_isLocalized_span Γ(X, U.1) Γ(L.sheaf, U.1) t ht |
| 59 | (fun g => Γ(L.sheaf, X.basicOpen g.1)) φ |
| 60 | intro g |
| 61 | obtain ⟨i, hi⟩ := g.property |
| 62 | obtain ⟨e⟩ := hv i |
| 63 | let e' := L.overFrameIso (X.basicOpen g.1) (L.frameRestrict hi e) |
| 64 | have : Module.Flat Γ(X, X.basicOpen g.1) Γ(L.sheaf, X.basicOpen g.1) := |
| 65 | Module.Flat.of_linearEquiv (overFrameSectionsIso L.sheaf _ e') |
| 66 | have : Module.Flat Γ(X, U.1) Γ(X, X.basicOpen g.1) := |
| 67 | IsLocalization.flat _ (Submonoid.powers g.1) |
| 68 | exact Module.Flat.trans Γ(X, U.1) Γ(X, X.basicOpen g.1) Γ(L.sheaf, X.basicOpen g.1) |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundle.AffineSectionsFlat |