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.DerivativePuncturedHomotopy |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.RelativeHomotopy |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Geometric.LocalHomology |
| 4 | import OAI.AlgebraicGeometry.CycleClass.Geometric.LocalExcision |
| 5 | import OAI.AlgebraicGeometry.CycleClass.Geometric.ComplexLinearPuncturedHomotopy |
| 6 | import Mathlib.LinearAlgebra.Matrix.ToLin |
| 7 | |
| 8 | /-! # Local Derivative Homology -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.LocalDerivativeHomology.Cycles |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # Local homology of a differentiable coordinate change |
| 16 | |
| 17 | The actual homotopy from a map to its derivative is a homotopy of punctured |
| 18 | pairs on a small ball. Relative homotopy invariance and proved local excision |
| 19 | therefore identify its induced local homology map with that of its derivative. |
| 20 | For a complex-linear invertible derivative this map preserves the entire |
| 21 | orientation-degree local homology group. No orientation generator is assumed. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.CategoryTheory _root_.AlgebraicTopology |
| 25 | open scoped _root_.Topology |
| 26 | |
| 27 | variable {E F : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 28 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 29 | |
| 30 | /-- A real invertible linear map as an actual continuous map of spaces. -/ |
| 31 | def linearNormalMap (L : E ≃L[ℝ] F) : TopCat.of E ⟶ TopCat.of F := |
| 32 | TopCat.ofHom ⟨L, L.continuous⟩ |
| 33 | |
| 34 | theorem linearNormalMap_preservesPuncture (L : E ≃L[ℝ] F) : |
| 35 | Set.MapsTo (linearNormalMap L) ({0}ᶜ : Set E) ({0}ᶜ : Set F) := by |
| 36 | intro x hx |
| 37 | change L x ≠ 0 |
| 38 | intro he |
| 39 | exact hx (L.injective (by simpa only [map_zero] using he)) |
| 40 | |
| 41 | /-- The actual local homology map of an invertible real linear map. -/ |
| 42 | def linearLocalHomologyMap (L : E ≃L[ℝ] F) (n : ℕ) : |
| 43 | LocalHomology.Cycles.localSingularHomology (TopCat.of E) 0 n ⟶ |
| 44 | LocalHomology.Cycles.localSingularHomology (TopCat.of F) 0 n := |
| 45 | LocalHomology.Cycles.relativeSingularHomologyMap (linearNormalMap L) |
| 46 | (linearNormalMap_preservesPuncture L) n |
| 47 | |
| 48 | /-- The distinguished point of a positive-radius coordinate ball. -/ |
| 49 | abbrev ballZero (E : Type) [NormedAddCommGroup E] (r : ℝ) (hr : 0 < r) : |
| 50 | Metric.ball (0 : E) r := ⟨0, by simpa using hr⟩ |
| 51 | |
| 52 | def linearBallMap (L : E ≃L[ℝ] F) (r : ℝ) : |
| 53 | TopCat.of (Metric.ball (0 : E) r) ⟶ TopCat.of F := |
| 54 | TopCat.ofHom ⟨fun x => L x.1, L.continuous.comp continuous_subtype_val⟩ |
| 55 | |
| 56 | def translatedBallMap (f : E → F) (r : ℝ) |
| 57 | (hc : ContinuousOn f (Metric.ball 0 r)) : |
| 58 | TopCat.of (Metric.ball (0 : E) r) ⟶ TopCat.of F := |
| 59 | TopCat.ofHom ⟨fun x => f x.1 - f 0, |
| 60 | (hc.domRestrict).sub continuous_const⟩ |
| 61 | |
| 62 | /-- The straight line on the full coordinate ball, including its center. -/ |
| 63 | def derivativeBallHomotopy (f : E → F) (L : E ≃L[ℝ] F) (r : ℝ) |
| 64 | (hc : ContinuousOn f (Metric.ball 0 r)) : |
| 65 | TopCat.Homotopy (linearBallMap L r) (translatedBallMap f r hc) where |
| 66 | toFun z := L z.2.1 + (z.1 : ℝ) • (f z.2.1 - f 0 - L z.2.1) |
| 67 | continuous_toFun := |
| 68 | (L.continuous.comp (continuous_subtype_val.comp continuous_snd)).add |
| 69 | ((continuous_subtype_val.comp continuous_fst).smul |
| 70 | (((hc.domRestrict.comp continuous_snd).sub continuous_const).sub |
| 71 | (L.continuous.comp (continuous_subtype_val.comp continuous_snd)))) |
| 72 | map_zero_left x := by simp [linearBallMap] |
| 73 | map_one_left x := by |
| 74 | change L x.1 + (1 : ℝ) • (f x.1 - f 0 - L x.1) = f x.1 - f 0 |
| 75 | simp |
| 76 | |
| 77 | theorem derivativeBallHomotopy_preservesPuncture (f : E → F) |
| 78 | (L : E ≃L[ℝ] F) (r : ℝ) (hr : 0 < r) |
| 79 | (hc : ContinuousOn f (Metric.ball 0 r)) |
| 80 | (he : ∀ x, ‖x‖ < r → ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖) : |
| 81 | ∀ t : unitInterval, Set.MapsTo |
| 82 | (fun x => derivativeBallHomotopy f L r hc (t, x)) |
| 83 | ({ballZero E r hr}ᶜ : Set (Metric.ball (0 : E) r)) ({0}ᶜ : Set F) := by |
| 84 | intro t x hx |
| 85 | change x ≠ ballZero E r hr at hx |
| 86 | change L x.1 + (t : ℝ) • ((f x.1 - f 0) - L x.1) ≠ 0 |
| 87 | apply DerivativePuncturedHomotopy.Cycles.straightLine_ne_zero_of_half_norm |
| 88 | · intro hL |
| 89 | apply hx |
| 90 | apply Subtype.ext |
| 91 | change x.1 = 0 |
| 92 | exact L.injective (by simpa only [map_zero] using hL) |
| 93 | · apply he |
| 94 | simpa only [Metric.mem_ball, dist_zero_right] using x.property |
| 95 | |
| 96 | theorem linearBallMap_preservesPuncture (L : E ≃L[ℝ] F) (r : ℝ) (hr : 0 < r) : |
| 97 | Set.MapsTo (linearBallMap L r) |
| 98 | ({ballZero E r hr}ᶜ : Set (Metric.ball (0 : E) r)) ({0}ᶜ : Set F) := by |
| 99 | intro x hx |
| 100 | change x ≠ ballZero E r hr at hx |
| 101 | change L x.1 ≠ 0 |
| 102 | intro hL |
| 103 | exact hx (Subtype.ext (L.injective (by simpa only [map_zero] using hL))) |
| 104 | |
| 105 | theorem translatedBallMap_preservesPuncture (f : E → F) |
| 106 | (L : E ≃L[ℝ] F) (r : ℝ) (hr : 0 < r) |
| 107 | (hc : ContinuousOn f (Metric.ball 0 r)) |
| 108 | (he : ∀ x, ‖x‖ < r → ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖) : |
| 109 | Set.MapsTo (translatedBallMap f r hc) |
| 110 | ({ballZero E r hr}ᶜ : Set (Metric.ball (0 : E) r)) ({0}ᶜ : Set F) := |
| 111 | RelativeHomotopy.Cycles.homotopy_end_mapsTo (derivativeBallHomotopy f L r hc) |
| 112 | (derivativeBallHomotopy_preservesPuncture f L r hr hc he) |
| 113 | |
| 114 | def translatedBallLocalHomologyMap (f : E → F) |
| 115 | (L : E ≃L[ℝ] F) (r : ℝ) (hr : 0 < r) |
| 116 | (hc : ContinuousOn f (Metric.ball 0 r)) |
| 117 | (he : ∀ x, ‖x‖ < r → ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖) (n : ℕ) : |
| 118 | LocalHomology.Cycles.localSingularHomology (TopCat.of (Metric.ball (0 : E) r)) (ballZero E r hr) n ⟶ |
| 119 | LocalHomology.Cycles.localSingularHomology (TopCat.of F) 0 n := |
| 120 | LocalHomology.Cycles.relativeSingularHomologyMap (translatedBallMap f r hc) |
| 121 | (translatedBallMap_preservesPuncture f L r hr hc he) n |
| 122 | |
| 123 | /-- The nonlinear map and derivative induce equal relative homology maps |
| 124 | on the ball because the explicit homotopy preserves the punctured pair. -/ |
| 125 | theorem translatedBallLocalHomologyMap_eq_linear (f : E → F) |
| 126 | (L : E ≃L[ℝ] F) (r : ℝ) (hr : 0 < r) |
| 127 | (hc : ContinuousOn f (Metric.ball 0 r)) |
| 128 | (he : ∀ x, ‖x‖ < r → ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖) (n : ℕ) : |
| 129 | translatedBallLocalHomologyMap f L r hr hc he n = |
| 130 | LocalHomology.Cycles.relativeSingularHomologyMap (linearBallMap L r) |
| 131 | (linearBallMap_preservesPuncture L r hr) n := |
| 132 | (RelativeHomotopy.Cycles.relativeSingularHomologyMap_eq_of_homotopy |
| 133 | (linearBallMap_preservesPuncture L r hr) |
| 134 | (translatedBallMap_preservesPuncture f L r hr hc he) |
| 135 | (derivativeBallHomotopy f L r hc) |
| 136 | (derivativeBallHomotopy_preservesPuncture f L r hr hc he) n).symm |
| 137 | |
| 138 | set_option backward.isDefEq.respectTransparency false in |
| 139 | /-- The actual linear map of punctured pairs factors through neighborhood |
| 140 | inclusion, before passing to homology. -/ |
| 141 | theorem linearBallRelativeMap_factor (L : E ≃L[ℝ] F) (r : ℝ) (hr : 0 < r) : |
| 142 | LocalExcision.Cycles.localExcisionChainMap (TopCat.of E) (Metric.ball 0 r) 0 |
| 143 | (by simpa using hr) ≫ |
| 144 | LocalHomology.Cycles.relativeSingularChainsMap (linearNormalMap L) (linearNormalMap_preservesPuncture L) = |
| 145 | LocalHomology.Cycles.relativeSingularChainsMap (linearBallMap L r) (linearBallMap_preservesPuncture L r hr) := by |
| 146 | unfold LocalExcision.Cycles.localExcisionChainMap |
| 147 | rw [LocalHomology.Cycles.relativeSingularChainsMap_comp] |
| 148 | rfl |
| 149 | |
| 150 | /-- Excision identifies the local action of a differentiable germ with the |
| 151 | local action of its derivative. -/ |
| 152 | theorem translatedBallLocalHomologyMap_eq_excision_comp (f : E → F) |
| 153 | (L : E ≃L[ℝ] F) (r : ℝ) (hr : 0 < r) |
| 154 | (hc : ContinuousOn f (Metric.ball 0 r)) |
| 155 | (he : ∀ x, ‖x‖ < r → ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖) (n : ℕ) : |
| 156 | translatedBallLocalHomologyMap f L r hr hc he n = |
| 157 | (LocalExcision.Cycles.localExcisionHomologyIso (TopCat.of E) (Metric.ball 0 r) 0 |
| 158 | (by simpa using hr) Metric.isOpen_ball n).hom ≫ linearLocalHomologyMap L n := by |
| 159 | rw [translatedBallLocalHomologyMap_eq_linear, LocalExcision.Cycles.localExcisionHomologyIso_hom] |
| 160 | change HomologicalComplex.homologyMap _ n = |
| 161 | HomologicalComplex.homologyMap _ n ≫ HomologicalComplex.homologyMap _ n |
| 162 | rw [← HomologicalComplex.homologyMap_comp, linearBallRelativeMap_factor] |
| 163 | |
| 164 | /-- Complex-linear invertible derivatives preserve every local homology |
| 165 | class above degree one, without choosing a generator. -/ |
| 166 | theorem complexLinearLocalHomologyMap_eq_id {p : ℕ} |
| 167 | (L : (Fin p → ℂ) ≃L[ℂ] (Fin p → ℂ)) (n : ℕ) (hn : 1 < n) : |
| 168 | linearLocalHomologyMap (L.restrictScalars ℝ) n = 𝟙 _ := by |
| 169 | let A := LinearMap.toMatrix' L.toLinearEquiv.toLinearMap |
| 170 | have hA : IsUnit A := |
| 171 | LinearMap.isUnit_toMatrix'_iff.mpr ((Module.End.isUnit_iff _).mpr L.bijective) |
| 172 | have hm : linearNormalMap (L.restrictScalars ℝ) = TopCat.ofHom (ComplexLinearPuncturedHomotopy.Cycles.complexMatrixMap A) := by |
| 173 | apply TopCat.hom_ext |
| 174 | apply ContinuousMap.ext |
| 175 | intro x |
| 176 | exact (LinearMap.toMatrix'_mulVec L.toLinearEquiv.toLinearMap x).symm |
| 177 | simpa only [linearLocalHomologyMap, hm, ComplexLinearPuncturedHomotopy.Cycles.complexMatrixLocalHomologyMap] using |
| 178 | ComplexLinearPuncturedHomotopy.Cycles.complexMatrixLocalHomologyMap_eq_id A hA n hn |
| 179 | |
| 180 | set_option backward.isDefEq.respectTransparency false in |
| 181 | /-- A nonlinear map with invertible complex derivative preserves the actual |
| 182 | orientation-degree local homology, on a sufficiently small ball. -/ |
| 183 | theorem exists_complexDerivative_localHomology_eq_excision {p : ℕ} (hp : 0 < p) |
| 184 | (f : (Fin p → ℂ) → (Fin p → ℂ)) |
| 185 | (L : (Fin p → ℂ) ≃L[ℂ] (Fin p → ℂ)) |
| 186 | (hf : HasFDerivAt f ((L.restrictScalars ℝ) : _ →L[ℝ] _) 0) |
| 187 | {U : Set (Fin p → ℂ)} (hU : U ∈ 𝓝 (0 : Fin p → ℂ)) (hc : ContinuousOn f U) : |
| 188 | ∃ (r : ℝ) (hr : 0 < r) (hc' : ContinuousOn f (Metric.ball 0 r)) |
| 189 | (he : ∀ x, ‖x‖ < r → ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖), |
| 190 | Metric.ball (0 : Fin p → ℂ) r ⊆ U ∧ |
| 191 | translatedBallLocalHomologyMap f (L.restrictScalars ℝ) r hr hc' he (2 * p) = |
| 192 | (LocalExcision.Cycles.localExcisionHomologyIso (TopCat.of (Fin p → ℂ)) (Metric.ball 0 r) 0 |
| 193 | (by simpa using hr) Metric.isOpen_ball (2 * p)).hom := by |
| 194 | have hmem : U ∩ {x | ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖} ∈ |
| 195 | 𝓝 (0 : Fin p → ℂ) := |
| 196 | Filter.inter_mem hU (DerivativePuncturedHomotopy.Cycles.eventually_derivative_remainder_small (L.restrictScalars ℝ) hf) |
| 197 | obtain ⟨r, hr, hball⟩ := Metric.mem_nhds_iff.mp hmem |
| 198 | have hsub : Metric.ball (0 : Fin p → ℂ) r ⊆ U := fun _ hx => (hball hx).1 |
| 199 | have hc' : ContinuousOn f (Metric.ball 0 r) := hc.mono hsub |
| 200 | have he : ∀ x, ‖x‖ < r → ‖f x - f 0 - L x‖ ≤ (1 / 2 : ℝ) * ‖L x‖ := by |
| 201 | intro x hx |
| 202 | exact (hball (by simpa only [Metric.mem_ball, dist_zero_right] using hx)).2 |
| 203 | refine ⟨r, hr, hc', he, hsub, ?_⟩ |
| 204 | rw [translatedBallLocalHomologyMap_eq_excision_comp, |
| 205 | complexLinearLocalHomologyMap_eq_id L (2 * p) (by omega), Category.comp_id] |
| 206 | |
| 207 | end |
| 208 | |
| 209 | end OAI.AlgebraicGeometry.CycleClass.Geometric.LocalDerivativeHomology.Cycles |