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.ResolutionLocalExact |
| 2 | import Mathlib.LinearAlgebra.Isomorphisms |
| 3 | |
| 4 | /-! # Resolution Local Cokernel -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ResolutionLocalCokernel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Flat extension preserves the middle exactness of a projective |
| 11 | resolution and identifies its degree-zero cokernel with the extended module. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R : Type u) [CommRing R] (M : ModuleCat.{u} R) (P : ProjectiveResolution M) |
| 21 | |
| 22 | def cokernelEquiv : (P.complex.X 0 ⧸ (P.complex.d 1 0).hom.range) ≃ₗ[R] M := |
| 23 | (Submodule.quotEquivOfEq _ _ P.exact₀.moduleCat_range_eq_ker).trans |
| 24 | ((P.π.f 0).hom.quotKerEquivOfSurjective |
| 25 | ((ModuleCat.epi_iff_surjective _).mp inferInstance)) |
| 26 | |
| 27 | variable (S : Type u) [CommRing S] [Algebra R S] [Module.Flat R S] |
| 28 | |
| 29 | theorem exact : |
| 30 | (ComplexDeterminantBaseChange.complex R S (P.complex.d 2 1).hom |
| 31 | (P.complex.d 1 0).hom (ModuleCat.hom_ext_iff.mp (P.complex.d_comp_d 2 1 0))).Exact := by |
| 32 | let Q := (ProjectionFormula.Flat.Extension.baseChange R S).mapProjectiveResolution P |
| 33 | exact Q.exact_succ 0 |
| 34 | |
| 35 | theorem length : |
| 36 | Module.length S ((S ⊗[R] P.complex.X 0) ⧸ ((P.complex.d 1 0).hom.baseChange S).range) = |
| 37 | Module.length S (S ⊗[R] M) := by |
| 38 | let F := ProjectionFormula.Flat.Extension.baseChange R S |
| 39 | exact (cokernelEquiv S (F.obj M) (F.mapProjectiveResolution P)).length_eq |
| 40 | |
| 41 | end |
| 42 | |
| 43 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ResolutionLocalCokernel |