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.CocharacterWeightMatrices |
| 2 | |
| 3 | /-! # Anisotropic Cocharacters -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.AnisotropicCocharacters |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! An anisotropic homogeneous quadratic invariant rules out every |
| 10 | nonzero cocharacter weight in the actual faithful representation. -/ |
| 11 | |
| 12 | theorem double_weight_two_ne_one {F : Type} [Field F] [CharZero F] |
| 13 | (ν : F →+* ℝ) (z : ℤ) (hz : z ≠ 0) : ((2 : F) ^ z) ^ 2 ≠ 1 := by |
| 14 | intro h |
| 15 | have he := congrArg ν h |
| 16 | simp only [map_pow, map_zpow₀, map_ofNat, map_one] at he |
| 17 | have hp : (2 : ℝ) ^ (z * 2) = 1 := by |
| 18 | simpa only [zpow_mul, zpow_ofNat] using he |
| 19 | have hz0 := (zpow_eq_one_iff_right₀ (by norm_num : (0 : ℝ) ≤ 2) (by norm_num : (2 : ℝ) ≠ 1)).mp hp |
| 20 | exact hz (by omega) |
| 21 | |
| 22 | variable {F K : Type} [Field F] [CharZero F] [Field K] {n : ℕ} |
| 23 | (G : NumberTheory.ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (ν : F →+* ℝ) (ι : F →+* K) |
| 24 | (q : (Fin n → F) → K) |
| 25 | (hq : ∀ a v, q (a • v) = ι a ^ 2 * q v) |
| 26 | (han : ∀ v, q v = 0 → v = 0) |
| 27 | (hinv : ∀ (g : G.RationalPoints) v, q (Matrix.SpecialLinearGroup.toLin' g.val v) = q v) |
| 28 | |
| 29 | include ν hq han hinv in |
| 30 | theorem cocharacter_nonzero_weight_vanishes (c : G.Cocharacter) (z : ℤ) (hz : z ≠ 0) : |
| 31 | NumberTheory.Quaternion.Arithmetic.CocharacterWeightMatrices.cocharacterWeightMatrix c z = 0 := by |
| 32 | let t : Fˣ := Units.mk0 2 (by norm_num) |
| 33 | let a : F := (t ^ z).val |
| 34 | have ha : ι a ^ 2 ≠ 1 := by |
| 35 | intro h |
| 36 | have h' : a ^ 2 = 1 := ι.injective (by simpa only [map_pow, map_one] using h) |
| 37 | apply double_weight_two_ne_one ν z hz |
| 38 | simpa only [a, Units.val_zpow_eq_zpow_val, t, Units.val_mk0] using h' |
| 39 | have hw := NumberTheory.Quaternion.Arithmetic.CocharacterWeightMatrices.cocharacter_weight_matrix_action c t z |
| 40 | have hv (j : Fin n) : (fun i => NumberTheory.Quaternion.Arithmetic.CocharacterWeightMatrices.cocharacterWeightMatrix c z i j) = 0 := by |
| 41 | let v : Fin n → F := fun i => NumberTheory.Quaternion.Arithmetic.CocharacterWeightMatrices.cocharacterWeightMatrix c z i j |
| 42 | have he : Matrix.SpecialLinearGroup.toLin' (c.hom F (RingHom.id F) t).val v = a • v := by |
| 43 | funext i |
| 44 | exact congrArg (fun M : Matrix (Fin n) (Fin n) F => M i j) hw |
| 45 | have hi := hinv (c.hom F (RingHom.id F) t) v |
| 46 | rw [he, hq] at hi |
| 47 | apply han |
| 48 | by_contra hv0 |
| 49 | exact ha ((mul_eq_right₀ hv0).mp hi) |
| 50 | apply Matrix.ext |
| 51 | intro i j |
| 52 | exact congrFun (hv j) i |
| 53 | |
| 54 | include ν hq han hinv in |
| 55 | theorem cocharacter_trivial_of_anisotropic_invariant (c : G.Cocharacter) |
| 56 | (L : Type) [Field L] (φ : F →+* L) : c.hom L φ = 1 := by |
| 57 | have hc (i j : Fin n) : NumberTheory.Quaternion.Arithmetic.CocharacterWeightMatrices.cocharacterLaurentMatrix c i j = |
| 58 | LaurentPolynomial.C ((NumberTheory.Quaternion.Arithmetic.CocharacterWeightMatrices.cocharacterLaurentMatrix c i j).coeff 0) := by |
| 59 | apply LaurentPolynomial.ext |
| 60 | intro z |
| 61 | by_cases hz : z = 0 |
| 62 | · subst z |
| 63 | simp |
| 64 | · have hw := congrArg (fun M : Matrix (Fin n) (Fin n) F => M i j) |
| 65 | (cocharacter_nonzero_weight_vanishes G ν ι q hq han hinv c z hz) |
| 66 | change (NumberTheory.Quaternion.Arithmetic.CocharacterWeightMatrices.cocharacterLaurentMatrix c i j).coeff z = 0 at hw |
| 67 | simpa only [LaurentPolynomial.C_apply, ite_eq_right hz] using hw |
| 68 | apply MonoidHom.ext |
| 69 | intro t |
| 70 | apply Subtype.ext |
| 71 | apply Matrix.SpecialLinearGroup.ext |
| 72 | intro i j |
| 73 | calc |
| 74 | (c.hom L φ t).val i j = LaurentPolynomial.eval₂ φ t (NumberTheory.Quaternion.Arithmetic.CocharacterWeightMatrices.cocharacterLaurentMatrix c i j) := |
| 75 | NumberTheory.ArithmeticGroups.Lattices.Compact.Place.Construction.cocharacter_entry_eq_laurent G c φ t i j |
| 76 | _ = LaurentPolynomial.eval₂ φ 1 (NumberTheory.Quaternion.Arithmetic.CocharacterWeightMatrices.cocharacterLaurentMatrix c i j) := by |
| 77 | rw [hc, LaurentPolynomial.eval₂_C, LaurentPolynomial.eval₂_C] |
| 78 | _ = (c.hom L φ 1).val i j := (NumberTheory.ArithmeticGroups.Lattices.Compact.Place.Construction.cocharacter_entry_eq_laurent G c φ 1 i j).symm |
| 79 | _ = _ := by rw [map_one]; rfl |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.AnisotropicCocharacters |