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.ClosedBallRadial |
| 2 | import Mathlib.Topology.MetricSpace.Bounded |
| 3 | |
| 4 | /-! # Convex Complement -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.ConvexComplement.Cycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Complements of compact convex sets |
| 12 | |
| 13 | The inclusion of the complement of a compact convex set into the complement |
| 14 | of any one of its points is a genuine homotopy equivalence. An explicit |
| 15 | radial map about that point takes values on a sphere strictly enclosing the |
| 16 | set. The homotopies interpolate the radius and stay in the required |
| 17 | complements. No nonemptiness assumption on a sphere or a complement is used. |
| 18 | -/ |
| 19 | |
| 20 | open unitInterval |
| 21 | |
| 22 | variable {E : Type*} |
| 23 | |
| 24 | /-- A point outside a set differs from every specified point of the set. -/ |
| 25 | theorem convexComplement_ne_point (K : Set E) (x : E) (hx : x ∈ K) |
| 26 | (y : ↥(Kᶜ)) : (y : E) ≠ x := by |
| 27 | intro h |
| 28 | apply y.property |
| 29 | simpa only [h] using hx |
| 30 | |
| 31 | variable [NormedAddCommGroup E] |
| 32 | |
| 33 | /-- The literal inclusion of the complement of a set into a point complement. -/ |
| 34 | def convexComplementInclusion (K : Set E) (x : E) (hx : x ∈ K) : |
| 35 | C(↥(Kᶜ), ↥(({x} : Set E)ᶜ)) where |
| 36 | toFun y := ⟨y, convexComplement_ne_point K x hx y⟩ |
| 37 | continuous_toFun := continuous_subtype_val.subtype_mk (convexComplement_ne_point K x hx) |
| 38 | |
| 39 | @[simp] |
| 40 | theorem convexComplementInclusion_coe (K : Set E) (x : E) (hx : x ∈ K) |
| 41 | (y : ↥(Kᶜ)) : (convexComplementInclusion K x hx y : E) = y := rfl |
| 42 | |
| 43 | /-- Translation from a punctured space centered at `x` to the punctured vector space. -/ |
| 44 | def puncturedPointToOrigin (x : E) : C(↥(({x} : Set E)ᶜ), NormalSphere.Cycles.PuncturedNormal E) where |
| 45 | toFun y := ⟨(y : E) - x, sub_ne_zero.mpr y.property⟩ |
| 46 | continuous_toFun := (continuous_subtype_val.sub continuous_const).subtype_mk _ |
| 47 | |
| 48 | theorem puncturedOrigin_add_ne (x : E) (y : NormalSphere.Cycles.PuncturedNormal E) : (y : E) + x ≠ x := by |
| 49 | intro h |
| 50 | apply y.property |
| 51 | simpa using congrArg (fun z : E => z - x) h |
| 52 | |
| 53 | /-- Inverse translation from the punctured vector space. -/ |
| 54 | def puncturedOriginToPoint (x : E) : C(NormalSphere.Cycles.PuncturedNormal E, ↥(({x} : Set E)ᶜ)) where |
| 55 | toFun y := ⟨(y : E) + x, puncturedOrigin_add_ne x y⟩ |
| 56 | continuous_toFun := |
| 57 | (continuous_subtype_val.add continuous_const).subtype_mk (puncturedOrigin_add_ne x) |
| 58 | |
| 59 | @[simp] |
| 60 | theorem puncturedOriginToPoint_toOrigin (x : E) (y : ↥(({x} : Set E)ᶜ)) : |
| 61 | puncturedOriginToPoint x (puncturedPointToOrigin x y) = y := by |
| 62 | apply Subtype.ext |
| 63 | exact sub_add_cancel _ _ |
| 64 | |
| 65 | variable [NormedSpace ℝ E] |
| 66 | |
| 67 | /-- The positive-radius projection centered at the specified point. -/ |
| 68 | def puncturedPointRadiusMap (x : E) (R : ℝ) (hR : 0 < R) : |
| 69 | C(↥(({x} : Set E)ᶜ), ↥(({x} : Set E)ᶜ)) := |
| 70 | (puncturedOriginToPoint x).comp ((ClosedBallRadial.Cycles.normalRadiusMap E R hR).comp (puncturedPointToOrigin x)) |
| 71 | |
| 72 | /-- Radial interpolation centered at `x`, on the actual point complement. -/ |
| 73 | def puncturedPointRadiusHomotopy (x : E) (R : ℝ) (hR : 0 < R) : |
| 74 | ContinuousMap.Homotopy (ContinuousMap.id ↥(({x} : Set E)ᶜ)) |
| 75 | (puncturedPointRadiusMap x R hR) where |
| 76 | toFun z := puncturedOriginToPoint x |
| 77 | (ClosedBallRadial.Cycles.normalRadiusHomotopy E R hR (z.1, puncturedPointToOrigin x z.2)) |
| 78 | continuous_toFun := (puncturedOriginToPoint x).continuous.comp |
| 79 | ((ClosedBallRadial.Cycles.normalRadiusHomotopy E R hR).continuous.comp |
| 80 | (continuous_fst.prodMk ((puncturedPointToOrigin x).continuous.comp continuous_snd))) |
| 81 | map_zero_left y := by |
| 82 | exact (congrArg (fun z : NormalSphere.Cycles.PuncturedNormal E => puncturedOriginToPoint x z) |
| 83 | ((ClosedBallRadial.Cycles.normalRadiusHomotopy E R hR).map_zero_left (puncturedPointToOrigin x y))).trans |
| 84 | (puncturedOriginToPoint_toOrigin x y) |
| 85 | map_one_left y := by |
| 86 | exact congrArg (fun z : NormalSphere.Cycles.PuncturedNormal E => puncturedOriginToPoint x z) |
| 87 | ((ClosedBallRadial.Cycles.normalRadiusHomotopy E R hR).map_one_left (puncturedPointToOrigin x y)) |
| 88 | |
| 89 | /-- The radial projection is on the sphere of radius `R` about `x`. -/ |
| 90 | theorem puncturedPointRadiusMap_dist (x : E) (R : ℝ) (hR : 0 < R) |
| 91 | (y : ↥(({x} : Set E)ᶜ)) : |
| 92 | dist (puncturedPointRadiusMap x R hR y : E) x = R := by |
| 93 | change dist ((ClosedBallRadial.Cycles.normalRadiusMap E R hR (puncturedPointToOrigin x y) : E) + x) x = R |
| 94 | simpa only [dist_eq_norm, add_sub_cancel_right] using |
| 95 | ClosedBallRadial.Cycles.normalRadiusMap_norm E R hR (puncturedPointToOrigin x y) |
| 96 | |
| 97 | /-- The interpolated distance is the convex combination of the two radii. -/ |
| 98 | theorem puncturedPointRadiusHomotopy_dist (x : E) (R : ℝ) (hR : 0 < R) |
| 99 | (t : I) (y : ↥(({x} : Set E)ᶜ)) : |
| 100 | dist (puncturedPointRadiusHomotopy x R hR (t, y) : E) x = |
| 101 | (1 - (t : ℝ)) * dist (y : E) x + (t : ℝ) * R := by |
| 102 | change dist ((ClosedBallRadial.Cycles.normalRadiusHomotopy E R hR (t, puncturedPointToOrigin x y) : E) + x) x = _ |
| 103 | simp only [dist_eq_norm, add_sub_cancel_right] |
| 104 | exact ClosedBallRadial.Cycles.normalRadiusHomotopy_norm E R hR t (puncturedPointToOrigin x y) |
| 105 | |
| 106 | /-- The existing polar-coordinate interpolation has the usual scalar formula. -/ |
| 107 | theorem normalRadiusHomotopy_coe (R : ℝ) (hR : 0 < R) (t : I) |
| 108 | (y : NormalSphere.Cycles.PuncturedNormal E) : |
| 109 | (ClosedBallRadial.Cycles.normalRadiusHomotopy E R hR (t, y) : E) = |
| 110 | (((1 - (t : ℝ)) * ‖(y : E)‖ + (t : ℝ) * R) / ‖(y : E)‖) • (y : E) := by |
| 111 | change ((1 - (t : ℝ)) * ((homeomorphUnitSphereProd E y).2 : ℝ) + (t : ℝ) * R) • |
| 112 | ((homeomorphUnitSphereProd E y).1 : E) = _ |
| 113 | simp only [homeomorphUnitSphereProd_apply_fst_coe, homeomorphUnitSphereProd_apply_snd_coe, |
| 114 | smul_smul, div_eq_mul_inv] |
| 115 | |
| 116 | /-- Radial interpolation about `x` moves along the ray through its argument. -/ |
| 117 | theorem puncturedPointRadiusHomotopy_coe (x : E) (R : ℝ) (hR : 0 < R) |
| 118 | (t : I) (y : ↥(({x} : Set E)ᶜ)) : |
| 119 | (puncturedPointRadiusHomotopy x R hR (t, y) : E) = |
| 120 | (((1 - (t : ℝ)) * ‖(y : E) - x‖ + (t : ℝ) * R) / ‖(y : E) - x‖) • |
| 121 | ((y : E) - x) + x := by |
| 122 | change (ClosedBallRadial.Cycles.normalRadiusHomotopy E R hR (t, puncturedPointToOrigin x y) : E) + x = _ |
| 123 | rw [normalRadiusHomotopy_coe] |
| 124 | rfl |
| 125 | |
| 126 | /-- Once a ray from a point of a convex set has left the set, all farther |
| 127 | points of that ray remain outside. -/ |
| 128 | theorem convex_ray_not_mem {K : Set E} (hK : Convex ℝ K) {x y : E} |
| 129 | (hx : x ∈ K) (hy : y ∉ K) {a : ℝ} (ha : 1 ≤ a) : |
| 130 | a • (y - x) + x ∉ K := by |
| 131 | intro hz |
| 132 | have hapos : 0 < a := lt_of_lt_of_le zero_lt_one ha |
| 133 | have hmem := hK.add_smul_sub_mem hx hz |
| 134 | (show a⁻¹ ∈ Set.Icc (0 : ℝ) 1 from |
| 135 | ⟨inv_nonneg.mpr hapos.le, (inv_le_one₀ hapos).mpr ha⟩) |
| 136 | apply hy |
| 137 | simpa [smul_smul, hapos.ne', add_comm] using hmem |
| 138 | |
| 139 | /-- A radial projection onto a sphere strictly enclosing `K` lies outside `K`. -/ |
| 140 | theorem puncturedPointRadiusMap_not_mem (K : Set E) (x : E) (R : ℝ) (hR : 0 < R) |
| 141 | (hbound : K ⊆ Metric.ball x R) (y : ↥(({x} : Set E)ᶜ)) : |
| 142 | (puncturedPointRadiusMap x R hR y : E) ∉ K := by |
| 143 | intro hy |
| 144 | have hlt := Metric.mem_ball.mp (hbound hy) |
| 145 | rw [puncturedPointRadiusMap_dist] at hlt |
| 146 | exact lt_irrefl R hlt |
| 147 | |
| 148 | /-- The radial interpolation remains outside a convex set containing its center. -/ |
| 149 | theorem puncturedPointRadiusHomotopy_not_mem (K : Set E) (x : E) |
| 150 | (hconv : Convex ℝ K) (hx : x ∈ K) (R : ℝ) (hR : 0 < R) |
| 151 | (hbound : K ⊆ Metric.ball x R) (t : I) (y : ↥(Kᶜ)) : |
| 152 | (puncturedPointRadiusHomotopy x R hR |
| 153 | (t, convexComplementInclusion K x hx y) : E) ∉ K := by |
| 154 | have hnorm : 0 < ‖(y : E) - x‖ := |
| 155 | norm_pos_iff.mpr (sub_ne_zero.mpr (convexComplement_ne_point K x hx y)) |
| 156 | by_cases hsmall : ‖(y : E) - x‖ ≤ R |
| 157 | · rw [puncturedPointRadiusHomotopy_coe] |
| 158 | apply convex_ray_not_mem hconv hx y.property |
| 159 | apply (one_le_div hnorm).mpr |
| 160 | have ht := t.property.1 |
| 161 | have hmul := mul_nonneg ht (sub_nonneg.mpr hsmall) |
| 162 | change ‖(y : E) - x‖ ≤ (1 - (t : ℝ)) * ‖(y : E) - x‖ + (t : ℝ) * R |
| 163 | nlinarith |
| 164 | · have hlarge : R ≤ dist (y : E) x := by |
| 165 | rw [dist_eq_norm] |
| 166 | exact le_of_lt (lt_of_not_ge hsmall) |
| 167 | have hdist : R ≤ dist (puncturedPointRadiusHomotopy x R hR |
| 168 | (t, convexComplementInclusion K x hx y) : E) x := by |
| 169 | rw [puncturedPointRadiusHomotopy_dist] |
| 170 | change R ≤ (1 - (t : ℝ)) * dist (y : E) x + (t : ℝ) * R |
| 171 | have hmul := mul_nonneg (sub_nonneg.mpr t.property.2) (sub_nonneg.mpr hlarge) |
| 172 | nlinarith |
| 173 | intro hy |
| 174 | exact (not_lt_of_ge hdist) (Metric.mem_ball.mp (hbound hy)) |
| 175 | |
| 176 | /-- The explicit homotopy inverse sends each punctured point to the enclosing sphere. -/ |
| 177 | def convexComplementRetractionOfRadius (K : Set E) (x : E) (R : ℝ) (hR : 0 < R) |
| 178 | (hbound : K ⊆ Metric.ball x R) : C(↥(({x} : Set E)ᶜ), ↥(Kᶜ)) where |
| 179 | toFun y := ⟨puncturedPointRadiusMap x R hR y, |
| 180 | puncturedPointRadiusMap_not_mem K x R hR hbound y⟩ |
| 181 | continuous_toFun := ((puncturedPointRadiusMap x R hR).continuous.subtype_val).subtype_mk |
| 182 | (puncturedPointRadiusMap_not_mem K x R hR hbound) |
| 183 | |
| 184 | /-- Restriction of the explicit radial homotopy to the complement of `K`. -/ |
| 185 | def convexComplementHomotopyOfRadius (K : Set E) (x : E) |
| 186 | (hconv : Convex ℝ K) (hx : x ∈ K) (R : ℝ) (hR : 0 < R) |
| 187 | (hbound : K ⊆ Metric.ball x R) : |
| 188 | ContinuousMap.Homotopy (ContinuousMap.id ↥(Kᶜ)) |
| 189 | ((convexComplementRetractionOfRadius K x R hR hbound).comp |
| 190 | (convexComplementInclusion K x hx)) where |
| 191 | toFun z := ⟨puncturedPointRadiusHomotopy x R hR |
| 192 | (z.1, convexComplementInclusion K x hx z.2), |
| 193 | puncturedPointRadiusHomotopy_not_mem K x hconv hx R hR hbound z.1 z.2⟩ |
| 194 | continuous_toFun := |
| 195 | (((puncturedPointRadiusHomotopy x R hR).continuous.comp |
| 196 | (continuous_fst.prodMk ((convexComplementInclusion K x hx).continuous.comp |
| 197 | continuous_snd))).subtype_val).subtype_mk |
| 198 | (fun z => puncturedPointRadiusHomotopy_not_mem K x hconv hx R hR hbound z.1 z.2) |
| 199 | map_zero_left y := by |
| 200 | apply Subtype.ext |
| 201 | exact congrArg (fun z : ↥(({x} : Set E)ᶜ) => (z : E)) |
| 202 | ((puncturedPointRadiusHomotopy x R hR).map_zero_left |
| 203 | (convexComplementInclusion K x hx y)) |
| 204 | map_one_left y := by |
| 205 | apply Subtype.ext |
| 206 | exact congrArg (fun z : ↥(({x} : Set E)ᶜ) => (z : E)) |
| 207 | ((puncturedPointRadiusHomotopy x R hR).map_one_left |
| 208 | (convexComplementInclusion K x hx y)) |
| 209 | |
| 210 | /-- The actual complement inclusion is a homotopy equivalence whenever a |
| 211 | positive-radius ball strictly contains the convex set. -/ |
| 212 | def convexComplementHomotopyEquivOfRadius (K : Set E) (x : E) |
| 213 | (hconv : Convex ℝ K) (hx : x ∈ K) (R : ℝ) (hR : 0 < R) |
| 214 | (hbound : K ⊆ Metric.ball x R) : |
| 215 | ContinuousMap.HomotopyEquiv ↥(Kᶜ) ↥(({x} : Set E)ᶜ) where |
| 216 | toFun := convexComplementInclusion K x hx |
| 217 | invFun := convexComplementRetractionOfRadius K x R hR hbound |
| 218 | left_inv := ⟨(convexComplementHomotopyOfRadius K x hconv hx R hR hbound).symm⟩ |
| 219 | right_inv := ⟨(puncturedPointRadiusHomotopy x R hR).symm⟩ |
| 220 | |
| 221 | /-- For a compact convex set and any point in it, the literal inclusion of |
| 222 | its complement into that point's complement is a homotopy equivalence. |
| 223 | This holds in every real normed space, including the zero-dimensional case. -/ |
| 224 | def convexComplementHomotopyEquiv (K : Set E) (x : E) (hK : IsCompact K) |
| 225 | (hconv : Convex ℝ K) (hx : x ∈ K) : |
| 226 | ContinuousMap.HomotopyEquiv ↥(Kᶜ) ↥(({x} : Set E)ᶜ) := by |
| 227 | let R := Classical.choose (hK.isBounded.subset_ball_lt 0 x) |
| 228 | have hR : 0 < R := (Classical.choose_spec (hK.isBounded.subset_ball_lt 0 x)).1 |
| 229 | have hbound : K ⊆ Metric.ball x R := (Classical.choose_spec (hK.isBounded.subset_ball_lt 0 x)).2 |
| 230 | exact convexComplementHomotopyEquivOfRadius K x hconv hx R hR hbound |
| 231 | |
| 232 | /-- The forward map is precisely the original inclusion, not an independently |
| 233 | chosen homotopy-equivalent map. -/ |
| 234 | @[simp] |
| 235 | theorem convexComplementHomotopyEquiv_toFun (K : Set E) (x : E) (hK : IsCompact K) |
| 236 | (hconv : Convex ℝ K) (hx : x ∈ K) : |
| 237 | (convexComplementHomotopyEquiv K x hK hconv hx).toFun = |
| 238 | convexComplementInclusion K x hx := rfl |
| 239 | |
| 240 | end |
| 241 | |
| 242 | end OAI.AlgebraicGeometry.CycleClass.Geometric.ConvexComplement.Cycles |