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.Module.BaseChangeComplex |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.TensorFunctor |
| 3 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRings |
| 4 | import Mathlib.Algebra.Homology.ShortComplex.PreservesHomology |
| 5 | import Mathlib.Algebra.Homology.QuasiIso |
| 6 | |
| 7 | /-! # Change Tensor Homology -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Base.ChangeTensorHomology |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The actual B-linear base-change complex and the underlying R-linear tensor complex have canonically isomorphic homology after restriction. A surjective coefficient map lifts such restricted isomorphisms to B-linear equivalences. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 15 | open scoped TensorProduct |
| 16 | universe u |
| 17 | variable {R B : Type u} [CommRing R] [CommRing B] [Algebra R B] |
| 18 | |
| 19 | def moduleBaseChangeRestrictionIso : |
| 20 | Module.TensorFunctor.ModuleTensorFunctor.tensor (R := R) B ≅ |
| 21 | Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor R B ⋙ ModuleCat.restrictScalars (algebraMap R B) := by |
| 22 | refine NatIso.ofComponents (fun M => ModuleCat.isoMk (Iso.refl _) ?_) ?_ |
| 23 | · intro r |
| 24 | ext z |
| 25 | change B ⊗[R] M at z |
| 26 | change (algebraMap R B r) • z = r • z |
| 27 | exact IsScalarTower.algebraMap_smul B r z |
| 28 | · intro M N f |
| 29 | apply ModuleCat.hom_ext |
| 30 | apply TensorProduct.ext |
| 31 | ext b m |
| 32 | rfl |
| 33 | |
| 34 | def baseChangeTensorHomologyIso (C : CochainComplex (ModuleCat.{u} R) ℕ) (q : ℕ) : |
| 35 | (ModuleCat.restrictScalars (algebraMap R B)).obj |
| 36 | ((((Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor R B).mapHomologicalComplex (.up ℕ)).obj C).homology q) ≅ |
| 37 | (Module.TensorFunctor.ModuleTensorFunctor.complex B C).homology q := by |
| 38 | let BC := ((Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor R B).mapHomologicalComplex (.up ℕ)).obj C |
| 39 | let e := Functor.mapHomologicalComplexCompIso |
| 40 | (moduleBaseChangeRestrictionIso (R := R) (B := B)).symm (.up ℕ) |
| 41 | exact ((BC.sc q).mapHomologyIso (ModuleCat.restrictScalars (algebraMap R B))).symm ≪≫ |
| 42 | HomologicalComplex.homologyMapIso (e.app C) q |
| 43 | |
| 44 | def restrictedModuleIsoLinearEquiv |
| 45 | (f : R →+* B) (hf : Function.Surjective f) {M N : ModuleCat.{u} B} |
| 46 | (e : (ModuleCat.restrictScalars f).obj M ≅ (ModuleCat.restrictScalars f).obj N) : |
| 47 | M ≃ₗ[B] N where |
| 48 | toFun x := e.hom x |
| 49 | invFun y := e.inv y |
| 50 | left_inv := e.toLinearEquiv.left_inv |
| 51 | right_inv := e.toLinearEquiv.right_inv |
| 52 | map_add' := e.toLinearEquiv.map_add |
| 53 | map_smul' b x := by |
| 54 | obtain ⟨r, rfl⟩ := hf b |
| 55 | exact e.toLinearEquiv.map_smul r x |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Base.ChangeTensorHomology |