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.UnitarySplitting.Weak |
| 2 | |
| 3 | /-! # Local Test -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.UnitarySplitting.LocalTest.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Nonzero vectors in the actual Bruhat space. The local-field case |
| 12 | distinction is kept separate from these explicit analytic constructions. -/ |
| 13 | |
| 14 | open Filter |
| 15 | open scoped _root_.Topology SchwartzMap |
| 16 | |
| 17 | def ultraTestVector (F : Type) [NormedField F] [LocallyCompactSpace F] |
| 18 | [IsUltrametricDist F] (hF : ¬ DiscreteTopology F) (d : ℕ) : Local.FunctionsMetaplectic.Construction.schwartzBruhat F d := by |
| 19 | let : ProperSpace F := TestSpaceAnalysis.Construction.localField_proper F hF |
| 20 | let U := Metric.closedBall (0 : Local.FunctionsMetaplectic.Construction.Position F d) 1 |
| 21 | have hU : IsClopen U := IsUltrametricDist.isClopen_closedBall _ one_ne_zero |
| 22 | let f := LocallyConstant.charFn ℂ hU |
| 23 | refine ⟨f, Local.FunctionsMetaplectic.Construction.compact_locallyConstant_mem f.isLocallyConstant ?_⟩ |
| 24 | apply HasCompactSupport.intro (isCompact_closedBall (0 : Local.FunctionsMetaplectic.Construction.Position F d) 1) |
| 25 | intro x hx |
| 26 | exact Set.indicator_of_notMem hx 1 |
| 27 | |
| 28 | theorem ultraTestVector_at_zero (F : Type) [NormedField F] [LocallyCompactSpace F] |
| 29 | [IsUltrametricDist F] (hF : ¬ DiscreteTopology F) (d : ℕ) : |
| 30 | (ultraTestVector F hF d).val 0 = 1 := by |
| 31 | change (Metric.closedBall (0 : Local.FunctionsMetaplectic.Construction.Position F d) 1).indicator |
| 32 | (fun _ => (1 : ℂ)) 0 = 1 |
| 33 | simp |
| 34 | |
| 35 | theorem ultraTestVector_ne_zero (F : Type) [NormedField F] [LocallyCompactSpace F] |
| 36 | [IsUltrametricDist F] (hF : ¬ DiscreteTopology F) (d : ℕ) : |
| 37 | ultraTestVector F hF d ≠ 0 := by |
| 38 | intro h |
| 39 | have hh := ultraTestVector_at_zero F hF d |
| 40 | rw [h] at hh |
| 41 | exact zero_ne_one hh |
| 42 | |
| 43 | theorem exists_real_schwartz_nonzero (d : ℕ) : |
| 44 | ∃ f : SchwartzMap (Fin d → ℝ) ℂ, f 0 = 1 := by |
| 45 | obtain ⟨f, -, hc, hd, -, hf⟩ := |
| 46 | exists_contDiff_tsupport_subset (x := (0 : Fin d → ℝ)) (n := ⊤) |
| 47 | (s := Set.univ) Filter.univ_mem |
| 48 | have hs : HasCompactSupport (Complex.ofRealCLM ∘ f) := hc.comp_left rfl |
| 49 | refine ⟨hs.toSchwartzMap (Complex.ofRealCLM.contDiff.comp hd), ?_⟩ |
| 50 | change (f 0 : ℂ) = 1 |
| 51 | simp [hf] |
| 52 | |
| 53 | theorem exists_test_nonzero_of_real_coordinates |
| 54 | {F : Type} [NormedField F] {d r : ℕ} |
| 55 | (e : (Fin r → ℝ) ≃ₜ+ Local.FunctionsMetaplectic.Construction.Position F d) : |
| 56 | ∃ f : Local.FunctionsMetaplectic.Construction.schwartzBruhat F d, f ≠ 0 := by |
| 57 | obtain ⟨φ, hφ⟩ := exists_real_schwartz_nonzero r |
| 58 | refine ⟨⟨(fun x => φ (e.symm x)), Local.FunctionsMetaplectic.Construction.schwartz_coordinate_mem e φ⟩, ?_⟩ |
| 59 | intro h |
| 60 | have hh := congrArg (fun f : Local.FunctionsMetaplectic.Construction.schwartzBruhat F d => f.val 0) h |
| 61 | have hh' : φ 0 = 0 := by simpa using hh |
| 62 | rw [hφ] at hh' |
| 63 | exact one_ne_zero hh' |
| 64 | |
| 65 | theorem circleScalar_injective_ultra |
| 66 | {F E : Type} [NormedField F] [NormedField E] [Algebra F E] |
| 67 | [LocallyCompactSpace F] [MeasurableSpace F] [BorelSpace F] |
| 68 | [IsUltrametricDist F] (hF : ¬ DiscreteTopology F) |
| 69 | {m n : ℕ} (σ : E ≃ₐ[F] E) |
| 70 | (H : Matrix (Fin m) (Fin m) E) (K : Matrix (Fin n) (Fin n) E) |
| 71 | (c : Oscillator.Construction.SymplecticFrame σ H K) (ψ : AddChar F ℂ) : |
| 72 | Function.Injective (Oscillator.Construction.circleScalar σ H K c ψ) := |
| 73 | Weak.Construction.circleScalar_injective_of_test σ H K c ψ |
| 74 | (ultraTestVector F hF (m * n)) (ultraTestVector_ne_zero F hF (m * n)) |
| 75 | |
| 76 | theorem circleScalar_injective_of_real_coordinates |
| 77 | {F E : Type} [NormedField F] [NormedField E] [Algebra F E] |
| 78 | [LocallyCompactSpace F] [MeasurableSpace F] [BorelSpace F] |
| 79 | {m n r : ℕ} (σ : E ≃ₐ[F] E) |
| 80 | (H : Matrix (Fin m) (Fin m) E) (K : Matrix (Fin n) (Fin n) E) |
| 81 | (c : Oscillator.Construction.SymplecticFrame σ H K) (ψ : AddChar F ℂ) |
| 82 | (e : (Fin r → ℝ) ≃ₜ+ Local.FunctionsMetaplectic.Construction.Position F (m * n)) : |
| 83 | Function.Injective (Oscillator.Construction.circleScalar σ H K c ψ) := by |
| 84 | obtain ⟨f, hf⟩ := exists_test_nonzero_of_real_coordinates e |
| 85 | exact Weak.Construction.circleScalar_injective_of_test σ H K c ψ f hf |
| 86 | |
| 87 | end |
| 88 | |
| 89 | section |
| 90 | |
| 91 | /-! A complete locally compact characteristic-zero normed field is either |
| 92 | ultrametric or admits finite-dimensional real additive coordinates. This is |
| 93 | the part of the local-field dichotomy needed for nonzero Bruhat vectors. -/ |
| 94 | |
| 95 | open Filter |
| 96 | open scoped _root_.Topology |
| 97 | |
| 98 | variable (F : Type) [NormedField F] [CharZero F] |
| 99 | |
| 100 | def rationalNorm : AbsoluteValue ℚ ℝ where |
| 101 | toFun q := ‖(q : F)‖ |
| 102 | map_mul' q r := by simp [norm_mul] |
| 103 | nonneg' q := norm_nonneg _ |
| 104 | eq_zero' q := by simp |
| 105 | add_le' q r := by simpa using norm_add_le (q : F) (r : F) |
| 106 | |
| 107 | theorem rationalCast_uniformContinuous_of_unbounded |
| 108 | (h : ¬ ∀ n : ℕ, ‖(n : F)‖ ≤ 1) : |
| 109 | UniformContinuous (Rat.castHom F : ℚ → F) := by |
| 110 | have hh : ¬ ∀ n : ℕ, rationalNorm F n ≤ 1 := by |
| 111 | simpa [rationalNorm] using h |
| 112 | have he := Rat.AbsoluteValue.equiv_real_of_unbounded hh |
| 113 | obtain ⟨s, hs, heq⟩ := AbsoluteValue.isEquiv_iff_exists_rpow_eq.mp he.symm |
| 114 | have hp (q : ℚ) : ‖(q : F)‖ = ‖q‖ ^ s := by |
| 115 | have hq := congrFun heq q |
| 116 | simpa [rationalNorm, Rat.AbsoluteValue.real_eq_abs, ← Real.norm_eq_abs, |
| 117 | Rat.norm_cast_real] using hq.symm |
| 118 | apply uniformContinuous_of_continuousAt_zero (Rat.castHom F).toAddMonoidHom |
| 119 | rw [ContinuousAt, map_zero] |
| 120 | rw [tendsto_zero_iff_norm_tendsto_zero] |
| 121 | change Tendsto (fun q : ℚ => ‖(q : F)‖) (𝓝 0) (𝓝 0) |
| 122 | simp_rw [hp] |
| 123 | have hc : ContinuousAt (fun q : ℚ => ‖q‖ ^ s) 0 := |
| 124 | continuous_norm.continuousAt.rpow_const (Or.inr hs.le) |
| 125 | simpa [Real.zero_rpow hs.ne'] using hc.tendsto |
| 126 | |
| 127 | variable [CompleteSpace F] |
| 128 | |
| 129 | def realEmbeddingOfUnbounded (h : ¬ ∀ n : ℕ, ‖(n : F)‖ ≤ 1) : ℝ →+* F := |
| 130 | IsDenseInducing.extendRingHom |
| 131 | (i := Rat.castHom ℝ) (f := Rat.castHom F) |
| 132 | Rat.isUniformEmbedding_coe_real.isUniformInducing Rat.denseRange_cast |
| 133 | (rationalCast_uniformContinuous_of_unbounded F h) |
| 134 | |
| 135 | theorem realEmbeddingOfUnbounded_continuous |
| 136 | (h : ¬ ∀ n : ℕ, ‖(n : F)‖ ≤ 1) : |
| 137 | Continuous (realEmbeddingOfUnbounded F h) := |
| 138 | (uniformContinuous_uniformly_extend |
| 139 | Rat.isUniformEmbedding_coe_real.isUniformInducing Rat.denseRange_cast |
| 140 | (rationalCast_uniformContinuous_of_unbounded F h)).continuous |
| 141 | |
| 142 | theorem exists_real_coordinates_of_unbounded [LocallyCompactSpace F] |
| 143 | (h : ¬ ∀ n : ℕ, ‖(n : F)‖ ≤ 1) (d : ℕ) : |
| 144 | ∃ r : ℕ, Nonempty ((Fin r → ℝ) ≃ₜ+ Local.FunctionsMetaplectic.Construction.Position F d) := by |
| 145 | let : Algebra ℝ F := (realEmbeddingOfUnbounded F h).toAlgebra |
| 146 | let : ContinuousSMul ℝ F := continuousSMul_of_algebraMap ℝ F |
| 147 | (realEmbeddingOfUnbounded_continuous F h) |
| 148 | let : FiniteDimensional ℝ F := FiniteDimensional.of_locallyCompactSpace ℝ |
| 149 | let b := Module.finBasis ℝ (Local.FunctionsMetaplectic.Construction.Position F d) |
| 150 | exact ⟨Module.finrank ℝ (Local.FunctionsMetaplectic.Construction.Position F d), ⟨b.equivFunL.symm.toContinuousAddEquiv⟩⟩ |
| 151 | |
| 152 | theorem exists_test_nonzero [LocallyCompactSpace F] |
| 153 | (hF : ¬ DiscreteTopology F) (d : ℕ) : |
| 154 | ∃ f : Local.FunctionsMetaplectic.Construction.schwartzBruhat F d, f ≠ 0 := by |
| 155 | by_cases h : ∀ n : ℕ, ‖(n : F)‖ ≤ 1 |
| 156 | · let : IsUltrametricDist F := |
| 157 | IsUltrametricDist.isUltrametricDist_of_forall_norm_natCast_le_one h |
| 158 | exact ⟨ultraTestVector F hF d, ultraTestVector_ne_zero F hF d⟩ |
| 159 | · obtain ⟨r, ⟨e⟩⟩ := exists_real_coordinates_of_unbounded F h d |
| 160 | exact exists_test_nonzero_of_real_coordinates e |
| 161 | |
| 162 | theorem circleScalar_injective |
| 163 | {E : Type} [NormedField E] [Algebra F E] |
| 164 | [LocallyCompactSpace F] [MeasurableSpace F] [BorelSpace F] |
| 165 | (hF : ¬ DiscreteTopology F) {m n : ℕ} (σ : E ≃ₐ[F] E) |
| 166 | (H : Matrix (Fin m) (Fin m) E) (K : Matrix (Fin n) (Fin n) E) |
| 167 | (c : Oscillator.Construction.SymplecticFrame σ H K) (ψ : AddChar F ℂ) : |
| 168 | Function.Injective (Oscillator.Construction.circleScalar σ H K c ψ) := by |
| 169 | obtain ⟨f, hf⟩ := exists_test_nonzero F hF (m * n) |
| 170 | exact Weak.Construction.circleScalar_injective_of_test σ H K c ψ f hf |
| 171 | |
| 172 | end |
| 173 | |
| 174 | /-! The elementary no-small-subgroups argument needed to make continuous |
| 175 | additive characters locally constant over ultrametric fields. -/ |
| 176 | |
| 177 | open scoped BigOperators _root_.Topology |
| 178 | |
| 179 | theorem complex_eq_one_of_powers_near_one (z : ℂ) |
| 180 | (h : ∀ n : ℕ, ‖z ^ n - 1‖ < 1 / 2) : z = 1 := by |
| 181 | by_contra hz |
| 182 | have hzpos : 0 < ‖z - 1‖ := norm_pos_iff.mpr (sub_ne_zero.mpr hz) |
| 183 | obtain ⟨n, hn⟩ := exists_nat_gt (1 / ‖z - 1‖) |
| 184 | have hnpos : 0 < (n : ℝ) := lt_trans (by positivity) hn |
| 185 | let S : ℂ := ∑ i ∈ Finset.range n, z ^ i |
| 186 | have hsum : ‖S - (n : ℂ)‖ ≤ (n : ℝ) / 2 := by |
| 187 | have heq : S - (n : ℂ) = ∑ i ∈ Finset.range n, (z ^ i - 1) := by |
| 188 | simp [S, Finset.sum_sub_distrib] |
| 189 | rw [heq] |
| 190 | calc |
| 191 | _ ≤ ∑ i ∈ Finset.range n, ‖z ^ i - 1‖ := norm_sum_le _ _ |
| 192 | _ ≤ ∑ _i ∈ Finset.range n, (1 / 2 : ℝ) := |
| 193 | Finset.sum_le_sum (fun i _ => (h i).le) |
| 194 | _ = (n : ℝ) / 2 := by simp [div_eq_mul_inv] |
| 195 | have hlower : (n : ℝ) / 2 ≤ ‖S‖ := by |
| 196 | have ht := norm_sub_norm_le (n : ℂ) S |
| 197 | rw [norm_sub_rev] at ht |
| 198 | simp only [Complex.norm_natCast] at ht |
| 199 | linarith |
| 200 | have hgeom : S * (z - 1) = z ^ n - 1 := geom_sum_mul z n |
| 201 | have hup : ‖S‖ * ‖z - 1‖ < 1 / 2 := by |
| 202 | rw [← norm_mul, hgeom] |
| 203 | exact h n |
| 204 | have hnlarge : 1 < (n : ℝ) * ‖z - 1‖ := (div_lt_iff₀ hzpos).mp hn |
| 205 | nlinarith [mul_le_mul_of_nonneg_right hlower hzpos.le] |
| 206 | |
| 207 | theorem additiveCharacter_locallyConstant_ultra |
| 208 | {F : Type} [NormedField F] [IsUltrametricDist F] |
| 209 | (ψ : AddChar F ℂ) (hψ : Continuous (fun x : F => ψ x)) : |
| 210 | IsLocallyConstant (fun x : F => ψ x) := by |
| 211 | obtain ⟨ε, hε, hsmall⟩ := Metric.continuousAt_iff.mp (hψ.continuousAt (x := 0)) |
| 212 | (1 / 2) (by norm_num) |
| 213 | have hker (x : F) (hx : ‖x‖ < ε) : ψ x = 1 := by |
| 214 | apply complex_eq_one_of_powers_near_one |
| 215 | intro n |
| 216 | have hbound : ‖n • x‖ ≤ ‖x‖ := by |
| 217 | rw [nsmul_eq_mul, norm_mul] |
| 218 | exact mul_le_of_le_one_left (norm_nonneg x) |
| 219 | (IsUltrametricDist.norm_natCast_le_one F n) |
| 220 | have hh := hsmall (by simpa only [dist_zero_right] using lt_of_le_of_lt hbound hx) |
| 221 | simpa only [AddChar.map_nsmul_eq_pow, AddChar.map_zero_eq_one, dist_eq_norm] using hh |
| 222 | apply (IsLocallyConstant.iff_eventually_eq _).mpr |
| 223 | intro x |
| 224 | filter_upwards [Metric.ball_mem_nhds x hε] with y hy |
| 225 | have hh := ψ.map_add_eq_mul (y - x) x |
| 226 | rw [sub_add_cancel, hker (y - x) (by simpa only [Metric.mem_ball, dist_eq_norm] using hy), |
| 227 | one_mul] at hh |
| 228 | exact hh |
| 229 | |
| 230 | end |
| 231 | |
| 232 | end OAI.RepresentationTheory.Weil.UnitarySplitting.LocalTest.Construction |