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.CycleClass.Geometric.NormalSphere |
| 2 | import Mathlib.Analysis.Calculus.FDeriv.Equiv |
| 3 | |
| 4 | /-! # Derivative Punctured Homotopy -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.DerivativePuncturedHomotopy.Cycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # A differentiable germ and its invertible derivative on a punctured ball |
| 12 | |
| 13 | An invertible derivative controls the error relative to the derivative's own |
| 14 | norm. On a sufficiently small punctured ball, the straight line between the |
| 15 | translated map and its derivative consequently avoids zero. This constructs |
| 16 | the local topological homotopy needed for comparing nonlinear coordinate |
| 17 | changes with their linear derivatives. No local orientation class or excision |
| 18 | theorem is assumed. |
| 19 | -/ |
| 20 | |
| 21 | open Filter Set |
| 22 | open scoped _root_.Topology |
| 23 | |
| 24 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 25 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 26 | |
| 27 | /-- The derivative error is eventually at most half the derivative norm. -/ |
| 28 | theorem eventually_derivative_remainder_small {f : E → F} (L : E ≃L[ℝ] F) |
| 29 | (hf : HasFDerivAt f (L : E →L[ℝ] F) 0) : |
| 30 | ∀ᶠ x in 𝓝 (0 : E), ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖ := by |
| 31 | have h := (hf.isEquivalent_sub L.toHomeomorph.isInducing).isLittleO |
| 32 | simpa only [Pi.sub_apply, sub_zero, ContinuousLinearEquiv.coe_coe] using |
| 33 | h.bound (by norm_num : (0 : ℝ) < 1 / 2) |
| 34 | |
| 35 | /-- A perturbation by at most half the norm stays away from zero throughout |
| 36 | the straight-line interpolation. -/ |
| 37 | theorem straightLine_ne_zero_of_half_norm {u v : F} (hu : u ≠ 0) |
| 38 | (herror : ‖v - u‖ ≤ (1 / 2 : ℝ) * ‖u‖) (t : unitInterval) : |
| 39 | u + (t : ℝ) • (v - u) ≠ 0 := by |
| 40 | intro hzero |
| 41 | have hnorm : ‖u‖ = ‖(t : ℝ) • (v - u)‖ := by |
| 42 | calc |
| 43 | ‖u‖ = ‖-((t : ℝ) • (v - u))‖ := congrArg norm (eq_neg_of_add_eq_zero_left hzero) |
| 44 | _ = ‖(t : ℝ) • (v - u)‖ := norm_neg _ |
| 45 | have hbound : ‖(t : ℝ) • (v - u)‖ ≤ (1 / 2 : ℝ) * ‖u‖ := by |
| 46 | calc |
| 47 | ‖(t : ℝ) • (v - u)‖ = (t : ℝ) * ‖v - u‖ := by |
| 48 | rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg t.property.1] |
| 49 | _ ≤ ‖v - u‖ := mul_le_of_le_one_left (norm_nonneg _) t.property.2 |
| 50 | _ ≤ (1 / 2 : ℝ) * ‖u‖ := herror |
| 51 | have hpos : 0 < ‖u‖ := norm_pos_iff.mpr hu |
| 52 | linarith |
| 53 | |
| 54 | /-- The actual punctured ball in a normed model space. -/ |
| 55 | abbrev PuncturedBall (E : Type*) [NormedAddCommGroup E] (r : ℝ) := |
| 56 | {x : E // x ≠ 0 ∧ ‖x‖ < r} |
| 57 | |
| 58 | /-- Restriction of an invertible linear derivative to a punctured ball. -/ |
| 59 | def puncturedBallLinearMap (L : E ≃L[ℝ] F) (r : ℝ) : |
| 60 | C(PuncturedBall E r, NormalSphere.Cycles.PuncturedNormal F) where |
| 61 | toFun x := ⟨L x.1, by |
| 62 | change L x.1 ≠ 0 |
| 63 | intro hx |
| 64 | exact x.property.1 (L.injective (by simpa only [map_zero] using hx))⟩ |
| 65 | continuous_toFun := by |
| 66 | apply Continuous.subtype_mk |
| 67 | exact L.continuous.comp continuous_subtype_val |
| 68 | |
| 69 | /-- Restriction of the translated nonlinear map; the quantitative error |
| 70 | estimate proves its values avoid zero. -/ |
| 71 | def puncturedBallTranslatedMap {f : E → F} (L : E ≃L[ℝ] F) (r : ℝ) |
| 72 | (hc : ContinuousOn f (Metric.ball 0 r)) |
| 73 | (he : ∀ x, ‖x‖ < r → ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖) : |
| 74 | C(PuncturedBall E r, NormalSphere.Cycles.PuncturedNormal F) where |
| 75 | toFun x := ⟨f x.1 - f 0, by |
| 76 | change f x.1 - f 0 ≠ 0 |
| 77 | have hL : L x.1 ≠ 0 := by |
| 78 | intro hx |
| 79 | exact x.property.1 (L.injective (by simpa only [map_zero] using hx)) |
| 80 | simpa using straightLine_ne_zero_of_half_norm hL (he x.1 x.property.2) |
| 81 | (1 : unitInterval)⟩ |
| 82 | continuous_toFun := by |
| 83 | have hfc : Continuous (fun x : PuncturedBall E r => f x.1) := by |
| 84 | apply hc.comp_continuous continuous_subtype_val |
| 85 | intro x |
| 86 | simpa only [Metric.mem_ball, dist_zero_right] using x.property.2 |
| 87 | exact (hfc.sub continuous_const).subtype_mk _ |
| 88 | |
| 89 | /-- The actual zero-avoiding homotopy between the derivative and the |
| 90 | translated nonlinear map on the chosen punctured ball. -/ |
| 91 | def derivativePuncturedBallHomotopy {f : E → F} (L : E ≃L[ℝ] F) (r : ℝ) |
| 92 | (hc : ContinuousOn f (Metric.ball 0 r)) |
| 93 | (he : ∀ x, ‖x‖ < r → ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖) : |
| 94 | ContinuousMap.Homotopy (puncturedBallLinearMap L r) |
| 95 | (puncturedBallTranslatedMap L r hc he) where |
| 96 | toFun z := ⟨L z.2.1 + (z.1 : ℝ) • (f z.2.1 - f 0 - L z.2.1), by |
| 97 | change L z.2.1 + (z.1 : ℝ) • ((f z.2.1 - f 0) - L z.2.1) ≠ 0 |
| 98 | apply straightLine_ne_zero_of_half_norm |
| 99 | · intro hx |
| 100 | exact z.2.property.1 (L.injective (by simpa only [map_zero] using hx)) |
| 101 | · exact he z.2.1 z.2.property.2⟩ |
| 102 | continuous_toFun := by |
| 103 | have hfc : Continuous (fun x : PuncturedBall E r => f x.1) := by |
| 104 | apply hc.comp_continuous continuous_subtype_val |
| 105 | intro x |
| 106 | simpa only [Metric.mem_ball, dist_zero_right] using x.property.2 |
| 107 | exact ((L.continuous.comp (continuous_subtype_val.comp continuous_snd)).add |
| 108 | ((continuous_subtype_val.comp continuous_fst).smul |
| 109 | (((hfc.comp continuous_snd).sub continuous_const).sub |
| 110 | (L.continuous.comp (continuous_subtype_val.comp continuous_snd))))).subtype_mk _ |
| 111 | map_zero_left x := by |
| 112 | apply Subtype.ext |
| 113 | simp [puncturedBallLinearMap] |
| 114 | map_one_left x := by |
| 115 | apply Subtype.ext |
| 116 | simp [puncturedBallTranslatedMap] |
| 117 | |
| 118 | /-- Differentiability with an invertible derivative supplies a positive |
| 119 | radius on which the nonlinear germ has the explicit punctured homotopy. -/ |
| 120 | theorem exists_derivativePuncturedBallHomotopy {f : E → F} |
| 121 | (L : E ≃L[ℝ] F) (hf : HasFDerivAt f (L : E →L[ℝ] F) 0) |
| 122 | {U : Set E} (hU : U ∈ 𝓝 (0 : E)) (hc : ContinuousOn f U) : |
| 123 | ∃ r : ℝ, 0 < r ∧ ∃ (hc' : ContinuousOn f (Metric.ball 0 r)) |
| 124 | (he : ∀ x, ‖x‖ < r → ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖), |
| 125 | Nonempty (ContinuousMap.Homotopy (puncturedBallLinearMap L r) |
| 126 | (puncturedBallTranslatedMap L r hc' he)) := by |
| 127 | have hmem : U ∩ {x | ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖} ∈ |
| 128 | 𝓝 (0 : E) := inter_mem hU (eventually_derivative_remainder_small L hf) |
| 129 | obtain ⟨r, hr, hball⟩ := Metric.mem_nhds_iff.mp hmem |
| 130 | have hc' : ContinuousOn f (Metric.ball 0 r) := hc.mono fun x hx => (hball hx).1 |
| 131 | have he : ∀ x, ‖x‖ < r → ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖ := by |
| 132 | intro x hx |
| 133 | exact (hball (by simpa only [Metric.mem_ball, dist_zero_right] using hx)).2 |
| 134 | exact ⟨r, hr, hc', he, ⟨derivativePuncturedBallHomotopy L r hc' he⟩⟩ |
| 135 | |
| 136 | end |
| 137 | |
| 138 | end OAI.AlgebraicGeometry.CycleClass.Geometric.DerivativePuncturedHomotopy.Cycles |