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.ArithmeticGeometry.OrdinaryLocus.Openness.BaseOpenSections |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.AffineChartPullback |
| 3 | import Mathlib.Algebra.Module.FinitePresentation |
| 4 | |
| 5 | /-! # Finite Flat Chart Module -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.FiniteFlatChartModule.Dimension |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual inverse-image affine coordinate rings are finite flat modules of the scheme map's rank. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | open OAI.ArithmeticGeometry.OrdinaryLocus.Openness.BaseOpenSections.Construction |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | @[instance_reducible] |
| 20 | def affinePreimageSectionAlgebra {X Y : Scheme.{u}} (f : X ⟶ Y) (U : Y.Opens) : |
| 21 | Algebra Γ(Y, U) Γ(X, f ⁻¹ᵁ U) := (f.app U).hom.toAlgebra |
| 22 | |
| 23 | theorem affinePreimageSectionScalarTower {X Y S : Scheme.{u}} |
| 24 | (f : X ⟶ Y) (π : Y ⟶ S) (U : Y.Opens) : |
| 25 | letI := ArithmeticGeometry.OrdinaryLocus.Openness.BaseOpenSections.Construction.baseOpenSectionsAlgebra π U |
| 26 | letI := ArithmeticGeometry.OrdinaryLocus.Openness.BaseOpenSections.Construction.baseOpenSectionsAlgebra (f ≫ π) (f ⁻¹ᵁ U) |
| 27 | letI := affinePreimageSectionAlgebra f U |
| 28 | IsScalarTower Γ(S, ⊤) Γ(Y, U) Γ(X, f ⁻¹ᵁ U) := by |
| 29 | let := ArithmeticGeometry.OrdinaryLocus.Openness.BaseOpenSections.Construction.baseOpenSectionsAlgebra π U |
| 30 | let := ArithmeticGeometry.OrdinaryLocus.Openness.BaseOpenSections.Construction.baseOpenSectionsAlgebra (f ≫ π) (f ⁻¹ᵁ U) |
| 31 | let := affinePreimageSectionAlgebra f U |
| 32 | apply IsScalarTower.of_algebraMap_eq' |
| 33 | exact (ArithmeticGeometry.OrdinaryLocus.Openness.BaseOpenSections.Construction.baseOpenScalarMap_pullback f π U).symm |
| 34 | |
| 35 | theorem affinePreimageSectionModule_finite {X Y : Scheme.{u}} |
| 36 | (f : X ⟶ Y) [IsFinite f] (U : Y.Opens) (hU : IsAffineOpen U) : |
| 37 | letI := affinePreimageSectionAlgebra f U |
| 38 | Module.Finite Γ(Y, U) Γ(X, f ⁻¹ᵁ U) := by |
| 39 | let := affinePreimageSectionAlgebra f U |
| 40 | exact (RingHom.finite_algebraMap).mp (f.finite_app U hU) |
| 41 | |
| 42 | theorem affinePreimageSectionModule_flat {X Y : Scheme.{u}} |
| 43 | (f : X ⟶ Y) [IsAffineHom f] [Flat f] (U : Y.Opens) (hU : IsAffineOpen U) : |
| 44 | letI := affinePreimageSectionAlgebra f U |
| 45 | Module.Flat Γ(Y, U) Γ(X, f ⁻¹ᵁ U) := by |
| 46 | let := affinePreimageSectionAlgebra f U |
| 47 | apply (RingHom.flat_algebraMap_iff).mp |
| 48 | change (f.app U).hom.Flat |
| 49 | simpa only [Scheme.Hom.appLE_eq_app] using f.flat_appLE hU (hU.preimage f) le_rfl |
| 50 | |
| 51 | theorem affinePreimageSectionModule_finitePresentation {X Y : Scheme.{u}} |
| 52 | (f : X ⟶ Y) [IsFinite f] (U : Y.Opens) (hU : IsAffineOpen U) |
| 53 | [IsNoetherianRing Γ(Y, U)] : |
| 54 | letI := affinePreimageSectionAlgebra f U |
| 55 | Module.FinitePresentation Γ(Y, U) Γ(X, f ⁻¹ᵁ U) := by |
| 56 | let := affinePreimageSectionAlgebra f U |
| 57 | have := affinePreimageSectionModule_finite f U hU |
| 58 | exact Module.finitePresentation_of_finite _ _ |
| 59 | |
| 60 | theorem affinePreimageSectionModule_rank {X Y : Scheme.{u}} |
| 61 | (f : X ⟶ Y) [IsFinite f] [Flat f] (U : Y.Opens) (hU : IsAffineOpen U) |
| 62 | (t : PrimeSpectrum Γ(Y, U)) : |
| 63 | letI := affinePreimageSectionAlgebra f U |
| 64 | Module.rankAtStalk (R := Γ(Y, U)) Γ(X, f ⁻¹ᵁ U) t = f.finrank (hU.fromSpec t) := by |
| 65 | let := affinePreimageSectionAlgebra f U |
| 66 | have := affinePreimageSectionModule_finite f U hU |
| 67 | have := affinePreimageSectionModule_flat f U hU |
| 68 | exact (Scheme.Hom.finrank_SpecMap_algebraMap Γ(Y, U) Γ(X, f ⁻¹ᵁ U) t).symm.trans |
| 69 | (AffineChartPullback.Dimension.finrank_affine_preimage f U hU t) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.FiniteFlatChartModule.Dimension |