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.ComplexUpNatElimination |
| 2 | |
| 3 | /-! # Complex Up Nat Normalize -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatNormalize.Projective |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Normalizing total cycles one row at a time. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable (K : HomologicalComplex₂ AddCommGrpCat.{u} (.up ℕ) (.up ℕ)) |
| 16 | [K.HasTotal (.up ℕ)] |
| 17 | |
| 18 | /-- All coordinates in rows before `k` vanish. -/ |
| 19 | def ZeroRowsBefore (n : ℕ) (x : (K.total (.up ℕ)).X n) (k : ℕ) : Prop := |
| 20 | ∀ a b, a + b = n → a < k → (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) a b n x = 0 |
| 21 | |
| 22 | /-- Subtracting a total boundary preserves being a cycle. -/ |
| 23 | theorem total_sub_boundary_cycle (n : ℕ) (x : (K.total (.up ℕ)).X (n + 1)) |
| 24 | (hx : (K.total (.up ℕ)).d (n + 1) (n + 2) x = 0) |
| 25 | (z : (K.total (.up ℕ)).X n) : |
| 26 | (K.total (.up ℕ)).d (n + 1) (n + 2) |
| 27 | (x - (K.total (.up ℕ)).d n (n + 1) z) = 0 := by |
| 28 | rw [map_sub, hx] |
| 29 | have hz : (K.total (.up ℕ)).d (n + 1) (n + 2) |
| 30 | ((K.total (.up ℕ)).d n (n + 1) z) = 0 := by |
| 31 | change ((K.total (.up ℕ)).d n (n + 1) ≫ |
| 32 | (K.total (.up ℕ)).d (n + 1) (n + 2)) z = 0 |
| 33 | rw [(K.total (.up ℕ)).d_comp_d] |
| 34 | rfl |
| 35 | rw [hz, sub_self] |
| 36 | |
| 37 | /-- The first potentially nonzero row coordinate of a total cycle is a row cycle. -/ |
| 38 | theorem total_cycle_row_of_zero_before (n q p : ℕ) (hdeg : q + p = n) |
| 39 | (x : (K.total (.up ℕ)).X n) |
| 40 | (hx : (K.total (.up ℕ)).d n (n + 1) x = 0) |
| 41 | (hbefore : ZeroRowsBefore K n x q) : |
| 42 | (K.X q).d p (p + 1) ((UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) q p n x) = 0 := by |
| 43 | cases q with |
| 44 | | zero => |
| 45 | have hn : p = n := by omega |
| 46 | clear hdeg |
| 47 | subst n |
| 48 | exact ComplexUpNatCycles.Projective.total_cycle_zero_row K p x hx |
| 49 | | succ q => |
| 50 | have hn : q + p + 1 = n := by omega |
| 51 | clear hdeg |
| 52 | subst n |
| 53 | apply ComplexUpNatCycles.Projective.total_cycle_row_of_previous_zero K q p x hx |
| 54 | exact hbefore q (p + 1) (by omega) (by omega) |
| 55 | |
| 56 | /-- Exactness of the next row gives one more vanished coordinate, without changing |
| 57 | the cohomology class of the total cycle. -/ |
| 58 | theorem exists_remove_next_row (q p : ℕ) |
| 59 | (x : (K.total (.up ℕ)).X (q + p + 1)) |
| 60 | (hx : (K.total (.up ℕ)).d (q + p + 1) (q + p + 2) x = 0) |
| 61 | (hbefore : ZeroRowsBefore K (q + p + 1) x q) |
| 62 | (hrow : (ShortComplex.mk ((K.X q).d p (p + 1)) |
| 63 | ((K.X q).d (p + 1) (p + 2)) ((K.X q).d_comp_d p (p + 1) (p + 2))).Exact) : |
| 64 | ∃ z : (K.total (.up ℕ)).X (q + p), |
| 65 | ZeroRowsBefore K (q + p + 1) |
| 66 | (x - (K.total (.up ℕ)).d (q + p) (q + p + 1) z) (q + 1) ∧ |
| 67 | (K.total (.up ℕ)).d (q + p + 1) (q + p + 2) |
| 68 | (x - (K.total (.up ℕ)).d (q + p) (q + p + 1) z) = 0 := by |
| 69 | have hc := total_cycle_row_of_zero_before K (q + p + 1) q (p + 1) |
| 70 | (by omega) x hx hbefore |
| 71 | obtain ⟨z, hz, hpreserve⟩ := ComplexUpNatElimination.Projective.exists_remove_row_coordinate K q p x hrow hc |
| 72 | refine ⟨z, ?_, total_sub_boundary_cycle K (q + p) x hx z⟩ |
| 73 | intro a b hab ha |
| 74 | by_cases haq : a < q |
| 75 | · rw [hpreserve a b haq] |
| 76 | exact hbefore a b hab haq |
| 77 | · have heqa : a = q := by omega |
| 78 | have heqb : b = p + 1 := by omega |
| 79 | subst a b |
| 80 | exact hz |
| 81 | |
| 82 | /-- Every row is exact in positive horizontal degrees. -/ |
| 83 | def RowsExact : Prop := ∀ q p, |
| 84 | (ShortComplex.mk ((K.X q).d p (p + 1)) ((K.X q).d (p + 1) (p + 2)) |
| 85 | ((K.X q).d_comp_d p (p + 1) (p + 2))).Exact |
| 86 | |
| 87 | /-- Row elimination with the total degree kept fixed. -/ |
| 88 | theorem exists_remove_next_row_of_lt (n q : ℕ) (hq : q < n + 1) |
| 89 | (x : (K.total (.up ℕ)).X (n + 1)) |
| 90 | (hx : (K.total (.up ℕ)).d (n + 1) (n + 2) x = 0) |
| 91 | (hbefore : ZeroRowsBefore K (n + 1) x q) (hrows : RowsExact K) : |
| 92 | ∃ z : (K.total (.up ℕ)).X n, |
| 93 | ZeroRowsBefore K (n + 1) |
| 94 | (x - (K.total (.up ℕ)).d n (n + 1) z) (q + 1) ∧ |
| 95 | (K.total (.up ℕ)).d (n + 1) (n + 2) |
| 96 | (x - (K.total (.up ℕ)).d n (n + 1) z) = 0 := by |
| 97 | obtain ⟨p, rfl⟩ := Nat.exists_eq_add_of_le (Nat.le_of_lt_succ hq) |
| 98 | exact exists_remove_next_row K q p x hx hbefore (hrows q p) |
| 99 | |
| 100 | /-- Every positive-degree total cycle can be normalized to the final row by subtracting |
| 101 | a boundary. This is the finite row-elimination argument in arbitrary degree. -/ |
| 102 | theorem exists_normalize_total_cycle (n : ℕ) |
| 103 | (x : (K.total (.up ℕ)).X (n + 1)) |
| 104 | (hx : (K.total (.up ℕ)).d (n + 1) (n + 2) x = 0) |
| 105 | (hrows : RowsExact K) : |
| 106 | ∃ z : (K.total (.up ℕ)).X n, |
| 107 | ZeroRowsBefore K (n + 1) |
| 108 | (x - (K.total (.up ℕ)).d n (n + 1) z) (n + 1) := by |
| 109 | have h : ∀ k, k ≤ n + 1 → ∃ z : (K.total (.up ℕ)).X n, |
| 110 | ZeroRowsBefore K (n + 1) |
| 111 | (x - (K.total (.up ℕ)).d n (n + 1) z) k := by |
| 112 | intro k |
| 113 | induction k with |
| 114 | | zero => |
| 115 | intro _ |
| 116 | refine ⟨0, ?_⟩ |
| 117 | intro a b hab ha |
| 118 | omega |
| 119 | | succ k ih => |
| 120 | intro hk |
| 121 | obtain ⟨z, hz⟩ := ih (by omega) |
| 122 | have hc := total_sub_boundary_cycle K n x hx z |
| 123 | obtain ⟨w, hw, _⟩ := exists_remove_next_row_of_lt K n k (by omega) |
| 124 | (x - (K.total (.up ℕ)).d n (n + 1) z) hc hz hrows |
| 125 | refine ⟨z + w, ?_⟩ |
| 126 | have heq : x - (K.total (.up ℕ)).d n (n + 1) (z + w) = |
| 127 | (x - (K.total (.up ℕ)).d n (n + 1) z) - |
| 128 | (K.total (.up ℕ)).d n (n + 1) w := by |
| 129 | rw [map_add] |
| 130 | abel |
| 131 | rw [heq] |
| 132 | exact hw |
| 133 | exact h (n + 1) le_rfl |
| 134 | |
| 135 | end |
| 136 | |
| 137 | end OAI.AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatNormalize.Projective |