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/TotalComplexUpNatHorizontalEdge.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.UpNatLowDegrees |
| 8 | |
| 9 | /-! # Up Nat Horizontal Edge -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.SheafCohomology.Cech.UpNatHorizontalEdge.HomologicalComplex₂ |
| 12 | |
| 13 | open _root_.HomologicalComplex₂ |
| 14 | |
| 15 | /-! |
| 16 | # The horizontal edge map into a first-quadrant total complex |
| 17 | |
| 18 | An augmentation into the zeroth horizontal degree of a bicomplex induces a map from the |
| 19 | augmenting cochain complex to the total complex. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory _root_.CategoryTheory.Preadditive |
| 23 | |
| 24 | universe v u |
| 25 | |
| 26 | variable {C : Type u} [Category.{v} C] [Preadditive C] |
| 27 | variable (K : HomologicalComplex₂ C (.up ℕ) (.up ℕ)) |
| 28 | variable [K.HasTotal (.up ℕ)] |
| 29 | |
| 30 | /-- The horizontal edge map from an augmented zeroth column to the total complex. -/ |
| 31 | noncomputable def totalUpNatHorizontalEdge |
| 32 | (A : CochainComplex C ℕ) (e : ∀ q, A.X q ⟶ (K.X q).X 0) |
| 33 | (he : ∀ q q', (ComplexShape.up ℕ).Rel q q' → |
| 34 | e q ≫ (K.d q q').f 0 = A.d q q' ≫ e q') |
| 35 | (w : ∀ q, e q ≫ (K.X q).d 0 1 = 0) : |
| 36 | A ⟶ K.total (.up ℕ) where |
| 37 | f q := e q ≫ K.ιTotal (.up ℕ) q 0 q rfl |
| 38 | comm' q q' h := by |
| 39 | change q + 1 = q' at h |
| 40 | subst q' |
| 41 | calc |
| 42 | (e q ≫ K.ιTotal (.up ℕ) q 0 q rfl) ≫ |
| 43 | (K.total (.up ℕ)).d q (q + 1) = |
| 44 | e q ≫ (K.ιTotal (.up ℕ) q 0 q rfl ≫ |
| 45 | (K.total (.up ℕ)).d q (q + 1)) := by rw [Category.assoc] |
| 46 | _ = e q ≫ |
| 47 | ((K.d q (q + 1)).f 0 ≫ |
| 48 | K.ιTotal (.up ℕ) (q + 1) 0 (q + 1) |
| 49 | (by change q + 1 + 0 = q + 1; omega) + |
| 50 | ((-1 : ℤˣ) ^ q) • ((K.X q).d 0 1 ≫ |
| 51 | K.ιTotal (.up ℕ) q 1 (q + 1) |
| 52 | (by change q + 1 = q + 1; rfl))) := by |
| 53 | exact congrArg (fun f ↦ e q ≫ f) (by |
| 54 | simpa only [Nat.add_zero] using (UpNatLowDegrees.HomologicalComplex₂.ιTotal_d_upNat K) q 0) |
| 55 | _ = (e q ≫ (K.d q (q + 1)).f 0) ≫ |
| 56 | K.ιTotal (.up ℕ) (q + 1) 0 (q + 1) rfl + |
| 57 | ((-1 : ℤˣ) ^ q) • ((e q ≫ (K.X q).d 0 1) ≫ |
| 58 | K.ιTotal (.up ℕ) q 1 (q + 1) rfl) := by |
| 59 | simp only [Preadditive.comp_add, Category.assoc, Linear.comp_units_smul] |
| 60 | _ = (e q ≫ (K.d q (q + 1)).f 0) ≫ |
| 61 | K.ιTotal (.up ℕ) (q + 1) 0 (q + 1) rfl := by |
| 62 | rw [w q, CategoryTheory.Limits.zero_comp, smul_zero, add_zero] |
| 63 | _ = (A.d q (q + 1) ≫ e (q + 1)) ≫ |
| 64 | K.ιTotal (.up ℕ) (q + 1) 0 (q + 1) rfl := by |
| 65 | rw [he q (q + 1) rfl] |
| 66 | _ = A.d q (q + 1) ≫ |
| 67 | (e (q + 1) ≫ K.ιTotal (.up ℕ) (q + 1) 0 (q + 1) rfl) := by |
| 68 | rw [Category.assoc] |
| 69 | |
| 70 | @[simp] |
| 71 | theorem totalUpNatHorizontalEdge_f |
| 72 | (A : CochainComplex C ℕ) (e : ∀ q, A.X q ⟶ (K.X q).X 0) |
| 73 | (he : ∀ q q', (ComplexShape.up ℕ).Rel q q' → |
| 74 | e q ≫ (K.d q q').f 0 = A.d q q' ≫ e q') |
| 75 | (w : ∀ q, e q ≫ (K.X q).d 0 1 = 0) (q : ℕ) : |
| 76 | ((totalUpNatHorizontalEdge K) A e he w).f q = |
| 77 | e q ≫ K.ιTotal (.up ℕ) q 0 q rfl := |
| 78 | rfl |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.SheafCohomology.Cech.UpNatHorizontalEdge.HomologicalComplex₂ |