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.CategoryTheory.Abelian.Projective.Resolution |
| 2 | import Mathlib.Algebra.Homology.Linear |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Projective |
| 4 | import Mathlib.Algebra.Category.ModuleCat.Abelian |
| 5 | |
| 6 | /-! # Resolution Scalar Contraction -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ResolutionScalarContraction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A scalar annihilating the resolved module acts null-homotopically |
| 13 | on its actual projective resolution. The endpoint identities give the |
| 14 | auxiliary lift and the injectivity test needed after scalar extension. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (R : Type u) [CommRing R] (M : ModuleCat.{u} R) (P : ProjectiveResolution M) |
| 23 | (r : R) (hr : ∀ x : M, r • x = 0) |
| 24 | |
| 25 | include hr |
| 26 | |
| 27 | def homotopy : Homotopy (r • 𝟙 P.complex) 0 := by |
| 28 | apply ProjectiveResolution.liftHomotopyZero (P := P) (Q := P) (r • 𝟙 P.complex) |
| 29 | rw [Linear.smul_comp, Category.id_comp] |
| 30 | apply HomologicalComplex.hom_ext |
| 31 | intro n |
| 32 | cases n with |
| 33 | | zero => |
| 34 | apply ModuleCat.hom_ext |
| 35 | apply LinearMap.ext |
| 36 | intro x |
| 37 | exact hr (P.π.f 0 x) |
| 38 | | succ n => |
| 39 | have hz : IsZero (((ChainComplex.single₀ (ModuleCat R)).obj M).X (n + 1)) := |
| 40 | HomologicalComplex.isZero_single_obj_X _ _ _ _ (by omega) |
| 41 | exact hz.eq_of_tgt _ _ |
| 42 | |
| 43 | def lift : P.complex.X 0 ⟶ P.complex.X 1 := (homotopy R M P r hr).hom 0 1 |
| 44 | |
| 45 | theorem lift_comp : lift R M P r hr ≫ P.complex.d 1 0 = r • 𝟙 (P.complex.X 0) := by |
| 46 | have he := (homotopy R M P r hr).comm 0 |
| 47 | simpa only [lift, HomologicalComplex.smul_f_apply, HomologicalComplex.id_f, |
| 48 | HomologicalComplex.zero_f, Homotopy.dNext_zero_chainComplex, |
| 49 | Homotopy.prevD_chainComplex, zero_add, add_zero] using he.symm |
| 50 | |
| 51 | theorem top_comp (n : ℕ) (hn : IsZero (P.complex.X (n + 2))) : |
| 52 | P.complex.d (n + 1) n ≫ (homotopy R M P r hr).hom n (n + 1) = |
| 53 | r • 𝟙 (P.complex.X (n + 1)) := by |
| 54 | have he := (homotopy R M P r hr).comm (n + 1) |
| 55 | have hz : (homotopy R M P r hr).hom (n + 1) (n + 2) = 0 := hn.eq_of_tgt _ _ |
| 56 | simpa only [HomologicalComplex.smul_f_apply, HomologicalComplex.id_f, |
| 57 | HomologicalComplex.zero_f, Homotopy.dNext_succ_chainComplex, |
| 58 | Homotopy.prevD_chainComplex, hz, zero_comp, add_zero] using he.symm |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ResolutionScalarContraction |