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.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.Elliptic |
| 2 | import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension |
| 3 | import Mathlib.Analysis.Calculus.MeanValue |
| 4 | |
| 5 | /-! # Smooth Coefficient Extension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.SmoothCoefficientExtension.CM.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Smooth localization of positive metric coefficients by a genuine cutoff. |
| 12 | The extension is constant off a compact set, hence bounded and Lipschitz. -/ |
| 13 | |
| 14 | open Set |
| 15 | open scoped ContDiff _root_.Topology |
| 16 | |
| 17 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 18 | [NormedAddCommGroup F] [InnerProductSpace ℝ F] |
| 19 | |
| 20 | def smoothCoefficientExtension (η : E → ℝ) (A : E → F →L[ℝ] F) (x : E) : F →L[ℝ] F := |
| 21 | ContinuousLinearMap.id ℝ F + η x • (A x - ContinuousLinearMap.id ℝ F) |
| 22 | |
| 23 | omit [NormedSpace ℝ E] in |
| 24 | theorem smoothCoefficientExtension_eq_identity (η : E → ℝ) (A : E → F →L[ℝ] F) |
| 25 | {x : E} (hx : x ∉ tsupport η) : |
| 26 | smoothCoefficientExtension η A x = ContinuousLinearMap.id ℝ F := by |
| 27 | rw [smoothCoefficientExtension, image_eq_zero_of_notMem_tsupport hx, zero_smul, add_zero] |
| 28 | |
| 29 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 30 | theorem smoothCoefficientExtension_eq_coefficient (η : E → ℝ) (A : E → F →L[ℝ] F) |
| 31 | {x : E} (hx : η x = 1) : smoothCoefficientExtension η A x = A x := by |
| 32 | rw [smoothCoefficientExtension, hx, one_smul] |
| 33 | abel |
| 34 | |
| 35 | theorem smoothCoefficientExtension_smooth (η : E → ℝ) (A : E → F →L[ℝ] F) |
| 36 | {U : Set E} (hU : IsOpen U) (hη : ContDiff ℝ ∞ η) (hηU : tsupport η ⊆ U) |
| 37 | (hA : ContDiffOn ℝ ∞ A U) : ContDiff ℝ ∞ (smoothCoefficientExtension η A) := by |
| 38 | apply contDiff_iff_contDiffAt.mpr |
| 39 | intro x |
| 40 | by_cases hx : x ∈ U |
| 41 | · exact contDiffAt_const.add (hη.contDiffAt.smul ((hA.contDiffAt (hU.mem_nhds hx)).sub contDiffAt_const)) |
| 42 | · have hzero : η =ᶠ[𝓝 x] 0 := notMem_tsupport_iff_eventuallyEq.mp (fun h => hx (hηU h)) |
| 43 | have heq : smoothCoefficientExtension η A =ᶠ[𝓝 x] (fun _ => ContinuousLinearMap.id ℝ F) := by |
| 44 | filter_upwards [hzero] with y hy |
| 45 | simp only [smoothCoefficientExtension, hy, Pi.zero_apply, zero_smul, add_zero] |
| 46 | exact contDiffAt_const.congr_of_eventuallyEq heq |
| 47 | |
| 48 | omit [NormedSpace ℝ E] in |
| 49 | theorem smoothCoefficientExtension_compact_perturbation (η : E → ℝ) (A : E → F →L[ℝ] F) |
| 50 | (hη : HasCompactSupport η) : |
| 51 | HasCompactSupport (fun x => smoothCoefficientExtension η A x - ContinuousLinearMap.id ℝ F) := by |
| 52 | apply hη.mono' |
| 53 | intro x hx |
| 54 | by_contra hn |
| 55 | exact hx (by |
| 56 | change smoothCoefficientExtension η A x - ContinuousLinearMap.id ℝ F = 0 |
| 57 | rw [smoothCoefficientExtension_eq_identity η A hn, sub_self]) |
| 58 | |
| 59 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 60 | theorem smoothCoefficientExtension_inner (η : E → ℝ) (A : E → F →L[ℝ] F) (x : E) (w : F) : |
| 61 | inner ℝ (smoothCoefficientExtension η A x w) w = |
| 62 | (1 - η x) * (‖w‖ * ‖w‖) + η x * inner ℝ (A x w) w := by |
| 63 | simp only [smoothCoefficientExtension, add_apply, smul_apply, sub_apply, |
| 64 | ContinuousLinearMap.id_apply, inner_add_left, real_inner_smul_left, inner_sub_left, |
| 65 | real_inner_self_eq_norm_sq] |
| 66 | ring |
| 67 | |
| 68 | omit [NormedSpace ℝ E] in |
| 69 | theorem smoothCoefficientExtension_lower_bound (η : E → ℝ) (A : E → F →L[ℝ] F) |
| 70 | (hη₀ : ∀ x, 0 ≤ η x) (hη₁ : ∀ x, η x ≤ 1) {a : ℝ} |
| 71 | (hA : ∀ x ∈ tsupport η, ∀ w : F, a * ‖w‖ * ‖w‖ ≤ inner ℝ (A x w) w) |
| 72 | (x : E) (w : F) : |
| 73 | min a 1 * ‖w‖ * ‖w‖ ≤ inner ℝ (smoothCoefficientExtension η A x w) w := by |
| 74 | by_cases hx : x ∈ tsupport η |
| 75 | · rw [smoothCoefficientExtension_inner] |
| 76 | let q := ‖w‖ * ‖w‖ |
| 77 | have hq : 0 ≤ q := mul_self_nonneg _ |
| 78 | have hma := mul_le_mul_of_nonneg_right (min_le_left a 1) hq |
| 79 | have hm1 : min a 1 * q ≤ q := by |
| 80 | simpa only [one_mul] using |
| 81 | (mul_le_mul_of_nonneg_right (min_le_right a 1) hq) |
| 82 | have hpos : a * q ≤ inner ℝ (A x w) w := by simpa only [q, mul_assoc] using hA x hx w |
| 83 | change min a 1 * ‖w‖ * ‖w‖ ≤ (1 - η x) * q + η x * inner ℝ (A x w) w |
| 84 | calc |
| 85 | _ = (1 - η x) * (min a 1 * q) + η x * (min a 1 * q) := by dsimp [q]; ring |
| 86 | _ ≤ (1 - η x) * q + η x * (a * q) := |
| 87 | add_le_add (mul_le_mul_of_nonneg_left hm1 (sub_nonneg.mpr (hη₁ x))) |
| 88 | (mul_le_mul_of_nonneg_left hma (hη₀ x)) |
| 89 | _ ≤ _ := add_le_add le_rfl (mul_le_mul_of_nonneg_left hpos (hη₀ x)) |
| 90 | · rw [smoothCoefficientExtension_eq_identity η A hx, ContinuousLinearMap.id_apply, |
| 91 | real_inner_self_eq_norm_sq] |
| 92 | have h := mul_le_mul_of_nonneg_right (min_le_right a 1) (mul_self_nonneg ‖w‖) |
| 93 | simpa only [one_mul, pow_two, mul_assoc] using h |
| 94 | |
| 95 | theorem smoothCoefficientExtension_bounded (η : E → ℝ) (A : E → F →L[ℝ] F) |
| 96 | (hsmooth : ContDiff ℝ ∞ (smoothCoefficientExtension η A)) (hη : HasCompactSupport η) : |
| 97 | ∃ C : ℝ, ∀ x, ‖smoothCoefficientExtension η A x‖ ≤ C := by |
| 98 | let P := fun x => smoothCoefficientExtension η A x - ContinuousLinearMap.id ℝ F |
| 99 | have hPc : HasCompactSupport P := smoothCoefficientExtension_compact_perturbation η A hη |
| 100 | obtain ⟨C, hC⟩ := hPc.exists_bound_of_continuous (hsmooth.continuous.sub continuous_const) |
| 101 | refine ⟨‖ContinuousLinearMap.id ℝ F‖ + C, fun x => ?_⟩ |
| 102 | calc |
| 103 | _ = ‖ContinuousLinearMap.id ℝ F + P x‖ := by congr 1; dsimp [P]; abel |
| 104 | _ ≤ ‖ContinuousLinearMap.id ℝ F‖ + ‖P x‖ := norm_add_le _ _ |
| 105 | _ ≤ _ := add_le_add le_rfl (hC x) |
| 106 | |
| 107 | omit [NormedAddCommGroup F] [InnerProductSpace ℝ F] in |
| 108 | theorem compact_smooth_lipschitz {G : Type*} [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 109 | (P : E → G) (hP : ContDiff ℝ ∞ P) (hPc : HasCompactSupport P) : |
| 110 | ∃ L : NNReal, LipschitzWith L P := by |
| 111 | have hD : Continuous (fderiv ℝ P) := hP.continuous_fderiv (by simp) |
| 112 | obtain ⟨C, hC⟩ := (hPc.fderiv ℝ).exists_bound_of_continuous hD |
| 113 | let L : NNReal := ⟨max C 0, le_max_right _ _⟩ |
| 114 | refine ⟨L, lipschitzWith_of_nnnorm_fderiv_le (hP.differentiable (by simp)) ?_⟩ |
| 115 | intro x |
| 116 | apply NNReal.coe_le_coe.mp |
| 117 | exact (hC x).trans (le_max_left _ _) |
| 118 | |
| 119 | theorem smoothCoefficientExtension_lipschitz (η : E → ℝ) (A : E → F →L[ℝ] F) |
| 120 | (hsmooth : ContDiff ℝ ∞ (smoothCoefficientExtension η A)) (hη : HasCompactSupport η) : |
| 121 | ∃ L : NNReal, LipschitzWith L (smoothCoefficientExtension η A) := by |
| 122 | let P := fun x => smoothCoefficientExtension η A x - ContinuousLinearMap.id ℝ F |
| 123 | have hP : ContDiff ℝ ∞ P := hsmooth.sub contDiff_const |
| 124 | have hPc : HasCompactSupport P := smoothCoefficientExtension_compact_perturbation η A hη |
| 125 | obtain ⟨L, hLip⟩ := compact_smooth_lipschitz P hP hPc |
| 126 | refine ⟨L, LipschitzWith.of_dist_le_mul (fun x y => ?_)⟩ |
| 127 | have h := hLip.dist_le_mul x y |
| 128 | simpa only [dist_eq_norm, P, sub_sub_sub_cancel_right] using h |
| 129 | |
| 130 | end |
| 131 | |
| 132 | end OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.SmoothCoefficientExtension.CM.Construction |