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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/TotalComplexUpNatHorizontalEdgeHigher.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TotalComplex.Row |
| 8 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Positive.PositiveCycleHomology |
| 9 | |
| 10 | /-! # Homology Surjectivity -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TotalComplex.HomologySurjectivity |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! Surjectivity of the horizontal edge on homology in every positive degree. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Positive.PositiveCycleHomology.TotalComplex.CycleHomology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable (K : HomologicalComplex₂ AddCommGrpCat.{u} (.up ℕ) (.up ℕ)) |
| 25 | [K.HasTotal (.up ℕ)] |
| 26 | |
| 27 | /-- Exact augmented rows make the horizontal edge map surjective on every |
| 28 | positive-degree homology group of the genuine total complex. -/ |
| 29 | theorem horizontal_edge_homology_surjective |
| 30 | (A : CochainComplex AddCommGrpCat.{u} ℕ) |
| 31 | (e : ∀ q, A.X q ⟶ (K.X q).X 0) |
| 32 | (he : ∀ q q', (ComplexShape.up ℕ).Rel q q' → |
| 33 | e q ≫ (K.d q q').f 0 = A.d q q' ≫ e q') |
| 34 | (w : ∀ q, e q ≫ (K.X q).d 0 1 = 0) |
| 35 | (haug : ∀ q, (ShortComplex.mk (e q) ((K.X q).d 0 1) (w q)).Exact) |
| 36 | (hmono : ∀ q, Mono (e q)) (hrows : CycleNormalization.RowsExact K) (n : ℕ) : |
| 37 | Function.Surjective (HomologicalComplex.homologyMap |
| 38 | (HorizontalEdge.totalUpNatHorizontalEdge K A e he w) (n + 1)) := by |
| 39 | let T := K.total (.up ℕ) |
| 40 | let edge := HorizontalEdge.totalUpNatHorizontalEdge K A e he w |
| 41 | intro ξ |
| 42 | have hπ : Function.Surjective (T.homologyπ (n + 1)) := |
| 43 | (AddCommGrpCat.epi_iff_surjective (T.homologyπ (n + 1))).mp inferInstance |
| 44 | obtain ⟨xc, rfl⟩ := hπ ξ |
| 45 | let x : T.X (n + 1) := T.iCycles (n + 1) xc |
| 46 | have hx : T.d (n + 1) (n + 2) x = 0 := by |
| 47 | have h := congrArg (fun g => g xc) (T.iCycles_d (n + 1) (n + 2)) |
| 48 | simpa only [x, ConcreteCategory.comp_apply, AddCommGrpCat.hom_zero, |
| 49 | AddMonoidHom.zero_apply] using h |
| 50 | obtain ⟨a, ha, z, haz⟩ := Row.exists_horizontal_cycle_lift K A e he w haug hmono hrows n x hx |
| 51 | have hedgeCycle : T.d (n + 1) (n + 2) (edge.f (n + 1) a) = 0 := by |
| 52 | have h := congrArg (fun g => g a) (edge.comm (n + 1) (n + 2)) |
| 53 | simpa only [ConcreteCategory.comp_apply, ha, map_zero] using h |
| 54 | have hdiff : x - edge.f (n + 1) a = T.d n (n + 1) z := by |
| 55 | change x - (HorizontalEdge.totalUpNatHorizontalEdge K A e he w).f (n + 1) a = _ |
| 56 | rw [haz] |
| 57 | abel |
| 58 | have hxc : Positive.PositiveCycleHomology.TotalComplex.CycleHomology.abCyclesMk n T x hx = xc := by |
| 59 | apply (AddCommGrpCat.mono_iff_injective (T.iCycles (n + 1))).mp inferInstance |
| 60 | simp only [Positive.PositiveCycleHomology.TotalComplex.CycleHomology.i_abCyclesMk, x] |
| 61 | refine ⟨A.homologyπ (n + 1) (Positive.PositiveCycleHomology.TotalComplex.CycleHomology.abCyclesMk n A a ha), ?_⟩ |
| 62 | calc |
| 63 | HomologicalComplex.homologyMap edge (n + 1) |
| 64 | (A.homologyπ (n + 1) (Positive.PositiveCycleHomology.TotalComplex.CycleHomology.abCyclesMk n A a ha)) = |
| 65 | T.homologyπ (n + 1) (Positive.PositiveCycleHomology.TotalComplex.CycleHomology.abCyclesMk n T (edge.f (n + 1) a) hedgeCycle) := |
| 66 | Positive.PositiveCycleHomology.TotalComplex.CycleHomology.homologyMap_abCyclesMk n edge a ha hedgeCycle |
| 67 | _ = T.homologyπ (n + 1) (Positive.PositiveCycleHomology.TotalComplex.CycleHomology.abCyclesMk n T x hx) := |
| 68 | (Positive.PositiveCycleHomology.TotalComplex.CycleHomology.homologyπ_cyclesMk_eq_of_sub_eq_boundary n T x (edge.f (n + 1) a) hx |
| 69 | hedgeCycle z hdiff).symm |
| 70 | _ = T.homologyπ (n + 1) xc := by rw [hxc] |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TotalComplex.HomologySurjectivity |