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.RepresentationTheory.Hecke.RadialDilation.PositionReindex |
| 2 | import OAI.RepresentationTheory.Hecke.RadialDilation.LocalLiftChoice |
| 3 | |
| 4 | /-! # Diagonal Units -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Hecke.RadialDilation.DiagonalUnits.Realization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Diagonal units and the determinant of a selected three-coordinate dilation. -/ |
| 11 | |
| 12 | open scoped Classical _root_.Matrix |
| 13 | open _root_.Matrix |
| 14 | |
| 15 | def diagonalUnitMatrix {I K : Type*} [Fintype I] [DecidableEq I] [CommRing K] |
| 16 | (a : I → Kˣ) : Matrix.GeneralLinearGroup I K where |
| 17 | val := Matrix.diagonal (fun i => (a i : K)) |
| 18 | inv := Matrix.diagonal (fun i => ((a i)⁻¹ : Kˣ).val) |
| 19 | val_inv := by |
| 20 | rw [Matrix.diagonal_mul_diagonal] |
| 21 | simp only [Units.mul_inv, Matrix.diagonal_one] |
| 22 | inv_val := by |
| 23 | rw [Matrix.diagonal_mul_diagonal] |
| 24 | simp only [Units.inv_mul, Matrix.diagonal_one] |
| 25 | |
| 26 | theorem diagonalUnitMatrix_det {I K : Type*} [Fintype I] [DecidableEq I] [CommRing K] |
| 27 | (a : I → Kˣ) : Matrix.GeneralLinearGroup.det (diagonalUnitMatrix a) = ∏ i, a i := by |
| 28 | apply Units.ext |
| 29 | change (Matrix.diagonal (fun i => (a i : K))).det = _ |
| 30 | rw [Matrix.det_diagonal] |
| 31 | exact (map_prod (Units.coeHom K) a Finset.univ).symm |
| 32 | |
| 33 | theorem diagonalUnitMatrix_inverse_action {I K : Type*} [Fintype I] [DecidableEq I] [CommRing K] |
| 34 | (a : I → Kˣ) (x : I → K) : |
| 35 | (diagonalUnitMatrix a)⁻¹.val *ᵥ x = fun i => ((a i)⁻¹ : Kˣ).val * x i := by |
| 36 | funext i |
| 37 | exact Matrix.mulVec_diagonal _ _ i |
| 38 | |
| 39 | def activeCoordinateUnits {Place K : Type*} [DecidableEq Place] [Monoid K] |
| 40 | (μ : Place) (a : Kˣ) : Place × Fin 3 → Kˣ := |
| 41 | fun i => if i.1 = μ then a else 1 |
| 42 | |
| 43 | theorem activeCoordinateUnits_prod {Place K : Type*} [Fintype Place] [DecidableEq Place] |
| 44 | [CommMonoid K] (μ : Place) (a : Kˣ) : |
| 45 | ∏ i : Place × Fin 3, activeCoordinateUnits μ a i = a ^ 3 := by |
| 46 | rw [Fintype.prod_prod_type] |
| 47 | have hinner (v : Place) : (∏ i : Fin 3, activeCoordinateUnits μ a (v, i)) = |
| 48 | if v = μ then a ^ 3 else 1 := by |
| 49 | by_cases hv : v = μ <;> simp [activeCoordinateUnits, hv] |
| 50 | simp_rw [hinner] |
| 51 | simp |
| 52 | |
| 53 | theorem reindexed_activeCoordinateUnits_prod {Place J K : Type*} [Fintype Place] [DecidableEq Place] |
| 54 | [Fintype J] [CommMonoid K] (e : (Place × Fin 3) ≃ J) (μ : Place) (a : Kˣ) : |
| 55 | ∏ j : J, activeCoordinateUnits μ a (e.symm j) = a ^ 3 := by |
| 56 | rw [e.symm.prod_comp, activeCoordinateUnits_prod] |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.RepresentationTheory.Hecke.RadialDilation.DiagonalUnits.Realization |