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 Mathlib.LinearAlgebra.TensorProduct.Tower |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.RightExactness |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Monoidal.Basic |
| 4 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRings |
| 5 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 6 | import Mathlib.Algebra.Homology.ShortComplex.ExactFunctor |
| 7 | |
| 8 | /-! # Tensor Over Base -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.TensorOverBase |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Tensoring an algebra module over its base ring retains the |
| 15 | algebra action. Its underlying base module is the native tensor functor, |
| 16 | and it preserves finite colimits without a flatness hypothesis. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.MonoidalCategory |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | universe u |
| 24 | variable (R A : Type u) [CommRing R] [CommRing A] [Algebra R A] (N : ModuleCat.{u} R) |
| 25 | |
| 26 | local instance moduleCarrier (M : ModuleCat.{u} A) : Module R M := Module.compHom M (algebraMap R A) |
| 27 | local instance scalarTowerCarrier (M : ModuleCat.{u} A) : IsScalarTower R A M := |
| 28 | IsScalarTower.of_algebraMap_smul (fun _ _ => rfl) |
| 29 | |
| 30 | def tensorOverBase : ModuleCat.{u} A ⥤ ModuleCat.{u} A where |
| 31 | obj M := ModuleCat.of A (M ⊗[R] N) |
| 32 | map f := ModuleCat.ofHom (TensorProduct.AlgebraTensorModule.rTensor R N f.hom) |
| 33 | map_id M := by |
| 34 | apply ModuleCat.hom_ext |
| 35 | exact TensorProduct.AlgebraTensorModule.rTensor_id |
| 36 | map_comp f g := by |
| 37 | apply ModuleCat.hom_ext |
| 38 | exact TensorProduct.AlgebraTensorModule.rTensor_comp g.hom f.hom |
| 39 | |
| 40 | instance : (tensorOverBase R A N).Additive where |
| 41 | map_add := by |
| 42 | intro M M' f g |
| 43 | apply ModuleCat.hom_ext |
| 44 | exact map_add (TensorProduct.AlgebraTensorModule.rTensor R N) f.hom g.hom |
| 45 | |
| 46 | theorem tensor_algebraMap_smul (M : ModuleCat.{u} A) (r : R) (t : M ⊗[R] N) : |
| 47 | (algebraMap R A r) • t = r • t := IsScalarTower.algebraMap_smul A r t |
| 48 | |
| 49 | def underlyingComponent (M : ModuleCat.{u} A) : |
| 50 | (ModuleCat.restrictScalars (algebraMap R A)).obj ((tensorOverBase R A N).obj M) ≃ₗ[R] |
| 51 | (tensorRight N).obj ((ModuleCat.restrictScalars (algebraMap R A)).obj M) where |
| 52 | __ := AddEquiv.refl (M ⊗[R] N) |
| 53 | map_smul' r t := tensor_algebraMap_smul R A N M r t |
| 54 | |
| 55 | def underlyingIso : tensorOverBase R A N ⋙ ModuleCat.restrictScalars (algebraMap R A) ≅ |
| 56 | ModuleCat.restrictScalars (algebraMap R A) ⋙ tensorRight N := |
| 57 | NatIso.ofComponents (fun M => (underlyingComponent R A N M).toModuleIso) |
| 58 | (by intro M M' f; ext t; rfl) |
| 59 | |
| 60 | theorem map_exact_of_epi (K : ShortComplex (ModuleCat.{u} A)) (hK : K.Exact) [Epi K.g] : |
| 61 | (K.map (tensorOverBase R A N)).Exact := by |
| 62 | rw [ShortComplex.ShortExact.moduleCat_exact_iff_function_exact] at hK ⊢ |
| 63 | exact rTensor_exact N (f := K.f.hom.restrictScalars R) (g := K.g.hom.restrictScalars R) |
| 64 | hK ((ModuleCat.epi_iff_surjective K.g).mp inferInstance) |
| 65 | |
| 66 | instance tensorOverBase_preservesFiniteColimits : PreservesFiniteColimits (tensorOverBase R A N) := by |
| 67 | apply (Functor.preservesFiniteColimits_iff_forall_exact_map_and_epi (tensorOverBase R A N)).mpr |
| 68 | intro K hK |
| 69 | let : Epi K.g := hK.epi_g |
| 70 | refine ⟨map_exact_of_epi R A N K hK.exact, ?_⟩ |
| 71 | apply (ModuleCat.epi_iff_surjective ((tensorOverBase R A N).map K.g)).mpr |
| 72 | exact LinearMap.rTensor_surjective N (g := K.g.hom.restrictScalars R) hK.moduleCat_surjective_g |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.TensorOverBase |