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.AdelicSplitting.ArchimedeanCharacters |
| 2 | import OAI.RepresentationTheory.Weil.AdelicSplitting.FourierTools |
| 3 | |
| 4 | /-! # Real Characters -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.AdelicSplitting.RealCharacters.LocalAnalysis |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Real-coordinate Fourier analysis for AdelicSplitting, using the established Mathlib |
| 13 | Schwartz transform and the actual reference-compact Haar normalization. -/ |
| 14 | |
| 15 | open _root_.MeasureTheory |
| 16 | open scoped FourierTransform SchwartzMap NNReal |
| 17 | |
| 18 | def realCharacter (c : ℝ) : AddChar ℝ ℂ := |
| 19 | Circle.coeHom.compAddChar (Real.fourierChar.mulShift c) |
| 20 | |
| 21 | theorem realCharacter_apply (c t : ℝ) : |
| 22 | realCharacter c t = Complex.exp (((2 * Real.pi * c * t : ℝ) : ℂ) * Complex.I) := by |
| 23 | change Complex.exp (((2 * Real.pi * (c * t) : ℝ) : ℂ) * Complex.I) = _ |
| 24 | rw [mul_assoc (2 * Real.pi) c t] |
| 25 | |
| 26 | def realReferenceHaarFactor : ℝ≥0 := |
| 27 | Measure.addHaarScalarFactor (Measure.addHaar : Measure ℝ) volume |
| 28 | |
| 29 | theorem realReferenceHaarFactor_pos : 0 < realReferenceHaarFactor := |
| 30 | Measure.addHaarScalarFactor_pos_of_isAddHaarMeasure _ _ |
| 31 | |
| 32 | def realSchwartzToBruhat {n : ℕ} : |
| 33 | SchwartzMap (Local.FunctionsMetaplectic.Construction.Position ℝ n) ℂ →ₗ[ℂ] Local.FunctionsMetaplectic.Construction.schwartzBruhat ℝ n where |
| 34 | toFun f := ⟨f, ArchimedeanCharacters.LocalAnalysis.schwartzBruhat_archimedean_iff.mpr ⟨f, rfl⟩⟩ |
| 35 | map_add' _ _ := rfl |
| 36 | map_smul' _ _ := rfl |
| 37 | |
| 38 | theorem realSchwartzToBruhat_bijective {n : ℕ} : |
| 39 | Function.Bijective (realSchwartzToBruhat (n := n)) := by |
| 40 | constructor |
| 41 | · intro f g h |
| 42 | exact DFunLike.ext' (congrArg Subtype.val h) |
| 43 | · intro f |
| 44 | obtain ⟨φ, hφ⟩ := ArchimedeanCharacters.LocalAnalysis.schwartzBruhat_archimedean_iff.mp f.property |
| 45 | exact ⟨φ, Subtype.ext hφ.symm⟩ |
| 46 | |
| 47 | def realSchwartzEquiv (n : ℕ) : |
| 48 | SchwartzMap (Local.FunctionsMetaplectic.Construction.Position ℝ n) ℂ ≃ₗ[ℂ] Local.FunctionsMetaplectic.Construction.schwartzBruhat ℝ n := |
| 49 | LinearEquiv.ofBijective realSchwartzToBruhat realSchwartzToBruhat_bijective |
| 50 | |
| 51 | theorem realSchwartzEquiv_apply {n : ℕ} |
| 52 | (f : SchwartzMap (Local.FunctionsMetaplectic.Construction.Position ℝ n) ℂ) (x : Local.FunctionsMetaplectic.Construction.Position ℝ n) : |
| 53 | (realSchwartzEquiv n f).val x = f x := rfl |
| 54 | |
| 55 | theorem realSchwartzEquiv_symm_apply {n : ℕ} |
| 56 | (f : Local.FunctionsMetaplectic.Construction.schwartzBruhat ℝ n) (x : Local.FunctionsMetaplectic.Construction.Position ℝ n) : |
| 57 | (realSchwartzEquiv n).symm f x = f.val x := by |
| 58 | have h := congrArg (fun g : Local.FunctionsMetaplectic.Construction.schwartzBruhat ℝ n => g.val x) |
| 59 | ((realSchwartzEquiv n).apply_symm_apply f) |
| 60 | exact h |
| 61 | |
| 62 | def euclideanSchwartzEquiv (n : ℕ) : |
| 63 | SchwartzMap (Local.FunctionsMetaplectic.Construction.Position ℝ n) ℂ ≃ₗ[ℂ] SchwartzMap (EuclideanSpace ℝ (Fin n)) ℂ where |
| 64 | toFun f := SchwartzMap.compCLMOfContinuousLinearEquiv ℂ |
| 65 | (PiLp.continuousLinearEquiv 2 ℝ (fun _ : Fin n => ℝ)) f |
| 66 | invFun f := SchwartzMap.compCLMOfContinuousLinearEquiv ℂ |
| 67 | (PiLp.continuousLinearEquiv 2 ℝ (fun _ : Fin n => ℝ)).symm f |
| 68 | left_inv f := by ext x; rfl |
| 69 | right_inv f := by ext x; rfl |
| 70 | map_add' f g := by ext x; rfl |
| 71 | map_smul' c f := by ext x; rfl |
| 72 | |
| 73 | def coordinateSchwartzFourier (n : ℕ) : |
| 74 | SchwartzMap (Local.FunctionsMetaplectic.Construction.Position ℝ n) ℂ ≃ₗ[ℂ] SchwartzMap (Local.FunctionsMetaplectic.Construction.Position ℝ n) ℂ := |
| 75 | (euclideanSchwartzEquiv n).trans |
| 76 | ((FourierTransform.fourierEquiv ℂ (SchwartzMap (EuclideanSpace ℝ (Fin n)) ℂ)).trans |
| 77 | (euclideanSchwartzEquiv n).symm) |
| 78 | |
| 79 | theorem coordinateSchwartzFourier_apply {n : ℕ} |
| 80 | (f : SchwartzMap (Local.FunctionsMetaplectic.Construction.Position ℝ n) ℂ) (x : Local.FunctionsMetaplectic.Construction.Position ℝ n) : |
| 81 | coordinateSchwartzFourier n f x = Local.FunctionsMetaplectic.Construction.fourierIntegral (realCharacter 1) volume f x := by |
| 82 | change 𝓕 ((SchwartzMap.compCLMOfContinuousLinearEquiv ℂ |
| 83 | (PiLp.continuousLinearEquiv 2 ℝ (fun _ : Fin n => ℝ)) f : |
| 84 | SchwartzMap (EuclideanSpace ℝ (Fin n)) ℂ)) (WithLp.toLp 2 x) = _ |
| 85 | rw [SchwartzMap.fourier_coe, Real.fourier_eq] |
| 86 | rw [← (PiLp.volume_preserving_toLp (Fin n)).integral_comp |
| 87 | (MeasurableEquiv.toLp 2 (Local.FunctionsMetaplectic.Construction.Position ℝ n)).measurableEmbedding] |
| 88 | apply integral_congr_ae |
| 89 | exact Filter.Eventually.of_forall fun y => by |
| 90 | simp only [Circle.smul_def, smul_eq_mul, PiLp.inner_apply, |
| 91 | RCLike.inner_apply, conj_trivial, realCharacter, |
| 92 | MonoidHom.compAddChar_apply, Function.comp_apply, AddChar.mulShift_apply, one_mul] |
| 93 | change (Real.fourierChar (-(∑ i, x i * y i)) : ℂ) * f y = |
| 94 | f y * (Real.fourierChar (-(∑ i, x i * y i)) : ℂ) |
| 95 | exact mul_comm _ _ |
| 96 | |
| 97 | theorem coordinateSchwartzFourier_symm_apply {n : ℕ} |
| 98 | (f : SchwartzMap (Local.FunctionsMetaplectic.Construction.Position ℝ n) ℂ) (x : Local.FunctionsMetaplectic.Construction.Position ℝ n) : |
| 99 | (coordinateSchwartzFourier n).symm f x = coordinateSchwartzFourier n f (-x) := by |
| 100 | change 𝓕⁻ (euclideanSchwartzEquiv n f) (WithLp.toLp 2 x) = |
| 101 | 𝓕 (euclideanSchwartzEquiv n f) (WithLp.toLp 2 (-x)) |
| 102 | rw [SchwartzMap.fourierInv_coe, SchwartzMap.fourier_coe, Real.fourierInv_eq_fourier_neg] |
| 103 | rfl |
| 104 | |
| 105 | theorem coordinateSchwartzFourier_square {n : ℕ} |
| 106 | (f : SchwartzMap (Local.FunctionsMetaplectic.Construction.Position ℝ n) ℂ) (x : Local.FunctionsMetaplectic.Construction.Position ℝ n) : |
| 107 | coordinateSchwartzFourier n (coordinateSchwartzFourier n f) x = f (-x) := by |
| 108 | have h := congrArg (fun g : SchwartzMap (Local.FunctionsMetaplectic.Construction.Position ℝ n) ℂ => g (-x)) |
| 109 | ((coordinateSchwartzFourier n).symm_apply_apply f) |
| 110 | rw [coordinateSchwartzFourier_symm_apply, neg_neg] at h |
| 111 | exact h |
| 112 | |
| 113 | theorem coordinateSchwartzFourier_integral_norm_sq {n : ℕ} |
| 114 | (f : SchwartzMap (Local.FunctionsMetaplectic.Construction.Position ℝ n) ℂ) : |
| 115 | (∫ x, ‖coordinateSchwartzFourier n f x‖ ^ 2) = ∫ x, ‖f x‖ ^ 2 := by |
| 116 | have h := SchwartzMap.integral_norm_sq_fourier (euclideanSchwartzEquiv n f) |
| 117 | rw [← (PiLp.volume_preserving_toLp (Fin n)).integral_comp |
| 118 | (MeasurableEquiv.toLp 2 (Local.FunctionsMetaplectic.Construction.Position ℝ n)).measurableEmbedding, |
| 119 | ← (PiLp.volume_preserving_toLp (Fin n)).integral_comp |
| 120 | (MeasurableEquiv.toLp 2 (Local.FunctionsMetaplectic.Construction.Position ℝ n)).measurableEmbedding] at h |
| 121 | exact h |
| 122 | |
| 123 | def realBruhatFourier (n : ℕ) : Local.FunctionsMetaplectic.Construction.schwartzBruhat ℝ n ≃ₗ[ℂ] Local.FunctionsMetaplectic.Construction.schwartzBruhat ℝ n := |
| 124 | (realSchwartzEquiv n).symm.trans |
| 125 | ((coordinateSchwartzFourier n).trans (realSchwartzEquiv n)) |
| 126 | |
| 127 | theorem realBruhatFourier_apply {n : ℕ} |
| 128 | (f : Local.FunctionsMetaplectic.Construction.schwartzBruhat ℝ n) (x : Local.FunctionsMetaplectic.Construction.Position ℝ n) : |
| 129 | (realBruhatFourier n f).val x = Local.FunctionsMetaplectic.Construction.fourierIntegral (realCharacter 1) volume f.val x := by |
| 130 | change coordinateSchwartzFourier n ((realSchwartzEquiv n).symm f) x = _ |
| 131 | rw [coordinateSchwartzFourier_apply] |
| 132 | have h : ((realSchwartzEquiv n).symm f : Local.FunctionsMetaplectic.Construction.Position ℝ n → ℂ) = f.val := |
| 133 | funext (realSchwartzEquiv_symm_apply f) |
| 134 | rw [h] |
| 135 | |
| 136 | theorem realBruhatFourier_square {n : ℕ} |
| 137 | (f : Local.FunctionsMetaplectic.Construction.schwartzBruhat ℝ n) (x : Local.FunctionsMetaplectic.Construction.Position ℝ n) : |
| 138 | (realBruhatFourier n (realBruhatFourier n f)).val x = f.val (-x) := by |
| 139 | change coordinateSchwartzFourier n ((realSchwartzEquiv n).symm |
| 140 | (realSchwartzEquiv n (coordinateSchwartzFourier n ((realSchwartzEquiv n).symm f)))) x = _ |
| 141 | rw [LinearEquiv.symm_apply_apply, coordinateSchwartzFourier_square, |
| 142 | realSchwartzEquiv_symm_apply] |
| 143 | |
| 144 | theorem real_fourier_inversion_standard {n : ℕ} |
| 145 | (f : Local.FunctionsMetaplectic.Construction.schwartzBruhat ℝ n) (x : Local.FunctionsMetaplectic.Construction.Position ℝ n) : |
| 146 | Local.FunctionsMetaplectic.Construction.fourierIntegral (realCharacter 1) volume |
| 147 | (Local.FunctionsMetaplectic.Construction.fourierIntegral (realCharacter 1) volume f.val) x = f.val (-x) := by |
| 148 | have h := realBruhatFourier_square f x |
| 149 | rw [realBruhatFourier_apply] at h |
| 150 | have hf : (realBruhatFourier n f).val = Local.FunctionsMetaplectic.Construction.fourierIntegral (realCharacter 1) volume f.val := |
| 151 | funext (realBruhatFourier_apply f) |
| 152 | rwa [hf] at h |
| 153 | |
| 154 | theorem real_fourier_plancherel_standard {n : ℕ} |
| 155 | (f : Local.FunctionsMetaplectic.Construction.schwartzBruhat ℝ n) : |
| 156 | (∫ x, ‖Local.FunctionsMetaplectic.Construction.fourierIntegral (realCharacter 1) volume f.val x‖ ^ 2) = ∫ x, ‖f.val x‖ ^ 2 := by |
| 157 | have h := coordinateSchwartzFourier_integral_norm_sq ((realSchwartzEquiv n).symm f) |
| 158 | simp_rw [coordinateSchwartzFourier_apply] at h |
| 159 | have hf : ((realSchwartzEquiv n).symm f : Local.FunctionsMetaplectic.Construction.Position ℝ n → ℂ) = f.val := |
| 160 | funext (realSchwartzEquiv_symm_apply f) |
| 161 | simpa only [hf] using h |
| 162 | |
| 163 | end |
| 164 | |
| 165 | section |
| 166 | |
| 167 | /-! The ordinary Fourier integral and the L² transform agree on L¹ ∩ L². |
| 168 | This supplies Plancherel for the reference compact set in the local oscillator definitions. -/ |
| 169 | |
| 170 | open _root_.MeasureTheory FourierTransform |
| 171 | open scoped FourierTransform SchwartzMap ContDiff ENNReal |
| 172 | |
| 173 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 174 | [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] |
| 175 | |
| 176 | theorem integral_fourier_mul_swap {f g : E → ℂ} |
| 177 | (hf : Integrable f) (hg : Integrable g) : |
| 178 | (∫ x, 𝓕 f x * g x) = ∫ x, f x * 𝓕 g x := by |
| 179 | simpa using! VectorFourier.integral_bilin_fourierIntegral_eq_flip |
| 180 | (ContinuousLinearMap.mul ℂ ℂ) (L := innerₗ E) |
| 181 | Real.continuous_fourierChar continuous_inner hf hg |
| 182 | |
| 183 | theorem fourier_integral_ae_L2 {f : E → ℂ} |
| 184 | (hf : Integrable f) (hf₂ : MemLp f 2) : |
| 185 | 𝓕 f =ᵐ[volume] (𝓕 (hf₂.toLp f) : Lp ℂ 2 (volume : Measure E)) := by |
| 186 | have hcont : Continuous (𝓕 f) := |
| 187 | VectorFourier.fourierIntegral_continuous Real.continuous_fourierChar |
| 188 | (innerSL ℝ).continuous₂ hf |
| 189 | apply ae_eq_of_integral_contDiff_smul_eq hcont.locallyIntegrable |
| 190 | ((Lp.memLp (𝓕 (hf₂.toLp f))).locallyIntegrable (by norm_num)) |
| 191 | intro g hg hc |
| 192 | have hc' : HasCompactSupport (Complex.ofRealCLM ∘ g) := hc.comp_left rfl |
| 193 | have hg' : ContDiff ℝ ∞ (Complex.ofRealCLM ∘ g) := by fun_prop |
| 194 | let φ : SchwartzMap E ℂ := hc'.toSchwartzMap hg' |
| 195 | have hdist := congrArg (fun T : TemperedDistribution E ℂ => T φ) |
| 196 | (Lp.fourier_toTemperedDistribution_eq (hf₂.toLp f)) |
| 197 | simp only [TemperedDistribution.fourier_apply, Lp.toTemperedDistribution_apply, |
| 198 | smul_eq_mul] at hdist |
| 199 | have hpair : (∫ x, 𝓕 φ x * f x) = ∫ x, φ x * (𝓕 (hf₂.toLp f) : Lp ℂ 2 (volume : Measure E)) x := by |
| 200 | calc |
| 201 | _ = ∫ x, 𝓕 φ x * (hf₂.toLp f) x := by |
| 202 | apply integral_congr_ae |
| 203 | filter_upwards [hf₂.coeFn_toLp] with x hx |
| 204 | rw [hx] |
| 205 | _ = _ := hdist |
| 206 | calc |
| 207 | _ = ∫ x, 𝓕 f x * φ x := by |
| 208 | apply integral_congr_ae |
| 209 | exact Filter.Eventually.of_forall fun x => by |
| 210 | change g x • 𝓕 f x = 𝓕 f x * (g x : ℂ) |
| 211 | rw [Complex.real_smul, mul_comm] |
| 212 | _ = ∫ x, f x * 𝓕 φ x := by |
| 213 | exact integral_fourier_mul_swap hf φ.integrable |
| 214 | _ = ∫ x, φ x * (𝓕 (hf₂.toLp f) : Lp ℂ 2 (volume : Measure E)) x := by |
| 215 | rw [← hpair] |
| 216 | exact integral_congr_ae (Filter.Eventually.of_forall fun x => mul_comm _ _) |
| 217 | _ = _ := by |
| 218 | apply integral_congr_ae |
| 219 | exact Filter.Eventually.of_forall fun x => by |
| 220 | change (g x : ℂ) * _ = g x • _ |
| 221 | rw [Complex.real_smul] |
| 222 | |
| 223 | theorem memLp_fourier_integral {f : E → ℂ} (hf : Integrable f) (hf₂ : MemLp f 2) : |
| 224 | MemLp (𝓕 f) 2 := |
| 225 | (memLp_congr_ae (fourier_integral_ae_L2 hf hf₂)).mpr (Lp.memLp _) |
| 226 | |
| 227 | theorem L2_integral_norm_sq (f : Lp ℂ 2 (volume : Measure E)) : |
| 228 | (∫ x, ‖f x‖ ^ 2) = ‖f‖ ^ 2 := by |
| 229 | rw [Lp.norm_def, toReal_eLpNorm, |
| 230 | lpNorm_eq_integral_norm_rpow_toReal (by norm_num) (by norm_num) |
| 231 | (Lp.aestronglyMeasurable f)] |
| 232 | norm_num only [ENNReal.toReal_ofNat, Real.rpow_two, invOf_eq_inv] |
| 233 | rw [← Real.sqrt_eq_rpow] |
| 234 | exact (Real.sq_sqrt (integral_nonneg (fun x => sq_nonneg ‖f x‖))).symm |
| 235 | |
| 236 | theorem real_integral_fourier_norm_sq {f : E → ℂ} |
| 237 | (hf : Integrable f) (hf₂ : MemLp f 2) : |
| 238 | (∫ x, ‖𝓕 f x‖ ^ 2) = ∫ x, ‖f x‖ ^ 2 := by |
| 239 | calc |
| 240 | _ = ∫ x, ‖(𝓕 (hf₂.toLp f) : Lp ℂ 2 (volume : Measure E)) x‖ ^ 2 := by |
| 241 | apply integral_congr_ae |
| 242 | filter_upwards [fourier_integral_ae_L2 hf hf₂] with x hx |
| 243 | rw [hx] |
| 244 | _ = ‖(𝓕 (hf₂.toLp f) : Lp ℂ 2 (volume : Measure E))‖ ^ 2 := L2_integral_norm_sq _ |
| 245 | _ = ‖hf₂.toLp f‖ ^ 2 := by rw [Lp.norm_fourier_eq] |
| 246 | _ = ∫ x, ‖(hf₂.toLp f) x‖ ^ 2 := (L2_integral_norm_sq _).symm |
| 247 | _ = _ := by |
| 248 | apply integral_congr_ae |
| 249 | filter_upwards [hf₂.coeFn_toLp] with x hx |
| 250 | rw [hx] |
| 251 | |
| 252 | theorem real_indicator_fourier_norm_sq {s : Set E} (hs : MeasurableSet s) |
| 253 | (hfin : volume s ≠ ⊤) : |
| 254 | (∫ x, ‖𝓕 (s.indicator (fun _ : E => (1 : ℂ))) x‖ ^ 2) = volume.real s := by |
| 255 | have hf (p : ℝ≥0∞) : MemLp (s.indicator (fun _ : E => (1 : ℂ))) p := |
| 256 | memLp_indicator_const p hs 1 (Or.inr hfin) |
| 257 | rw [real_integral_fourier_norm_sq (memLp_one_iff_integrable.mp (hf 1)) (hf 2)] |
| 258 | have heq : (fun x => ‖s.indicator (fun _ : E => (1 : ℂ)) x‖ ^ 2) = |
| 259 | s.indicator (fun _ : E => (1 : ℝ)) := by |
| 260 | funext x |
| 261 | by_cases hx : x ∈ s <;> simp [hx] |
| 262 | rw [heq] |
| 263 | exact integral_indicator_one hs |
| 264 | |
| 265 | end |
| 266 | |
| 267 | section |
| 268 | |
| 269 | /-! Evaluation of the reference-set Haar normalization at a real place. -/ |
| 270 | |
| 271 | open _root_.MeasureTheory |
| 272 | open scoped FourierTransform ENNReal |
| 273 | |
| 274 | theorem referenceFourier_real_standard (ξ : ℝ) : |
| 275 | Local.FunctionsMetaplectic.Construction.referenceFourier ℝ (realCharacter 1) ξ = |
| 276 | (realReferenceHaarFactor : ℂ) * |
| 277 | 𝓕 ((Local.FunctionsMetaplectic.Construction.referenceCompact ℝ : Set ℝ).indicator (fun _ : ℝ => (1 : ℂ))) ξ := by |
| 278 | have hs := (Local.FunctionsMetaplectic.Construction.referenceCompact ℝ).isCompact.measurableSet |
| 279 | rw [Local.FunctionsMetaplectic.Construction.referenceFourier, Measure.isAddLeftInvariant_eq_smul_of_regular |
| 280 | (Measure.addHaar : Measure ℝ) volume, Measure.restrict_smul, integral_smul_nnreal_measure] |
| 281 | change (realReferenceHaarFactor : ℂ) * |
| 282 | (∫ x in (Local.FunctionsMetaplectic.Construction.referenceCompact ℝ : Set ℝ), realCharacter 1 (-(ξ * x))) = _ |
| 283 | congr 1 |
| 284 | rw [Real.fourier_eq, ← integral_indicator hs] |
| 285 | apply integral_congr_ae |
| 286 | exact Filter.Eventually.of_forall fun x => by |
| 287 | by_cases hx : x ∈ (Local.FunctionsMetaplectic.Construction.referenceCompact ℝ : Set ℝ) |
| 288 | · simp [hx, realCharacter, Circle.smul_def, mul_comm] |
| 289 | rfl |
| 290 | · simp [hx] |
| 291 | |
| 292 | theorem real_reference_volume_pos : |
| 293 | 0 < volume.real (Local.FunctionsMetaplectic.Construction.referenceCompact ℝ : Set ℝ) := by |
| 294 | apply ENNReal.toReal_pos |
| 295 | · exact (Measure.measure_pos_of_nonempty_interior volume (Local.FunctionsMetaplectic.Construction.referenceCompact ℝ).interior_nonempty).ne' |
| 296 | · exact (Local.FunctionsMetaplectic.Construction.referenceCompact ℝ).isCompact.measure_ne_top |
| 297 | |
| 298 | theorem fourierHaarScaleSquared_real_standard : |
| 299 | Local.FunctionsMetaplectic.Construction.fourierHaarScaleSquared ℝ (realCharacter 1) = (realReferenceHaarFactor : ℝ) ^ 2 := by |
| 300 | let r : ℝ := realReferenceHaarFactor |
| 301 | let s : Set ℝ := Local.FunctionsMetaplectic.Construction.referenceCompact ℝ |
| 302 | have hr : r ≠ 0 := (show 0 < r from realReferenceHaarFactor_pos).ne' |
| 303 | have hs : volume.real s ≠ 0 := real_reference_volume_pos.ne' |
| 304 | have hhaar : (Measure.addHaar : Measure ℝ) = realReferenceHaarFactor • volume := |
| 305 | Measure.isAddLeftInvariant_eq_smul_of_regular _ _ |
| 306 | unfold Local.FunctionsMetaplectic.Construction.fourierHaarScaleSquared |
| 307 | simp_rw [referenceFourier_real_standard, norm_mul, Complex.norm_real, |
| 308 | Real.norm_eq_abs, abs_of_nonneg realReferenceHaarFactor.coe_nonneg, mul_pow] |
| 309 | rw [hhaar, integral_smul_nnreal_measure, measureReal_nnreal_smul_apply] |
| 310 | simp only [NNReal.smul_def, smul_eq_mul] |
| 311 | rw [integral_const_mul, real_indicator_fourier_norm_sq |
| 312 | (Local.FunctionsMetaplectic.Construction.referenceCompact ℝ).isCompact.measurableSet (Local.FunctionsMetaplectic.Construction.referenceCompact ℝ).isCompact.measure_ne_top] |
| 313 | change (r * (r ^ 2 * volume.real s)) / (r * volume.real s) = r ^ 2 |
| 314 | field_simp |
| 315 | |
| 316 | theorem fourierHaarScaleSquared_real_standard_pos : |
| 317 | 0 < Local.FunctionsMetaplectic.Construction.fourierHaarScaleSquared ℝ (realCharacter 1) := by |
| 318 | rw [fourierHaarScaleSquared_real_standard] |
| 319 | exact sq_pos_of_pos realReferenceHaarFactor_pos |
| 320 | |
| 321 | /-- The normalization defined by a reference compact set really yields Lebesgue measure. -/ |
| 322 | theorem selfDualMeasure_real_standard : |
| 323 | Local.FunctionsMetaplectic.Construction.selfDualMeasure ℝ (realCharacter 1) = volume := by |
| 324 | have hr : realReferenceHaarFactor ≠ 0 := realReferenceHaarFactor_pos.ne' |
| 325 | rw [Local.FunctionsMetaplectic.Construction.selfDualMeasure, fourierHaarScaleSquared_real_standard, |
| 326 | Real.sqrt_sq (by exact realReferenceHaarFactor.coe_nonneg)] |
| 327 | rw [Measure.isAddLeftInvariant_eq_smul_of_regular (Measure.addHaar : Measure ℝ) volume] |
| 328 | change ENNReal.ofReal ((realReferenceHaarFactor : ℝ)⁻¹) • |
| 329 | (realReferenceHaarFactor • volume) = volume |
| 330 | rw [← NNReal.coe_inv, ENNReal.ofReal_coe_nnreal, ← ENNReal.smul_def, |
| 331 | smul_smul, inv_mul_cancel₀ hr, one_smul] |
| 332 | |
| 333 | theorem positionMeasure_real_standard (n : ℕ) : |
| 334 | Local.FunctionsMetaplectic.Construction.positionMeasure ℝ n (realCharacter 1) = volume := by |
| 335 | simp [Local.FunctionsMetaplectic.Construction.positionMeasure, selfDualMeasure_real_standard, volume_pi] |
| 336 | |
| 337 | theorem real_fourier_inversion_selfDual {n : ℕ} |
| 338 | (f : Local.FunctionsMetaplectic.Construction.schwartzBruhat ℝ n) (x : Local.FunctionsMetaplectic.Construction.Position ℝ n) : |
| 339 | Local.FunctionsMetaplectic.Construction.fourierIntegral (realCharacter 1) (Local.FunctionsMetaplectic.Construction.positionMeasure ℝ n (realCharacter 1)) |
| 340 | (Local.FunctionsMetaplectic.Construction.fourierIntegral (realCharacter 1) (Local.FunctionsMetaplectic.Construction.positionMeasure ℝ n (realCharacter 1)) f.val) x = |
| 341 | f.val (-x) := by |
| 342 | rw [positionMeasure_real_standard] |
| 343 | exact real_fourier_inversion_standard f x |
| 344 | |
| 345 | theorem referenceFourier_real_shift (c ξ : ℝ) : |
| 346 | Local.FunctionsMetaplectic.Construction.referenceFourier ℝ (realCharacter c) ξ = |
| 347 | Local.FunctionsMetaplectic.Construction.referenceFourier ℝ (realCharacter 1) (c * ξ) := by |
| 348 | unfold Local.FunctionsMetaplectic.Construction.referenceFourier |
| 349 | apply integral_congr_ae |
| 350 | exact Filter.Eventually.of_forall fun x => by |
| 351 | change (Real.fourierChar (c * -(ξ * x)) : ℂ) = |
| 352 | (Real.fourierChar (1 * -((c * ξ) * x)) : ℂ) |
| 353 | congr 2 |
| 354 | ring |
| 355 | |
| 356 | theorem fourierHaarScaleSquared_real (c : ℝ) : |
| 357 | Local.FunctionsMetaplectic.Construction.fourierHaarScaleSquared ℝ (realCharacter c) = |
| 358 | (realReferenceHaarFactor : ℝ) ^ 2 / |c| := by |
| 359 | have h := Measure.integral_comp_smul (Measure.addHaar : Measure ℝ) |
| 360 | (fun ξ => ‖Local.FunctionsMetaplectic.Construction.referenceFourier ℝ (realCharacter 1) ξ‖ ^ 2) c |
| 361 | simp only [smul_eq_mul, Module.finrank_self, pow_one, abs_inv] at h |
| 362 | calc |
| 363 | _ = |c|⁻¹ * Local.FunctionsMetaplectic.Construction.fourierHaarScaleSquared ℝ (realCharacter 1) := by |
| 364 | unfold Local.FunctionsMetaplectic.Construction.fourierHaarScaleSquared |
| 365 | have heq : Local.FunctionsMetaplectic.Construction.referenceFourier ℝ (realCharacter c) = |
| 366 | fun ξ => Local.FunctionsMetaplectic.Construction.referenceFourier ℝ (realCharacter 1) (c * ξ) := |
| 367 | funext (referenceFourier_real_shift c) |
| 368 | rw [heq, h, mul_div_assoc] |
| 369 | _ = _ := by rw [fourierHaarScaleSquared_real_standard]; ring |
| 370 | |
| 371 | theorem fourierHaarScaleSquared_real_pos (c : ℝ) (hc : c ≠ 0) : |
| 372 | 0 < Local.FunctionsMetaplectic.Construction.fourierHaarScaleSquared ℝ (realCharacter c) := by |
| 373 | rw [fourierHaarScaleSquared_real] |
| 374 | exact div_pos (sq_pos_of_pos realReferenceHaarFactor_pos) (abs_pos.mpr hc) |
| 375 | |
| 376 | theorem selfDualMeasure_real (c : ℝ) (hc : c ≠ 0) : |
| 377 | Local.FunctionsMetaplectic.Construction.selfDualMeasure ℝ (realCharacter c) = ENNReal.ofReal (Real.sqrt |c|) • volume := by |
| 378 | have hr : (realReferenceHaarFactor : ℝ) ≠ 0 := |
| 379 | (show (0 : ℝ) < realReferenceHaarFactor from realReferenceHaarFactor_pos).ne' |
| 380 | have hs : Real.sqrt |c| ≠ 0 := (Real.sqrt_pos.mpr (abs_pos.mpr hc)).ne' |
| 381 | have hscale : (Real.sqrt ((realReferenceHaarFactor : ℝ) ^ 2 / |c|))⁻¹ * |
| 382 | (realReferenceHaarFactor : ℝ) = Real.sqrt |c| := by |
| 383 | rw [Real.sqrt_div (sq_nonneg _), Real.sqrt_sq realReferenceHaarFactor.coe_nonneg] |
| 384 | field_simp |
| 385 | rw [Local.FunctionsMetaplectic.Construction.selfDualMeasure, fourierHaarScaleSquared_real, |
| 386 | Measure.isAddLeftInvariant_eq_smul_of_regular (Measure.addHaar : Measure ℝ) volume] |
| 387 | change ENNReal.ofReal (Real.sqrt ((realReferenceHaarFactor : ℝ) ^ 2 / |c|))⁻¹ • |
| 388 | (realReferenceHaarFactor • volume) = _ |
| 389 | rw [ENNReal.smul_def, smul_smul] |
| 390 | rw [← ENNReal.ofReal_coe_nnreal, ← ENNReal.ofReal_mul (by positivity), hscale] |
| 391 | |
| 392 | end |
| 393 | |
| 394 | section |
| 395 | |
| 396 | /-! Classification of real characters from their proved derivative formula. -/ |
| 397 | |
| 398 | theorem real_character_eq_exp (ψ : AddChar ℝ ℂ) (hc : Continuous ψ) : |
| 399 | ∃ z : ℂ, ∀ t : ℝ, ψ t = Complex.exp (z * t) := by |
| 400 | obtain ⟨z, hd⟩ := ArchimedeanCharacters.LocalAnalysis.real_character_derivative ψ hc |
| 401 | have hg (t : ℝ) : HasDerivAt |
| 402 | (fun s : ℝ => ψ s * Complex.exp (-z * s)) 0 t := by |
| 403 | have he : HasDerivAt (fun s : ℝ => Complex.exp (-z * s)) |
| 404 | (Complex.exp (-z * t) * -z) t := |
| 405 | by simpa using (((hasDerivAt_id t).ofReal_comp).const_mul (-z)).cexp |
| 406 | have h := (hd t).mul he |
| 407 | convert! h using 1 |
| 408 | ring |
| 409 | refine ⟨z, fun t => ?_⟩ |
| 410 | have hconst := is_const_of_deriv_eq_zero (fun t => (hg t).differentiableAt) |
| 411 | (fun t => (hg t).deriv) t 0 |
| 412 | simp only [Complex.ofReal_zero, mul_zero, Complex.exp_zero, ψ.map_zero_eq_one, mul_one] at hconst |
| 413 | have he : Complex.exp (-z * (t : ℂ)) * Complex.exp (z * t) = 1 := by |
| 414 | rw [← Complex.exp_add] |
| 415 | ring_nf |
| 416 | exact Complex.exp_zero |
| 417 | calc |
| 418 | ψ t = ψ t * (Complex.exp (-z * t) * Complex.exp (z * t)) := by rw [he, mul_one] |
| 419 | _ = Complex.exp (z * t) := by rw [← mul_assoc, hconst, one_mul] |
| 420 | |
| 421 | theorem continuous_unitary_real_character (ψ : AddChar ℝ ℂ) |
| 422 | (hc : Continuous (fun t => ψ t)) (hu : ∀ t, ‖ψ t‖ = 1) : |
| 423 | ∃ c : ℝ, ψ = realCharacter c := by |
| 424 | obtain ⟨z, hz⟩ := real_character_eq_exp ψ hc |
| 425 | have hre : z.re = 0 := by |
| 426 | have h := hu 1 |
| 427 | rw [hz] at h |
| 428 | simpa only [Complex.ofReal_one, mul_one, Complex.norm_exp, Real.exp_eq_one_iff] using h |
| 429 | refine ⟨z.im / (2 * Real.pi), ?_⟩ |
| 430 | ext t |
| 431 | rw [hz, realCharacter_apply] |
| 432 | congr 1 |
| 433 | have hz' : z = (z.im : ℂ) * Complex.I := by |
| 434 | apply Complex.ext <;> simp [hre] |
| 435 | have hr : 2 * Real.pi * (z.im / (2 * Real.pi)) * t = z.im * t := by |
| 436 | field_simp |
| 437 | rw [hr, Complex.ofReal_mul] |
| 438 | conv_lhs => rw [hz'] |
| 439 | ring |
| 440 | |
| 441 | theorem continuous_nontrivial_unitary_real_character (ψ : AddChar ℝ ℂ) |
| 442 | (hc : Continuous (fun t => ψ t)) (hu : ∀ t, ‖ψ t‖ = 1) |
| 443 | (hn : ∃ t, ψ t ≠ 1) : ∃ c : ℝ, c ≠ 0 ∧ ψ = realCharacter c := by |
| 444 | obtain ⟨c, hψ⟩ := continuous_unitary_real_character ψ hc hu |
| 445 | refine ⟨c, ?_, hψ⟩ |
| 446 | rintro rfl |
| 447 | obtain ⟨t, ht⟩ := hn |
| 448 | apply ht |
| 449 | rw [hψ, realCharacter_apply] |
| 450 | simp |
| 451 | |
| 452 | end |
| 453 | |
| 454 | /-! Continuous unitary characters on a finite-dimensional real vector space |
| 455 | are exponentials of real linear functionals. -/ |
| 456 | |
| 457 | open scoped Classical |
| 458 | |
| 459 | theorem continuous_unitary_vector_character |
| 460 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 461 | {ι : Type*} [Fintype ι] (b : Module.Basis ι ℝ E) |
| 462 | (ψ : AddChar E ℂ) (hc : Continuous ψ) (hu : ∀ x, ‖ψ x‖ = 1) : |
| 463 | ∃ L : E →ₗ[ℝ] ℝ, ∀ x, ψ x = realCharacter 1 (L x) := by |
| 464 | let χ : ι → AddChar ℝ ℂ := fun i => |
| 465 | ψ.compAddMonoidHom (LinearMap.toSpanSingleton ℝ E (b i)).toAddMonoidHom |
| 466 | have hχ (i : ι) : Continuous (χ i) := hc.comp (continuous_id.smul continuous_const) |
| 467 | choose c h using (fun i => continuous_unitary_real_character (χ i) (hχ i) (fun t => hu (t • b i))) |
| 468 | let L : E →ₗ[ℝ] ℝ := ∑ i, c i • b.coord i |
| 469 | refine ⟨L, fun x => ?_⟩ |
| 470 | have hsum : ψ (∑ i, b.repr x i • b i) = ∏ i, ψ (b.repr x i • b i) := by |
| 471 | exact map_prod ψ.toMonoidHom (fun i => Multiplicative.ofAdd (b.repr x i • b i)) Finset.univ |
| 472 | rw [b.sum_repr] at hsum |
| 473 | rw [hsum] |
| 474 | have he (i : ι) : ψ (b.repr x i • b i) = realCharacter 1 (c i * b.repr x i) := by |
| 475 | have hh := congrArg (fun χ : AddChar ℝ ℂ => χ (b.repr x i)) (h i) |
| 476 | change ψ (b.repr x i • b i) = realCharacter (c i) (b.repr x i) at hh |
| 477 | rw [hh] |
| 478 | simp only [realCharacter_apply, mul_one, mul_assoc] |
| 479 | simp_rw [he] |
| 480 | have hsum' : (∏ i, realCharacter 1 (c i * b.repr x i)) = |
| 481 | realCharacter 1 (∑ i, c i * b.repr x i) := |
| 482 | (map_prod (realCharacter 1).toMonoidHom |
| 483 | (fun i => Multiplicative.ofAdd (c i * b.repr x i)) Finset.univ).symm |
| 484 | rw [hsum'] |
| 485 | congr 1 |
| 486 | simp [L, LinearMap.sum_apply, Module.Basis.coord_apply] |
| 487 | |
| 488 | theorem realCharacter_one_eq_one_iff (t : ℝ) : |
| 489 | realCharacter 1 t = 1 ↔ ∃ z : ℤ, (z : ℝ) = t := by |
| 490 | rw [realCharacter_apply, mul_one, Complex.exp_eq_one_iff] |
| 491 | constructor |
| 492 | · rintro ⟨z, hz⟩ |
| 493 | have hi := congrArg Complex.im hz |
| 494 | have he : (2 * Real.pi) * t = (2 * Real.pi) * (z : ℝ) := by |
| 495 | simpa [Complex.mul_im, mul_assoc, mul_comm, mul_left_comm] using hi |
| 496 | exact ⟨z, (mul_left_cancel₀ (by positivity : 2 * Real.pi ≠ 0) he).symm⟩ |
| 497 | · rintro ⟨z, rfl⟩ |
| 498 | refine ⟨z, ?_⟩ |
| 499 | push_cast |
| 500 | ring |
| 501 | |
| 502 | end |
| 503 | |
| 504 | end OAI.RepresentationTheory.Weil.AdelicSplitting.RealCharacters.LocalAnalysis |