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.ResiduePrime |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Field.ExtensionSectionDimension |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FiberEulerGroundField |
| 4 | import Mathlib.RingTheory.Spectrum.Prime.FreeLocus |
| 5 | |
| 6 | /-! # Module Residue Rank -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.ModuleResidueRank |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A bijective residue section comparison identifies the stalk rank of a |
| 13 | finite projective global-section module with the actual fiber section dimension. -/ |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | open scoped TensorProduct |
| 17 | universe u |
| 18 | |
| 19 | theorem sectionModule_rankAtStalk_of_residueComparison |
| 20 | {S X : Scheme.{u}} (f : X ⟶ S) (L : Line.Bundles.LineBundle X) |
| 21 | [Module.Finite Γ(S, ⊤) ((Coefficient.GlobalSectionsFunctor.coefficientGlobalSectionsFunctor f.appTop.hom).obj L.sheaf)] |
| 22 | [Module.Projective Γ(S, ⊤) ((Coefficient.GlobalSectionsFunctor.coefficientGlobalSectionsFunctor f.appTop.hom).obj L.sheaf)] |
| 23 | (x : S) |
| 24 | (h : Function.Bijective ((Cartesian.ModuleTensorComparison.baseChangeModuleTensorComparison |
| 25 | (IsPullback.of_hasPullback f (S.fromSpecResidueField x)) L.sheaf).app (.op ⊤))) : |
| 26 | Module.rankAtStalk ((Coefficient.GlobalSectionsFunctor.coefficientGlobalSectionsFunctor f.appTop.hom).obj L.sheaf) (S.toSpecΓ x) = |
| 27 | FiberEulerGroundField.lineBundleFieldSectionDimension (f.fiberToSpecResidueField x) (L.pullback (f.fiberι x)) := by |
| 28 | let b := S.fromSpecResidueField x |
| 29 | let M := (Coefficient.GlobalSectionsFunctor.coefficientGlobalSectionsFunctor f.appTop.hom).obj L.sheaf |
| 30 | let K := Γ(Spec (S.residueField x), ⊤) |
| 31 | let : Field K := ((Scheme.ΓSpecIso (S.residueField x)).commRingCatIsoToRingEquiv.toMulEquiv.isField |
| 32 | (Field.toIsField (S.residueField x))).toField |
| 33 | let : Algebra Γ(S, ⊤) K := b.appTop.hom.toAlgebra |
| 34 | let T := TensorProduct Γ(S, ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra b) M |
| 35 | let tensorModule : Module Γ(Spec (S.residueField x), ⊤) |
| 36 | (TensorProduct Γ(S, ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra b) |
| 37 | ((Coefficient.ModulePresheaf.coefficientModulePresheaf f.appTop.hom L.sheaf).obj (.op ⊤))) := by |
| 38 | change Module (Affine.TensorSectionComparison.morphismGlobalAlgebra b) |
| 39 | (TensorProduct Γ(S, ⊤) (Affine.TensorSectionComparison.morphismGlobalAlgebra b) |
| 40 | ((Coefficient.ModulePresheaf.coefficientModulePresheaf f.appTop.hom L.sheaf).obj (.op ⊤))) |
| 41 | infer_instance |
| 42 | let : Module K T := tensorModule |
| 43 | let p : PrimeSpectrum K := ⟨⊥, inferInstance⟩ |
| 44 | let e := LinearEquiv.ofBijective |
| 45 | (Scalar.SectionBaseChange.baseChangeGlobalSectionsLinearMap (IsPullback.of_hasPullback f b) L.sheaf) h |
| 46 | calc |
| 47 | Module.rankAtStalk M (S.toSpecΓ x) = Module.rankAtStalk M (p.comap b.appTop.hom) := |
| 48 | congrArg (Module.rankAtStalk M) (Affine.ResiduePrime.residuePoint_prime_comap S x p).symm |
| 49 | _ = Module.rankAtStalk (R := K) T p := |
| 50 | (Module.rankAtStalk_baseChange (R := Γ(S, ⊤)) (M := M) (S := Affine.TensorSectionComparison.morphismGlobalAlgebra b) p).symm |
| 51 | _ = Module.finrank K T := congrFun (Module.rankAtStalk_eq_finrank_of_free (R := K) (M := T)) p |
| 52 | _ = Module.finrank K ((Coefficient.GlobalSectionsFunctor.coefficientGlobalSectionsFunctor (f.fiberToSpecResidueField x).appTop.hom).obj |
| 53 | (L.pullback (f.fiberι x)).sheaf) := e.finrank_eq |
| 54 | _ = FiberEulerGroundField.lineBundleFieldSectionDimension (f.fiberToSpecResidueField x) (L.pullback (f.fiberι x)) := |
| 55 | (HilbertConstruction.Field.ExtensionSectionDimension.schemeGlobalSections_finrank_eq_globalCoefficients (f.fiberToSpecResidueField x) |
| 56 | (L.pullback (f.fiberι x)).sheaf).symm |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.ModuleResidueRank |