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.SheafCohomology.Cech.ComplexUpNatCycles |
| 2 | import Mathlib.Algebra.Category.Grp.Abelian |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.Ab |
| 4 | |
| 5 | /-! # Complex Up Nat Elimination -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatElimination.Projective |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Eliminating a bidegree coordinate by an actual total boundary. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | private theorem hom_map_units_smul {A B : AddCommGrpCat.{u}} |
| 18 | (f : A ⟶ B) (r : ℤˣ) (x : A) : f (r • x) = r • f x := by |
| 19 | change f.hom ((r : ℤ) • x) = (r : ℤ) • f.hom x |
| 20 | exact f.hom.map_zsmul _ _ |
| 21 | |
| 22 | variable (K : HomologicalComplex₂ AddCommGrpCat.{u} (.up ℕ) (.up ℕ)) |
| 23 | [K.HasTotal (.up ℕ)] |
| 24 | |
| 25 | /-- The boundary of an element in one bidegree has the expected signed row component. -/ |
| 26 | theorem total_boundary_same_row (q p : ℕ) (y : (K.X q).X p) : |
| 27 | (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) q (p + 1) (q + p + 1) |
| 28 | ((K.total (.up ℕ)).d (q + p) (q + p + 1) |
| 29 | (K.ιTotal (.up ℕ) q p (q + p) rfl y)) = |
| 30 | ((-1 : ℤˣ) ^ q) • (K.X q).d p (p + 1) y := by |
| 31 | have h := congrArg (fun f => f y) |
| 32 | (UpNatLowDegrees.HomologicalComplex₂.ιTotal_d_upNat_assoc K q p ((UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) q (p + 1) (q + p + 1))) |
| 33 | simpa [ConcreteCategory.comp_apply, Units.smul_def] using h |
| 34 | |
| 35 | /-- Such a boundary has no component in any preceding row. -/ |
| 36 | theorem total_boundary_before_row (q p a b : ℕ) (ha : a < q) (y : (K.X q).X p) : |
| 37 | (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) a b (q + p + 1) |
| 38 | ((K.total (.up ℕ)).d (q + p) (q + p + 1) |
| 39 | (K.ιTotal (.up ℕ) q p (q + p) rfl y)) = 0 := by |
| 40 | have hq : q ≠ a := by omega |
| 41 | have hq' : q + 1 ≠ a := by omega |
| 42 | have h := congrArg (fun f => f y) |
| 43 | (UpNatLowDegrees.HomologicalComplex₂.ιTotal_d_upNat_assoc K q p ((UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) a b (q + p + 1))) |
| 44 | simpa [ConcreteCategory.comp_apply, hq, hq'] using h |
| 45 | |
| 46 | /-- Row exactness lets one remove a row-cycle coordinate by subtracting a total boundary, |
| 47 | while preserving every preceding row coordinate. -/ |
| 48 | theorem exists_remove_row_coordinate (q p : ℕ) |
| 49 | (x : (K.total (.up ℕ)).X (q + p + 1)) |
| 50 | (hrow : (ShortComplex.mk ((K.X q).d p (p + 1)) |
| 51 | ((K.X q).d (p + 1) (p + 2)) ((K.X q).d_comp_d p (p + 1) (p + 2))).Exact) |
| 52 | (hcycle : (K.X q).d (p + 1) (p + 2) |
| 53 | ((UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) q (p + 1) (q + p + 1) x) = 0) : |
| 54 | ∃ z : (K.total (.up ℕ)).X (q + p), |
| 55 | (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) q (p + 1) (q + p + 1) |
| 56 | (x - (K.total (.up ℕ)).d (q + p) (q + p + 1) z) = 0 ∧ |
| 57 | ∀ a b, a < q → |
| 58 | (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) a b (q + p + 1) |
| 59 | (x - (K.total (.up ℕ)).d (q + p) (q + p + 1) z) = |
| 60 | (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) a b (q + p + 1) x := by |
| 61 | obtain ⟨y, hy⟩ := (ShortComplex.ab_exact_iff _).mp hrow _ hcycle |
| 62 | let r : ℤˣ := (-1) ^ q |
| 63 | let z := K.ιTotal (.up ℕ) q p (q + p) rfl (r⁻¹ • y) |
| 64 | refine ⟨z, ?_, ?_⟩ |
| 65 | · have hz : (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) q (p + 1) (q + p + 1) |
| 66 | ((K.total (.up ℕ)).d (q + p) (q + p + 1) z) = |
| 67 | (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) q (p + 1) (q + p + 1) x := by |
| 68 | dsimp only [z] |
| 69 | rw [total_boundary_same_row, hom_map_units_smul] |
| 70 | change r • (r⁻¹ • (K.X q).d p (p + 1) y) = _ |
| 71 | rw [smul_inv_smul] |
| 72 | exact hy |
| 73 | rw [map_sub, hz, sub_self] |
| 74 | · intro a b ha |
| 75 | rw [map_sub] |
| 76 | change _ - (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) a b (q + p + 1) |
| 77 | ((K.total (.up ℕ)).d (q + p) (q + p + 1) |
| 78 | (K.ιTotal (.up ℕ) q p (q + p) rfl (r⁻¹ • y))) = _ |
| 79 | rw [total_boundary_before_row K q p a b ha, sub_zero] |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatElimination.Projective |