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.Quaternion.Arithmetic.LocalWeightCurves |
| 2 | import Mathlib.LinearAlgebra.Matrix.SpecialLinearGroup |
| 3 | |
| 4 | /-! # Mapped Weight Curves -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.Quaternion.Arithmetic.MappedWeightCurves |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Coefficient maps carry integer-weight curves and their tangent |
| 11 | matrices into the complete local scalar-extension algebra. -/ |
| 12 | |
| 13 | open scoped Classical _root_.Matrix.Norms.Operator |
| 14 | |
| 15 | section |
| 16 | |
| 17 | variable {E A : Type*} [Field E] [CommRing A] {n : ℕ} |
| 18 | |
| 19 | def integerWeightMatrix (B : Matrix.SpecialLinearGroup (Fin n) E) (m : Fin n → ℤ) : |
| 20 | Matrix (Fin n) (Fin n) E := |
| 21 | (B : Matrix (Fin n) (Fin n) E) * Matrix.diagonal (fun i => (m i : E)) * |
| 22 | ((B⁻¹ : Matrix.SpecialLinearGroup (Fin n) E) : Matrix (Fin n) (Fin n) E) |
| 23 | |
| 24 | theorem map_integerWeightMatrix (f : E →+* A) (B : Matrix.SpecialLinearGroup (Fin n) E) |
| 25 | (m : Fin n → ℤ) : |
| 26 | (integerWeightMatrix B m).map f = |
| 27 | (B : Matrix (Fin n) (Fin n) E).map f * Matrix.diagonal (fun i => (m i : A)) * |
| 28 | ((B⁻¹ : Matrix.SpecialLinearGroup (Fin n) E) : Matrix (Fin n) (Fin n) E).map f := by |
| 29 | unfold integerWeightMatrix |
| 30 | rw [Matrix.map_mul, Matrix.map_mul, Matrix.diagonal_map (map_zero f)] |
| 31 | simp only [map_intCast] |
| 32 | |
| 33 | theorem unitPower_map_unit (f : E →+* A) (u : Eˣ) (m : ℤ) : |
| 34 | LocalUnitPowers.unitPower (f u) m = f ((u ^ m : Eˣ) : E) := by |
| 35 | have h := LocalUnitPowers.unitPower_unit (Units.map f.toMonoidHom u) m |
| 36 | simpa only [Units.coe_map, ← map_zpow] using! h |
| 37 | |
| 38 | end |
| 39 | |
| 40 | variable {K E A : Type*} [NontriviallyNormedField K] [Field E] [NormedCommRing A] |
| 41 | [NormedAlgebra K A] [CompleteSpace K] [CompleteSpace A] [FiniteDimensional K A] {n : ℕ} |
| 42 | |
| 43 | def mappedWeightCurve (f : E →+* A) (B : Matrix.SpecialLinearGroup (Fin n) E) |
| 44 | (a : E) (m : Fin n → ℤ) : K → Matrix (Fin n) (Fin n) A := |
| 45 | LocalWeightCurves.localWeightCurve ((B : Matrix (Fin n) (Fin n) E).map f) |
| 46 | (((B⁻¹ : Matrix.SpecialLinearGroup (Fin n) E) : Matrix (Fin n) (Fin n) E).map f) (f a) m |
| 47 | |
| 48 | omit [CompleteSpace K] [CompleteSpace A] [FiniteDimensional K A] in |
| 49 | theorem mappedWeightCurve_zero (f : E →+* A) (B : Matrix.SpecialLinearGroup (Fin n) E) |
| 50 | (a : E) (m : Fin n → ℤ) : mappedWeightCurve (K := K) f B a m 0 = 1 := by |
| 51 | rw [mappedWeightCurve, LocalWeightCurves.localWeightCurve_zero, ← Matrix.map_mul] |
| 52 | rw [← Matrix.SpecialLinearGroup.coe_mul, mul_inv_cancel, Matrix.SpecialLinearGroup.coe_one] |
| 53 | exact map_one f.mapMatrix |
| 54 | |
| 55 | omit [CompleteSpace K] [CompleteSpace A] [FiniteDimensional K A] in |
| 56 | theorem mappedWeightCurve_at_unit (f : E →+* A) (B : Matrix.SpecialLinearGroup (Fin n) E) |
| 57 | (a : E) (m : Fin n → ℤ) (t : K) (u : Eˣ) (hu : f u = 1 + t • f a) : |
| 58 | mappedWeightCurve f B a m t = |
| 59 | ((B : Matrix (Fin n) (Fin n) E) * Matrix.diagonal (fun i => ((u ^ m i : Eˣ) : E)) * |
| 60 | ((B⁻¹ : Matrix.SpecialLinearGroup (Fin n) E) : Matrix (Fin n) (Fin n) E)).map f := by |
| 61 | unfold mappedWeightCurve LocalWeightCurves.localWeightCurve |
| 62 | rw [← hu, Matrix.map_mul, Matrix.map_mul, Matrix.diagonal_map (map_zero f)] |
| 63 | simp only [unitPower_map_unit] |
| 64 | |
| 65 | theorem mappedWeightCurve_hasDerivAt (f : E →+* A) (B : Matrix.SpecialLinearGroup (Fin n) E) |
| 66 | (a : E) (m : Fin n → ℤ) : |
| 67 | HasDerivAt (mappedWeightCurve (K := K) f B a m) ((a • integerWeightMatrix B m).map f) 0 := by |
| 68 | have hd := LocalWeightCurves.localWeightCurve_hasDerivAt (K := K) |
| 69 | ((B : Matrix (Fin n) (Fin n) E).map f) |
| 70 | (((B⁻¹ : Matrix.SpecialLinearGroup (Fin n) E) : Matrix (Fin n) (Fin n) E).map f) (f a) m |
| 71 | have he : (a • integerWeightMatrix B m).map f = f a • (integerWeightMatrix B m).map f := by |
| 72 | ext i j |
| 73 | exact map_mul f a _ |
| 74 | rw [he, map_integerWeightMatrix] |
| 75 | exact hd |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.NumberTheory.Quaternion.Arithmetic.MappedWeightCurves |