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.DerivedBaseChange |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.Flat |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Tower |
| 4 | |
| 5 | /-! # Extension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.Extension |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Flat extension of scalars as an exact functor on actual modules, |
| 12 | preserving projective resolutions and commuting with tensor product. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.MonoidalCategory |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 22 | |
| 23 | def baseChange : ModuleCat.{u} R ⥤ ModuleCat.{u} S where |
| 24 | obj M := ModuleCat.of S (S ⊗[R] M) |
| 25 | map f := ModuleCat.ofHom (f.hom.baseChange S) |
| 26 | map_id _ := by |
| 27 | apply ModuleCat.hom_ext |
| 28 | exact LinearMap.baseChange_id |
| 29 | map_comp f g := by |
| 30 | apply ModuleCat.hom_ext |
| 31 | exact LinearMap.baseChange_comp (A := S) f.hom g.hom |
| 32 | |
| 33 | instance : (Extension.baseChange R S).Additive where |
| 34 | map_add := by |
| 35 | intro M N f g |
| 36 | apply ModuleCat.hom_ext |
| 37 | exact LinearMap.baseChange_add (A := S) f.hom g.hom |
| 38 | |
| 39 | instance : (Extension.baseChange R S).PreservesProjectiveObjects where |
| 40 | projective_obj {M} hM := by |
| 41 | let : Projective M := hM |
| 42 | let : Module.Projective R M := inferInstance |
| 43 | change Projective (ModuleCat.of S (S ⊗[R] M)) |
| 44 | infer_instance |
| 45 | |
| 46 | theorem map_exact [Module.Flat R S] (K : ShortComplex (ModuleCat R)) (hK : K.Exact) : |
| 47 | (K.map (Extension.baseChange R S)).Exact := by |
| 48 | rw [ShortComplex.ShortExact.moduleCat_exact_iff_function_exact] at hK ⊢ |
| 49 | exact Module.Flat.lTensor_exact S hK |
| 50 | |
| 51 | instance [Module.Flat R S] : (Extension.baseChange R S).PreservesHomology := by |
| 52 | exact ((Functor.exact_tfae (Extension.baseChange R S)).out 2 3).mp (map_exact R S) |
| 53 | |
| 54 | def tensorIso (M : ModuleCat R) : |
| 55 | Extension.baseChange R S ⋙ tensorLeft ((Extension.baseChange R S).obj M) ≅ |
| 56 | tensorLeft M ⋙ Extension.baseChange R S := |
| 57 | NatIso.ofComponents (fun N => |
| 58 | (TensorProduct.AlgebraTensorModule.distribBaseChange R S M N).symm.toModuleIso) |
| 59 | (by |
| 60 | intro N N' f |
| 61 | apply ModuleCat.hom_ext |
| 62 | apply TensorProduct.ext' |
| 63 | intro a b |
| 64 | induction a using TensorProduct.inductionOn with |
| 65 | | tmul s m => |
| 66 | induction b using TensorProduct.inductionOn with |
| 67 | | tmul t n => rfl |
| 68 | | add b c hb hc => simp only [TensorProduct.tmul_add, map_add, hb, hc] |
| 69 | | add a c ha hc => simp only [TensorProduct.add_tmul, map_add, ha, hc]) |
| 70 | |
| 71 | def torBaseChangeIso [Module.Flat R S] (M N : ModuleCat R) (n : ℕ) : |
| 72 | ((Tor (ModuleCat S) n).obj ((Extension.baseChange R S).obj M)).obj ((Extension.baseChange R S).obj N) ≅ |
| 73 | (Extension.baseChange R S).obj (((Tor (ModuleCat R) n).obj M).obj N) := |
| 74 | DerivedBaseChange.leftDerivedIso (tensorLeft M) (tensorLeft ((Extension.baseChange R S).obj M)) |
| 75 | (Extension.baseChange R S) (Extension.baseChange R S) (tensorIso R S M) N n |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.Extension |