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.Dimension |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 3 | |
| 4 | /-! # Second Kernel Dimension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SecondKernelDimension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! In a two-step projective presentation, the second kernel has |
| 11 | projective dimension two less than the presented module. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | theorem bound (R : Type u) [CommRing R] (B C M : ModuleCat.{u} R) |
| 20 | [Projective B] [Projective C] (g : B →ₗ[R] C) (π : C →ₗ[R] M) |
| 21 | (he : Function.Exact g π) (hπ : Function.Surjective π) |
| 22 | (d : ℕ) [HasProjectiveDimensionLE M (d + 2)] : |
| 23 | HasProjectiveDimensionLE (ModuleCat.of R g.ker) d := by |
| 24 | let S := π.shortComplexKer |
| 25 | have hS := LinearMap.shortExact_shortComplexKer hπ |
| 26 | let : HasProjectiveDimensionLE (ModuleCat.of R π.ker) (d + 1) := |
| 27 | (hS.hasProjectiveDimensionLT_X₃_iff (d + 1) inferInstance).mp inferInstance |
| 28 | let g' : B →ₗ[R] π.ker := g.codRestrict π.ker (fun b => (he (g b)).mpr ⟨b, rfl⟩) |
| 29 | have hg' : Function.Surjective g' := by |
| 30 | intro c |
| 31 | obtain ⟨b, hb⟩ := (he c.val).mp c.property |
| 32 | exact ⟨b, Subtype.ext hb⟩ |
| 33 | have hT := LinearMap.shortExact_shortComplexKer hg' |
| 34 | let : HasProjectiveDimensionLE (ModuleCat.of R g'.ker) d := |
| 35 | (hT.hasProjectiveDimensionLT_X₃_iff d inferInstance).mp inferInstance |
| 36 | have hk : g'.ker = g.ker := by |
| 37 | ext b |
| 38 | change (g' b = 0) ↔ g b = 0 |
| 39 | exact Subtype.ext_iff |
| 40 | exact hasProjectiveDimensionLT_of_iso |
| 41 | (LinearEquiv.ofEq g'.ker g.ker hk).toModuleIso (d + 1) |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SecondKernelDimension |