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/TotalComplexUpNatDecomposition.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 | /-! # Complex Up Nat Coordinates -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatCoordinates.Projective |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! Coordinates in every total degree of a first-quadrant double complex. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive |
| 18 | |
| 19 | universe u v |
| 20 | |
| 21 | variable {C : Type u} [Category.{v} C] [Preadditive C] |
| 22 | (K : HomologicalComplex₂ C (.up ℕ) (.up ℕ)) [K.HasTotal (.up ℕ)] |
| 23 | |
| 24 | /-- Every total degree is the finite sum of its bidegree components. -/ |
| 25 | theorem totalUpNat_decomposition (n : ℕ) : |
| 26 | ∑ i : Fin (n + 1), (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) i (n - i) n ≫ |
| 27 | K.ιTotal (.up ℕ) i (n - i) n (by |
| 28 | change (i : ℕ) + (n - i) = n |
| 29 | omega) = 𝟙 _ := by |
| 30 | apply HomologicalComplex₂.total.hom_ext |
| 31 | intro q p h |
| 32 | change q + p = n at h |
| 33 | rw [Preadditive.comp_sum] |
| 34 | let j : Fin (n + 1) := ⟨q, by omega⟩ |
| 35 | rw [Finset.sum_eq_single j] |
| 36 | · have hp : p = n - q := by omega |
| 37 | simp [j, hp] |
| 38 | · intro i _ hij |
| 39 | have hiq : q ≠ (i : ℕ) := by |
| 40 | intro heq |
| 41 | apply hij |
| 42 | apply Fin.ext |
| 43 | exact heq.symm |
| 44 | simp [hiq] |
| 45 | · simp |
| 46 | |
| 47 | /-- A map into the total complex is determined by its finitely many bidegree coordinates. -/ |
| 48 | theorem totalUpNat_hom_ext (n : ℕ) {A : C} |
| 49 | {f g : A ⟶ (K.total (.up ℕ)).X n} |
| 50 | (h : ∀ i : Fin (n + 1), |
| 51 | f ≫ (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) i (n - i) n = g ≫ (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) i (n - i) n) : f = g := by |
| 52 | calc |
| 53 | f = f ≫ 𝟙 _ := (Category.comp_id f).symm |
| 54 | _ = f ≫ ∑ i : Fin (n + 1), (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) i (n - i) n ≫ |
| 55 | K.ιTotal (.up ℕ) i (n - i) n (by |
| 56 | change (i : ℕ) + (n - i) = n |
| 57 | omega) := by rw [totalUpNat_decomposition] |
| 58 | _ = g ≫ ∑ i : Fin (n + 1), (UpNatLowDegrees.HomologicalComplex₂.πTotalUpNat K) i (n - i) n ≫ |
| 59 | K.ιTotal (.up ℕ) i (n - i) n (by |
| 60 | change (i : ℕ) + (n - i) = n |
| 61 | omega) := by |
| 62 | rw [Preadditive.comp_sum, Preadditive.comp_sum] |
| 63 | apply Finset.sum_congr rfl |
| 64 | intro i _ |
| 65 | rw [← Category.assoc, ← Category.assoc, h i] |
| 66 | _ = g := by rw [totalUpNat_decomposition, Category.comp_id] |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatCoordinates.Projective |