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.RealDiagonalGaussian |
| 2 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.IntegrationByParts |
| 3 | |
| 4 | /-! # Oscillatory Tail Tools -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.Local.OscillatoryTailTools.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! A monotone-weight integration-by-parts bound for oscillatory Gaussian tails. -/ |
| 13 | |
| 14 | open _root_.MeasureTheory Set |
| 15 | |
| 16 | theorem monotone_weight_oscillatory_bound |
| 17 | {a b : ℝ} (hab : a ≤ b) (u u' : ℝ → ℝ) (v v' : ℝ → ℂ) |
| 18 | (hu : ∀ x ∈ uIcc a b, HasDerivAt u (u' x) x) |
| 19 | (hv : ∀ x ∈ uIcc a b, HasDerivAt v (v' x) x) |
| 20 | (hui : IntervalIntegrable u' volume a b) (hvi : IntervalIntegrable v' volume a b) |
| 21 | (hu0 : ∀ x ∈ uIcc a b, 0 ≤ u x) |
| 22 | (hu' : ∀ x ∈ uIcc a b, u' x ≤ 0) |
| 23 | (hv1 : ∀ x ∈ uIcc a b, ‖v x‖ ≤ 1) : |
| 24 | ‖∫ x in a..b, (u x : ℂ) * v' x‖ ≤ 2 * u a := by |
| 25 | have huiC : IntervalIntegrable (fun x => (u' x : ℂ)) volume a b := ⟨hui.1.ofReal, hui.2.ofReal⟩ |
| 26 | have huC : ∀ x ∈ uIcc a b, HasDerivAt (fun t => (u t : ℂ)) (u' x : ℂ) x := |
| 27 | fun x hx => (hu x hx).ofReal_comp |
| 28 | have hparts := intervalIntegral.integral_mul_deriv_eq_deriv_mul_of_hasDerivAt |
| 29 | (HasDerivAt.continuousOn huC) (HasDerivAt.continuousOn hv) |
| 30 | (fun x hx => huC x (mem_Icc_of_Ioo hx)) (fun x hx => hv x (mem_Icc_of_Ioo hx)) huiC hvi |
| 31 | have hJ : ‖∫ x in a..b, (u' x : ℂ) * v x‖ ≤ u a - u b := by |
| 32 | calc |
| 33 | _ ≤ ∫ x in a..b, -u' x := by |
| 34 | apply intervalIntegral.norm_integral_le_of_norm_le hab _ hui.neg |
| 35 | exact Filter.Eventually.of_forall fun x hx => by |
| 36 | have hxcc : x ∈ uIcc a b := by rw [uIcc_of_le hab]; exact ⟨hx.1.le, hx.2⟩ |
| 37 | rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_nonpos (hu' x hxcc)] |
| 38 | exact mul_le_of_le_one_right (neg_nonneg.mpr (hu' x hxcc)) (hv1 x hxcc) |
| 39 | _ = u a - u b := by |
| 40 | rw [intervalIntegral.integral_neg, intervalIntegral.integral_eq_sub_of_hasDerivAt hu hui] |
| 41 | ring |
| 42 | have hbound (x : ℝ) (hx : x ∈ uIcc a b) : ‖(u x : ℂ) * v x‖ ≤ u x := by |
| 43 | rw [norm_mul, Complex.norm_real, Real.norm_of_nonneg (hu0 x hx)] |
| 44 | exact mul_le_of_le_one_right (hu0 x hx) (hv1 x hx) |
| 45 | rw [hparts] |
| 46 | calc |
| 47 | _ ≤ ‖(u b : ℂ) * v b - (u a : ℂ) * v a‖ + ‖∫ x in a..b, (u' x : ℂ) * v x‖ := norm_sub_le _ _ |
| 48 | _ ≤ (‖(u b : ℂ) * v b‖ + ‖(u a : ℂ) * v a‖) + (u a - u b) := |
| 49 | add_le_add (norm_sub_le _ _) hJ |
| 50 | _ ≤ (u b + u a) + (u a - u b) := |
| 51 | add_le_add (add_le_add (hbound b right_mem_uIcc) (hbound a left_mem_uIcc)) le_rfl |
| 52 | _ = 2 * u a := by ring |
| 53 | |
| 54 | end |
| 55 | |
| 56 | /-! Two integrations by parts for the planar Gaussian tail argument. -/ |
| 57 | |
| 58 | open _root_.MeasureTheory |
| 59 | |
| 60 | theorem integral_second_derivative_transfer |
| 61 | (u u' u'' v v' v'' : ℝ → ℂ) |
| 62 | (hu : ∀ x, HasDerivAt u (u' x) x) (hu' : ∀ x, HasDerivAt u' (u'' x) x) |
| 63 | (hv : ∀ x, HasDerivAt v (v' x) x) (hv' : ∀ x, HasDerivAt v' (v'' x) x) |
| 64 | (huv'' : Integrable (u * v'')) (hu'v' : Integrable (u' * v')) |
| 65 | (hu''v : Integrable (u'' * v)) (huv' : Integrable (u * v')) |
| 66 | (hu'v : Integrable (u' * v)) : |
| 67 | (∫ x, u x * v'' x) = ∫ x, u'' x * v x := by |
| 68 | have h1 := integral_mul_deriv_eq_deriv_mul_of_integrable |
| 69 | (fun x _ => hu x) (fun x _ => hv' x) huv'' hu'v' huv' |
| 70 | have h2 := integral_mul_deriv_eq_deriv_mul_of_integrable |
| 71 | (fun x _ => hu' x) (fun x _ => hv x) hu'v' hu''v hu'v |
| 72 | rw [h1, h2, neg_neg] |
| 73 | |
| 74 | theorem integral_planar_second_derivative_transfer |
| 75 | (u u' u'' v v' v'' : ℝ × ℝ → ℂ) |
| 76 | (hu : ∀ x y, HasDerivAt (fun t => u (t, y)) (u' (x, y)) x) |
| 77 | (hu' : ∀ x y, HasDerivAt (fun t => u' (t, y)) (u'' (x, y)) x) |
| 78 | (hv : ∀ x y, HasDerivAt (fun t => v (t, y)) (v' (x, y)) x) |
| 79 | (hv' : ∀ x y, HasDerivAt (fun t => v' (t, y)) (v'' (x, y)) x) |
| 80 | (huv'' : Integrable (u * v'')) (hu'v' : Integrable (u' * v')) |
| 81 | (hu''v : Integrable (u'' * v)) (huv' : Integrable (u * v')) |
| 82 | (hu'v : Integrable (u' * v)) : |
| 83 | (∫ z, u z * v'' z) = ∫ z, u'' z * v z := by |
| 84 | change (∫ z, u z * v'' z ∂volume.prod volume) = ∫ z, u'' z * v z ∂volume.prod volume |
| 85 | rw [integral_prod_symm (fun z => u z * v'' z) huv'', |
| 86 | integral_prod_symm (fun z => u'' z * v z) hu''v] |
| 87 | apply integral_congr_ae |
| 88 | filter_upwards [huv''.prod_left_ae, hu'v'.prod_left_ae, hu''v.prod_left_ae, |
| 89 | huv'.prod_left_ae, hu'v.prod_left_ae] with y h1 h2 h3 h4 h5 |
| 90 | exact integral_second_derivative_transfer |
| 91 | (fun x => u (x, y)) (fun x => u' (x, y)) (fun x => u'' (x, y)) |
| 92 | (fun x => v (x, y)) (fun x => v' (x, y)) (fun x => v'' (x, y)) |
| 93 | (fun x => hu x y) (fun x => hu' x y) (fun x => hv x y) (fun x => hv' x y) |
| 94 | h1 h2 h3 h4 h5 |
| 95 | |
| 96 | theorem integral_planar_second_derivative_transfer_right |
| 97 | (u u' u'' v v' v'' : ℝ × ℝ → ℂ) |
| 98 | (hu : ∀ x y, HasDerivAt (fun t => u (x, t)) (u' (x, y)) y) |
| 99 | (hu' : ∀ x y, HasDerivAt (fun t => u' (x, t)) (u'' (x, y)) y) |
| 100 | (hv : ∀ x y, HasDerivAt (fun t => v (x, t)) (v' (x, y)) y) |
| 101 | (hv' : ∀ x y, HasDerivAt (fun t => v' (x, t)) (v'' (x, y)) y) |
| 102 | (huv'' : Integrable (u * v'')) (hu'v' : Integrable (u' * v')) |
| 103 | (hu''v : Integrable (u'' * v)) (huv' : Integrable (u * v')) |
| 104 | (hu'v : Integrable (u' * v)) : |
| 105 | (∫ z, u z * v'' z) = ∫ z, u'' z * v z := by |
| 106 | change (∫ z, u z * v'' z ∂volume.prod volume) = ∫ z, u'' z * v z ∂volume.prod volume |
| 107 | rw [integral_prod (fun z => u z * v'' z) huv'', |
| 108 | integral_prod (fun z => u'' z * v z) hu''v] |
| 109 | apply integral_congr_ae |
| 110 | filter_upwards [huv''.prod_right_ae, hu'v'.prod_right_ae, hu''v.prod_right_ae, |
| 111 | huv'.prod_right_ae, hu'v.prod_right_ae] with x h1 h2 h3 h4 h5 |
| 112 | exact integral_second_derivative_transfer |
| 113 | (fun y => u (x, y)) (fun y => u' (x, y)) (fun y => u'' (x, y)) |
| 114 | (fun y => v (x, y)) (fun y => v' (x, y)) (fun y => v'' (x, y)) |
| 115 | (fun y => hu x y) (fun y => hu' x y) (fun y => hv x y) (fun y => hv' x y) |
| 116 | h1 h2 h3 h4 h5 |
| 117 | |
| 118 | end |
| 119 | |
| 120 | end OAI.RepresentationTheory.Weil.Local.OscillatoryTailTools.Construction |