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 Mathlib |
| 2 | |
| 3 | /-! # Real Character -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.UnitarySplitting.RealCharacter.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Smoothness of continuous additive characters of the real line, |
| 12 | proved using an antiderivative and the character equation. -/ |
| 13 | |
| 14 | open _root_.MeasureTheory |
| 15 | open scoped _root_.Topology ContDiff BigOperators |
| 16 | |
| 17 | theorem continuous_real_character_hasDerivAt |
| 18 | (ψ : AddChar ℝ ℂ) (hψ : Continuous (fun t : ℝ => ψ t)) : |
| 19 | ∃ c : ℂ, ∀ t : ℝ, HasDerivAt (fun t : ℝ => ψ t) (c * ψ t) t := by |
| 20 | let J : ℝ → ℂ := fun a => ∫ t in 0..a, ψ t |
| 21 | have hJ (a : ℝ) : HasDerivAt J (ψ a) a := |
| 22 | intervalIntegral.integral_hasDerivAt_right (hψ.intervalIntegrable 0 a) |
| 23 | hψ.aestronglyMeasurable.stronglyMeasurableAtFilter hψ.continuousAt |
| 24 | obtain ⟨a, ha⟩ : ∃ a : ℝ, J a ≠ 0 := by |
| 25 | by_contra! h |
| 26 | have heq : J = fun _ => 0 := funext h |
| 27 | have hh := hJ 0 |
| 28 | rw [heq] at hh |
| 29 | have hbad := hh.unique (hasDerivAt_const (0 : ℝ) (0 : ℂ)) |
| 30 | simp only [ψ.map_zero_eq_one, one_ne_zero] at hbad |
| 31 | have hformula (t : ℝ) : ψ t = (J (t + a) - J t) / J a := by |
| 32 | have hint : J (t + a) - J t = ∫ s in t..t + a, ψ s := by |
| 33 | have hh : J t + (∫ s in t..t + a, ψ s) = J (t + a) := |
| 34 | intervalIntegral.integral_add_adjacent_intervals |
| 35 | (hψ.intervalIntegrable 0 t) (hψ.intervalIntegrable t (t + a)) |
| 36 | linear_combination -hh |
| 37 | have hshift : (∫ s in t..t + a, ψ s) = ψ t * J a := by |
| 38 | calc |
| 39 | _ = ∫ s in 0..a, ψ (t + s) := by |
| 40 | simpa only [add_zero] using |
| 41 | (intervalIntegral.integral_comp_add_left (a := 0) (b := a) (fun s : ℝ => ψ s) t).symm |
| 42 | _ = ψ t * J a := by |
| 43 | simp_rw [ψ.map_add_eq_mul] |
| 44 | rw [intervalIntegral.integral_const_mul] |
| 45 | rw [hint, hshift, mul_div_cancel_right₀ _ ha] |
| 46 | refine ⟨(ψ a - 1) / J a, fun t => ?_⟩ |
| 47 | have hd : HasDerivAt (fun t => (J (t + a) - J t) / J a) |
| 48 | ((ψ (t + a) - ψ t) / J a) t := by |
| 49 | simpa only [one_smul, Function.comp_apply, Pi.sub_apply, id_eq] using |
| 50 | (((hJ (t + a)).scomp t ((hasDerivAt_id t).add_const a)).sub |
| 51 | (hJ t)).div_const (J a) |
| 52 | have hcoef : (ψ (t + a) - ψ t) / J a = |
| 53 | (ψ a - 1) / J a * ψ t := by |
| 54 | rw [ψ.map_add_eq_mul] |
| 55 | ring |
| 56 | convert hd using 1 |
| 57 | · exact funext hformula |
| 58 | · exact hcoef.symm |
| 59 | |
| 60 | theorem continuous_real_character_exponential |
| 61 | (ψ : AddChar ℝ ℂ) (hψ : Continuous (fun t : ℝ => ψ t)) : |
| 62 | ∃ c : ℂ, ∀ t : ℝ, ψ t = Complex.exp ((t : ℂ) * c) := by |
| 63 | obtain ⟨c, hc⟩ := continuous_real_character_hasDerivAt ψ hψ |
| 64 | let f : ℝ → ℂ := fun t => ψ t * Complex.exp (-(t : ℂ) * c) |
| 65 | have hf (t : ℝ) : HasDerivAt f 0 t := by |
| 66 | have he : HasDerivAt (fun t : ℝ => Complex.exp (-(t : ℂ) * c)) |
| 67 | (Complex.exp (-(t : ℂ) * c) * (-c)) t := by |
| 68 | convert (((hasDerivAt_id t).ofReal_comp.neg).mul_const c).cexp using 1 <;> simp |
| 69 | have hz : c * ψ t * Complex.exp (-(t : ℂ) * c) + |
| 70 | ψ t * (Complex.exp (-(t : ℂ) * c) * (-c)) = 0 := by ring |
| 71 | simpa only [hz, Pi.mul_def] using (hc t).mul he |
| 72 | have hconst (t : ℝ) : f t = 1 := by |
| 73 | have hh := is_const_of_deriv_eq_zero (fun t => (hf t).differentiableAt) |
| 74 | (fun t => (hf t).deriv) t 0 |
| 75 | simpa [f] using hh |
| 76 | refine ⟨c, fun t => ?_⟩ |
| 77 | have hh := congrArg (fun z => z * Complex.exp ((t : ℂ) * c)) (hconst t) |
| 78 | dsimp only [f] at hh |
| 79 | rw [mul_assoc, ← Complex.exp_add] at hh |
| 80 | have he : -(t : ℂ) * c + (t : ℂ) * c = 0 := by ring |
| 81 | simpa only [he, Complex.exp_zero, mul_one, one_mul] using hh |
| 82 | |
| 83 | theorem continuous_unitary_real_character_temperate |
| 84 | (ψ : AddChar ℝ ℂ) (hψ : Continuous (fun t : ℝ => ψ t)) |
| 85 | (hunit : ∀ t, ‖ψ t‖ = 1) : Function.HasTemperateGrowth (fun t : ℝ => ψ t) := by |
| 86 | obtain ⟨c, hc⟩ := continuous_real_character_exponential ψ hψ |
| 87 | have heq : (fun t : ℝ => ψ t) = (fun t : ℝ => Complex.exp ((t : ℂ) * c)) := funext hc |
| 88 | have hdiff : ContDiff ℝ ∞ (fun t : ℝ => ψ t) := by |
| 89 | rw [heq] |
| 90 | exact (Complex.ofRealCLM.contDiff.mul contDiff_const).cexp |
| 91 | have hderiv (t : ℝ) : HasDerivAt (fun t : ℝ => ψ t) (ψ t * c) t := by |
| 92 | rw [heq, hc] |
| 93 | convert ((hasDerivAt_id t).ofReal_comp.mul_const c).cexp using 1 <;> simp |
| 94 | have hiter (n : ℕ) : iteratedDeriv n (fun t : ℝ => ψ t) = fun t => c ^ n * ψ t := by |
| 95 | induction n with |
| 96 | | zero => simp |
| 97 | | succ n ih => |
| 98 | rw [iteratedDeriv_succ, ih] |
| 99 | funext t |
| 100 | rw [((hderiv t).const_mul (c ^ n)).deriv] |
| 101 | rw [pow_succ] |
| 102 | ring |
| 103 | refine ⟨hdiff, fun n => ⟨0, ‖c‖ ^ n, fun t => ?_⟩⟩ |
| 104 | rw [norm_iteratedFDeriv_eq_norm_iteratedDeriv, hiter] |
| 105 | simp [norm_pow, hunit] |
| 106 | |
| 107 | theorem continuous_unitary_coordinate_character_temperate |
| 108 | {r : ℕ} (ψ : AddChar (Fin r → ℝ) ℂ) |
| 109 | (hψ : Continuous (fun x : Fin r → ℝ => ψ x)) |
| 110 | (hunit : ∀ x, ‖ψ x‖ = 1) : Function.HasTemperateGrowth (fun x : Fin r → ℝ => ψ x) := by |
| 111 | classical |
| 112 | have hsingle (i : Fin r) : |
| 113 | Function.HasTemperateGrowth (fun x : Fin r → ℝ => ψ (Pi.single i (x i))) := by |
| 114 | let φ : AddChar ℝ ℂ := |
| 115 | { toFun := fun t => ψ (Pi.single i t) |
| 116 | map_zero_eq_one' := by simp |
| 117 | map_add_eq_mul' := by |
| 118 | intro s t |
| 119 | rw [Pi.single_add, ψ.map_add_eq_mul] } |
| 120 | have hc : Continuous (fun t : ℝ => φ t) := by |
| 121 | apply hψ.comp |
| 122 | apply continuous_pi |
| 123 | intro j |
| 124 | by_cases h : j = i |
| 125 | · subst j |
| 126 | simp only [Pi.single_eq_same] |
| 127 | fun_prop |
| 128 | · simpa [Pi.single_eq_of_ne h] using (continuous_const : Continuous (fun _ : ℝ => (0 : ℝ))) |
| 129 | have ht := continuous_unitary_real_character_temperate φ hc (fun t => hunit _) |
| 130 | exact ht.comp (ContinuousLinearMap.proj i : (Fin r → ℝ) →L[ℝ] ℝ).hasTemperateGrowth |
| 131 | have hsum (s : Finset (Fin r)) : |
| 132 | Function.HasTemperateGrowth (fun x : Fin r → ℝ => ψ (∑ i ∈ s, Pi.single i (x i))) := by |
| 133 | induction s using Finset.induction_on with |
| 134 | | empty => |
| 135 | simp only [Finset.sum_empty, ψ.map_zero_eq_one] |
| 136 | exact Function.HasTemperateGrowth.const 1 |
| 137 | | @insert i s hi ih => |
| 138 | simpa only [Finset.sum_insert hi, ψ.map_add_eq_mul, Pi.mul_def] using (hsingle i).mul ih |
| 139 | simpa only [Finset.univ_sum_single] using hsum Finset.univ |
| 140 | |
| 141 | end |
| 142 | |
| 143 | /-! Continuous unitary characters in arbitrary real field coordinates. -/ |
| 144 | |
| 145 | theorem real_coordinate_character_frequency |
| 146 | {F : Type} [NormedField F] (e : ℝ ≃+* F) (he : Continuous e) |
| 147 | (ψ : AddChar F ℂ) (hc : Continuous (fun x : F => ψ x)) |
| 148 | (hu : ∀ x : F, ‖ψ x‖ = 1) (hn : ∃ x : F, ψ x ≠ 1) : |
| 149 | ∃ t : ℝ, t ≠ 0 ∧ ∀ x : F, ψ x = Complex.exp (Complex.I * t * (e.symm x : ℂ)) := by |
| 150 | let χ := ψ.compAddMonoidHom e.toAddEquiv.toAddMonoidHom |
| 151 | obtain ⟨z, hz⟩ := continuous_real_character_exponential χ (hc.comp he) |
| 152 | have hre : z.re = 0 := by |
| 153 | have hh := hu (e 1) |
| 154 | change ‖χ 1‖ = 1 at hh |
| 155 | rw [hz] at hh |
| 156 | simpa only [Complex.ofReal_one, one_mul, Complex.norm_exp, Real.exp_eq_one_iff] using hh |
| 157 | have hzform : z = Complex.I * (z.im : ℂ) := by |
| 158 | apply Complex.ext <;> simp [hre] |
| 159 | have hψ (x : F) : ψ x = Complex.exp (Complex.I * z.im * (e.symm x : ℂ)) := by |
| 160 | have hh := hz (e.symm x) |
| 161 | change ψ (e (e.symm x)) = Complex.exp ((e.symm x : ℂ) * z) at hh |
| 162 | rw [e.apply_symm_apply, hzform] at hh |
| 163 | simpa only [mul_comm (e.symm x : ℂ), mul_assoc] using hh |
| 164 | refine ⟨z.im, ?_, hψ⟩ |
| 165 | intro hz0 |
| 166 | obtain ⟨x, hx⟩ := hn |
| 167 | apply hx |
| 168 | rw [hψ, hz0] |
| 169 | simp |
| 170 | |
| 171 | end |
| 172 | |
| 173 | end OAI.RepresentationTheory.Weil.UnitarySplitting.RealCharacter.Construction |