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.AbelianModuli.HilbertConstruction.TotalComplex.CycleNormalization |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TotalComplex.HorizontalEdge |
| 3 | |
| 4 | /-! # Row -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TotalComplex.Row |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Recovering a normalized total cycle from the augmented complex. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable (K : HomologicalComplex₂ AddCommGrpCat.{u} (.up ℕ) (.up ℕ)) |
| 17 | [K.HasTotal (.up ℕ)] |
| 18 | |
| 19 | /-- An element with all earlier rows zero is its final-coordinate inclusion. -/ |
| 20 | theorem total_eq_final_coordinate (n : ℕ) (x : (K.total (.up ℕ)).X n) |
| 21 | (hbefore : CycleNormalization.ZeroRowsBefore K n x n) : |
| 22 | K.ιTotal (.up ℕ) n 0 n rfl (FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K n 0 n x) = x := by |
| 23 | have h : ∀ a b, a + b = n → |
| 24 | FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K a b n (K.ιTotal (.up ℕ) n 0 n rfl |
| 25 | (FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K n 0 n x)) = FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K a b n x := by |
| 26 | intro a b hab |
| 27 | by_cases ha : a = n |
| 28 | · have hb : b = 0 := by omega |
| 29 | subst a b |
| 30 | change (K.ιTotal (.up ℕ) n 0 n rfl ≫ FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K n 0 n) |
| 31 | (FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K n 0 n x) = FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K n 0 n x |
| 32 | simp |
| 33 | · have hn : n ≠ a := Ne.symm ha |
| 34 | rw [hbefore a b hab (by omega)] |
| 35 | change (K.ιTotal (.up ℕ) n 0 n rfl ≫ FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K a b n) |
| 36 | (FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K n 0 n x) = 0 |
| 37 | simp [hn] |
| 38 | apply (ElementCoordinates.totalCoordinateAddEquiv K n).injective |
| 39 | funext i |
| 40 | exact h i (n - i) (by omega) |
| 41 | |
| 42 | /-- The final coordinate of a total cycle is a column cycle. -/ |
| 43 | theorem total_cycle_final_column (n : ℕ) (x : (K.total (.up ℕ)).X n) |
| 44 | (hx : (K.total (.up ℕ)).d n (n + 1) x = 0) : |
| 45 | (K.d n (n + 1)).f 0 (FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K n 0 n x) = 0 := by |
| 46 | have h := congrArg (fun f => f x) (BoundaryCoordinates.total_d_π_zero_right K n) |
| 47 | simpa only [ConcreteCategory.comp_apply, hx, map_zero] using h.symm |
| 48 | |
| 49 | /-- A total cycle lifts, modulo an actual boundary, to a cycle in the augmented complex. -/ |
| 50 | theorem exists_horizontal_cycle_lift |
| 51 | (A : CochainComplex AddCommGrpCat.{u} ℕ) |
| 52 | (e : ∀ q, A.X q ⟶ (K.X q).X 0) |
| 53 | (he : ∀ q q', (ComplexShape.up ℕ).Rel q q' → |
| 54 | e q ≫ (K.d q q').f 0 = A.d q q' ≫ e q') |
| 55 | (w : ∀ q, e q ≫ (K.X q).d 0 1 = 0) |
| 56 | (haug : ∀ q, (ShortComplex.mk (e q) ((K.X q).d 0 1) (w q)).Exact) |
| 57 | (hmono : ∀ q, Mono (e q)) (hrows : CycleNormalization.RowsExact K) |
| 58 | (n : ℕ) (x : (K.total (.up ℕ)).X (n + 1)) |
| 59 | (hx : (K.total (.up ℕ)).d (n + 1) (n + 2) x = 0) : |
| 60 | ∃ a : A.X (n + 1), A.d (n + 1) (n + 2) a = 0 ∧ |
| 61 | ∃ z : (K.total (.up ℕ)).X n, |
| 62 | (HorizontalEdge.totalUpNatHorizontalEdge K A e he w).f (n + 1) a = |
| 63 | x - (K.total (.up ℕ)).d n (n + 1) z := by |
| 64 | obtain ⟨z, hz⟩ := CycleNormalization.exists_normalize_total_cycle K n x hx hrows |
| 65 | let y := x - (K.total (.up ℕ)).d n (n + 1) z |
| 66 | have hy : (K.total (.up ℕ)).d (n + 1) (n + 2) y = 0 := |
| 67 | CycleNormalization.total_sub_boundary_cycle K n x hx z |
| 68 | have hrow := CycleNormalization.total_cycle_row_of_zero_before K (n + 1) (n + 1) 0 rfl y hy hz |
| 69 | obtain ⟨a, ha⟩ := (ShortComplex.ab_exact_iff _).mp (haug (n + 1)) _ hrow |
| 70 | have hacycle : A.d (n + 1) (n + 2) a = 0 := by |
| 71 | apply (AddCommGrpCat.mono_iff_injective (e (n + 2))).mp (hmono (n + 2)) |
| 72 | rw [map_zero] |
| 73 | have heval := ConcreteCategory.congr_hom (he (n + 1) (n + 2) rfl) a |
| 74 | have hcol := total_cycle_final_column K (n + 1) y hy |
| 75 | rw [← ha] at hcol |
| 76 | exact heval.symm.trans hcol |
| 77 | refine ⟨a, hacycle, z, ?_⟩ |
| 78 | change K.ιTotal (.up ℕ) (n + 1) 0 (n + 1) rfl (e (n + 1) a) = y |
| 79 | rw [ha] |
| 80 | exact total_eq_final_coordinate K (n + 1) y hz |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TotalComplex.Row |