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.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.Cup |
| 2 | import Mathlib.Tactic.FinCases |
| 3 | import Mathlib.Tactic.LinearCombination |
| 4 | import Mathlib.Tactic.Ring |
| 5 | |
| 6 | /-! # One Cup Boundary -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.OneCupBoundary |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Explicit boundaries for degree-one Alexander–Whitney products in |
| 13 | the actual alternating-coface complex. When two is invertible, the |
| 14 | square of every degree-one cocycle is an actual boundary. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory |
| 17 | open scoped Simplicial |
| 18 | |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.Cup |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | theorem front_one_one : AlgebraicTopology.Products.SimplexFaceIdentities.frontInclusion 1 1 = SimplexCategory.δ (2 : Fin 3) := by |
| 24 | ext i |
| 25 | fin_cases i <;> rfl |
| 26 | |
| 27 | theorem back_one_one : AlgebraicTopology.Products.SimplexFaceIdentities.backInclusion 1 1 = SimplexCategory.δ (0 : Fin 3) := by |
| 28 | ext i |
| 29 | fin_cases i <;> rfl |
| 30 | |
| 31 | variable (A : CosimplicialObject CommRingCat.{u}) |
| 32 | |
| 33 | theorem differential_one (x : A.obj ⦋1⦌) : |
| 34 | Cup.differential A 1 x = |
| 35 | A.map (SimplexCategory.δ (0 : Fin 3)) x - |
| 36 | A.map (SimplexCategory.δ (1 : Fin 3)) x + |
| 37 | A.map (SimplexCategory.δ (2 : Fin 3)) x := by |
| 38 | simp [Cup.differential, Fin.sum_univ_succ, sub_eq_add_neg, add_assoc] |
| 39 | |
| 40 | theorem cup_one_one (x y : A.obj ⦋1⦌) : |
| 41 | Cup.cup A x y = A.map (SimplexCategory.δ (2 : Fin 3)) x * |
| 42 | A.map (SimplexCategory.δ (0 : Fin 3)) y := by |
| 43 | rw [Cup.cup, front_one_one, back_one_one] |
| 44 | |
| 45 | theorem cocycle_middle (x : A.obj ⦋1⦌) (hx : Cup.differential A 1 x = 0) : |
| 46 | A.map (SimplexCategory.δ (1 : Fin 3)) x = |
| 47 | A.map (SimplexCategory.δ (0 : Fin 3)) x + |
| 48 | A.map (SimplexCategory.δ (2 : Fin 3)) x := by |
| 49 | rw [differential_one] at hx |
| 50 | linear_combination -hx |
| 51 | |
| 52 | theorem product_differential (x y : A.obj ⦋1⦌) |
| 53 | (hx : Cup.differential A 1 x = 0) (hy : Cup.differential A 1 y = 0) : |
| 54 | Cup.differential A 1 (x * y) = -(Cup.cup A x y + Cup.cup A y x) := by |
| 55 | rw [differential_one, cup_one_one, cup_one_one] |
| 56 | simp only [map_mul, cocycle_middle A x hx, cocycle_middle A y hy] |
| 57 | ring |
| 58 | |
| 59 | theorem square_differential (x : A.obj ⦋1⦌) (hx : Cup.differential A 1 x = 0) : |
| 60 | Cup.differential A 1 (x * x) = -((2 : A.obj ⦋2⦌) * Cup.cup A x x) := by |
| 61 | simpa only [two_mul] using product_differential A x x hx hx |
| 62 | |
| 63 | theorem cup_sum_isBoundary (x y : A.obj ⦋1⦌) |
| 64 | (hx : Cup.differential A 1 x = 0) (hy : Cup.differential A 1 y = 0) : |
| 65 | ∃ z : A.obj ⦋1⦌, Cup.differential A 1 z = Cup.cup A x y + Cup.cup A y x := by |
| 66 | refine ⟨-(x * y), ?_⟩ |
| 67 | have hneg (v : A.obj ⦋1⦌) : Cup.differential A 1 (-v) = -Cup.differential A 1 v := by |
| 68 | simp only [Cup.differential, map_neg, smul_neg, Finset.sum_neg_distrib] |
| 69 | rw [hneg, product_differential A x y hx hy, neg_neg] |
| 70 | |
| 71 | theorem cup_self_isBoundary [Invertible (2 : A.obj ⦋1⦌)] [Invertible (2 : A.obj ⦋2⦌)] |
| 72 | (x : A.obj ⦋1⦌) (hx : Cup.differential A 1 x = 0) : |
| 73 | ∃ z : A.obj ⦋1⦌, Cup.differential A 1 z = Cup.cup A x x := by |
| 74 | have hi (i : Fin 3) : |
| 75 | A.map (SimplexCategory.δ i) (⅟(2 : A.obj ⦋1⦌)) = ⅟(2 : A.obj ⦋2⦌) := by |
| 76 | symm |
| 77 | apply invOf_eq_left_inv |
| 78 | have h := congrArg (A.map (SimplexCategory.δ i)) (invOf_mul_self (2 : A.obj ⦋1⦌)) |
| 79 | simpa only [map_mul, map_ofNat, map_one] using h |
| 80 | refine ⟨-(⅟(2 : A.obj ⦋1⦌)) * (x * x), ?_⟩ |
| 81 | calc |
| 82 | Cup.differential A 1 (-(⅟(2 : A.obj ⦋1⦌)) * (x * x)) = |
| 83 | -(⅟(2 : A.obj ⦋2⦌)) * Cup.differential A 1 (x * x) := by |
| 84 | simp only [differential_one, map_mul, map_neg, hi] |
| 85 | ring |
| 86 | _ = -(⅟(2 : A.obj ⦋2⦌)) * -((2 : A.obj ⦋2⦌) * Cup.cup A x x) := by |
| 87 | rw [square_differential A x hx] |
| 88 | _ = Cup.cup A x x := by |
| 89 | rw [neg_mul_neg, ← mul_assoc, invOf_mul_self, one_mul] |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.OneCupBoundary |