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.Theta.IntegralAdeles |
| 2 | import Mathlib.Data.Nat.ChineseRemainder |
| 3 | |
| 4 | /-! # Poisson Automorphy Finite Fourier -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.PoissonAutomorphyFiniteFourier.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Simultaneous integral approximation in distinct p-adic integer rings. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | instance primeFact (p : Nat.Primes) : Fact p.val.Prime := ⟨p.property⟩ |
| 17 | |
| 18 | variable {I : Type*} (p : I → Nat.Primes) |
| 19 | |
| 20 | abbrev PadicFamily := ∀ i : I, PadicInt (p i).val |
| 21 | |
| 22 | theorem finite_padic_approximation (hp : Function.Injective p) |
| 23 | (s : Finset I) (a : PadicFamily p) (k : I → ℕ) : |
| 24 | ∃ m : ℤ, ∀ i ∈ s, |
| 25 | ‖(m : PadicInt (p i).val) - a i‖ ≤ ((p i).val : ℝ) ^ (-(k i : ℤ)) := by |
| 26 | have hcop : Set.Pairwise (s : Set I) |
| 27 | (Function.onFun Nat.Coprime (fun i => (p i).val ^ k i)) := by |
| 28 | intro i _ j _ hij |
| 29 | apply Nat.coprime_pow_primes _ _ (p i).property (p j).property |
| 30 | intro heq |
| 31 | exact hij (hp (Subtype.ext heq)) |
| 32 | let m := Nat.chineseRemainderOfFinset |
| 33 | (fun i => (a i).appr (k i)) (fun i => (p i).val ^ k i) s |
| 34 | (fun i _ => pow_ne_zero _ (p i).property.ne_zero) hcop |
| 35 | refine ⟨m.val, ?_⟩ |
| 36 | intro i hi |
| 37 | have hdiv : (((p i).val : ℤ) ^ k i) ∣ (m.val : ℤ) - ((a i).appr (k i) : ℤ) := by |
| 38 | simpa only [Nat.cast_pow] using (m.property i hi).symm.dvd |
| 39 | have h₁ : ‖(m.val : PadicInt (p i).val) - ((a i).appr (k i) : PadicInt (p i).val)‖ ≤ |
| 40 | ((p i).val : ℝ) ^ (-(k i : ℤ)) := by |
| 41 | have h := (PadicInt.norm_int_le_pow_iff_dvd (p := (p i).val)).mpr hdiv |
| 42 | simpa only [Int.cast_sub, Int.cast_natCast] using h |
| 43 | have h₂ : ‖((a i).appr (k i) : PadicInt (p i).val) - a i‖ ≤ |
| 44 | ((p i).val : ℝ) ^ (-(k i : ℤ)) := by |
| 45 | rw [norm_sub_rev, PadicInt.norm_le_pow_iff_mem_span_pow] |
| 46 | exact (a i).appr_spec (k i) |
| 47 | have h := (PadicInt.nonarchimedean |
| 48 | ((m.val : PadicInt (p i).val) - ((a i).appr (k i) : PadicInt (p i).val)) |
| 49 | (((a i).appr (k i) : PadicInt (p i).val) - a i)).trans (max_le h₁ h₂) |
| 50 | simpa only [sub_add_sub_cancel, Int.cast_natCast] using h |
| 51 | |
| 52 | theorem denseRange_integer_padicFamily (hp : Function.Injective p) : |
| 53 | DenseRange (fun m : ℤ => fun i : I => (m : PadicInt (p i).val)) := by |
| 54 | intro a |
| 55 | rw [mem_closure_iff] |
| 56 | intro U hU ha |
| 57 | obtain ⟨s, u, hu, hsub⟩ := isOpen_pi_iff.mp hU a ha |
| 58 | have hprecision : ∀ i : I, ∃ k : ℕ, i ∈ s → |
| 59 | ∀ z : PadicInt (p i).val, |
| 60 | ‖z - a i‖ ≤ ((p i).val : ℝ) ^ (-(k : ℤ)) → z ∈ u i := by |
| 61 | intro i |
| 62 | by_cases hi : i ∈ s |
| 63 | · obtain ⟨ε, hε, hball⟩ := Metric.isOpen_iff.mp (hu i hi).1 (a i) (hu i hi).2 |
| 64 | obtain ⟨k, hk⟩ := PadicInt.exists_pow_neg_lt (p i).val hε |
| 65 | refine ⟨k, fun _ z hz => hball ?_⟩ |
| 66 | rw [Metric.mem_ball, dist_eq_norm] |
| 67 | exact hz.trans_lt hk |
| 68 | · exact ⟨0, fun h => (hi h).elim⟩ |
| 69 | choose k hk using hprecision |
| 70 | obtain ⟨m, hm⟩ := finite_padic_approximation p hp s a k |
| 71 | refine ⟨(fun i => (m : PadicInt (p i).val)), hsub ?_, Set.mem_range_self m⟩ |
| 72 | intro i hi |
| 73 | exact hk i hi _ (hm i hi) |
| 74 | |
| 75 | open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum |
| 76 | |
| 77 | def localPadicHomeomorph (v : AdelicSupport.PoissonAutomorphyConstruction.FinitePlace) : |
| 78 | PadicInt (Rat.HeightOneSpectrum.primesEquiv v).val ≃ₜ v.adicCompletionIntegers ℚ := by |
| 79 | let : Algebra ℤ (v.adicCompletionIntegers ℚ) := Ring.toIntAlgebra _ |
| 80 | exact (Rat.HeightOneSpectrum.adicCompletionIntegers.padicIntEquiv v).toHomeomorph.symm |
| 81 | |
| 82 | theorem localPadicHomeomorph_intCast (v : AdelicSupport.PoissonAutomorphyConstruction.FinitePlace) (n : ℤ) : |
| 83 | localPadicHomeomorph v n = n := by |
| 84 | let : Algebra ℤ (v.adicCompletionIntegers ℚ) := Ring.toIntAlgebra _ |
| 85 | exact map_intCast (Rat.HeightOneSpectrum.adicCompletionIntegers.padicIntEquiv v).symm n |
| 86 | |
| 87 | def integralPadicHomeomorph : |
| 88 | PadicFamily (Rat.HeightOneSpectrum.primesEquiv : AdelicSupport.PoissonAutomorphyConstruction.FinitePlace ≃ Nat.Primes) ≃ₜ AdelicSupport.PoissonAutomorphyConstruction.integralAdele := |
| 89 | (Homeomorph.piCongrRight localPadicHomeomorph).trans IntegralAdeles.PoissonAutomorphyConstruction.integralProductHomeomorph |
| 90 | |
| 91 | theorem integralPadicHomeomorph_intCast (n : ℤ) : |
| 92 | integralPadicHomeomorph (fun v => (n : PadicInt |
| 93 | (Rat.HeightOneSpectrum.primesEquiv v).val)) = (n : AdelicSupport.PoissonAutomorphyConstruction.integralAdele) := by |
| 94 | apply Subtype.ext |
| 95 | apply Subtype.ext |
| 96 | funext v |
| 97 | change (localPadicHomeomorph v n).val = _ |
| 98 | rw [localPadicHomeomorph_intCast] |
| 99 | rfl |
| 100 | |
| 101 | theorem denseRange_integer_integralAdele : |
| 102 | DenseRange (fun n : ℤ => (n : AdelicSupport.PoissonAutomorphyConstruction.integralAdele)) := by |
| 103 | have h := integralPadicHomeomorph.surjective.denseRange.comp |
| 104 | (denseRange_integer_padicFamily Rat.HeightOneSpectrum.primesEquiv |
| 105 | Rat.HeightOneSpectrum.primesEquiv.injective) integralPadicHomeomorph.continuous |
| 106 | simpa only [Function.comp_def, integralPadicHomeomorph_intCast] using h |
| 107 | |
| 108 | theorem denseRange_rational_finiteAdele : DenseRange (algebraMap ℚ PoissonAutomorphyNormalizationData.AQf) := by |
| 109 | let S := (algebraMap ℚ PoissonAutomorphyNormalizationData.AQf).range |
| 110 | have hO : ∀ a : AdelicSupport.PoissonAutomorphyConstruction.integralAdele, a.val ∈ S.topologicalClosure := by |
| 111 | intro a |
| 112 | refine denseRange_integer_integralAdele.induction_on |
| 113 | (p := fun a : AdelicSupport.PoissonAutomorphyConstruction.integralAdele => a.val ∈ S.topologicalClosure) a |
| 114 | (S.isClosed_topologicalClosure.preimage continuous_subtype_val) ?_ |
| 115 | intro n |
| 116 | apply S.le_topologicalClosure |
| 117 | exact ⟨n, by simp⟩ |
| 118 | intro a |
| 119 | obtain ⟨n, hn, hna⟩ := AdelicSupport.PoissonAutomorphyConstruction.exists_integer_multiple_integral a |
| 120 | have hid : algebraMap ℚ PoissonAutomorphyNormalizationData.AQf ((n : ℚ)⁻¹) * (n : PoissonAutomorphyNormalizationData.AQf) = 1 := by |
| 121 | rw [← map_intCast (algebraMap ℚ PoissonAutomorphyNormalizationData.AQf) n, ← map_mul, |
| 122 | inv_mul_cancel₀ (by exact_mod_cast hn), map_one] |
| 123 | have ha : a ∈ S.topologicalClosure := by |
| 124 | have h := S.topologicalClosure.mul_mem |
| 125 | (S.le_topologicalClosure (Set.mem_range_self ((n : ℚ)⁻¹))) |
| 126 | (hO ⟨(n : PoissonAutomorphyNormalizationData.AQf) * a, hna⟩) |
| 127 | simpa only [← mul_assoc, hid, one_mul] using h |
| 128 | exact ha |
| 129 | |
| 130 | end |
| 131 | |
| 132 | section |
| 133 | |
| 134 | /-! The specified adelic character has conductor equal to the integral finite adeles. -/ |
| 135 | |
| 136 | open scoped Classical |
| 137 | |
| 138 | theorem standardRealCharacter_intCast (n : ℤ) : |
| 139 | PoissonAutomorphyNormalizationData.standardRealCharacter n = 1 := by |
| 140 | rw [PoissonAutomorphyNormalizationData.standardRealCharacter_apply] |
| 141 | simpa only [Complex.ofReal_mul, Complex.ofReal_ofNat, Complex.ofReal_intCast, |
| 142 | mul_assoc, mul_comm, mul_left_comm] using Complex.exp_int_mul_two_pi_mul_I n |
| 143 | |
| 144 | theorem standardRealCharacter_eq_one_iff (t : ℝ) : |
| 145 | PoissonAutomorphyNormalizationData.standardRealCharacter t = 1 ↔ ∃ n : ℤ, (n : ℝ) = t := by |
| 146 | constructor |
| 147 | · intro h |
| 148 | obtain ⟨n, hn⟩ := Complex.exp_eq_one_iff.mp h |
| 149 | refine ⟨n, ?_⟩ |
| 150 | have hi := congrArg Complex.im hn |
| 151 | simp [Complex.mul_im] at hi |
| 152 | have ht : (2 * Real.pi) * t = (2 * Real.pi) * (n : ℝ) := by |
| 153 | convert hi using 1 |
| 154 | ring |
| 155 | exact (mul_left_cancel₀ (by positivity) ht).symm |
| 156 | · rintro ⟨n, rfl⟩ |
| 157 | exact standardRealCharacter_intCast n |
| 158 | |
| 159 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 160 | {MpR MpF MpA : Type*} [Group MpR] [Group MpF] [Group MpA] |
| 161 | (D : PoissonAutomorphyNormalizationData.WeilData ι MpR MpF MpA) |
| 162 | |
| 163 | theorem finiteCharacter_continuous : Continuous D.finiteCharacter := by |
| 164 | have h : (D.finiteCharacter : PoissonAutomorphyNormalizationData.AQf → ℂ) = fun a => D.character (0, a) := |
| 165 | funext D.finiteCharacter_eq |
| 166 | rw [h] |
| 167 | exact D.character_continuous.comp (continuous_const.prodMk continuous_id) |
| 168 | |
| 169 | theorem character_split (t : ℝ) (a : PoissonAutomorphyNormalizationData.AQf) : |
| 170 | D.character (t, a) = PoissonAutomorphyNormalizationData.standardRealCharacter t * D.finiteCharacter a := by |
| 171 | rw [D.finiteCharacter_eq, ← D.character_real, ← AddChar.map_add_eq_mul] |
| 172 | simp |
| 173 | |
| 174 | theorem character_rational_product (q : ℚ) : |
| 175 | PoissonAutomorphyNormalizationData.standardRealCharacter q * D.finiteCharacter (algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q) = 1 := by |
| 176 | rw [← character_split] |
| 177 | exact D.character_rational q |
| 178 | |
| 179 | theorem finiteCharacter_intCast (n : ℤ) : D.finiteCharacter (n : PoissonAutomorphyNormalizationData.AQf) = 1 := by |
| 180 | have h := character_rational_product D (n : ℚ) |
| 181 | simpa only [Rat.cast_intCast, map_intCast, standardRealCharacter_intCast, one_mul] using h |
| 182 | |
| 183 | theorem finiteCharacter_integral (a : PoissonAutomorphyNormalizationData.AQf) (ha : a ∈ AdelicSupport.PoissonAutomorphyConstruction.integralAdele) : |
| 184 | D.finiteCharacter a = 1 := by |
| 185 | have h := denseRange_integer_integralAdele.equalizer |
| 186 | ((finiteCharacter_continuous D).comp continuous_subtype_val) |
| 187 | (continuous_const : Continuous (fun _ : AdelicSupport.PoissonAutomorphyConstruction.integralAdele => (1 : ℂ))) |
| 188 | (funext fun n => finiteCharacter_intCast D n) |
| 189 | exact congrFun h ⟨a, ha⟩ |
| 190 | |
| 191 | theorem finiteAdele_rational_representative (a : PoissonAutomorphyNormalizationData.AQf) : |
| 192 | ∃ q : ℚ, a - algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q ∈ AdelicSupport.PoissonAutomorphyConstruction.integralAdele := by |
| 193 | obtain ⟨q, hq⟩ := denseRange_rational_finiteAdele.exists_mem_open |
| 194 | (s := {b : PoissonAutomorphyNormalizationData.AQf | a - b ∈ AdelicSupport.PoissonAutomorphyConstruction.integralAdele}) |
| 195 | (AdelicSupport.PoissonAutomorphyConstruction.isOpen_integralAdele.preimage (continuous_const.sub continuous_id)) |
| 196 | ⟨a, by simp⟩ |
| 197 | exact ⟨q, hq⟩ |
| 198 | |
| 199 | theorem finiteCharacter_eq_one_iff (a : PoissonAutomorphyNormalizationData.AQf) : |
| 200 | D.finiteCharacter a = 1 ↔ a ∈ AdelicSupport.PoissonAutomorphyConstruction.integralAdele := by |
| 201 | refine ⟨fun ha => ?_, finiteCharacter_integral D a⟩ |
| 202 | obtain ⟨q, hq⟩ := finiteAdele_rational_representative a |
| 203 | have hqchar : D.finiteCharacter (algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q) = 1 := by |
| 204 | have h := D.finiteCharacter.map_add_eq_mul (a - algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q) |
| 205 | (algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q) |
| 206 | rw [sub_add_cancel, ha, finiteCharacter_integral D _ hq, one_mul] at h |
| 207 | exact h.symm |
| 208 | have hr := character_rational_product D q |
| 209 | rw [hqchar, mul_one] at hr |
| 210 | obtain ⟨n, hn⟩ := (standardRealCharacter_eq_one_iff (q : ℝ)).mp hr |
| 211 | have hnq : (n : ℚ) = q := by exact_mod_cast hn |
| 212 | have hqi : algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q ∈ AdelicSupport.PoissonAutomorphyConstruction.integralAdele := by |
| 213 | rw [← hnq, map_intCast] |
| 214 | exact intCast_mem AdelicSupport.PoissonAutomorphyConstruction.integralAdele n |
| 215 | simpa only [sub_add_cancel] using AdelicSupport.PoissonAutomorphyConstruction.integralAdele.add_mem hq hqi |
| 216 | |
| 217 | end |
| 218 | |
| 219 | section |
| 220 | |
| 221 | /-! The self-dual finite Haar measure gives the integral lattice volume one. -/ |
| 222 | |
| 223 | open scoped Classical |
| 224 | open _root_.MeasureTheory |
| 225 | |
| 226 | instance localCompletionT2Space (v : AdelicSupport.PoissonAutomorphyConstruction.FinitePlace) : T2Space (v.adicCompletion ℚ) := |
| 227 | (Rat.HeightOneSpectrum.adicCompletion.padicEquiv v).toHomeomorph.isEmbedding.t2Space |
| 228 | |
| 229 | instance finiteAdeleT2Space : T2Space PoissonAutomorphyNormalizationData.AQf := by |
| 230 | exact T2Space.of_injective_continuous |
| 231 | (f := fun a : PoissonAutomorphyNormalizationData.AQf => fun v : AdelicSupport.PoissonAutomorphyConstruction.FinitePlace => a v) |
| 232 | DFunLike.coe_injective RestrictedProduct.continuous_coe |
| 233 | |
| 234 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 235 | |
| 236 | def integralVectors : Subring (ι → PoissonAutomorphyNormalizationData.AQf) where |
| 237 | carrier := {x | ∀ i, x i ∈ AdelicSupport.PoissonAutomorphyConstruction.integralAdele} |
| 238 | zero_mem' := fun _ => AdelicSupport.PoissonAutomorphyConstruction.integralAdele.zero_mem |
| 239 | one_mem' := fun _ => AdelicSupport.PoissonAutomorphyConstruction.integralAdele.one_mem |
| 240 | add_mem' hx hy i := AdelicSupport.PoissonAutomorphyConstruction.integralAdele.add_mem (hx i) (hy i) |
| 241 | mul_mem' hx hy i := AdelicSupport.PoissonAutomorphyConstruction.integralAdele.mul_mem (hx i) (hy i) |
| 242 | neg_mem' hx i := AdelicSupport.PoissonAutomorphyConstruction.integralAdele.neg_mem (hx i) |
| 243 | |
| 244 | omit [Fintype ι] [DecidableEq ι] in |
| 245 | theorem integralVectors_isCompact : IsCompact (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)) := |
| 246 | isCompact_pi_infinite (fun _ => IntegralAdeles.PoissonAutomorphyConstruction.isCompact_integralAdele) |
| 247 | |
| 248 | omit [DecidableEq ι] in |
| 249 | theorem integralVectors_isOpen : IsOpen (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)) := by |
| 250 | change IsOpen {x : ι → PoissonAutomorphyNormalizationData.AQf | ∀ i, x i ∈ AdelicSupport.PoissonAutomorphyConstruction.integralAdele} |
| 251 | convert isOpen_iInter_of_finite |
| 252 | (fun i : ι => AdelicSupport.PoissonAutomorphyConstruction.isOpen_integralAdele.preimage (continuous_apply i)) using 1 |
| 253 | ext x |
| 254 | simp |
| 255 | |
| 256 | omit [DecidableEq ι] in |
| 257 | theorem integralVectors_isClopen : IsClopen (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)) := |
| 258 | ⟨integralVectors_isCompact.isClosed, integralVectors_isOpen⟩ |
| 259 | |
| 260 | def integralIndicator (x : ι → PoissonAutomorphyNormalizationData.AQf) : ℂ := |
| 261 | (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)).indicator (fun _ => 1) x |
| 262 | |
| 263 | omit [Fintype ι] [DecidableEq ι] in |
| 264 | theorem integralIndicator_of_mem {x : ι → PoissonAutomorphyNormalizationData.AQf} (hx : x ∈ integralVectors) : |
| 265 | integralIndicator x = 1 := Set.indicator_of_mem hx _ |
| 266 | |
| 267 | omit [Fintype ι] [DecidableEq ι] in |
| 268 | theorem integralIndicator_of_notMem {x : ι → PoissonAutomorphyNormalizationData.AQf} (hx : x ∉ integralVectors) : |
| 269 | integralIndicator x = 0 := Set.indicator_of_notMem hx _ |
| 270 | |
| 271 | def integralTestFunction : PoissonAutomorphyNormalizationData.finiteSchwartz ι := by |
| 272 | refine ⟨integralIndicator, (PoissonAutomorphyNormalizationData.Construction.finiteSchwartz_mem_iff _).mpr ⟨?_, ?_⟩⟩ |
| 273 | · exact ((LocallyConstant.const (ι → PoissonAutomorphyNormalizationData.AQf) (1 : ℂ)).indicator |
| 274 | integralVectors_isClopen).isLocallyConstant |
| 275 | · apply integralVectors_isCompact.of_isClosed_subset isClosed_closure |
| 276 | apply closure_minimal _ integralVectors_isCompact.isClosed |
| 277 | exact Set.support_indicator_subset |
| 278 | |
| 279 | omit [Fintype ι] [DecidableEq ι] in |
| 280 | theorem integralIndicator_add {u : ι → PoissonAutomorphyNormalizationData.AQf} (hu : u ∈ integralVectors) (y : ι → PoissonAutomorphyNormalizationData.AQf) : |
| 281 | integralIndicator (u + y) = integralIndicator y := by |
| 282 | have hmem : u + y ∈ integralVectors ↔ y ∈ integralVectors := by |
| 283 | constructor |
| 284 | · intro h |
| 285 | simpa only [add_sub_cancel_left] using integralVectors.sub_mem h hu |
| 286 | · exact integralVectors.add_mem hu |
| 287 | simp only [integralIndicator, Set.indicator, SetLike.mem_coe, hmem] |
| 288 | |
| 289 | variable {MpR MpF MpA : Type*} [Group MpR] [Group MpF] [Group MpA] |
| 290 | (D : PoissonAutomorphyNormalizationData.WeilData ι MpR MpF MpA) |
| 291 | |
| 292 | theorem finiteCharacter_pairing_integral {x y : ι → PoissonAutomorphyNormalizationData.AQf} |
| 293 | (hx : x ∈ integralVectors) (hy : y ∈ integralVectors) : |
| 294 | D.finiteCharacter (-(∑ i, x i * y i)) = 1 := by |
| 295 | apply finiteCharacter_integral D |
| 296 | exact AdelicSupport.PoissonAutomorphyConstruction.integralAdele.neg_mem (AdelicSupport.PoissonAutomorphyConstruction.integralAdele.sum_mem (fun i _ => AdelicSupport.PoissonAutomorphyConstruction.integralAdele.mul_mem |
| 297 | (hx i) (hy i))) |
| 298 | |
| 299 | theorem integralIndicator_fourier_of_mem {x : ι → PoissonAutomorphyNormalizationData.AQf} (hx : x ∈ integralVectors) : |
| 300 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure integralIndicator x = |
| 301 | (D.finiteMeasure.real (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)) : ℂ) := by |
| 302 | have heq : (fun y : ι → PoissonAutomorphyNormalizationData.AQf => integralIndicator y * |
| 303 | D.finiteCharacter (-(∑ i, x i * y i))) = integralIndicator := by |
| 304 | funext y |
| 305 | by_cases hy : y ∈ integralVectors |
| 306 | · rw [integralIndicator_of_mem hy, finiteCharacter_pairing_integral D hx hy, one_mul] |
| 307 | · rw [integralIndicator_of_notMem hy, zero_mul] |
| 308 | rw [PoissonAutomorphyNormalizationData.fourier, heq] |
| 309 | change (∫ y, (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)).indicator |
| 310 | (fun _ => (1 : ℂ)) y ∂D.finiteMeasure) = _ |
| 311 | have hmeas : MeasurableSet (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)) := by |
| 312 | change MeasurableSet {x : ι → PoissonAutomorphyNormalizationData.AQf | ∀ i, x i ∈ AdelicSupport.PoissonAutomorphyConstruction.integralAdele} |
| 313 | convert MeasurableSet.iInter (fun i : ι => |
| 314 | AdelicSupport.PoissonAutomorphyConstruction.isOpen_integralAdele.measurableSet.preimage (measurable_pi_apply i)) using 1 |
| 315 | ext x |
| 316 | simp |
| 317 | rw [integral_indicator hmeas] |
| 318 | simp |
| 319 | |
| 320 | theorem integralIndicator_fourier_of_notMem {x : ι → PoissonAutomorphyNormalizationData.AQf} (hx : x ∉ integralVectors) : |
| 321 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure integralIndicator x = 0 := by |
| 322 | let := D.finiteMeasure_haar |
| 323 | obtain ⟨i, hi⟩ : ∃ i, x i ∉ AdelicSupport.PoissonAutomorphyConstruction.integralAdele := not_forall.mp hx |
| 324 | let u : ι → PoissonAutomorphyNormalizationData.AQf := Pi.single i 1 |
| 325 | have hu : u ∈ integralVectors := by |
| 326 | intro j |
| 327 | by_cases hj : j = i <;> simp [u, hj, AdelicSupport.PoissonAutomorphyConstruction.integralAdele.one_mem, AdelicSupport.PoissonAutomorphyConstruction.integralAdele.zero_mem] |
| 328 | have hphase : D.finiteCharacter (-(∑ j, x j * u j)) ≠ 1 := by |
| 329 | rw [show (∑ j, x j * u j) = x i from dotProduct_single_one x i] |
| 330 | intro h |
| 331 | exact hi (AdelicSupport.PoissonAutomorphyConstruction.integralAdele.neg_mem_iff.mp ((finiteCharacter_eq_one_iff D _).mp h)) |
| 332 | let F := fun y : ι → PoissonAutomorphyNormalizationData.AQf => integralIndicator y * D.finiteCharacter (-(∑ j, x j * y j)) |
| 333 | have hshift : ∀ y, F (u + y) = D.finiteCharacter (-(∑ j, x j * u j)) * F y := by |
| 334 | intro y |
| 335 | dsimp [F] |
| 336 | rw [integralIndicator_add hu] |
| 337 | simp only [mul_add, Finset.sum_add_distrib, neg_add, |
| 338 | AddChar.map_add_eq_mul] |
| 339 | ring |
| 340 | have h := integral_add_left_eq_self (μ := D.finiteMeasure) F u |
| 341 | simp_rw [hshift, integral_const_mul] at h |
| 342 | change D.finiteCharacter (-(∑ j, x j * u j)) * |
| 343 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure integralIndicator x = |
| 344 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure integralIndicator x at h |
| 345 | by_contra hn |
| 346 | exact hphase ((mul_eq_right₀ hn).mp h) |
| 347 | |
| 348 | theorem integralIndicator_fourier (x : ι → PoissonAutomorphyNormalizationData.AQf) : |
| 349 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure integralIndicator x = |
| 350 | (D.finiteMeasure.real (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)) : ℂ) * integralIndicator x := by |
| 351 | by_cases hx : x ∈ integralVectors |
| 352 | · rw [integralIndicator_fourier_of_mem D hx, integralIndicator_of_mem hx, mul_one] |
| 353 | · rw [integralIndicator_fourier_of_notMem D hx, integralIndicator_of_notMem hx, mul_zero] |
| 354 | |
| 355 | theorem integralVectors_volume : D.finiteMeasure.real (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)) = 1 := by |
| 356 | let v := D.finiteMeasure.real (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)) |
| 357 | have h := D.finiteMeasure_selfDual integralTestFunction 0 |
| 358 | change PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure |
| 359 | (PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure integralIndicator) 0 = integralIndicator (-0) at h |
| 360 | rw [show PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure integralIndicator = |
| 361 | (fun x => (v : ℂ) * integralIndicator x) from funext (integralIndicator_fourier D)] at h |
| 362 | simp only [PoissonAutomorphyNormalizationData.fourier, mul_assoc, integral_const_mul] at h |
| 363 | change (v : ℂ) * PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure integralIndicator 0 = |
| 364 | integralIndicator (-0) at h |
| 365 | rw [integralIndicator_fourier_of_mem D integralVectors.zero_mem, |
| 366 | neg_zero, integralIndicator_of_mem integralVectors.zero_mem] at h |
| 367 | have hv : v * v = 1 := by exact_mod_cast h |
| 368 | have hv0 : 0 ≤ v := ENNReal.toReal_nonneg |
| 369 | change v = 1 |
| 370 | nlinarith |
| 371 | |
| 372 | theorem integralIndicator_selfFourier (x : ι → PoissonAutomorphyNormalizationData.AQf) : |
| 373 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure integralIndicator x = integralIndicator x := by |
| 374 | rw [integralIndicator_fourier, integralVectors_volume, Complex.ofReal_one, one_mul] |
| 375 | |
| 376 | end |
| 377 | |
| 378 | section |
| 379 | |
| 380 | /-! A finite Schwartz function has a uniform integral lattice of translation periods. -/ |
| 381 | |
| 382 | open scoped Classical |
| 383 | |
| 384 | variable {ι : Type*} [Fintype ι] |
| 385 | |
| 386 | def translationStabilizer (φ : PoissonAutomorphyNormalizationData.finiteSchwartz ι) : AddSubgroup (ι → PoissonAutomorphyNormalizationData.AQf) where |
| 387 | carrier := {u | ∀ x, φ.val (u + x) = φ.val x} |
| 388 | zero_mem' x := by rw [zero_add] |
| 389 | add_mem' hu hv x := by rw [add_assoc, hu, hv] |
| 390 | neg_mem' {u} hu x := by |
| 391 | have h := hu (-u + x) |
| 392 | rw [← add_assoc, add_neg_cancel, zero_add] at h |
| 393 | exact h.symm |
| 394 | |
| 395 | theorem translationStabilizer_isOpen (φ : PoissonAutomorphyNormalizationData.finiteSchwartz ι) : |
| 396 | IsOpen (translationStabilizer φ : Set (ι → PoissonAutomorphyNormalizationData.AQf)) := by |
| 397 | have hlc := (PoissonAutomorphyNormalizationData.Construction.finiteSchwartz_mem_iff φ.val).mp φ.property |>.1 |
| 398 | let R : Set ((ι → PoissonAutomorphyNormalizationData.AQf) × (ι → PoissonAutomorphyNormalizationData.AQf)) := {p | φ.val (p.1 + p.2) - φ.val p.2 = 0} |
| 399 | have hR : IsOpen R := by |
| 400 | apply IsLocallyConstant.isOpen_fiber |
| 401 | exact (hlc.comp_continuous (continuous_fst.add continuous_snd)).sub |
| 402 | (hlc.comp_continuous continuous_snd) |
| 403 | have hsub : ({0} : Set (ι → PoissonAutomorphyNormalizationData.AQf)) ×ˢ tsupport φ.val ⊆ R := by |
| 404 | rintro ⟨u, x⟩ ⟨rfl, _⟩ |
| 405 | simp [R] |
| 406 | obtain ⟨U, W, hU, _, hU0, hKW, hUW⟩ := generalized_tube_lemma |
| 407 | isCompact_singleton (PoissonAutomorphyNormalizationData.Construction.finiteSchwartz_hasCompactSupport φ) hR hsub |
| 408 | have hsmall : U ∩ Neg.neg ⁻¹' U ⊆ (translationStabilizer φ : Set (ι → PoissonAutomorphyNormalizationData.AQf)) := by |
| 409 | rintro u ⟨hu, hnu⟩ x |
| 410 | by_cases hx : x ∈ tsupport φ.val |
| 411 | · exact sub_eq_zero.mp (show φ.val (u + x) - φ.val x = 0 from |
| 412 | hUW (show (u, x) ∈ U ×ˢ W from ⟨hu, hKW hx⟩)) |
| 413 | · by_cases hux : u + x ∈ tsupport φ.val |
| 414 | · have h : φ.val (-u + (u + x)) = φ.val (u + x) := sub_eq_zero.mp |
| 415 | (hUW (show (-u, u + x) ∈ U ×ˢ W from ⟨hnu, hKW hux⟩)) |
| 416 | rw [← add_assoc, neg_add_cancel, zero_add] at h |
| 417 | exact h.symm |
| 418 | · rw [image_eq_zero_of_notMem_tsupport hux, image_eq_zero_of_notMem_tsupport hx] |
| 419 | apply (translationStabilizer φ).isOpen_of_mem_nhds (g := (0 : ι → PoissonAutomorphyNormalizationData.AQf)) |
| 420 | apply Filter.mem_of_superset ((hU.inter (hU.preimage continuous_neg)).mem_nhds ?_) hsmall |
| 421 | exact ⟨hU0 rfl, by simpa only [Set.mem_preimage, neg_zero] using hU0 rfl⟩ |
| 422 | |
| 423 | instance integralVectorsCompact : CompactSpace (integralVectors (ι := ι)) := |
| 424 | isCompact_iff_compactSpace.mp integralVectors_isCompact |
| 425 | |
| 426 | theorem finiteSchwartz_integral_period (φ : PoissonAutomorphyNormalizationData.finiteSchwartz ι) : |
| 427 | ∃ n : ℕ, 0 < n ∧ ∀ (u : ι → PoissonAutomorphyNormalizationData.AQf), u ∈ integralVectors → |
| 428 | ∀ x, φ.val (n • u + x) = φ.val x := by |
| 429 | let H : AddSubgroup (integralVectors (ι := ι)) := |
| 430 | (translationStabilizer φ).comap integralVectors.toAddSubgroup.subtype |
| 431 | have hH : IsOpen (H : Set (integralVectors (ι := ι))) := |
| 432 | (translationStabilizer_isOpen φ).preimage continuous_subtype_val |
| 433 | let : Finite ((integralVectors (ι := ι)) ⧸ H) := H.quotient_finite_of_isOpen hH |
| 434 | let n := Nat.card ((integralVectors (ι := ι)) ⧸ H) |
| 435 | refine ⟨n, Nat.card_pos, ?_⟩ |
| 436 | intro u hu |
| 437 | have h : n • (⟨u, hu⟩ : integralVectors) ∈ H := by |
| 438 | apply (QuotientAddGroup.eq_zero_iff _).mp |
| 439 | rw [QuotientAddGroup.mk_nsmul] |
| 440 | exact card_nsmul_eq_zero' |
| 441 | exact h |
| 442 | |
| 443 | end |
| 444 | |
| 445 | section |
| 446 | |
| 447 | /-! Countability and measurable integration on the finite adeles. -/ |
| 448 | |
| 449 | open scoped Classical |
| 450 | open _root_.MeasureTheory |
| 451 | |
| 452 | instance finitePlaceCountable : Countable AdelicSupport.PoissonAutomorphyConstruction.FinitePlace := |
| 453 | Countable.of_equiv Nat.Primes Rat.HeightOneSpectrum.primesEquiv.symm |
| 454 | |
| 455 | instance integralAdeleSecondCountable : SecondCountableTopology AdelicSupport.PoissonAutomorphyConstruction.integralAdele := |
| 456 | integralPadicHomeomorph.symm.isEmbedding.secondCountableTopology |
| 457 | |
| 458 | def rationalIntegralCover (x : Σ _q : ℚ, AdelicSupport.PoissonAutomorphyConstruction.integralAdele) : PoissonAutomorphyNormalizationData.AQf := |
| 459 | algebraMap ℚ PoissonAutomorphyNormalizationData.AQf x.1 + x.2.val |
| 460 | |
| 461 | theorem rationalIntegralCover_isOpenQuotientMap : IsOpenQuotientMap rationalIntegralCover := by |
| 462 | refine ⟨?_, ?_, ?_⟩ |
| 463 | · intro a |
| 464 | obtain ⟨q, hq⟩ := finiteAdele_rational_representative a |
| 465 | refine ⟨⟨q, ⟨a - algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q, hq⟩⟩, ?_⟩ |
| 466 | dsimp [rationalIntegralCover] |
| 467 | abel |
| 468 | · apply continuous_sigma |
| 469 | intro q |
| 470 | change Continuous (fun a : AdelicSupport.PoissonAutomorphyConstruction.integralAdele => algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q + a.val) |
| 471 | exact continuous_const.add continuous_subtype_val |
| 472 | · apply isOpenMap_sigma.mpr |
| 473 | intro q |
| 474 | exact (isOpenMap_add_left (algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q)).comp |
| 475 | AdelicSupport.PoissonAutomorphyConstruction.isOpen_integralAdele.isOpenEmbedding_subtypeVal.isOpenMap |
| 476 | |
| 477 | instance finiteAdeleSecondCountable : SecondCountableTopology PoissonAutomorphyNormalizationData.AQf := |
| 478 | Topology.IsOpenQuotientMap.secondCountableTopology rationalIntegralCover_isOpenQuotientMap |
| 479 | |
| 480 | variable {ι : Type*} [Fintype ι] |
| 481 | |
| 482 | theorem finiteSchwartz_measurable (φ : PoissonAutomorphyNormalizationData.finiteSchwartz ι) : Measurable φ.val := |
| 483 | (PoissonAutomorphyNormalizationData.Construction.finiteSchwartz_continuous φ).measurable |
| 484 | |
| 485 | theorem finiteSchwartz_integrable (φ : PoissonAutomorphyNormalizationData.finiteSchwartz ι) (μ : Measure (ι → PoissonAutomorphyNormalizationData.AQf)) |
| 486 | [μ.IsAddHaarMeasure] : Integrable φ.val μ := by |
| 487 | exact (PoissonAutomorphyNormalizationData.Construction.finiteSchwartz_continuous φ).integrable_of_hasCompactSupport |
| 488 | (PoissonAutomorphyNormalizationData.Construction.finiteSchwartz_hasCompactSupport φ) |
| 489 | |
| 490 | end |
| 491 | |
| 492 | section |
| 493 | |
| 494 | /-! Rational scalings and compact open lattices in the finite adeles. -/ |
| 495 | |
| 496 | open scoped Classical |
| 497 | open _root_.MeasureTheory |
| 498 | |
| 499 | variable {ι : Type*} |
| 500 | |
| 501 | def finiteScale (q : ℚ) (x : ι → PoissonAutomorphyNormalizationData.AQf) : ι → PoissonAutomorphyNormalizationData.AQf := |
| 502 | fun i => algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q * x i |
| 503 | |
| 504 | theorem finiteScale_mul (p q : ℚ) (x : ι → PoissonAutomorphyNormalizationData.AQf) : |
| 505 | finiteScale p (finiteScale q x) = finiteScale (p * q) x := by |
| 506 | ext i |
| 507 | simp only [finiteScale, map_mul, mul_assoc] |
| 508 | |
| 509 | theorem finiteScale_one (x : ι → PoissonAutomorphyNormalizationData.AQf) : finiteScale 1 x = x := by |
| 510 | ext i |
| 511 | simp [finiteScale] |
| 512 | |
| 513 | theorem finiteScale_add (q : ℚ) (x y : ι → PoissonAutomorphyNormalizationData.AQf) : |
| 514 | finiteScale q (x + y) = finiteScale q x + finiteScale q y := by |
| 515 | ext i |
| 516 | simp [finiteScale, mul_add] |
| 517 | |
| 518 | def finiteScaleEquiv (q : ℚ) (hq : q ≠ 0) : (ι → PoissonAutomorphyNormalizationData.AQf) ≃+ (ι → PoissonAutomorphyNormalizationData.AQf) where |
| 519 | toFun := finiteScale q |
| 520 | invFun := finiteScale q⁻¹ |
| 521 | left_inv x := by rw [finiteScale_mul, inv_mul_cancel₀ hq, finiteScale_one] |
| 522 | right_inv x := by rw [finiteScale_mul, mul_inv_cancel₀ hq, finiteScale_one] |
| 523 | map_add' := finiteScale_add q |
| 524 | |
| 525 | theorem finiteScale_continuous (q : ℚ) : Continuous (finiteScale (ι := ι) q) := by |
| 526 | apply continuous_pi |
| 527 | intro i |
| 528 | exact continuous_const.mul (continuous_apply i) |
| 529 | |
| 530 | def finiteScaleHomeomorph (q : ℚ) (hq : q ≠ 0) : (ι → PoissonAutomorphyNormalizationData.AQf) ≃ₜ (ι → PoissonAutomorphyNormalizationData.AQf) where |
| 531 | toEquiv := (finiteScaleEquiv q hq).toEquiv |
| 532 | continuous_toFun := finiteScale_continuous q |
| 533 | continuous_invFun := finiteScale_continuous q⁻¹ |
| 534 | |
| 535 | def finiteLattice (q : ℚ) (hq : q ≠ 0) : AddSubgroup (ι → PoissonAutomorphyNormalizationData.AQf) := |
| 536 | integralVectors.toAddSubgroup.map (finiteScaleEquiv q hq).toAddMonoidHom |
| 537 | |
| 538 | theorem finiteLattice_coe (q : ℚ) (hq : q ≠ 0) : |
| 539 | (finiteLattice (ι := ι) q hq : Set (ι → PoissonAutomorphyNormalizationData.AQf)) = |
| 540 | finiteScale q '' (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)) := rfl |
| 541 | |
| 542 | theorem finiteLattice_mem_iff (q : ℚ) (hq : q ≠ 0) (x : ι → PoissonAutomorphyNormalizationData.AQf) : |
| 543 | x ∈ finiteLattice q hq ↔ finiteScale q⁻¹ x ∈ integralVectors := by |
| 544 | constructor |
| 545 | · rintro ⟨u, hu, rfl⟩ |
| 546 | change finiteScale q⁻¹ (finiteScale q u) ∈ integralVectors |
| 547 | rw [finiteScale_mul, inv_mul_cancel₀ hq, finiteScale_one] |
| 548 | exact hu |
| 549 | · intro hx |
| 550 | refine ⟨finiteScale q⁻¹ x, hx, ?_⟩ |
| 551 | exact (finiteScaleEquiv q hq).apply_symm_apply x |
| 552 | |
| 553 | theorem finiteLattice_isCompact (q : ℚ) (hq : q ≠ 0) : |
| 554 | IsCompact (finiteLattice (ι := ι) q hq : Set (ι → PoissonAutomorphyNormalizationData.AQf)) := by |
| 555 | rw [finiteLattice_coe] |
| 556 | exact integralVectors_isCompact.image (finiteScale_continuous q) |
| 557 | |
| 558 | variable [Fintype ι] |
| 559 | |
| 560 | theorem finiteLattice_isOpen (q : ℚ) (hq : q ≠ 0) : |
| 561 | IsOpen (finiteLattice (ι := ι) q hq : Set (ι → PoissonAutomorphyNormalizationData.AQf)) := by |
| 562 | rw [finiteLattice_coe] |
| 563 | exact (finiteScaleHomeomorph q hq).isOpenMap _ integralVectors_isOpen |
| 564 | |
| 565 | theorem finiteLattice_measurableSet (q : ℚ) (hq : q ≠ 0) : |
| 566 | MeasurableSet (finiteLattice (ι := ι) q hq : Set (ι → PoissonAutomorphyNormalizationData.AQf)) := |
| 567 | (finiteLattice_isOpen q hq).measurableSet |
| 568 | |
| 569 | omit [Fintype ι] in |
| 570 | theorem finiteScale_natCast (n : ℕ) (x : ι → PoissonAutomorphyNormalizationData.AQf) : finiteScale (n : ℚ) x = n • x := by |
| 571 | ext i |
| 572 | simp [finiteScale, nsmul_eq_mul] |
| 573 | |
| 574 | theorem finiteSchwartz_lattice_period (φ : PoissonAutomorphyNormalizationData.finiteSchwartz ι) : |
| 575 | ∃ n : ℕ, ∃ hn : 0 < n, ∀ u ∈ finiteLattice (n : ℚ) (by exact_mod_cast hn.ne'), |
| 576 | ∀ x, φ.val (u + x) = φ.val x := by |
| 577 | obtain ⟨n, hn, hperiod⟩ := finiteSchwartz_integral_period φ |
| 578 | refine ⟨n, hn, ?_⟩ |
| 579 | rintro u ⟨v, hv, rfl⟩ x |
| 580 | change φ.val (finiteScale (n : ℚ) v + x) = φ.val x |
| 581 | rw [finiteScale_natCast] |
| 582 | exact hperiod v hv x |
| 583 | |
| 584 | end |
| 585 | |
| 586 | section |
| 587 | |
| 588 | /-! Finite residue representatives for integral finite lattices. -/ |
| 589 | |
| 590 | open scoped Classical |
| 591 | |
| 592 | variable {ι : Type*} |
| 593 | |
| 594 | def integerFinite (m : ι → ℤ) : ι → PoissonAutomorphyNormalizationData.AQf := fun i => (m i : PoissonAutomorphyNormalizationData.AQf) |
| 595 | |
| 596 | def integralVectorHomeomorph : (ι → AdelicSupport.PoissonAutomorphyConstruction.integralAdele) ≃ₜ integralVectors (ι := ι) where |
| 597 | toFun x := ⟨fun i => (x i).val, fun i => (x i).property⟩ |
| 598 | invFun x i := ⟨x.val i, x.property i⟩ |
| 599 | left_inv _ := rfl |
| 600 | right_inv _ := rfl |
| 601 | continuous_toFun := (continuous_pi fun i => continuous_subtype_val.comp (continuous_apply i)).subtype_mk _ |
| 602 | continuous_invFun := continuous_pi fun i => |
| 603 | ((continuous_apply i).comp continuous_subtype_val).subtype_mk _ |
| 604 | |
| 605 | def integralIntegerMap (m : ι → ℤ) : integralVectors (ι := ι) := |
| 606 | ⟨integerFinite m, fun i => intCast_mem AdelicSupport.PoissonAutomorphyConstruction.integralAdele (m i)⟩ |
| 607 | |
| 608 | theorem denseRange_integralIntegerMap : DenseRange (integralIntegerMap (ι := ι)) := by |
| 609 | have h := integralVectorHomeomorph.surjective.denseRange.comp |
| 610 | (DenseRange.piMap (fun _ : ι => denseRange_integer_integralAdele)) |
| 611 | integralVectorHomeomorph.continuous |
| 612 | exact h |
| 613 | |
| 614 | variable [Fintype ι] |
| 615 | |
| 616 | theorem integralVector_integer_coset (n : ℕ) (hn : 0 < n) |
| 617 | (u : ι → PoissonAutomorphyNormalizationData.AQf) (hu : u ∈ integralVectors) : |
| 618 | ∃ m : ι → ℤ, u - integerFinite m ∈ finiteLattice (n : ℚ) (by exact_mod_cast hn.ne') := by |
| 619 | let hnq : (n : ℚ) ≠ 0 := by exact_mod_cast hn.ne' |
| 620 | have hopen : IsOpen {a : integralVectors (ι := ι) | u - a.val ∈ finiteLattice (n : ℚ) hnq} := |
| 621 | (finiteLattice_isOpen (n : ℚ) hnq).preimage (continuous_const.sub continuous_subtype_val) |
| 622 | obtain ⟨m, hm⟩ := denseRange_integralIntegerMap.exists_mem_open hopen |
| 623 | ⟨⟨u, hu⟩, by simp⟩ |
| 624 | exact ⟨m, hm⟩ |
| 625 | |
| 626 | omit [Fintype ι] in |
| 627 | theorem integerFinite_mem_finiteLattice_iff (n : ℕ) (hn : 0 < n) (m : ι → ℤ) : |
| 628 | integerFinite m ∈ finiteLattice (n : ℚ) (by exact_mod_cast hn.ne') ↔ |
| 629 | ∀ i, (n : ℤ) ∣ m i := by |
| 630 | rw [finiteLattice_mem_iff] |
| 631 | change (∀ i, algebraMap ℚ PoissonAutomorphyNormalizationData.AQf ((n : ℚ)⁻¹) * (m i : PoissonAutomorphyNormalizationData.AQf) ∈ AdelicSupport.PoissonAutomorphyConstruction.integralAdele) ↔ _ |
| 632 | simp only [← map_intCast (algebraMap ℚ PoissonAutomorphyNormalizationData.AQf), ← map_mul, AdelicSupport.PoissonAutomorphyConstruction.rational_integral_iff] |
| 633 | apply forall_congr' |
| 634 | intro i |
| 635 | have hnq : (n : ℚ) ≠ 0 := by exact_mod_cast hn.ne' |
| 636 | constructor |
| 637 | · rintro ⟨k, hk⟩ |
| 638 | refine ⟨k, ?_⟩ |
| 639 | have h : (m i : ℚ) = (n : ℚ) * (k : ℚ) := by rw [hk, ← mul_assoc, mul_inv_cancel₀ hnq, one_mul] |
| 640 | exact_mod_cast h |
| 641 | · rintro ⟨k, hk⟩ |
| 642 | refine ⟨k, ?_⟩ |
| 643 | rw [hk, Int.cast_mul, Int.cast_natCast, ← mul_assoc, inv_mul_cancel₀ hnq, one_mul] |
| 644 | |
| 645 | def residuePoint {n : ℕ} (r : ι → ZMod n) : ι → PoissonAutomorphyNormalizationData.AQf := |
| 646 | integerFinite (fun i => (r i).val) |
| 647 | |
| 648 | theorem integralVector_residue_coset (n : ℕ) (hn : 0 < n) |
| 649 | (u : ι → PoissonAutomorphyNormalizationData.AQf) (hu : u ∈ integralVectors) : |
| 650 | ∃ r : ι → ZMod n, u - residuePoint r ∈ finiteLattice (n : ℚ) (by exact_mod_cast hn.ne') := by |
| 651 | let : NeZero n := ⟨hn.ne'⟩ |
| 652 | obtain ⟨m, hm⟩ := integralVector_integer_coset n hn u hu |
| 653 | let r : ι → ZMod n := fun i => (m i : ZMod n) |
| 654 | refine ⟨r, ?_⟩ |
| 655 | have hr : integerFinite m - residuePoint r ∈ finiteLattice (n : ℚ) (by exact_mod_cast hn.ne') := by |
| 656 | have hfun : integerFinite m - residuePoint r = |
| 657 | integerFinite (fun i => m i - ((r i).val : ℤ)) := by |
| 658 | ext i |
| 659 | simp [integerFinite, residuePoint] |
| 660 | rw [hfun, integerFinite_mem_finiteLattice_iff n hn] |
| 661 | intro i |
| 662 | apply (ZMod.intCast_eq_intCast_iff_dvd_sub ((r i).val : ℤ) (m i) n).mp |
| 663 | simp [r] |
| 664 | simpa only [sub_add_sub_cancel] using (finiteLattice (n : ℚ) (by exact_mod_cast hn.ne')).add_mem hm hr |
| 665 | |
| 666 | omit [Fintype ι] in |
| 667 | theorem residue_cosets_disjoint (n : ℕ) (hn : 0 < n) : |
| 668 | Pairwise (fun r s : ι → ZMod n => Disjoint |
| 669 | {x : ι → PoissonAutomorphyNormalizationData.AQf | x - residuePoint r ∈ finiteLattice (n : ℚ) (by exact_mod_cast hn.ne')} |
| 670 | {x : ι → PoissonAutomorphyNormalizationData.AQf | x - residuePoint s ∈ finiteLattice (n : ℚ) (by exact_mod_cast hn.ne')}) := by |
| 671 | let : NeZero n := ⟨hn.ne'⟩ |
| 672 | intro r s hrs |
| 673 | apply Set.disjoint_left.mpr |
| 674 | intro x hxr hxs |
| 675 | apply hrs |
| 676 | have h := (finiteLattice (n : ℚ) (by exact_mod_cast hn.ne')).sub_mem hxr hxs |
| 677 | have heq : (x - residuePoint r) - (x - residuePoint s) = |
| 678 | integerFinite (fun i => ((s i).val : ℤ) - ((r i).val : ℤ)) := by |
| 679 | ext i |
| 680 | simp only [Pi.sub_apply, integerFinite, residuePoint, Int.cast_sub, Int.cast_natCast] |
| 681 | ring_nf |
| 682 | rw [heq, integerFinite_mem_finiteLattice_iff n hn] at h |
| 683 | funext i |
| 684 | have hi := (ZMod.intCast_eq_intCast_iff_dvd_sub ((r i).val : ℤ) ((s i).val : ℤ) n).mpr (h i) |
| 685 | simpa only [Int.cast_natCast, ZMod.natCast_zmod_val] using hi |
| 686 | |
| 687 | end |
| 688 | |
| 689 | section |
| 690 | |
| 691 | /-! Exact Haar volumes of integral finite sublattices. -/ |
| 692 | |
| 693 | open scoped Classical ENNReal |
| 694 | open _root_.MeasureTheory |
| 695 | |
| 696 | variable {ι : Type*} [Fintype ι] |
| 697 | |
| 698 | omit [Fintype ι] in |
| 699 | theorem finiteLattice_nat_subset_integral (n : ℕ) (hn : 0 < n) : |
| 700 | finiteLattice (ι := ι) (n : ℚ) (by exact_mod_cast hn.ne') ≤ integralVectors.toAddSubgroup := by |
| 701 | rintro x ⟨u, hu, rfl⟩ i |
| 702 | change algebraMap ℚ PoissonAutomorphyNormalizationData.AQf (n : ℚ) * u i ∈ AdelicSupport.PoissonAutomorphyConstruction.integralAdele |
| 703 | exact AdelicSupport.PoissonAutomorphyConstruction.integralAdele.mul_mem (by simpa only [map_natCast] using natCast_mem AdelicSupport.PoissonAutomorphyConstruction.integralAdele n) (hu i) |
| 704 | |
| 705 | theorem integralVectors_residue_partition (n : ℕ) (hn : 0 < n) : |
| 706 | (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)) = |
| 707 | ⋃ r : ι → ZMod n, {x | x - residuePoint r ∈ finiteLattice (n : ℚ) (by exact_mod_cast hn.ne')} := by |
| 708 | ext x |
| 709 | constructor |
| 710 | · intro hx |
| 711 | obtain ⟨r, hr⟩ := integralVector_residue_coset n hn x hx |
| 712 | exact Set.mem_iUnion.mpr ⟨r, hr⟩ |
| 713 | · intro hx |
| 714 | obtain ⟨r, hr⟩ := Set.mem_iUnion.mp hx |
| 715 | have h := integralVectors.add_mem (finiteLattice_nat_subset_integral n hn hr) |
| 716 | (integralIntegerMap (fun i => ((r i).val : ℤ))).property |
| 717 | simpa only [residuePoint, integralIntegerMap, sub_add_cancel, SetLike.mem_coe] using h |
| 718 | |
| 719 | variable [DecidableEq ι] {MpR MpF MpA : Type*} [Group MpR] [Group MpF] [Group MpA] |
| 720 | (D : PoissonAutomorphyNormalizationData.WeilData ι MpR MpF MpA) |
| 721 | |
| 722 | theorem finiteLattice_nat_volume (n : ℕ) (hn : 0 < n) : |
| 723 | D.finiteMeasure.real (finiteLattice (ι := ι) (n : ℚ) (by exact_mod_cast hn.ne') : Set (ι → PoissonAutomorphyNormalizationData.AQf)) = |
| 724 | ((n : ℝ) ^ Fintype.card ι)⁻¹ := by |
| 725 | let := D.finiteMeasure_haar |
| 726 | let : NeZero n := ⟨hn.ne'⟩ |
| 727 | let L := finiteLattice (ι := ι) (n : ℚ) (by exact_mod_cast hn.ne') |
| 728 | have hcoset (r : ι → ZMod n) : D.finiteMeasure {x : ι → PoissonAutomorphyNormalizationData.AQf | x - residuePoint r ∈ L} = |
| 729 | D.finiteMeasure (L : Set (ι → PoissonAutomorphyNormalizationData.AQf)) := by |
| 730 | simpa only [sub_eq_add_neg, Set.preimage, SetLike.mem_coe] using |
| 731 | measure_preimage_add_right D.finiteMeasure (-residuePoint r) (L : Set (ι → PoissonAutomorphyNormalizationData.AQf)) |
| 732 | have hmeasure : D.finiteMeasure (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)) = |
| 733 | (n : ℝ≥0∞) ^ Fintype.card ι * D.finiteMeasure (L : Set (ι → PoissonAutomorphyNormalizationData.AQf)) := by |
| 734 | rw [integralVectors_residue_partition n hn] |
| 735 | rw [measure_iUnion (residue_cosets_disjoint n hn) |
| 736 | (fun r => (finiteLattice_measurableSet (n : ℚ) (by exact_mod_cast hn.ne')).preimage |
| 737 | (measurable_id.sub measurable_const))] |
| 738 | change (∑' r : ι → ZMod n, D.finiteMeasure {x : ι → PoissonAutomorphyNormalizationData.AQf | x - residuePoint r ∈ L}) = _ |
| 739 | simp only [hcoset, tsum_fintype, Finset.sum_const, Finset.card_univ, |
| 740 | Fintype.card_fun, ZMod.card, nsmul_eq_mul, Nat.cast_pow] |
| 741 | have hreal := congrArg ENNReal.toReal hmeasure |
| 742 | change D.finiteMeasure.real (integralVectors (ι := ι) : Set (ι → PoissonAutomorphyNormalizationData.AQf)) = _ at hreal |
| 743 | rw [integralVectors_volume D] at hreal |
| 744 | simp only [ENNReal.toReal_mul, ENNReal.toReal_pow, ENNReal.toReal_natCast] at hreal |
| 745 | have hnreal : (n : ℝ) ^ Fintype.card ι ≠ 0 := pow_ne_zero _ (by exact_mod_cast hn.ne') |
| 746 | apply (mul_left_cancel₀ hnreal) |
| 747 | rw [mul_inv_cancel₀ hnreal] |
| 748 | exact hreal.symm |
| 749 | |
| 750 | end |
| 751 | |
| 752 | section |
| 753 | |
| 754 | /-! Finite Fourier transforms of scaled integral-lattice indicators. -/ |
| 755 | |
| 756 | open scoped Classical |
| 757 | open _root_.MeasureTheory |
| 758 | |
| 759 | variable {ι : Type*} |
| 760 | |
| 761 | def latticeIndicator (q : ℚ) (hq : q ≠ 0) (x : ι → PoissonAutomorphyNormalizationData.AQf) : ℂ := |
| 762 | (finiteLattice (ι := ι) q hq : Set (ι → PoissonAutomorphyNormalizationData.AQf)).indicator (fun _ => 1) x |
| 763 | |
| 764 | theorem latticeIndicator_of_mem (q : ℚ) (hq : q ≠ 0) {x : ι → PoissonAutomorphyNormalizationData.AQf} |
| 765 | (hx : x ∈ finiteLattice q hq) : latticeIndicator q hq x = 1 := Set.indicator_of_mem hx _ |
| 766 | |
| 767 | theorem latticeIndicator_of_notMem (q : ℚ) (hq : q ≠ 0) {x : ι → PoissonAutomorphyNormalizationData.AQf} |
| 768 | (hx : x ∉ finiteLattice q hq) : latticeIndicator q hq x = 0 := Set.indicator_of_notMem hx _ |
| 769 | |
| 770 | theorem latticeIndicator_add (q : ℚ) (hq : q ≠ 0) {u : ι → PoissonAutomorphyNormalizationData.AQf} |
| 771 | (hu : u ∈ finiteLattice q hq) (y : ι → PoissonAutomorphyNormalizationData.AQf) : |
| 772 | latticeIndicator q hq (u + y) = latticeIndicator q hq y := by |
| 773 | have hmem : u + y ∈ finiteLattice q hq ↔ y ∈ finiteLattice q hq := by |
| 774 | constructor |
| 775 | · intro h |
| 776 | simpa only [add_sub_cancel_left] using (finiteLattice q hq).sub_mem h hu |
| 777 | · exact (finiteLattice q hq).add_mem hu |
| 778 | simp only [latticeIndicator, Set.indicator, SetLike.mem_coe, hmem] |
| 779 | |
| 780 | variable [Fintype ι] [DecidableEq ι] {MpR MpF MpA : Type*} [Group MpR] [Group MpF] [Group MpA] |
| 781 | (D : PoissonAutomorphyNormalizationData.WeilData ι MpR MpF MpA) |
| 782 | |
| 783 | theorem finiteCharacter_pairing_dual_lattice (q : ℚ) (hq : q ≠ 0) |
| 784 | {x y : ι → PoissonAutomorphyNormalizationData.AQf} (hx : x ∈ finiteLattice q⁻¹ (inv_ne_zero hq)) |
| 785 | (hy : y ∈ finiteLattice q hq) : D.finiteCharacter (-(∑ i, x i * y i)) = 1 := by |
| 786 | obtain ⟨u, hu, rfl⟩ := hx |
| 787 | obtain ⟨v, hv, rfl⟩ := hy |
| 788 | change D.finiteCharacter (-(∑ i, finiteScale q⁻¹ u i * finiteScale q v i)) = 1 |
| 789 | have heq (i : ι) : finiteScale q⁻¹ u i * finiteScale q v i = u i * v i := by |
| 790 | dsimp [finiteScale] |
| 791 | calc |
| 792 | _ = (algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q⁻¹ * algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q) * (u i * v i) := by ring |
| 793 | _ = _ := by rw [← map_mul, inv_mul_cancel₀ hq, map_one, one_mul] |
| 794 | simp only [heq] |
| 795 | exact finiteCharacter_pairing_integral D hu hv |
| 796 | |
| 797 | theorem latticeIndicator_fourier_of_mem (q : ℚ) (hq : q ≠ 0) {x : ι → PoissonAutomorphyNormalizationData.AQf} |
| 798 | (hx : x ∈ finiteLattice q⁻¹ (inv_ne_zero hq)) : |
| 799 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure (latticeIndicator q hq) x = |
| 800 | (D.finiteMeasure.real (finiteLattice (ι := ι) q hq : Set (ι → PoissonAutomorphyNormalizationData.AQf)) : ℂ) := by |
| 801 | have heq : (fun y => latticeIndicator q hq y * D.finiteCharacter (-(∑ i, x i * y i))) = |
| 802 | latticeIndicator q hq := by |
| 803 | funext y |
| 804 | by_cases hy : y ∈ finiteLattice q hq |
| 805 | · rw [latticeIndicator_of_mem q hq hy, finiteCharacter_pairing_dual_lattice D q hq hx hy, one_mul] |
| 806 | · rw [latticeIndicator_of_notMem q hq hy, zero_mul] |
| 807 | rw [PoissonAutomorphyNormalizationData.fourier, heq] |
| 808 | change (∫ y, (finiteLattice (ι := ι) q hq : Set (ι → PoissonAutomorphyNormalizationData.AQf)).indicator |
| 809 | (fun _ => (1 : ℂ)) y ∂D.finiteMeasure) = _ |
| 810 | rw [integral_indicator (finiteLattice_measurableSet q hq)] |
| 811 | simp |
| 812 | |
| 813 | theorem latticeIndicator_fourier_of_notMem (q : ℚ) (hq : q ≠ 0) {x : ι → PoissonAutomorphyNormalizationData.AQf} |
| 814 | (hx : x ∉ finiteLattice q⁻¹ (inv_ne_zero hq)) : |
| 815 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure (latticeIndicator q hq) x = 0 := by |
| 816 | let := D.finiteMeasure_haar |
| 817 | have hx' : finiteScale q x ∉ integralVectors := by |
| 818 | simpa only [finiteLattice_mem_iff, inv_inv] using hx |
| 819 | obtain ⟨i, hi⟩ : ∃ i, algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q * x i ∉ AdelicSupport.PoissonAutomorphyConstruction.integralAdele := not_forall.mp hx' |
| 820 | let v : ι → PoissonAutomorphyNormalizationData.AQf := Pi.single i 1 |
| 821 | let u := finiteScale q v |
| 822 | have hu : u ∈ finiteLattice q hq := by |
| 823 | refine ⟨v, ?_, rfl⟩ |
| 824 | intro j |
| 825 | by_cases hj : j = i <;> simp [v, hj, AdelicSupport.PoissonAutomorphyConstruction.integralAdele.one_mem, AdelicSupport.PoissonAutomorphyConstruction.integralAdele.zero_mem] |
| 826 | have hpair : (∑ j, x j * u j) = algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q * x i := by |
| 827 | calc |
| 828 | _ = algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q * (∑ j, x j * v j) := by |
| 829 | simp only [u, finiteScale, Finset.mul_sum] |
| 830 | apply Finset.sum_congr rfl |
| 831 | intro j _ |
| 832 | ring |
| 833 | _ = _ := by rw [show (∑ j, x j * v j) = x i from dotProduct_single_one x i] |
| 834 | have hphase : D.finiteCharacter (-(∑ j, x j * u j)) ≠ 1 := by |
| 835 | rw [hpair] |
| 836 | intro h |
| 837 | exact hi (AdelicSupport.PoissonAutomorphyConstruction.integralAdele.neg_mem_iff.mp ((finiteCharacter_eq_one_iff D _).mp h)) |
| 838 | let F := fun y : ι → PoissonAutomorphyNormalizationData.AQf => latticeIndicator q hq y * D.finiteCharacter (-(∑ j, x j * y j)) |
| 839 | have hshift (y : ι → PoissonAutomorphyNormalizationData.AQf) : F (u + y) = D.finiteCharacter (-(∑ j, x j * u j)) * F y := by |
| 840 | dsimp [F] |
| 841 | rw [latticeIndicator_add q hq hu] |
| 842 | simp only [mul_add, Finset.sum_add_distrib, neg_add, AddChar.map_add_eq_mul] |
| 843 | ring |
| 844 | have h := integral_add_left_eq_self (μ := D.finiteMeasure) F u |
| 845 | simp_rw [hshift, integral_const_mul] at h |
| 846 | change D.finiteCharacter (-(∑ j, x j * u j)) * |
| 847 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure (latticeIndicator q hq) x = |
| 848 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure (latticeIndicator q hq) x at h |
| 849 | by_contra hn |
| 850 | exact hphase ((mul_eq_right₀ hn).mp h) |
| 851 | |
| 852 | theorem latticeIndicator_fourier (q : ℚ) (hq : q ≠ 0) (x : ι → PoissonAutomorphyNormalizationData.AQf) : |
| 853 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure (latticeIndicator q hq) x = |
| 854 | (D.finiteMeasure.real (finiteLattice (ι := ι) q hq : Set (ι → PoissonAutomorphyNormalizationData.AQf)) : ℂ) * |
| 855 | latticeIndicator q⁻¹ (inv_ne_zero hq) x := by |
| 856 | by_cases hx : x ∈ finiteLattice q⁻¹ (inv_ne_zero hq) |
| 857 | · rw [latticeIndicator_fourier_of_mem D q hq hx, |
| 858 | latticeIndicator_of_mem q⁻¹ (inv_ne_zero hq) hx, mul_one] |
| 859 | · rw [latticeIndicator_fourier_of_notMem D q hq hx, |
| 860 | latticeIndicator_of_notMem q⁻¹ (inv_ne_zero hq) hx, mul_zero] |
| 861 | |
| 862 | def latticeCosetIndicator (q : ℚ) (hq : q ≠ 0) (a x : ι → PoissonAutomorphyNormalizationData.AQf) : ℂ := |
| 863 | latticeIndicator q hq (x - a) |
| 864 | |
| 865 | theorem latticeCosetIndicator_fourier (q : ℚ) (hq : q ≠ 0) (a x : ι → PoissonAutomorphyNormalizationData.AQf) : |
| 866 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure (latticeCosetIndicator q hq a) x = |
| 867 | D.finiteCharacter (-(∑ i, x i * a i)) * |
| 868 | ((D.finiteMeasure.real (finiteLattice (ι := ι) q hq : Set (ι → PoissonAutomorphyNormalizationData.AQf)) : ℂ) * |
| 869 | latticeIndicator q⁻¹ (inv_ne_zero hq) x) := by |
| 870 | let := D.finiteMeasure_haar |
| 871 | rw [← latticeIndicator_fourier D q hq x] |
| 872 | change (∫ y, latticeCosetIndicator q hq a y * D.finiteCharacter (-(∑ i, x i * y i)) |
| 873 | ∂D.finiteMeasure) = _ |
| 874 | rw [← integral_add_right_eq_self (μ := D.finiteMeasure) |
| 875 | (fun y => latticeCosetIndicator q hq a y * D.finiteCharacter (-(∑ i, x i * y i))) a] |
| 876 | calc |
| 877 | _ = ∫ y, D.finiteCharacter (-(∑ i, x i * a i)) * |
| 878 | (latticeIndicator q hq y * D.finiteCharacter (-(∑ i, x i * y i))) ∂D.finiteMeasure := by |
| 879 | apply integral_congr_ae |
| 880 | exact Filter.Eventually.of_forall fun y => by |
| 881 | dsimp only [latticeCosetIndicator] |
| 882 | rw [add_sub_cancel_right] |
| 883 | simp only [Pi.add_apply, mul_add, Finset.sum_add_distrib, neg_add, AddChar.map_add_eq_mul] |
| 884 | ring |
| 885 | _ = _ := integral_const_mul _ _ |
| 886 | |
| 887 | end |
| 888 | |
| 889 | /-! Finite Schwartz functions are finite sums of rational lattice cosets. -/ |
| 890 | |
| 891 | open scoped Classical |
| 892 | |
| 893 | variable {ι : Type*} [Fintype ι] |
| 894 | |
| 895 | omit [Fintype ι] in |
| 896 | theorem denseRange_finiteDiagonal : DenseRange (PoissonAutomorphyNormalizationData.finiteDiagonal (ι := ι)) := |
| 897 | DenseRange.piMap (fun _ : ι => denseRange_rational_finiteAdele) |
| 898 | |
| 899 | theorem finiteLattice_rational_coset (q : ℚ) (hq : q ≠ 0) (x : ι → PoissonAutomorphyNormalizationData.AQf) : |
| 900 | ∃ a : ι → ℚ, x - PoissonAutomorphyNormalizationData.finiteDiagonal a ∈ finiteLattice q hq := by |
| 901 | exact denseRange_finiteDiagonal.exists_mem_open |
| 902 | (s := {y : ι → PoissonAutomorphyNormalizationData.AQf | x - y ∈ finiteLattice q hq}) |
| 903 | ((finiteLattice_isOpen q hq).preimage (continuous_const.sub continuous_id)) |
| 904 | ⟨x, by simp⟩ |
| 905 | |
| 906 | abbrev FiniteQuotient (q : ℚ) (hq : q ≠ 0) := (ι → PoissonAutomorphyNormalizationData.AQf) ⧸ finiteLattice q hq |
| 907 | |
| 908 | def rationalQuotientMap (q : ℚ) (hq : q ≠ 0) (a : ι → ℚ) : FiniteQuotient (ι := ι) q hq := |
| 909 | QuotientAddGroup.mk (PoissonAutomorphyNormalizationData.finiteDiagonal a) |
| 910 | |
| 911 | theorem rationalQuotientMap_surjective (q : ℚ) (hq : q ≠ 0) : |
| 912 | Function.Surjective (rationalQuotientMap (ι := ι) q hq) := by |
| 913 | intro c |
| 914 | obtain ⟨x, rfl⟩ := QuotientAddGroup.mk_surjective c |
| 915 | obtain ⟨a, ha⟩ := finiteLattice_rational_coset q hq x |
| 916 | refine ⟨a, ?_⟩ |
| 917 | symm |
| 918 | exact QuotientAddGroup.eq_iff_sub_mem.mpr ha |
| 919 | |
| 920 | def finiteQuotientRep (q : ℚ) (hq : q ≠ 0) (c : FiniteQuotient (ι := ι) q hq) : ι → ℚ := |
| 921 | (rationalQuotientMap_surjective q hq c).choose |
| 922 | |
| 923 | theorem finiteQuotientRep_covers (q : ℚ) (hq : q ≠ 0) (c : FiniteQuotient (ι := ι) q hq) : |
| 924 | (QuotientAddGroup.mk (PoissonAutomorphyNormalizationData.finiteDiagonal (finiteQuotientRep q hq c)) : FiniteQuotient q hq) = c := |
| 925 | (rationalQuotientMap_surjective q hq c).choose_spec |
| 926 | |
| 927 | theorem cosetIndicator_quotient (q : ℚ) (hq : q ≠ 0) |
| 928 | (c : FiniteQuotient (ι := ι) q hq) (x : ι → PoissonAutomorphyNormalizationData.AQf) : |
| 929 | latticeCosetIndicator q hq (PoissonAutomorphyNormalizationData.finiteDiagonal (finiteQuotientRep q hq c)) x = |
| 930 | if (QuotientAddGroup.mk x : FiniteQuotient q hq) = c then 1 else 0 := by |
| 931 | have hmem : x - PoissonAutomorphyNormalizationData.finiteDiagonal (finiteQuotientRep q hq c) ∈ finiteLattice q hq ↔ |
| 932 | (QuotientAddGroup.mk x : FiniteQuotient q hq) = c := by |
| 933 | rw [← QuotientAddGroup.eq_iff_sub_mem, finiteQuotientRep_covers] |
| 934 | simp only [latticeCosetIndicator, latticeIndicator, Set.indicator, SetLike.mem_coe, hmem] |
| 935 | |
| 936 | theorem finiteSchwartz_coset_expansion (φ : PoissonAutomorphyNormalizationData.finiteSchwartz ι) (q : ℚ) (hq : q ≠ 0) |
| 937 | (hp : ∀ u ∈ finiteLattice q hq, ∀ x, φ.val (u + x) = φ.val x) : |
| 938 | ∃ s : Finset (FiniteQuotient (ι := ι) q hq), ∀ x : ι → PoissonAutomorphyNormalizationData.AQf, |
| 939 | φ.val x = ∑ c ∈ s, φ.val (PoissonAutomorphyNormalizationData.finiteDiagonal (finiteQuotientRep q hq c)) * |
| 940 | latticeCosetIndicator q hq (PoissonAutomorphyNormalizationData.finiteDiagonal (finiteQuotientRep q hq c)) x := by |
| 941 | let : DiscreteTopology (FiniteQuotient (ι := ι) q hq) := |
| 942 | QuotientAddGroup.discreteTopology (finiteLattice_isOpen q hq) |
| 943 | let Q : (ι → PoissonAutomorphyNormalizationData.AQf) → FiniteQuotient q hq := QuotientAddGroup.mk |
| 944 | have hcompact := (PoissonAutomorphyNormalizationData.Construction.finiteSchwartz_hasCompactSupport φ).image |
| 945 | (QuotientAddGroup.continuous_mk : Continuous Q) |
| 946 | let s := hcompact.finite_of_discrete.toFinset |
| 947 | have hcoeff (x : ι → PoissonAutomorphyNormalizationData.AQf) : φ.val (PoissonAutomorphyNormalizationData.finiteDiagonal (finiteQuotientRep q hq (Q x))) = φ.val x := by |
| 948 | have hdiff : PoissonAutomorphyNormalizationData.finiteDiagonal (finiteQuotientRep q hq (Q x)) - x ∈ finiteLattice q hq := |
| 949 | QuotientAddGroup.eq_iff_sub_mem.mp (finiteQuotientRep_covers q hq (Q x)) |
| 950 | simpa only [sub_add_cancel] using hp _ hdiff x |
| 951 | refine ⟨s, fun x => ?_⟩ |
| 952 | symm |
| 953 | rw [Finset.sum_eq_single (Q x)] |
| 954 | · rw [cosetIndicator_quotient, ite_eq_left rfl, mul_one, hcoeff] |
| 955 | · intro c _ hc |
| 956 | rw [cosetIndicator_quotient, ite_eq_right (Ne.symm hc), mul_zero] |
| 957 | · intro hx |
| 958 | rw [cosetIndicator_quotient, ite_eq_left rfl, mul_one, hcoeff] |
| 959 | by_contra hφ |
| 960 | apply hx |
| 961 | apply (hcompact.finite_of_discrete.mem_toFinset).mpr |
| 962 | exact ⟨x, subset_tsupport φ.val hφ, rfl⟩ |
| 963 | |
| 964 | end |
| 965 | |
| 966 | end OAI.RepresentationTheory.Theta.PoissonAutomorphyFiniteFourier.Construction |