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.BoundaryCoordinates |
| 2 | import Mathlib.Algebra.Category.Grp.Preadditive |
| 3 | |
| 4 | /-! # Element Coordinates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TotalComplex.ElementCoordinates |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Element coordinates for the genuine first-quadrant total complex. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | private def homEvaluation {A B : AddCommGrpCat.{u}} (x : A) : (A ⟶ B) →+ B where |
| 17 | toFun f := f x |
| 18 | map_zero' := rfl |
| 19 | map_add' _ _ := rfl |
| 20 | |
| 21 | private theorem hom_sum_apply {A B : AddCommGrpCat.{u}} {ι : Type*} |
| 22 | (s : Finset ι) (f : ι → (A ⟶ B)) (x : A) : |
| 23 | (∑ i ∈ s, f i) x = ∑ i ∈ s, f i x := |
| 24 | map_sum (homEvaluation x) f s |
| 25 | |
| 26 | variable (K : HomologicalComplex₂ AddCommGrpCat.{u} (.up ℕ) (.up ℕ)) |
| 27 | [K.HasTotal (.up ℕ)] |
| 28 | |
| 29 | /-- Every element of total degree `n` is the sum of its bidegree components. -/ |
| 30 | theorem totalUpNat_element_decomposition (n : ℕ) (x : (K.total (.up ℕ)).X n) : |
| 31 | ∑ i : Fin (n + 1), |
| 32 | K.ιTotal (.up ℕ) i (n - i) n (by |
| 33 | change (i : ℕ) + (n - i) = n |
| 34 | omega) (FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K i (n - i) n x) = x := by |
| 35 | have h := congrArg (fun f => f x) (Total.DegreeDecomposition.TotalComplex.totalUpNat_decomposition K n) |
| 36 | rw [hom_sum_apply] at h |
| 37 | simpa only [ConcreteCategory.comp_apply, CategoryTheory.id_apply] using h |
| 38 | |
| 39 | /-- Vanishing of all total-degree coordinates is vanishing of the element. -/ |
| 40 | theorem totalUpNat_eq_zero_of_coordinates (n : ℕ) (x : (K.total (.up ℕ)).X n) |
| 41 | (h : ∀ i : Fin (n + 1), FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K i (n - i) n x = 0) : x = 0 := by |
| 42 | rw [← totalUpNat_element_decomposition K n x] |
| 43 | simp only [h, map_zero, Finset.sum_const_zero] |
| 44 | |
| 45 | private theorem coordinate_inclusion_self (n : ℕ) (i : Fin (n + 1)) |
| 46 | (x : (K.X i).X (n - i)) : |
| 47 | FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K i (n - i) n |
| 48 | (K.ιTotal (.up ℕ) i (n - i) n (by |
| 49 | change (i : ℕ) + (n - i) = n |
| 50 | omega) x) = x := by |
| 51 | change (K.ιTotal (.up ℕ) i (n - i) n _ ≫ FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K i (n - i) n) x = x |
| 52 | simp |
| 53 | |
| 54 | private theorem coordinate_inclusion_ne (n : ℕ) (i j : Fin (n + 1)) |
| 55 | (hij : i ≠ j) (x : (K.X i).X (n - i)) : |
| 56 | FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K j (n - j) n |
| 57 | (K.ιTotal (.up ℕ) i (n - i) n (by |
| 58 | change (i : ℕ) + (n - i) = n |
| 59 | omega) x) = 0 := by |
| 60 | have h : (i : ℕ) ≠ (j : ℕ) := fun heq => hij (Fin.ext heq) |
| 61 | change (K.ιTotal (.up ℕ) i (n - i) n _ ≫ FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K j (n - j) n) x = 0 |
| 62 | simp [h] |
| 63 | |
| 64 | /-- The total degree is additively equivalent to its finite family of bidegree groups. -/ |
| 65 | def totalCoordinateAddEquiv (n : ℕ) : |
| 66 | (K.total (.up ℕ)).X n ≃+ ∀ i : Fin (n + 1), (K.X i).X (n - i) where |
| 67 | toFun x i := FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K i (n - i) n x |
| 68 | invFun y := ∑ i : Fin (n + 1), K.ιTotal (.up ℕ) i (n - i) n (by |
| 69 | change (i : ℕ) + (n - i) = n |
| 70 | omega) (y i) |
| 71 | left_inv x := totalUpNat_element_decomposition K n x |
| 72 | right_inv y := by |
| 73 | funext j |
| 74 | change (FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K j (n - j) n).hom |
| 75 | (∑ i : Fin (n + 1), K.ιTotal (.up ℕ) i (n - i) n (by |
| 76 | change (i : ℕ) + (n - i) = n |
| 77 | omega) (y i)) = y j |
| 78 | rw [map_sum, Finset.sum_eq_single j] |
| 79 | · exact coordinate_inclusion_self K n j (y j) |
| 80 | · intro i _ hij |
| 81 | exact coordinate_inclusion_ne K n i j hij (y i) |
| 82 | · simp |
| 83 | map_add' x y := by |
| 84 | funext i |
| 85 | exact (FirstQuadrantTotalCoordinates.TotalComplex.πTotalUpNat K i (n - i) n).hom.map_add x y |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TotalComplex.ElementCoordinates |