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.IntersectionTheory.ProjectionFormula.Flat.Extension |
| 2 | |
| 3 | /-! # Mixed Tensor -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.MixedTensor |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Tensoring an R-module with an S-module, retaining the S-action. |
| 10 | This exact functor gives one-sided flat base change for native Tor. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.Limits |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 20 | (N : ModuleCat.{u} S) [Module R N] [IsScalarTower R S N] |
| 21 | |
| 22 | def tensor : ModuleCat.{u} R ⥤ ModuleCat.{u} S where |
| 23 | obj M := ModuleCat.of S (N ⊗[R] M) |
| 24 | map f := ModuleCat.ofHom (TensorProduct.AlgebraTensorModule.lTensor S N f.hom) |
| 25 | map_id _ := by |
| 26 | apply ModuleCat.hom_ext |
| 27 | exact TensorProduct.AlgebraTensorModule.map_id |
| 28 | map_comp f g := by |
| 29 | apply ModuleCat.hom_ext |
| 30 | apply TensorProduct.AlgebraTensorModule.ext |
| 31 | intro n m |
| 32 | rfl |
| 33 | |
| 34 | instance : (tensor R S N).Additive where |
| 35 | map_add := by |
| 36 | intro M M' f g |
| 37 | apply ModuleCat.hom_ext |
| 38 | exact (TensorProduct.AlgebraTensorModule.lTensor S N).map_add f.hom g.hom |
| 39 | |
| 40 | theorem map_exact [Module.Flat R N] (K : ShortComplex (ModuleCat R)) (hK : K.Exact) : |
| 41 | (K.map (tensor R S N)).Exact := by |
| 42 | rw [ShortComplex.ShortExact.moduleCat_exact_iff_function_exact] at hK ⊢ |
| 43 | exact Module.Flat.lTensor_exact N hK |
| 44 | |
| 45 | instance [Module.Flat R N] : (tensor R S N).PreservesHomology := |
| 46 | ((Functor.exact_tfae (tensor R S N)).out 2 3).mp (map_exact R S N) |
| 47 | |
| 48 | def cancelBaseChange : |
| 49 | ProjectionFormula.Flat.Extension.baseChange R S ⋙ tensorLeft N ≅ tensor R S N ⋙ 𝟭 _ := |
| 50 | NatIso.ofComponents (fun M => |
| 51 | (TensorProduct.AlgebraTensorModule.cancelBaseChange R S S N M).toModuleIso) |
| 52 | (by |
| 53 | intro M M' f |
| 54 | apply ModuleCat.hom_ext |
| 55 | apply TensorProduct.ext' |
| 56 | intro n a |
| 57 | induction a using TensorProduct.inductionOn with |
| 58 | | tmul s m => rfl |
| 59 | | add a b ha hb => simp only [TensorProduct.tmul_add, map_add, ha, hb]) |
| 60 | |
| 61 | theorem higherDerived_isZero [Module.Flat R N] (M : ModuleCat.{u} R) (n : ℕ) : |
| 62 | IsZero (((tensor R S N).leftDerived (n + 1)).obj M) := by |
| 63 | let P := projectiveResolution M |
| 64 | apply IsZero.of_iso _ (P.isoLeftDerivedObj (tensor R S N) (n + 1)) |
| 65 | change IsZero ((((tensor R S N).mapHomologicalComplex (ComplexShape.down ℕ)).obj P.complex).homology (n + 1)) |
| 66 | rw [← HomologicalComplex.exactAt_iff_isZero_homology] |
| 67 | rw [HomologicalComplex.exactAt_iff' _ (n + 2) (n + 1) n (by simp) (by simp)] |
| 68 | exact (P.exact_succ n).map (tensor R S N) |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.MixedTensor |