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 Mathlib |
| 2 | |
| 3 | /-! # Pivots -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.Pivots.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Unit pivots for elementary reduction of integral SL3. These use |
| 10 | the local-ring axiom and the actual inverse matrix, without passage to |
| 11 | the fraction field or a generation hypothesis. -/ |
| 12 | |
| 13 | open scoped Classical _root_.Matrix |
| 14 | open _root_.Matrix _root_.Matrix.SpecialLinearGroup |
| 15 | |
| 16 | variable {R : Type*} [CommRing R] [IsLocalRing R] |
| 17 | |
| 18 | theorem column_has_unit (g : SpecialLinearGroup (Fin 3) R) (j : Fin 3) : |
| 19 | ∃ i : Fin 3, IsUnit (g.val i j) := by |
| 20 | have hsum : IsUnit (∑ i : Fin 3, (g⁻¹).val j i * g.val i j) := by |
| 21 | change IsUnit ((g⁻¹ * g).val j j) |
| 22 | rw [inv_mul_cancel] |
| 23 | simpa only [coe_one, Matrix.one_apply_eq] using (isUnit_one : IsUnit (1 : R)) |
| 24 | obtain ⟨i, _, hi⟩ := IsLocalRing.exists_of_isUnit_sum hsum |
| 25 | exact ⟨i, isUnit_of_mul_isUnit_right hi⟩ |
| 26 | |
| 27 | omit [IsLocalRing R] in |
| 28 | theorem row_add (g : SpecialLinearGroup (Fin 3) R) (i j : Fin 3) (hij : i ≠ j) |
| 29 | (a : R) (r c : Fin 3) : |
| 30 | (transvection hij a * g).val r c = |
| 31 | g.val r c + if r = i then a * g.val j c else 0 := by |
| 32 | change ((1 + single i j a) * g.val) r c = _ |
| 33 | rw [add_mul, Matrix.one_mul, Matrix.add_apply] |
| 34 | congr 1 |
| 35 | by_cases h : r = i |
| 36 | · subst r |
| 37 | simp only [Matrix.single_mul_apply_same, ite_true] |
| 38 | · rw [ite_eq_right h] |
| 39 | exact Matrix.single_mul_apply_of_ne a i j r c h g.val |
| 40 | |
| 41 | end |
| 42 | |
| 43 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.Pivots.CM |