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.PadicHodge.GeometricComparison.WeilRoot |
| 2 | import Mathlib.LinearAlgebra.Charpoly.BaseChange |
| 3 | |
| 4 | /-! # Weil Determinant Norm -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.WeilDeterminantNorm.WeilDeterminant |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Uniform complex root weights determine the valuation of the determinant of the original operator. -/ |
| 11 | |
| 12 | private theorem norm_multiset_prod (s : Multiset ℂ) (r : ℝ) |
| 13 | (h : ∀ z ∈ s, ‖z‖ = r) : ‖s.prod‖ = r ^ s.card := by |
| 14 | induction s using Multiset.induction_on with |
| 15 | | empty => simp |
| 16 | | @cons z s ih => |
| 17 | rw [Multiset.prod_cons, norm_mul, h z (Multiset.mem_cons_self _ _), |
| 18 | ih (fun a ha => h a (Multiset.mem_cons_of_mem ha)), Multiset.card_cons, pow_succ] |
| 19 | exact mul_comm _ _ |
| 20 | |
| 21 | theorem norm_constant (P : Polynomial ℤ) (hP : P.Monic) (r : ℝ) |
| 22 | (h : ∀ z : ℂ, Polynomial.aeval z P = 0 → ‖z‖ = r) : |
| 23 | ‖(P.coeff 0 : ℂ)‖ = r ^ P.natDegree := by |
| 24 | let Q := P.map (Int.castRingHom ℂ) |
| 25 | have hQ : Q.Monic := hP.map _ |
| 26 | have hs : Q.Splits := IsAlgClosed.splits Q |
| 27 | have hr : ∀ z ∈ Q.roots, ‖z‖ = r := by |
| 28 | intro z hz |
| 29 | apply h z |
| 30 | simpa only [Q, Polynomial.IsRoot, Polynomial.eval_map, Polynomial.aeval_def, |
| 31 | show Int.castRingHom ℂ = algebraMap ℤ ℂ from Subsingleton.elim _ _] using |
| 32 | (Polynomial.mem_roots hQ.ne_zero).mp hz |
| 33 | have hc := congrArg norm (hs.coeff_zero_eq_prod_roots_of_monic hQ) |
| 34 | rw [norm_mul, norm_pow, norm_neg, norm_one, one_pow, one_mul, norm_multiset_prod _ r hr, |
| 35 | ← hs.natDegree_eq_card_roots] at hc |
| 36 | simpa only [Q, Polynomial.coeff_map, Int.coe_castRingHom, Polynomial.natDegree_map_eq_of_injective |
| 37 | (show Function.Injective (Int.castRingHom ℂ) from Int.cast_injective)] using hc |
| 38 | |
| 39 | theorem constant_square (q : ℕ) (P : Polynomial ℤ) (hP : P.Monic) |
| 40 | (h : ∀ z : ℂ, Polynomial.aeval z P = 0 → ‖z‖ = Real.sqrt (q : ℝ)) : |
| 41 | P.coeff 0 ^ 2 = (q : ℤ) ^ P.natDegree := by |
| 42 | have hc := norm_constant P hP (Real.sqrt (q : ℝ)) h |
| 43 | have hr : (P.coeff 0 : ℝ) ^ 2 = (q : ℝ) ^ P.natDegree := by |
| 44 | calc |
| 45 | (P.coeff 0 : ℝ) ^ 2 = ‖(P.coeff 0 : ℂ)‖ ^ 2 := by |
| 46 | rw [show (P.coeff 0 : ℂ) = ((P.coeff 0 : ℝ) : ℂ) by simp, |
| 47 | Complex.norm_real, Real.norm_eq_abs, sq_abs] |
| 48 | _ = (Real.sqrt (q : ℝ) ^ P.natDegree) ^ 2 := congrArg (fun x => x ^ 2) hc |
| 49 | _ = (q : ℝ) ^ P.natDegree := by |
| 50 | rw [← pow_mul, Nat.mul_comm, pow_mul, Real.sq_sqrt (Nat.cast_nonneg q)] |
| 51 | exact_mod_cast hr |
| 52 | |
| 53 | theorem determinant_valuation_twice (q : ℕ) [Fact q.Prime] |
| 54 | {V : Type*} [AddCommGroup V] [Module ℚ_[q] V] [FiniteDimensional ℚ_[q] V] |
| 55 | (F : Module.End ℚ_[q] V) (P : Polynomial ℤ) |
| 56 | (hP : F.charpoly = P.map (Int.castRingHom ℚ_[q])) |
| 57 | (h : ∀ z : ℂ, Polynomial.aeval z P = 0 → ‖z‖ = Real.sqrt (q : ℝ)) : |
| 58 | 2 * Padic.valuation F.det = (Module.finrank ℚ_[q] V : ℤ) := by |
| 59 | have hm : P.Monic := Polynomial.monic_of_injective |
| 60 | (show Function.Injective (Int.castRingHom ℚ_[q]) from Int.cast_injective) |
| 61 | (hP ▸ F.charpoly_monic) |
| 62 | have hn : P.natDegree = Module.finrank ℚ_[q] V := by |
| 63 | rw [← F.charpoly_natDegree, hP, Polynomial.natDegree_map_eq_of_injective |
| 64 | (show Function.Injective (Int.castRingHom ℚ_[q]) from Int.cast_injective)] |
| 65 | have hc : (P.coeff 0 : ℚ_[q]) ^ 2 = (q : ℚ_[q]) ^ P.natDegree := by |
| 66 | exact_mod_cast constant_square q P hm h |
| 67 | have hd : F.det ^ 2 = (q : ℚ_[q]) ^ P.natDegree := by |
| 68 | rw [LinearMap.det_eq_sign_charpoly_coeff, hP, Polynomial.coeff_map, mul_pow] |
| 69 | have hs : ((-1 : ℚ_[q]) ^ Module.finrank ℚ_[q] V) ^ 2 = 1 := by |
| 70 | rw [← pow_mul, Nat.mul_comm, pow_mul, neg_one_sq, one_pow] |
| 71 | rw [hs, one_mul] |
| 72 | exact hc |
| 73 | have hv := congrArg Padic.valuation hd |
| 74 | simpa only [Padic.valuation_pow, Padic.valuation_p, mul_one, hn, Nat.cast_ofNat] using hv |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.GeometricComparison.WeilDeterminantNorm.WeilDeterminant |