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.Ab |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 3 | |
| 4 | /-! # Ab Cochain Classes -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.AbCochainClasses.Homology |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual cocycle classes and their naturality for integer complexes of abelian groups. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable (K : CochainComplex AddCommGrpCat.{u} ℤ) (n : ℤ) |
| 17 | |
| 18 | def cycle (x : K.X n) (hx : K.d n (n + 1) x = 0) : K.cycles n := |
| 19 | (K.sc n).abCyclesIso.inv ⟨x, by |
| 20 | change K.d n ((ComplexShape.up ℤ).next n) x = 0 |
| 21 | rw [CochainComplex.next ℤ n] |
| 22 | exact hx⟩ |
| 23 | |
| 24 | theorem cycle_i (x : K.X n) (hx : K.d n (n + 1) x = 0) : |
| 25 | K.iCycles n (cycle K n x hx) = x := |
| 26 | (K.sc n).abCyclesIso_inv_apply_iCycles _ |
| 27 | |
| 28 | def cochainClass (x : K.X n) (hx : K.d n (n + 1) x = 0) : K.homology n := |
| 29 | K.homologyπ n (cycle K n x hx) |
| 30 | |
| 31 | theorem cochainClass_surjective (a : K.homology n) : |
| 32 | ∃ (x : K.X n) (hx : K.d n (n + 1) x = 0), cochainClass K n x hx = a := by |
| 33 | obtain ⟨z, hz⟩ := (AddCommGrpCat.epi_iff_surjective (K.homologyπ n)).mp inferInstance a |
| 34 | have hx : K.d n (n + 1) (K.iCycles n z) = 0 := |
| 35 | congrArg (fun f : K.cycles n ⟶ K.X (n + 1) => f.hom z) (K.iCycles_d n (n + 1)) |
| 36 | refine ⟨K.iCycles n z, hx, ?_⟩ |
| 37 | have hc : cycle K n (K.iCycles n z) hx = z := by |
| 38 | apply (AddCommGrpCat.mono_iff_injective (K.iCycles n)).mp inferInstance |
| 39 | exact cycle_i K n _ _ |
| 40 | exact (congrArg (K.homologyπ n) hc).trans hz |
| 41 | |
| 42 | variable {K} {L : CochainComplex AddCommGrpCat.{u} ℤ} (f : K ⟶ L) |
| 43 | |
| 44 | theorem map_closed (x : K.X n) (hx : K.d n (n + 1) x = 0) : |
| 45 | L.d n (n + 1) (f.f n x) = 0 := by |
| 46 | have h := congrArg (fun g : K.X n ⟶ L.X (n + 1) => g.hom x) (f.comm n (n + 1)) |
| 47 | simpa only [AddCommGrpCat.comp_apply, hx, map_zero] using h |
| 48 | |
| 49 | theorem cycle_naturality (x : K.X n) (hx : K.d n (n + 1) x = 0) : |
| 50 | cyclesMap f n (cycle K n x hx) = cycle L n (f.f n x) (map_closed n f x hx) := by |
| 51 | apply (AddCommGrpCat.mono_iff_injective (L.iCycles n)).mp inferInstance |
| 52 | rw [cycle_i] |
| 53 | have h := congrArg (fun g : K.cycles n ⟶ L.X n => g.hom (cycle K n x hx)) (cyclesMap_i f n) |
| 54 | simpa only [AddCommGrpCat.comp_apply, cycle_i] using h |
| 55 | |
| 56 | theorem cochainClass_naturality (x : K.X n) (hx : K.d n (n + 1) x = 0) : |
| 57 | homologyMap f n (cochainClass K n x hx) = |
| 58 | cochainClass L n (f.f n x) (map_closed n f x hx) := by |
| 59 | have h := congrArg (fun g : K.cycles n ⟶ L.homology n => g.hom (cycle K n x hx)) |
| 60 | (homologyπ_naturality f n) |
| 61 | simpa only [AddCommGrpCat.comp_apply, cochainClass, cycle_naturality] using h |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.Comparison.Betti.AbCochainClasses.Homology |