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.Scalar.EquivalentDimensions |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ProperFlat.FiberEuler |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CohomologyEulerCharacteristic |
| 4 | |
| 5 | /-! # Fiber Euler Ground Field -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FiberEulerGroundField |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The geometric fiber Euler function is exactly genuine Euler characteristic over the residue field itself. -/ |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | universe u |
| 14 | |
| 15 | def lineBundleFieldSectionDimension {K : Type u} [Field K] {X : Scheme.{u}} |
| 16 | (p : X ⟶ Spec (.of K)) (L : Line.Bundles.LineBundle X) : ℕ := |
| 17 | Module.finrank K ((Coefficient.GlobalSectionsFunctor.schemeGlobalSectionsFunctor p).obj L.sheaf) |
| 18 | |
| 19 | theorem fiberEulerCharacteristic_eq_groundField |
| 20 | {X S : Scheme.{u}} (f : X ⟶ S) (L : Line.Bundles.LineBundle X) (x : S) : |
| 21 | Geometric.FiberEuler.fiberEulerCharacteristic f L x = |
| 22 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic (f.fiberToSpecResidueField x) (L.pullback (f.fiberι x)).sheaf := by |
| 23 | apply finsum_congr |
| 24 | intro q |
| 25 | let e : S.residueField x ≃+* Γ(Spec (S.residueField x), ⊤) := |
| 26 | (Scheme.ΓSpecIso (S.residueField x)).commRingCatIsoToRingEquiv.symm |
| 27 | let M := (L.pullback (f.fiberι x)).sheaf |
| 28 | let H := (Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (f.fiberToSpecResidueField x).appTop.hom q).obj M |
| 29 | have h₁ := Scalar.EquivalentDimensions.restrictScalars_finrank_of_ringEquiv e H |
| 30 | have h₂ := (CoefficientCohomology.CohomologyRestriction.coefficientCohomologyRestrictionIso e.toRingHom |
| 31 | (f.fiberToSpecResidueField x).appTop.hom M q).toLinearEquiv.finrank_eq |
| 32 | exact congrArg (fun n : ℕ => (-1 : ℤ) ^ q * (n : ℤ)) (h₁.symm.trans h₂) |
| 33 | |
| 34 | theorem properFlat_groundFieldFiberEuler_isLocallyConstant |
| 35 | {X S : Scheme.{u}} [IsAffine S] [IsNoetherianRing Γ(S, ⊤)] |
| 36 | (f : X ⟶ S) [IsProper f] [Flat f] (L : Line.Bundles.LineBundle X) : |
| 37 | IsLocallyConstant (fun x : S => |
| 38 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic (f.fiberToSpecResidueField x) (L.pullback (f.fiberι x)).sheaf) := by |
| 39 | have hfun : (fun x : S => |
| 40 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic (f.fiberToSpecResidueField x) (L.pullback (f.fiberι x)).sheaf) = |
| 41 | Geometric.FiberEuler.fiberEulerCharacteristic f L := by |
| 42 | funext x |
| 43 | exact (fiberEulerCharacteristic_eq_groundField f L x).symm |
| 44 | rw [hfun] |
| 45 | exact ProperFlat.FiberEuler.properFlat_fiberEuler_isLocallyConstant f L |
| 46 | |
| 47 | theorem properFlat_groundFieldSectionDimension_isLocallyConstant |
| 48 | {X S : Scheme.{u}} [IsAffine S] [IsNoetherianRing Γ(S, ⊤)] |
| 49 | (f : X ⟶ S) [IsProper f] [Flat f] (L : Line.Bundles.LineBundle X) |
| 50 | (hH : ∀ (x : S) q, Subsingleton (Zariski.Cohomology.ZariskiCohomology.H (L.pullback (f.fiberι x)).sheaf (q + 1))) : |
| 51 | IsLocallyConstant (fun x : S => |
| 52 | (lineBundleFieldSectionDimension (f.fiberToSpecResidueField x) (L.pullback (f.fiberι x)) : ℤ)) := by |
| 53 | have hfun : (fun x : S => |
| 54 | (lineBundleFieldSectionDimension (f.fiberToSpecResidueField x) (L.pullback (f.fiberι x)) : ℤ)) = |
| 55 | fun x => CohomologyEulerCharacteristic.coefficientEulerCharacteristic (f.fiberToSpecResidueField x) (L.pullback (f.fiberι x)).sheaf := by |
| 56 | funext x |
| 57 | apply (CohomologyEulerCharacteristic.coefficientEulerCharacteristic_eq_sections_of_positive_vanishing |
| 58 | (f.fiberToSpecResidueField x) (L.pullback (f.fiberι x)).sheaf _).symm |
| 59 | intro q |
| 60 | have : Subsingleton ((Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor |
| 61 | (Coefficient.ModulePresheaf.schemeCoefficientMap (f.fiberToSpecResidueField x)) (q + 1)).obj (L.pullback (f.fiberι x)).sheaf) := hH x q |
| 62 | exact ModuleCat.isZero_of_subsingleton _ |
| 63 | rw [hfun] |
| 64 | exact properFlat_groundFieldFiberEuler_isLocallyConstant f L |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FiberEulerGroundField |