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.ArithmeticGroups.Lattices.UpperUnitriangularMatrices |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.DiagonalChamberRatios |
| 3 | |
| 4 | /-! # Upper Diagonal Conjugation -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Diagonal conjugation preserves upper unitriangular matrices and |
| 11 | has a uniform coordinate bound when its upper-triangular ratios are bounded. -/ |
| 12 | |
| 13 | open _root_.Matrix |
| 14 | open scoped Classical |
| 15 | |
| 16 | theorem UpperDiagonalConjugation.Construction.diagonal_conjugation_entry {n : ℕ} (d : Fin n → ℝ) |
| 17 | (M : Matrix (Fin n) (Fin n) ℝ) (i j : Fin n) : |
| 18 | (diagonal d * M * diagonal (fun i => (d i)⁻¹)) i j = (d i / d j) * M i j := by |
| 19 | rw [Matrix.mul_diagonal, Matrix.diagonal_mul, div_eq_mul_inv] |
| 20 | ring |
| 21 | |
| 22 | theorem UpperUnitriangularMatrices.Construction.IsUpperUnitriangular.diagonal_conjugation {n : ℕ} {M : Matrix (Fin n) (Fin n) ℝ} |
| 23 | (hM : UpperUnitriangularMatrices.Construction.IsUpperUnitriangular M) (d : Fin n → ℝ) (hd : ∀ i, d i ≠ 0) : |
| 24 | UpperUnitriangularMatrices.Construction.IsUpperUnitriangular (diagonal d * M * diagonal (fun i => (d i)⁻¹)) := by |
| 25 | constructor |
| 26 | · intro i j hij |
| 27 | rw [UpperDiagonalConjugation.Construction.diagonal_conjugation_entry, hM.1 hij, mul_zero] |
| 28 | · intro i |
| 29 | rw [UpperDiagonalConjugation.Construction.diagonal_conjugation_entry, div_self (hd i), hM.2, one_mul] |
| 30 | |
| 31 | theorem UpperDiagonalConjugation.Construction.diagonal_conjugation_entry_bound {n : ℕ} (d : Fin n → ℝ) (hd : ∀ i, 0 < d i) |
| 32 | (M : Matrix (Fin n) (Fin n) ℝ) (hM : M.IsUpperTriangular) |
| 33 | (c R : ℝ) (hc : 0 ≤ c) (hR : 0 ≤ R) |
| 34 | (hbound : ∀ i j, |M i j| ≤ c) (hratio : ∀ i j, i ≤ j → d i / d j ≤ R) |
| 35 | (i j : Fin n) : |(diagonal d * M * diagonal (fun i => (d i)⁻¹)) i j| ≤ R * c := by |
| 36 | rw [UpperDiagonalConjugation.Construction.diagonal_conjugation_entry] |
| 37 | rcases le_or_gt i j with hij | hij |
| 38 | · rw [abs_mul, abs_of_pos (div_pos (hd i) (hd j))] |
| 39 | exact mul_le_mul (hratio i j hij) (hbound i j) (abs_nonneg _) hR |
| 40 | · rw [hM hij, mul_zero, abs_zero] |
| 41 | exact mul_nonneg hR hc |
| 42 | |
| 43 | theorem UpperDiagonalConjugation.Construction.reduced_diagonal_conjugation_entry_bound {n : ℕ} (d : Fin n → ℝ) (hd : ∀ i, 0 < d i) |
| 44 | (hstep : ∀ i j, i.val + 1 = j.val → d i ≤ 2 * d j) |
| 45 | (M : Matrix (Fin n) (Fin n) ℝ) (hM : M.IsUpperTriangular) |
| 46 | (c : ℝ) (hc : 0 ≤ c) (hbound : ∀ i j, |M i j| ≤ c) (i j : Fin n) : |
| 47 | |(diagonal d * M * diagonal (fun i => (d i)⁻¹)) i j| ≤ (2 : ℝ) ^ n * c := |
| 48 | UpperDiagonalConjugation.Construction.diagonal_conjugation_entry_bound d hd M hM c ((2 : ℝ) ^ n) hc (by positivity) |
| 49 | hbound (DiagonalChamberRatios.Construction.positive_gap_chain_ratio d hd hstep) i j |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.NumberTheory.ArithmeticGroups.Lattices |