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.Valuation |
| 2 | |
| 3 | /-! # Newton -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.Newton.CM.ExtremeSlopesAdapter |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The determinant valuation of a coefficient summand follows from its |
| 10 | Frobenius slopes, including the restriction-of-scalars degree factor. -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | variable (q : ℕ) [Fact q.Prime] |
| 15 | |
| 16 | lemma valuation_multiset_prod_of_constant |
| 17 | (s : Multiset (AlgebraicClosure ℚ_[q])) (r : ℚ) |
| 18 | (hs : ∀ x ∈ s, x ≠ 0 ∧ Valuation.CM.ExtremeSlopesAdapter.algebraicValuation q x = r) : |
| 19 | Valuation.CM.ExtremeSlopesAdapter.algebraicValuation q s.prod = (s.card : ℚ) * r := by |
| 20 | induction s using Multiset.induction_on with |
| 21 | | empty => simpa using Valuation.CM.ExtremeSlopesAdapter.algebraicValuation_algebraMap q 1 |
| 22 | | @cons x s ih => |
| 23 | have hx := hs x (Multiset.mem_cons_self x s) |
| 24 | have hs' : ∀ y ∈ s, y ≠ 0 ∧ Valuation.CM.ExtremeSlopesAdapter.algebraicValuation q y = r := |
| 25 | fun y hy => hs y (Multiset.mem_cons_of_mem hy) |
| 26 | rw [Multiset.prod_cons, |
| 27 | Valuation.CM.ExtremeSlopesAdapter.algebraicValuation_mul q x s.prod hx.1 |
| 28 | (Multiset.prod_ne_zero (fun hz => (hs' 0 hz).1 rfl)), |
| 29 | hx.2, ih hs', Multiset.card_cons, Nat.cast_add, Nat.cast_one] |
| 30 | ring |
| 31 | |
| 32 | /-- The determinant valuation is the sum of Frobenius slopes, with multiplicity. -/ |
| 33 | theorem valuation_det_of_constant_slope |
| 34 | {V : Type*} [AddCommGroup V] [Module (AlgebraicClosure ℚ_[q]) V] |
| 35 | [FiniteDimensional (AlgebraicClosure ℚ_[q]) V] |
| 36 | (φ : Module.End (AlgebraicClosure ℚ_[q]) V) (r : ℚ) |
| 37 | (hslopes : ∀ x, φ.HasEigenvalue x → |
| 38 | Valuation.CM.ExtremeSlopesAdapter.canonicalAddValuation q x = (r : WithTop ℚ)) : |
| 39 | Valuation.CM.ExtremeSlopesAdapter.algebraicValuation q φ.det = |
| 40 | (Module.finrank (AlgebraicClosure ℚ_[q]) V : ℚ) * r := by |
| 41 | have hs := IsAlgClosed.splits φ.charpoly |
| 42 | rw [Module.End.det_eq_prod_roots_charpoly_of_splits hs] |
| 43 | have hroot : ∀ x ∈ φ.charpoly.roots, |
| 44 | x ≠ 0 ∧ Valuation.CM.ExtremeSlopesAdapter.algebraicValuation q x = r := by |
| 45 | intro x hx |
| 46 | have he : φ.HasEigenvalue x := |
| 47 | (Module.End.hasEigenvalue_iff_isRoot_charpoly φ x).mpr |
| 48 | ((Polynomial.mem_roots φ.charpoly_monic.ne_zero).mp hx) |
| 49 | have hv := hslopes x he |
| 50 | have hx0 : x ≠ 0 := (Valuation.CM.ExtremeSlopesAdapter.canonicalAddValuation q).ne_top_iff.mp (by rw [hv]; simp) |
| 51 | refine ⟨hx0, ?_⟩ |
| 52 | rw [Valuation.CM.ExtremeSlopesAdapter.canonicalAddValuation_apply q x hx0] at hv |
| 53 | exact WithTop.coe_inj.mp hv |
| 54 | rw [valuation_multiset_prod_of_constant q _ r hroot, |
| 55 | ← hs.natDegree_eq_card_roots, φ.charpoly_natDegree] |
| 56 | |
| 57 | /-- The rational Newton number used in GeometricComparison has the required coefficient |
| 58 | multiplicity. No semisimplicity of Frobenius is assumed. -/ |
| 59 | theorem rational_newton_of_constant_slope |
| 60 | (L : IntermediateField ℚ_[q] (AlgebraicClosure ℚ_[q])) |
| 61 | [FiniteDimensional ℚ_[q] L] |
| 62 | {V : Type*} [AddCommGroup V] [Module L V] [FiniteDimensional L V] |
| 63 | [Module ℚ_[q] V] [IsScalarTower ℚ_[q] L V] |
| 64 | (φ : V ≃ₗ[L] V) (r : ℚ) |
| 65 | (hslopes : ∀ x, Module.End.HasEigenvalue (φ.toLinearMap.baseChange (AlgebraicClosure ℚ_[q])) x → |
| 66 | Valuation.CM.ExtremeSlopesAdapter.canonicalAddValuation q x = (r : WithTop ℚ)) : |
| 67 | (Padic.valuation (p := q) (LinearMap.det (φ.restrictScalars ℚ_[q]).toLinearMap) : ℚ) = |
| 68 | (Module.finrank ℚ_[q] L : ℚ) * (Module.finrank L V : ℚ) * r := by |
| 69 | have hdet : φ.toLinearMap.det ≠ 0 := by |
| 70 | simpa only [LinearEquiv.coe_det] using Units.ne_zero (LinearEquiv.det φ) |
| 71 | change (Padic.valuation (p := q) (LinearMap.det (φ.toLinearMap.restrictScalars ℚ_[q])) : ℚ) = _ |
| 72 | rw [LinearMap.det_restrictScalars, Valuation.CM.ExtremeSlopesAdapter.valuation_norm q L.val _ hdet] |
| 73 | have h := valuation_det_of_constant_slope q |
| 74 | (φ.toLinearMap.baseChange (AlgebraicClosure ℚ_[q])) r hslopes |
| 75 | rw [LinearMap.det_baseChange, Module.finrank_baseChange] at h |
| 76 | rw [show Valuation.CM.ExtremeSlopesAdapter.algebraicValuation q (L.val φ.toLinearMap.det) = |
| 77 | (Module.finrank L V : ℚ) * r from h] |
| 78 | ring |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.NumberTheory.PadicHodge.Newton.CM.ExtremeSlopesAdapter |