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.Algebra.Homology.ShortComplex.ModuleCat |
| 2 | |
| 3 | /-! # Homology Classes -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Module.HomologyClasses |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Explicit module cocycles and their functorial homology classes. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 12 | |
| 13 | universe v u |
| 14 | |
| 15 | variable {R : Type u} [Ring R] |
| 16 | (S : ShortComplex (ModuleCat.{v} R)) |
| 17 | |
| 18 | def cycle (x : S.X₂) (hx : S.g x = 0) : S.cycles := |
| 19 | S.moduleCatCyclesIso.inv ⟨x, hx⟩ |
| 20 | |
| 21 | theorem cycle_i (x : S.X₂) (hx : S.g x = 0) : S.iCycles (cycle S x hx) = x := by |
| 22 | exact ConcreteCategory.congr_hom S.moduleCatCyclesIso_inv_iCycles ⟨x, hx⟩ |
| 23 | |
| 24 | def homologyClass (x : S.X₂) (hx : S.g x = 0) : S.homology := |
| 25 | S.homologyπ (cycle S x hx) |
| 26 | |
| 27 | theorem homologyClass_quotient (x : S.X₂) (hx : S.g x = 0) : |
| 28 | homologyClass S x hx = S.moduleCatHomologyIso.inv (Submodule.Quotient.mk ⟨x, hx⟩) := by |
| 29 | exact ConcreteCategory.congr_hom S.moduleCatCyclesIso_inv_π ⟨x, hx⟩ |
| 30 | |
| 31 | theorem homologyClass_surjective (a : S.homology) : |
| 32 | ∃ (x : S.X₂) (hx : S.g x = 0), homologyClass S x hx = a := by |
| 33 | obtain ⟨z, hz⟩ := (ModuleCat.epi_iff_surjective S.homologyπ).mp inferInstance a |
| 34 | refine ⟨S.iCycles z, ?_, ?_⟩ |
| 35 | · exact ConcreteCategory.congr_hom S.iCycles_g z |
| 36 | · have hc : cycle S (S.iCycles z) (ConcreteCategory.congr_hom S.iCycles_g z) = z := by |
| 37 | apply (ModuleCat.mono_iff_injective S.iCycles).mp inferInstance |
| 38 | exact cycle_i S _ _ |
| 39 | exact (congrArg S.homologyπ hc).trans hz |
| 40 | |
| 41 | variable {S} {T : ShortComplex (ModuleCat.{v} R)} |
| 42 | |
| 43 | theorem homologyClass_naturality (f : S ⟶ T) (x : S.X₂) (hx : S.g x = 0) : |
| 44 | ShortComplex.homologyMap f (homologyClass S x hx) = |
| 45 | homologyClass T (f.τ₂ x) (by |
| 46 | have h := ConcreteCategory.congr_hom f.comm₂₃ x |
| 47 | simpa only [ConcreteCategory.comp_apply, hx, map_zero] using h) := by |
| 48 | have hz : ShortComplex.cyclesMap f (cycle S x hx) = |
| 49 | cycle T (f.τ₂ x) (by |
| 50 | have h := ConcreteCategory.congr_hom f.comm₂₃ x |
| 51 | simpa only [ConcreteCategory.comp_apply, hx, map_zero] using h) := by |
| 52 | apply (ModuleCat.mono_iff_injective T.iCycles).mp inferInstance |
| 53 | rw [cycle_i] |
| 54 | have h := ConcreteCategory.congr_hom (ShortComplex.cyclesMap_i f) (cycle S x hx) |
| 55 | simpa only [ConcreteCategory.comp_apply, cycle_i] using h |
| 56 | have h := ConcreteCategory.congr_hom (ShortComplex.homologyπ_naturality f) (cycle S x hx) |
| 57 | simpa only [ConcreteCategory.comp_apply, homologyClass, hz] using h |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.Comparison.Betti.Module.HomologyClasses |