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.NumberTheory.PadicHodge.IntegralComparison.Projective.CoherentFiniteness |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.SectionBase |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.InvertibleFinitePresentation |
| 4 | |
| 5 | /-! # Global Functions Finite -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.GlobalFunctionsFinite |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual global regular-function algebra of a projective scheme is finite over its Noetherian base. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable (R : Type u) [CommRing R] (X : Over (Spec (CommRingCat.of R))) |
| 18 | |
| 19 | local notation "O" => OAI.AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X.left |
| 20 | |
| 21 | theorem base_value (r : R) : AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionBaseMap R X ⊤ r = |
| 22 | X.hom.appTop ((Scheme.ΓSpecIso (CommRingCat.of R)).inv r) := by |
| 23 | change ((Scheme.ΓSpecIso (CommRingCat.of R)).inv ≫ X.hom.appLE ⊤ ⊤ le_top) r = _ |
| 24 | have ht : X.hom.appLE ⊤ ⊤ le_top = X.hom.appTop := Scheme.Hom.appLE_eq_app X.hom |
| 25 | rw [ht] |
| 26 | rfl |
| 27 | |
| 28 | def degreeZeroEquiv : |
| 29 | letI := CoherentFiniteness.coefficientModule R X.hom (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X.left) 0 |
| 30 | AlgebraicGeometry.SheafCohomology.AffineH.Projective.H (AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.unitObj X.left) 0 ≃ₗ[R] |
| 31 | (AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X).obj (op ⊤) := by |
| 32 | let := AlgebraicGeometry.SheafCohomology.AffineH.Projective.globalSectionsCohomologyModule O 0 |
| 33 | let e := AlgebraicGeometry.SheafCohomology.AffineH.Projective.hZeroCanonicalLinearEquivGlobalSections O |
| 34 | let := CoherentFiniteness.coefficientModule R X.hom O 0 |
| 35 | refine { e.toAddEquiv with map_smul' := ?_ } |
| 36 | intro r x |
| 37 | change e ((X.hom.appTop ((Scheme.ΓSpecIso (CommRingCat.of R)).inv r)) • x) = |
| 38 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionBaseMap R X ⊤ r • e x |
| 39 | rw [base_value] |
| 40 | exact e.map_smul _ _ |
| 41 | |
| 42 | theorem finite [IsNoetherianRing R] [IsSeparated X.hom] (hprojective : Projectivity.Construction.ProjectiveOver R X.hom) : |
| 43 | Module.Finite R ((AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X).obj (op ⊤)) := by |
| 44 | let : (O).IsQuasicoherent := AlgebraicGeometry.SheafCohomology.Projective.InvertibleFinitePresentation.invertible_quasicoherent AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.isInvertible_unit |
| 45 | let : (O).IsFinitePresentation := AlgebraicGeometry.SheafCohomology.Projective.InvertibleFinitePresentation.invertible_finitePresentation AlgebraicGeometry.SheafCohomology.Projective.Invertible.Scheme.Modules.isInvertible_unit |
| 46 | let : (O).IsFiniteType := by |
| 47 | constructor |
| 48 | obtain ⟨q, hq⟩ := SheafOfModules.IsFinitePresentation.exists_quasicoherentData O |
| 49 | refine ⟨q.localGeneratorsData, ?_⟩ |
| 50 | constructor |
| 51 | intro i |
| 52 | exact (hq.isFinite_presentation i).isFiniteType_generators |
| 53 | let := CoherentFiniteness.coefficientModule R X.hom O 0 |
| 54 | let : Module.Finite R (AlgebraicGeometry.SheafCohomology.AffineH.Projective.H O 0) := |
| 55 | CoherentFiniteness.cohomology_finite R X.hom hprojective O 0 |
| 56 | exact Module.Finite.equiv (degreeZeroEquiv R X) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.GlobalFunctionsFinite |