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.RepresentationTheory.Weil.Local.NonarchimedeanTestSpace |
| 2 | import Mathlib.NumberTheory.Padics.ProperSpace |
| 3 | |
| 4 | /-! # Local Unit Test -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.LocalUnitTest |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The q-adic unit-ball test is the unique line fixed by integral |
| 11 | Heisenberg translations and modulations for the conductor-zero character. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | open OAI.RepresentationTheory.Weil.Local.NonarchimedeanTestSpace.Construction |
| 15 | |
| 16 | variable (q : ℕ) [Fact q.Prime] (n : ℕ) |
| 17 | |
| 18 | def padicUnitIndicator (x : Fin n → ℚ_[q]) : ℂ := |
| 19 | if ∀ i, ‖x i‖ ≤ 1 then 1 else 0 |
| 20 | |
| 21 | theorem padicUnitIndicator_of_integral (x : Fin n → ℚ_[q]) (hx : ∀ i, ‖x i‖ ≤ 1) : |
| 22 | padicUnitIndicator q n x = 1 := by |
| 23 | rw [padicUnitIndicator, ite_eq_left hx] |
| 24 | |
| 25 | theorem padicUnitIndicator_of_not_integral (x : Fin n → ℚ_[q]) (hx : ¬ ∀ i, ‖x i‖ ≤ 1) : |
| 26 | padicUnitIndicator q n x = 0 := by |
| 27 | rw [padicUnitIndicator, ite_eq_right hx] |
| 28 | |
| 29 | theorem padicUnitIndicator_closedBall : |
| 30 | padicUnitIndicator q n = |
| 31 | (Metric.closedBall (0 : Fin n → ℚ_[q]) 1).indicator (fun _ => (1 : ℂ)) := by |
| 32 | funext x |
| 33 | have hm : x ∈ Metric.closedBall (0 : Fin n → ℚ_[q]) 1 ↔ ∀ i, ‖x i‖ ≤ 1 := by |
| 34 | simp only [Metric.mem_closedBall, dist_zero_right, pi_norm_le_iff_of_nonneg zero_le_one] |
| 35 | by_cases hx : ∀ i, ‖x i‖ ≤ 1 |
| 36 | · rw [Set.indicator_of_mem (hm.mpr hx)] |
| 37 | simp only [padicUnitIndicator, ite_eq_left hx] |
| 38 | · rw [Set.indicator_of_notMem (fun h => hx (hm.mp h))] |
| 39 | simp only [padicUnitIndicator, ite_eq_right hx] |
| 40 | |
| 41 | def padicUnitTest : RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.schwartzBruhat ℚ_[q] n := by |
| 42 | refine ⟨padicUnitIndicator q n, RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.compact_locallyConstant_mem ?_ ?_⟩ |
| 43 | · rw [padicUnitIndicator_closedBall] |
| 44 | exact (LocallyConstant.charFn ℂ |
| 45 | (IsUltrametricDist.isClopen_closedBall (0 : Fin n → ℚ_[q]) one_ne_zero)).isLocallyConstant |
| 46 | · rw [padicUnitIndicator_closedBall] |
| 47 | apply HasCompactSupport.intro (isCompact_closedBall (0 : Fin n → ℚ_[q]) 1) |
| 48 | intro x hx |
| 49 | exact Set.indicator_of_notMem hx _ |
| 50 | |
| 51 | theorem padicUnitTest_zero : (padicUnitTest q n).val 0 = 1 := by |
| 52 | simp [padicUnitTest, padicUnitIndicator] |
| 53 | |
| 54 | theorem padicUnitIndicator_heisenberg |
| 55 | (hq : 2 < q) (ψ : AddChar ℚ_[q] ℂ) (hψ : ∀ x, ψ x = 1 ↔ ‖x‖ ≤ 1) |
| 56 | (v : RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.PhaseSpace ℚ_[q] n) (hv : ∀ i, ‖v i‖ ≤ 1) : |
| 57 | RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.heisenbergFunction ψ v (padicUnitIndicator q n) = padicUnitIndicator q n := by |
| 58 | have htwo : (2 : ℚ_[q])⁻¹ ∈ PadicInt.subring q := by |
| 59 | have hn : ‖(2 : ℚ_[q])‖ = 1 := Padic.norm_natCast_eq_one_iff.mpr |
| 60 | ((Fact.out : q.Prime).coprime_iff_not_dvd.mpr (Nat.not_dvd_of_pos_of_lt (by decide) hq)) |
| 61 | change ‖(2 : ℚ_[q])⁻¹‖ ≤ 1 |
| 62 | rw [norm_inv, hn, inv_one] |
| 63 | funext x |
| 64 | by_cases hx : ∀ i, ‖x i‖ ≤ 1 |
| 65 | · have hs : ∀ i, ‖x i - v (.inl i)‖ ≤ 1 := |
| 66 | fun i => (PadicInt.subring q).sub_mem (hx i) (hv (.inl i)) |
| 67 | have hp : ψ (∑ i, v (.inr i) * (x i - v (.inl i) / 2)) = 1 := by |
| 68 | apply (hψ _).mpr |
| 69 | apply (PadicInt.subring q).sum_mem |
| 70 | intro i _ |
| 71 | apply (PadicInt.subring q).mul_mem (hv (.inr i)) |
| 72 | apply (PadicInt.subring q).sub_mem (hx i) |
| 73 | exact (PadicInt.subring q).mul_mem (hv (.inl i)) htwo |
| 74 | simp only [RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.heisenbergFunction, hp, padicUnitIndicator, ite_eq_left hs, ite_eq_left hx, one_mul] |
| 75 | · have hs : ¬ ∀ i, ‖x i - v (.inl i)‖ ≤ 1 := by |
| 76 | intro h |
| 77 | apply hx |
| 78 | intro i |
| 79 | have hi := (PadicInt.subring q).add_mem (h i) (hv (.inl i)) |
| 80 | simpa only [sub_add_cancel, PadicInt.mem_subring_iff] using hi |
| 81 | simp only [RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.heisenbergFunction, padicUnitIndicator, ite_eq_right hs, ite_eq_right hx, mul_zero] |
| 82 | |
| 83 | theorem integral_heisenberg_fixed_scalar |
| 84 | (ψ : AddChar ℚ_[q] ℂ) (hψ : ∀ x, ψ x = 1 ↔ ‖x‖ ≤ 1) |
| 85 | (f : (Fin n → ℚ_[q]) → ℂ) |
| 86 | (hf : ∀ v : RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.PhaseSpace ℚ_[q] n, (∀ i, ‖v i‖ ≤ 1) → RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.heisenbergFunction ψ v f = f) : |
| 87 | ∀ x, f x = f 0 * padicUnitIndicator q n x := by |
| 88 | intro x |
| 89 | have hψ0 : ψ (0 : ℚ_[q]) = 1 := (hψ 0).mpr (by simp) |
| 90 | by_cases hx : ∀ i, ‖x i‖ ≤ 1 |
| 91 | · have hv : ∀ i, ‖(Sum.elim x 0 : RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.PhaseSpace ℚ_[q] n) i‖ ≤ 1 := by |
| 92 | intro i |
| 93 | cases i with |
| 94 | | inl i => exact hx i |
| 95 | | inr i => simp |
| 96 | have h := congrFun (hf (Sum.elim x 0) hv) x |
| 97 | simp only [RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.heisenbergFunction, Sum.elim_inr, Pi.zero_apply, zero_mul, |
| 98 | Finset.sum_const_zero, hψ0, Sum.elim_inl, sub_self, one_mul] at h |
| 99 | change f 0 = f x at h |
| 100 | rw [padicUnitIndicator, ite_eq_left hx, mul_one] |
| 101 | exact h.symm |
| 102 | · obtain ⟨i, hi⟩ := not_forall.mp hx |
| 103 | have hv : ∀ j, ‖(Sum.elim 0 (Pi.single i 1) : RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.PhaseSpace ℚ_[q] n) j‖ ≤ 1 := by |
| 104 | intro j |
| 105 | cases j with |
| 106 | | inl j => simp |
| 107 | | inr j => simp only [Sum.elim_inr, Pi.single_apply]; split_ifs <;> simp |
| 108 | have h := congrFun (hf (Sum.elim 0 (Pi.single i 1)) hv) x |
| 109 | have hp : ψ (x i) ≠ 1 := fun h => hi ((hψ _).mp h) |
| 110 | have hm : ψ (x i) * f x = f x := by |
| 111 | simpa [RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.heisenbergFunction, Pi.single_apply] using h |
| 112 | have hz : (ψ (x i) - 1) * f x = 0 := by |
| 113 | rw [sub_mul, one_mul, hm, sub_self] |
| 114 | have hf0 : f x = 0 := (mul_eq_zero.mp hz).resolve_left (sub_ne_zero.mpr hp) |
| 115 | simp only [hf0, padicUnitIndicator, ite_eq_right hx, mul_zero] |
| 116 | |
| 117 | end |
| 118 | |
| 119 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.LocalUnitTest |