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.CycleClass.Thom.TorAlgebra.FlatExtension |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.ExactFunctor |
| 3 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRings |
| 4 | |
| 5 | /-! # Base Change Right Exact -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.BaseChangeRightExact |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual extension-of-scalars functor is right exact for every |
| 12 | algebra. This does not require the algebra itself to be flat. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.MonoidalCategory |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.FlatExtension |
| 18 | |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | universe u |
| 22 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 23 | |
| 24 | theorem map_exact_of_epi (K : ShortComplex (ModuleCat.{u} R)) (hK : K.Exact) [Epi K.g] : |
| 25 | (K.map (FlatExtension.baseChange R S)).Exact := by |
| 26 | rw [ShortComplex.ShortExact.moduleCat_exact_iff_function_exact] at hK ⊢ |
| 27 | exact lTensor_exact S hK ((ModuleCat.epi_iff_surjective K.g).mp inferInstance) |
| 28 | |
| 29 | instance baseChange_preservesFiniteColimits : PreservesFiniteColimits (FlatExtension.baseChange R S) := by |
| 30 | apply (Functor.preservesFiniteColimits_iff_forall_exact_map_and_epi (FlatExtension.baseChange R S)).mpr |
| 31 | intro K hK |
| 32 | let : Epi K.g := hK.epi_g |
| 33 | refine ⟨map_exact_of_epi R S K hK.exact, ?_⟩ |
| 34 | apply (ModuleCat.epi_iff_surjective ((FlatExtension.baseChange R S).map K.g)).mpr |
| 35 | exact LinearMap.lTensor_surjective S hK.moduleCat_surjective_g |
| 36 | |
| 37 | theorem tensor_algebraMap_smul (M : ModuleCat.{u} R) (r : R) (t : S ⊗[R] M) : |
| 38 | (algebraMap R S r) • t = r • t := |
| 39 | IsScalarTower.algebraMap_smul S r t |
| 40 | |
| 41 | def restrictBaseChangeComponent (M : ModuleCat.{u} R) : |
| 42 | (ModuleCat.restrictScalars (algebraMap R S)).obj ((FlatExtension.baseChange R S).obj M) ≃ₗ[R] |
| 43 | (tensorLeft (ModuleCat.of R S)).obj M where |
| 44 | __ := AddEquiv.refl (S ⊗[R] M) |
| 45 | map_smul' r t := tensor_algebraMap_smul R S M r t |
| 46 | |
| 47 | /-- On underlying R-modules, the actual scalar extension is the |
| 48 | ordinary tensor-left functor used to define native Tor. -/ |
| 49 | def restrictBaseChangeIso : |
| 50 | FlatExtension.baseChange R S ⋙ ModuleCat.restrictScalars (algebraMap R S) ≅ |
| 51 | tensorLeft (ModuleCat.of R S) := |
| 52 | NatIso.ofComponents (fun M => (restrictBaseChangeComponent R S M).toModuleIso) |
| 53 | (by |
| 54 | intro M M' f |
| 55 | ext t |
| 56 | rfl) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.BaseChangeRightExact |