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.RealFourierLp |
| 2 | import OAI.RepresentationTheory.Weil.Local.QuadraticIntertwiner |
| 3 | |
| 4 | /-! # Real Characters -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.Local.RealCharacters.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Classification of continuous real characters from their integral primitives. -/ |
| 13 | |
| 14 | open _root_.MeasureTheory |
| 15 | |
| 16 | def characterPrimitive (ψ : AddChar ℝ ℂ) (t : ℝ) : ℂ := ∫ s in 0..t, ψ s |
| 17 | |
| 18 | theorem characterPrimitive_hasDerivAt (ψ : AddChar ℝ ℂ) |
| 19 | (hc : Continuous (fun t => ψ t)) (t : ℝ) : |
| 20 | HasDerivAt (characterPrimitive ψ) (ψ t) t := |
| 21 | intervalIntegral.integral_hasDerivAt_right (hc.intervalIntegrable 0 t) |
| 22 | hc.aestronglyMeasurable.stronglyMeasurableAtFilter hc.continuousAt |
| 23 | |
| 24 | theorem characterPrimitive_ne_zero (ψ : AddChar ℝ ℂ) |
| 25 | (hc : Continuous (fun t => ψ t)) : ∃ a : ℝ, characterPrimitive ψ a ≠ 0 := by |
| 26 | by_contra! h |
| 27 | have heq : characterPrimitive ψ = fun _ => (0 : ℂ) := funext h |
| 28 | have hd := characterPrimitive_hasDerivAt ψ hc 0 |
| 29 | rw [heq] at hd |
| 30 | have hz := hd.unique (hasDerivAt_const 0 (0 : ℂ)) |
| 31 | exact one_ne_zero (ψ.map_zero_eq_one.symm.trans hz) |
| 32 | |
| 33 | theorem characterPrimitive_shift (ψ : AddChar ℝ ℂ) |
| 34 | (hc : Continuous (fun t => ψ t)) (a t : ℝ) : |
| 35 | characterPrimitive ψ (t + a) - characterPrimitive ψ t = |
| 36 | ψ t * characterPrimitive ψ a := by |
| 37 | rw [characterPrimitive, characterPrimitive, |
| 38 | intervalIntegral.integral_interval_sub_left (hc.intervalIntegrable _ _) (hc.intervalIntegrable _ _)] |
| 39 | have h := intervalIntegral.integral_comp_add_right (fun s => ψ s) t (a := 0) (b := a) |
| 40 | rw [zero_add, add_comm a t] at h |
| 41 | rw [← h] |
| 42 | simp only [ψ.map_add_eq_mul, intervalIntegral.integral_mul_const, characterPrimitive] |
| 43 | exact mul_comm _ _ |
| 44 | |
| 45 | theorem real_character_eq_exp (ψ : AddChar ℝ ℂ) |
| 46 | (hc : Continuous (fun t => ψ t)) : |
| 47 | ∃ z : ℂ, ∀ t : ℝ, ψ t = Complex.exp (z * t) := by |
| 48 | obtain ⟨a, ha⟩ := characterPrimitive_ne_zero ψ hc |
| 49 | let z : ℂ := (ψ a - 1) / characterPrimitive ψ a |
| 50 | have hfun : (fun t => (characterPrimitive ψ (t + a) - characterPrimitive ψ t) / |
| 51 | characterPrimitive ψ a) = fun t => ψ t := by |
| 52 | funext t |
| 53 | rw [characterPrimitive_shift ψ hc, mul_div_cancel_right₀ _ ha] |
| 54 | have hd (t : ℝ) : HasDerivAt (fun s => ψ s) (ψ t * z) t := by |
| 55 | have h := (((characterPrimitive_hasDerivAt ψ hc (t + a)).scomp t |
| 56 | ((hasDerivAt_id t).add_const a)).sub (characterPrimitive_hasDerivAt ψ hc t)).mul_const |
| 57 | (characterPrimitive ψ a)⁻¹ |
| 58 | simp only [one_smul, ← div_eq_mul_inv, Function.comp_def, Pi.sub_apply, id_eq] at h |
| 59 | rw [hfun] at h |
| 60 | convert! h using 1 |
| 61 | rw [ψ.map_add_eq_mul] |
| 62 | dsimp [z] |
| 63 | ring |
| 64 | have hg (t : ℝ) : HasDerivAt |
| 65 | (fun s : ℝ => ψ s * Complex.exp (-z * s)) 0 t := by |
| 66 | have he : HasDerivAt (fun s : ℝ => Complex.exp (-z * s)) |
| 67 | (Complex.exp (-z * t) * -z) t := |
| 68 | by simpa using (((hasDerivAt_id t).ofReal_comp).const_mul (-z)).cexp |
| 69 | have h := (hd t).mul he |
| 70 | convert! h using 1 |
| 71 | ring |
| 72 | refine ⟨z, fun t => ?_⟩ |
| 73 | have hconst := is_const_of_deriv_eq_zero (fun t => (hg t).differentiableAt) |
| 74 | (fun t => (hg t).deriv) t 0 |
| 75 | simp only [Complex.ofReal_zero, mul_zero, Complex.exp_zero, ψ.map_zero_eq_one, mul_one] at hconst |
| 76 | have he : Complex.exp (-z * (t : ℂ)) * Complex.exp (z * t) = 1 := by |
| 77 | rw [← Complex.exp_add] |
| 78 | ring_nf |
| 79 | exact Complex.exp_zero |
| 80 | calc |
| 81 | ψ t = ψ t * (Complex.exp (-z * t) * Complex.exp (z * t)) := by rw [he, mul_one] |
| 82 | _ = Complex.exp (z * t) := by rw [← mul_assoc, hconst, one_mul] |
| 83 | |
| 84 | theorem continuous_unitary_real_character (ψ : AddChar ℝ ℂ) |
| 85 | (hc : Continuous (fun t => ψ t)) (hu : ∀ t, ‖ψ t‖ = 1) : |
| 86 | ∃ c : ℝ, ψ = Gaussian.Construction.realCharacter c := by |
| 87 | obtain ⟨z, hz⟩ := real_character_eq_exp ψ hc |
| 88 | have hre : z.re = 0 := by |
| 89 | have h := hu 1 |
| 90 | rw [hz] at h |
| 91 | simpa only [Complex.ofReal_one, mul_one, Complex.norm_exp, Real.exp_eq_one_iff] using h |
| 92 | refine ⟨z.im / (2 * Real.pi), ?_⟩ |
| 93 | ext t |
| 94 | rw [hz, Gaussian.Construction.realCharacter_apply] |
| 95 | congr 1 |
| 96 | have hz' : z = (z.im : ℂ) * Complex.I := by |
| 97 | apply Complex.ext <;> simp [hre] |
| 98 | have hr : 2 * Real.pi * (z.im / (2 * Real.pi)) * t = z.im * t := by |
| 99 | field_simp |
| 100 | rw [hr, Complex.ofReal_mul] |
| 101 | conv_lhs => rw [hz'] |
| 102 | ring |
| 103 | |
| 104 | theorem continuous_nontrivial_unitary_real_character (ψ : AddChar ℝ ℂ) |
| 105 | (hc : Continuous (fun t => ψ t)) (hu : ∀ t, ‖ψ t‖ = 1) |
| 106 | (hn : ∃ t, ψ t ≠ 1) : ∃ c : ℝ, c ≠ 0 ∧ ψ = Gaussian.Construction.realCharacter c := by |
| 107 | obtain ⟨c, hψ⟩ := continuous_unitary_real_character ψ hc hu |
| 108 | refine ⟨c, ?_, hψ⟩ |
| 109 | rintro rfl |
| 110 | obtain ⟨t, ht⟩ := hn |
| 111 | apply ht |
| 112 | rw [hψ, Gaussian.Construction.realCharacter_apply] |
| 113 | simp |
| 114 | |
| 115 | end |
| 116 | |
| 117 | /-! Character multiplication preserves Bruhat functions in every real additive chart. -/ |
| 118 | |
| 119 | open scoped SchwartzMap ContDiff |
| 120 | |
| 121 | theorem continuous_unitary_coordinate_character_temperate |
| 122 | {r : ℕ} (ψ : AddChar (Fin r → ℝ) ℂ) |
| 123 | (hψ : Continuous (fun x : Fin r → ℝ => ψ x)) |
| 124 | (hunit : ∀ x, ‖ψ x‖ = 1) : Function.HasTemperateGrowth (fun x : Fin r → ℝ => ψ x) := by |
| 125 | classical |
| 126 | have hsingle (i : Fin r) : |
| 127 | Function.HasTemperateGrowth (fun x : Fin r → ℝ => ψ (Pi.single i (x i))) := by |
| 128 | let φ : AddChar ℝ ℂ := |
| 129 | { toFun := fun t => ψ (Pi.single i t) |
| 130 | map_zero_eq_one' := by simp |
| 131 | map_add_eq_mul' := by |
| 132 | intro s t |
| 133 | rw [Pi.single_add, ψ.map_add_eq_mul] } |
| 134 | have hc : Continuous (fun t : ℝ => φ t) := by |
| 135 | apply hψ.comp |
| 136 | apply continuous_pi |
| 137 | intro j |
| 138 | by_cases h : j = i |
| 139 | · subst j |
| 140 | simp only [Pi.single_eq_same] |
| 141 | fun_prop |
| 142 | · simpa [Pi.single_eq_of_ne h] using (continuous_const : Continuous (fun _ : ℝ => (0 : ℝ))) |
| 143 | obtain ⟨c, hφ⟩ := continuous_unitary_real_character φ hc (fun t => hunit _) |
| 144 | have ht : Function.HasTemperateGrowth (fun t => φ t) := by |
| 145 | rw [hφ] |
| 146 | exact RealTestSpace.Construction.realCharacter_temperate c |
| 147 | exact ht.comp (ContinuousLinearMap.proj i : (Fin r → ℝ) →L[ℝ] ℝ).hasTemperateGrowth |
| 148 | have hsum (s : Finset (Fin r)) : |
| 149 | Function.HasTemperateGrowth (fun x : Fin r → ℝ => ψ (∑ i ∈ s, Pi.single i (x i))) := by |
| 150 | induction s using Finset.induction_on with |
| 151 | | empty => |
| 152 | simp only [Finset.sum_empty, ψ.map_zero_eq_one] |
| 153 | exact Function.HasTemperateGrowth.const 1 |
| 154 | | @insert i s hi ih => |
| 155 | simpa only [Finset.sum_insert hi, ψ.map_add_eq_mul, Pi.mul_def] using (hsingle i).mul ih |
| 156 | simpa only [Finset.univ_sum_single] using hsum Finset.univ |
| 157 | |
| 158 | theorem locallyConstant_real_contDiff {V W : Type} |
| 159 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 160 | [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 161 | {f : V → W} (hf : IsLocallyConstant f) : ContDiff ℝ ∞ f := by |
| 162 | rw [contDiff_iff_contDiffAt] |
| 163 | intro x |
| 164 | exact contDiffAt_const.congr_of_eventuallyEq (hf.eventually_eq x) |
| 165 | |
| 166 | theorem schwartzBruhat_realChart_iff |
| 167 | {F : Type} [NormedField F] {d r : ℕ} |
| 168 | (e : (Fin r → ℝ) ≃ₜ+ FunctionsMetaplectic.Construction.Position F d) {f : FunctionsMetaplectic.Construction.Position F d → ℂ} : |
| 169 | f ∈ FunctionsMetaplectic.Construction.schwartzBruhat F d ↔ |
| 170 | ∃ φ : SchwartzMap (Fin r → ℝ) ℂ, f = fun x => φ (e.symm x) := by |
| 171 | constructor |
| 172 | · intro hf |
| 173 | induction hf using Submodule.span_induction with |
| 174 | | mem f hf => |
| 175 | rcases hf with hf | ⟨r', e', φ, rfl⟩ |
| 176 | · have hl : IsLocallyConstant (f ∘ e) := hf.1.comp_continuous e.continuous |
| 177 | have hc : HasCompactSupport (f ∘ e) := hf.2.comp_homeomorph e.toHomeomorph |
| 178 | refine ⟨hc.toSchwartzMap (locallyConstant_real_contDiff hl), ?_⟩ |
| 179 | funext x |
| 180 | change f x = f (e (e.symm x)) |
| 181 | rw [e.apply_symm_apply] |
| 182 | · let a := e.trans e'.symm |
| 183 | let L := a.toAddEquiv.toRealLinearEquiv a.continuous a.symm.continuous |
| 184 | refine ⟨SchwartzMap.compCLMOfContinuousLinearEquiv ℂ L φ, ?_⟩ |
| 185 | funext x |
| 186 | change φ (e'.symm x) = φ (e'.symm (e (e.symm x))) |
| 187 | rw [e.apply_symm_apply] |
| 188 | | zero => exact ⟨0, rfl⟩ |
| 189 | | add f g _ _ hf hg => |
| 190 | obtain ⟨φ, rfl⟩ := hf |
| 191 | obtain ⟨χ, rfl⟩ := hg |
| 192 | exact ⟨φ + χ, rfl⟩ |
| 193 | | smul c f _ hf => |
| 194 | obtain ⟨φ, rfl⟩ := hf |
| 195 | exact ⟨c • φ, rfl⟩ |
| 196 | · rintro ⟨φ, rfl⟩ |
| 197 | exact FunctionsMetaplectic.Construction.schwartz_coordinate_mem e φ |
| 198 | |
| 199 | theorem realChart_character_mul_mem |
| 200 | {F : Type} [NormedField F] {d r : ℕ} |
| 201 | (e : (Fin r → ℝ) ≃ₜ+ FunctionsMetaplectic.Construction.Position F d) |
| 202 | (χ : AddChar (FunctionsMetaplectic.Construction.Position F d) ℂ) |
| 203 | (hχ : Continuous (fun x : FunctionsMetaplectic.Construction.Position F d => χ x)) |
| 204 | (hunit : ∀ x, ‖χ x‖ = 1) |
| 205 | {f : FunctionsMetaplectic.Construction.Position F d → ℂ} (hf : f ∈ FunctionsMetaplectic.Construction.schwartzBruhat F d) : |
| 206 | (fun x => χ x * f x) ∈ FunctionsMetaplectic.Construction.schwartzBruhat F d := by |
| 207 | obtain ⟨φ, rfl⟩ := (schwartzBruhat_realChart_iff e).mp hf |
| 208 | let η : AddChar (Fin r → ℝ) ℂ := χ.compAddMonoidHom e.toAddEquiv.toAddMonoidHom |
| 209 | have hη : Function.HasTemperateGrowth (fun x : Fin r → ℝ => η x) := |
| 210 | continuous_unitary_coordinate_character_temperate η (hχ.comp e.continuous) (fun x => hunit _) |
| 211 | let θ := SchwartzMap.smulLeftCLM ℂ (fun x : Fin r → ℝ => η x) φ |
| 212 | apply (schwartzBruhat_realChart_iff e).mpr |
| 213 | refine ⟨θ, ?_⟩ |
| 214 | funext x |
| 215 | change χ x * φ (e.symm x) = |
| 216 | (SchwartzMap.smulLeftCLM ℂ (fun x : Fin r → ℝ => η x) φ) (e.symm x) |
| 217 | rw [SchwartzMap.smulLeftCLM_apply_apply hη] |
| 218 | change χ x * φ (e.symm x) = χ (e (e.symm x)) * φ (e.symm x) |
| 219 | rw [e.apply_symm_apply] |
| 220 | |
| 221 | end |
| 222 | |
| 223 | end OAI.RepresentationTheory.Weil.Local.RealCharacters.Construction |