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.Intrinsic.TensorHomologyComparison |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.ResidueScalar |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.CoefficientCohomology.CohomologyRestriction |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.CechModelVanishing |
| 5 | |
| 6 | /-! # Fiber Cohomology Model -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.FiberCohomologyModel |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The native residue-field extension of the finite Cech model computes genuine fiber cohomology with the full residue-field coefficient action. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | universe u |
| 15 | |
| 16 | def fiberModelCohomologyIso |
| 17 | {S X : Scheme.{u}} [IsAffine S] [X.IsSeparated] (f : X ⟶ S) (L : Line.Bundles.LineBundle X) |
| 18 | {ι : Type u} [LinearOrder ι] (U : ι → X.Opens) (hU : iSup U = ⊤) |
| 19 | (ha : ∀ i, IsAffineOpen (U i)) {D : CochainComplex (ModuleCat.{u} Γ(S, ⊤)) ℕ} |
| 20 | (φ : D ⟶ Ordered.CoefficientCechComplex.orderedCoefficientCechComplex f.appTop.hom L.sheaf U) (x : S) (q : ℕ) |
| 21 | [QuasiIsoAt (Module.TensorFunctor.ModuleTensorFunctor.map (Affine.TensorSectionComparison.morphismGlobalAlgebra (S.fromSpecResidueField x)) φ ≫ |
| 22 | CechTensorComparison.geometricCechTensorMap (IsPullback.of_hasPullback f (S.fromSpecResidueField x)) L.sheaf U) q] : |
| 23 | (((ModuleCat.extendScalars (S.fromSpecResidueField x).appTop.hom).mapHomologicalComplex |
| 24 | (.up ℕ)).obj D).homology q ≅ |
| 25 | (Zariski.CohomologyFunctor.ZariskiCohomology.coefficientCohomologyFunctor (f.fiberToSpecResidueField x).appTop.hom q).obj |
| 26 | (L.pullback (f.fiberι x)).sheaf := by |
| 27 | let g := S.fromSpecResidueField x |
| 28 | let H := IsPullback.of_hasPullback f g |
| 29 | let a := pullback.fst f g |
| 30 | let b := pullback.snd f g |
| 31 | let M := (L.pullback a).sheaf |
| 32 | have : M.IsQuasicoherent := (L.pullback a).isQuasicoherent |
| 33 | have : IsAffineHom g := isAffineHom_of_isAffine _ |
| 34 | have : IsAffineHom a := isAffineHom_isStableUnderBaseChange.of_isPullback H.flip inferInstance |
| 35 | have : (pullback f g).IsSeparated := ⟨by rw [← terminal.comp_from a]; infer_instance⟩ |
| 36 | apply Affine.ResidueScalar.affineResidueModuleIso S x |
| 37 | exact Intrinsic.TensorHomologyComparison.nativeTensorHomologyComparisonIso g.appTop.hom D q ≪≫ |
| 38 | isoOfQuasiIsoAt (Module.TensorFunctor.ModuleTensorFunctor.map (Affine.TensorSectionComparison.morphismGlobalAlgebra g) φ ≫ |
| 39 | CechTensorComparison.geometricCechTensorMap H L.sheaf U) q ≪≫ |
| 40 | OrderedCech.AllDegreeComparison.orderedCechCohomologyModuleIso (a.appTop.hom.comp f.appTop.hom) M |
| 41 | (fun i => a ⁻¹ᵁ U i) (Affine.PushforwardZariskiComparison.inverseImageOpens_iSup_eq_top a U hU) (fun i => (ha i).preimage a) q ≪≫ |
| 42 | CoefficientCohomology.BaseCongruence.ZariskiCohomology.coefficientCohomologyCongr (Affine.TensorSectionComparison.cartesianGlobalCoefficient_compatibility H).symm M q ≪≫ |
| 43 | (CoefficientCohomology.CohomologyRestriction.coefficientCohomologyRestrictionIso g.appTop.hom b.appTop.hom M q).symm |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.FiberCohomologyModel |