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.AdelicSplitting.ArchimedeanPositionChart |
| 2 | import OAI.RepresentationTheory.Weil.AdelicSplitting.FiniteTestSupport |
| 3 | import OAI.RepresentationTheory.Weil.AdelicSplitting.RapidFunctions |
| 4 | |
| 5 | /-! # Theta Test -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Weil.AdelicSplitting |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Factorization of actual restricted test-family values, including at |
| 14 | rational points, into their archimedean and finite functions. -/ |
| 15 | |
| 16 | open scoped Classical _root_.NumberField |
| 17 | open _root_.NumberField Filter |
| 18 | |
| 19 | open OAI.RepresentationTheory.Weil.AdelicSplitting.RapidFunctions.LocalAnalysis |
| 20 | |
| 21 | variable (F : Type) [Field F] [NumberField F] (N : ℕ) |
| 22 | |
| 23 | def ThetaTest.Construction.mixedRationalPosition (q : Fin N → F) : Fin N → mixedEmbedding.mixedSpace F := |
| 24 | fun i => mixedEmbedding F (q i) |
| 25 | |
| 26 | theorem ThetaTest.Construction.mixedRationalPosition_injective : Function.Injective (ThetaTest.Construction.mixedRationalPosition F N) := by |
| 27 | intro q r h |
| 28 | funext i |
| 29 | exact mixedEmbedding_injective F (congrFun h i) |
| 30 | |
| 31 | theorem RestrictedTestFamilies.Construction.RestrictedTestFamily.value_factorization (f : RestrictedTestFamilies.Construction.RestrictedTestFamily F N) (a : Fin N → ArchimedeanAdeles.Construction.Adeles F) : |
| 32 | f.value F N a = |
| 33 | (∏ v : InfinitePlace F, (f (.inl v)).val (fun i => (a i).1 v)) * |
| 34 | f.finiteValue F N (fun i => (a i).2) := by |
| 35 | have harch : HasProd (fun v : InfinitePlace F => f.localValue F N a (.inl v)) |
| 36 | (∏ v : InfinitePlace F, (f (.inl v)).val (fun i => (a i).1 v)) := hasProd_fintype _ |
| 37 | have hfin : HasProd |
| 38 | (fun v : IsDedekindDomain.HeightOneSpectrum (𝓞 F) => f.localValue F N a (.inr v)) |
| 39 | (f.finiteValue F N (fun i => (a i).2)) := by |
| 40 | apply Multipliable.hasProd |
| 41 | exact multipliable_of_hasFiniteMulSupport (eventually_cofinite.mp |
| 42 | (f.finite_localValue_eventually_one F N (fun i => (a i).2))) |
| 43 | exact (f.localValue_hasProd F N a).unique (HasProd.sum harch hfin) |
| 44 | |
| 45 | theorem RestrictedTestFamilies.Construction.RestrictedTestFamily.mixedProductRapid_rational (f : RestrictedTestFamilies.Construction.RestrictedTestFamily F N) (q : Fin N → F) : |
| 46 | f.mixedProductRapid F N (ThetaTest.Construction.mixedRationalPosition F N q) = |
| 47 | ∏ v : InfinitePlace F, (f (.inl v)).val (fun i => ArchimedeanAdeles.Construction.rationalScalar F (.inl v) (q i)) := by |
| 48 | let x : ∀ v : InfinitePlace F, Local.FunctionsMetaplectic.Construction.Position v.Completion N := |
| 49 | fun v i => ArchimedeanAdeles.Construction.rationalScalar F (.inl v) (q i) |
| 50 | have he : ThetaTest.Construction.mixedRationalPosition F N q = ArchimedeanPositionChart.Construction.archimedeanPositionChart F N x := by |
| 51 | funext i |
| 52 | exact (ArchimedeanAdeles.Construction.infiniteAdeleMixedHomeomorph_rational F (q i)).symm |
| 53 | rw [he] |
| 54 | change f.archimedeanProductRapid F N |
| 55 | ((ArchimedeanPositionChart.Construction.archimedeanPositionChart F N).symm (ArchimedeanPositionChart.Construction.archimedeanPositionChart F N x)) = _ |
| 56 | rw [(ArchimedeanPositionChart.Construction.archimedeanPositionChart F N).symm_apply_apply] |
| 57 | rfl |
| 58 | |
| 59 | theorem RestrictedTestFamilies.Construction.RestrictedTestFamily.value_rational_factorization (f : RestrictedTestFamilies.Construction.RestrictedTestFamily F N) (q : Fin N → F) : |
| 60 | f.value F N (fun i => algebraMap F (ArchimedeanAdeles.Construction.Adeles F) (q i)) = |
| 61 | f.mixedProductRapid F N (ThetaTest.Construction.mixedRationalPosition F N q) * |
| 62 | f.finiteValue F N (FiniteCosets.Construction.finiteRationalPosition q) := by |
| 63 | rw [f.value_factorization F N, f.mixedProductRapid_rational F N] |
| 64 | rfl |
| 65 | |
| 66 | def RestrictedTestFamilies.Construction.RestrictedTestFamily.theta (f : RestrictedTestFamilies.Construction.RestrictedTestFamily F N) : ℂ := |
| 67 | ∑' q : Fin N → F, f.value F N (fun i => algebraMap F (ArchimedeanAdeles.Construction.Adeles F) (q i)) |
| 68 | |
| 69 | end |
| 70 | |
| 71 | section |
| 72 | |
| 73 | /-! Discrete Minkowski position lattices obtained by clearing a rational |
| 74 | denominator. These contain the rational support of each finite test function. -/ |
| 75 | |
| 76 | open scoped Classical _root_.NumberField |
| 77 | open _root_.NumberField |
| 78 | |
| 79 | open OAI.RepresentationTheory.Weil.AdelicSplitting.RapidFunctions.LocalAnalysis |
| 80 | |
| 81 | variable (F : Type) [Field F] [NumberField F] (N : ℕ) |
| 82 | |
| 83 | def ThetaTest.Construction.mixedPositionLattice (r : F) : Submodule ℤ (Fin N → mixedEmbedding.mixedSpace F) where |
| 84 | carrier := {x | ∀ i, mixedEmbedding F r * x i ∈ mixedEmbedding.integerLattice F} |
| 85 | zero_mem' := by simp |
| 86 | add_mem' hx hy i := by |
| 87 | simpa only [Pi.add_apply, mul_add] using (mixedEmbedding.integerLattice F).add_mem (hx i) (hy i) |
| 88 | smul_mem' z x hx i := by |
| 89 | simpa only [Pi.smul_apply, mul_smul_comm] using (mixedEmbedding.integerLattice F).smul_mem z (hx i) |
| 90 | |
| 91 | theorem ThetaTest.Construction.mixedPositionLattice_discrete (r : F) (hr : r ≠ 0) : |
| 92 | DiscreteTopology (ThetaTest.Construction.mixedPositionLattice F N r) := by |
| 93 | let e : ThetaTest.Construction.mixedPositionLattice F N r → (Fin N → mixedEmbedding.integerLattice F) := |
| 94 | fun x i => ⟨mixedEmbedding F r * x.val i, x.property i⟩ |
| 95 | have he : Continuous e := continuous_pi (fun i => |
| 96 | (continuous_const.mul ((continuous_apply i).comp continuous_subtype_val)).subtype_mk _) |
| 97 | apply DiscreteTopology.of_continuous_injective he |
| 98 | intro x y h |
| 99 | apply Subtype.ext |
| 100 | funext i |
| 101 | have hi := congrArg Subtype.val (congrFun h i) |
| 102 | have hinv : mixedEmbedding F r⁻¹ * mixedEmbedding F r = 1 := by |
| 103 | rw [← map_mul (mixedEmbedding F), inv_mul_cancel₀ hr, map_one] |
| 104 | have hh := congrArg (fun t => mixedEmbedding F r⁻¹ * t) hi |
| 105 | simpa only [e, ← mul_assoc, hinv, one_mul] using hh |
| 106 | |
| 107 | theorem ThetaTest.Construction.rational_mem_mixedPositionLattice (r : F) (q : Fin N → F) |
| 108 | (h : ∀ i, algebraMap F (ArchimedeanAdeles.Construction.FiniteAdeles F) (r * q i) ∈ IntegralAdeles.Construction.finiteIntegralRing F) : |
| 109 | ThetaTest.Construction.mixedRationalPosition F N q ∈ ThetaTest.Construction.mixedPositionLattice F N r := by |
| 110 | intro i |
| 111 | obtain ⟨b, hb⟩ := (IntegralAdeles.Construction.rational_mem_finiteIntegral_iff F (r * q i)).mp (h i) |
| 112 | refine ⟨b, ?_⟩ |
| 113 | change mixedEmbedding F (algebraMap (𝓞 F) F b) = mixedEmbedding F r * mixedEmbedding F (q i) |
| 114 | rw [hb, map_mul (mixedEmbedding F)] |
| 115 | |
| 116 | theorem RestrictedTestFamilies.Construction.RestrictedTestFamily.rational_support_lattice (f : RestrictedTestFamilies.Construction.RestrictedTestFamily F N) : |
| 117 | ∃ r : F, r ≠ 0 ∧ ∀ q : Fin N → F, f.finiteValue F N (FiniteCosets.Construction.finiteRationalPosition q) ≠ 0 → |
| 118 | ThetaTest.Construction.mixedRationalPosition F N q ∈ ThetaTest.Construction.mixedPositionLattice F N r := by |
| 119 | obtain ⟨r, hr, hb⟩ := f.finiteValue_denominator F N |
| 120 | refine ⟨algebraMap (𝓞 F) F r, |
| 121 | (map_ne_zero_iff _ (IsFractionRing.injective (𝓞 F) F)).mpr hr, fun q hq => ?_⟩ |
| 122 | apply ThetaTest.Construction.rational_mem_mixedPositionLattice F N |
| 123 | intro i |
| 124 | have hi := hb (FiniteCosets.Construction.finiteRationalPosition q) hq i |
| 125 | simpa only [FiniteCosets.Construction.finiteRationalPosition, map_mul, IsScalarTower.algebraMap_apply] using! hi |
| 126 | |
| 127 | end |
| 128 | |
| 129 | section |
| 130 | |
| 131 | /-! Absolute convergence of the actual rational theta sum of every |
| 132 | restricted Bruhat test family over the given number field. -/ |
| 133 | |
| 134 | open scoped Classical _root_.NumberField |
| 135 | open _root_.NumberField |
| 136 | |
| 137 | open OAI.RepresentationTheory.Weil.AdelicSplitting.RapidFunctions.LocalAnalysis |
| 138 | |
| 139 | variable (F : Type) [Field F] [NumberField F] (N : ℕ) |
| 140 | |
| 141 | theorem RestrictedTestFamilies.Construction.RestrictedTestFamily.theta_norm_summable (f : RestrictedTestFamilies.Construction.RestrictedTestFamily F N) : |
| 142 | Summable (fun q : Fin N → F => ‖f.value F N (fun i => algebraMap F (ArchimedeanAdeles.Construction.Adeles F) (q i))‖) := by |
| 143 | obtain ⟨r, hr, hsupport⟩ := f.rational_support_lattice F N |
| 144 | let L := ThetaTest.Construction.mixedPositionLattice F N r |
| 145 | let : DiscreteTopology L := ThetaTest.Construction.mixedPositionLattice_discrete F N r hr |
| 146 | have hf : Summable (fun y : L => ‖f.mixedProductRapid F N y.val‖) := by |
| 147 | simpa only [zero_add] using RapidFunctions.LocalAnalysis.rapid_lattice_summable_norm L (f.mixedProductRapid F N) 0 |
| 148 | let S : Set (Fin N → F) := {q | f.finiteValue F N (FiniteCosets.Construction.finiteRationalPosition q) ≠ 0} |
| 149 | let e : S → L := fun q => ⟨ThetaTest.Construction.mixedRationalPosition F N q.val, hsupport q.val q.property⟩ |
| 150 | have he : Function.Injective e := by |
| 151 | intro q t h |
| 152 | apply Subtype.ext |
| 153 | exact ThetaTest.Construction.mixedRationalPosition_injective F N (congrArg Subtype.val h) |
| 154 | apply (summable_subtype_and_compl (s := S)).mp |
| 155 | constructor |
| 156 | · obtain ⟨C, hC⟩ := (f.finiteValue_compactSupport F N).exists_bound_of_continuous |
| 157 | (f.finiteValue_locallyConstant F N).continuous |
| 158 | apply ((hf.comp_injective he).mul_right C).of_nonneg_of_le (fun _ => norm_nonneg _) |
| 159 | intro q |
| 160 | rw [f.value_rational_factorization F N, norm_mul] |
| 161 | exact mul_le_mul_of_nonneg_left (hC _) (norm_nonneg _) |
| 162 | · have hz : (fun q : ↥(Sᶜ) => |
| 163 | ‖f.value F N (fun i => algebraMap F (ArchimedeanAdeles.Construction.Adeles F) (q.val i))‖) = 0 := by |
| 164 | funext q |
| 165 | have hzero : f.finiteValue F N (FiniteCosets.Construction.finiteRationalPosition q.val) = 0 := by |
| 166 | simpa only [S, Set.mem_compl_iff, Set.mem_ofPred_eq, not_not] using q.property |
| 167 | simp only [f.value_rational_factorization F N, hzero, mul_zero, norm_zero, Pi.zero_apply] |
| 168 | rw [hz] |
| 169 | exact summable_zero |
| 170 | |
| 171 | theorem RestrictedTestFamilies.Construction.RestrictedTestFamily.theta_summable (f : RestrictedTestFamilies.Construction.RestrictedTestFamily F N) : |
| 172 | Summable (fun q : Fin N → F => f.value F N (fun i => algebraMap F (ArchimedeanAdeles.Construction.Adeles F) (q i))) := |
| 173 | (f.theta_norm_summable F N).of_norm |
| 174 | |
| 175 | end |
| 176 | |
| 177 | /-! Rational Levi generators act on theta by an actual positive real |
| 178 | factor. The factor is a finite product, forced by the vacuum tail. -/ |
| 179 | |
| 180 | open scoped Classical _root_.NumberField |
| 181 | open Filter |
| 182 | |
| 183 | open OAI.RepresentationTheory.Weil.AdelicSplitting.RapidFunctions.LocalAnalysis |
| 184 | |
| 185 | variable (F : Type) [Field F] [NumberField F] (N : ℕ) |
| 186 | |
| 187 | def ThetaTest.Construction.rationalLeviCoefficient (A : Local.FunctionsMetaplectic.Construction.GeneralLinear F N) (v : ArchimedeanAdeles.Construction.Places F) : ℝ := |
| 188 | (Real.sqrt (Local.FunctionsMetaplectic.Construction.localModulus (ArchimedeanAdeles.Construction.Completion F v) |
| 189 | (Local.FunctionsMetaplectic.Construction.determinantUnit (ArchimedeanAdeles.Construction.Completion F v) (Rational.Construction.localizeLinear F N A v))))⁻¹ |
| 190 | |
| 191 | theorem ThetaTest.Construction.rationalLeviCoefficient_pos (A : Local.FunctionsMetaplectic.Construction.GeneralLinear F N) (v : ArchimedeanAdeles.Construction.Places F) : |
| 192 | 0 < ThetaTest.Construction.rationalLeviCoefficient F N A v := |
| 193 | inv_pos.mpr (Real.sqrt_pos.mpr (Local.FunctionsMetaplectic.Construction.localModulus_pos (ArchimedeanAdeles.Construction.Completion F v) _)) |
| 194 | |
| 195 | theorem ThetaTest.Construction.localizeLinear_inverse_mulVec (A : Local.FunctionsMetaplectic.Construction.GeneralLinear F N) (q : Fin N → F) (v : ArchimedeanAdeles.Construction.Places F) : |
| 196 | ((Rational.Construction.localizeLinear F N A v)⁻¹).val.mulVec (fun i => ArchimedeanAdeles.Construction.rationalScalar F v (q i)) = |
| 197 | fun i => ArchimedeanAdeles.Construction.rationalScalar F v ((A⁻¹).val.mulVec q i) := by |
| 198 | change ((Units.map (ArchimedeanAdeles.Construction.rationalScalar F v).mapMatrix.toMonoidHom A)⁻¹).val.mulVec _ = _ |
| 199 | rw [← map_inv] |
| 200 | funext i |
| 201 | exact (RingHom.map_mulVec (ArchimedeanAdeles.Construction.rationalScalar F v) (A⁻¹).val q i).symm |
| 202 | |
| 203 | variable (ψ : AddChar (ArchimedeanAdeles.Construction.Adeles F) ℂ) |
| 204 | |
| 205 | theorem ThetaTest.Construction.rationalLeviCoefficient_eventually_one (A : Local.FunctionsMetaplectic.Construction.GeneralLinear F N) |
| 206 | (a : Rational.Construction.RestrictedCover F N ψ) (ha : Rational.Construction.IsRationalLevi F N ψ A a) : |
| 207 | ∀ᶠ v : ArchimedeanAdeles.Construction.Places F in cofinite, ThetaTest.Construction.rationalLeviCoefficient F N A v = 1 := by |
| 208 | have hi : ∀ᶠ v : ArchimedeanAdeles.Construction.Places F in cofinite, |
| 209 | v ∉ Set.range (Sum.inl : NumberField.InfinitePlace F → ArchimedeanAdeles.Construction.Places F) := |
| 210 | (Set.finite_range (Sum.inl : NumberField.InfinitePlace F → ArchimedeanAdeles.Construction.Places F)).compl_mem_cofinite |
| 211 | filter_upwards [a.property, hi] with v hv harch |
| 212 | cases v with |
| 213 | | inl v => exact (harch ⟨v, rfl⟩).elim |
| 214 | | inr v => |
| 215 | let : MeasurableSpace (v.adicCompletion F) := ArchimedeanAdeles.Construction.completionMeasurableSpace F (.inr v) |
| 216 | let : BorelSpace (v.adicCompletion F) := ArchimedeanAdeles.Construction.completionBorelSpace F (.inr v) |
| 217 | have hfix := congrArg (fun g : Local.FunctionsMetaplectic.Construction.schwartzBruhat (ArchimedeanAdeles.Construction.Completion F (.inr v)) N => g.val 0) hv.2 |
| 218 | change (Oscillator.Construction.localOperator (ArchimedeanAdeles.Construction.Completion F (.inr v)) N (Characters.Construction.localAdditiveCharacter F ψ (.inr v)) |
| 219 | (a (.inr v)) (Vacuum.Construction.finiteVacuum F N v)).val 0 = (Vacuum.Construction.finiteVacuum F N v).val 0 at hfix |
| 220 | rw [ha.2] at hfix |
| 221 | simp only [Local.FunctionsMetaplectic.Construction.substitutionOperator_apply, Matrix.mulVec_zero, Vacuum.Construction.finiteVacuum_zero, mul_one] at hfix |
| 222 | exact_mod_cast hfix |
| 223 | |
| 224 | theorem ThetaTest.Construction.rationalLeviCoefficient_positive_product (A : Local.FunctionsMetaplectic.Construction.GeneralLinear F N) |
| 225 | (a : Rational.Construction.RestrictedCover F N ψ) (ha : Rational.Construction.IsRationalLevi F N ψ A a) : |
| 226 | ∃ c : ℝ, 0 < c ∧ HasProd (fun v => (ThetaTest.Construction.rationalLeviCoefficient F N A v : ℂ)) (c : ℂ) := by |
| 227 | let hs := eventually_cofinite.mp (ThetaTest.Construction.rationalLeviCoefficient_eventually_one F N ψ A a ha) |
| 228 | let s := hs.toFinset |
| 229 | have ht : ∀ v ∉ s, ThetaTest.Construction.rationalLeviCoefficient F N A v = 1 := by |
| 230 | intro v hv |
| 231 | simpa [s] using hv |
| 232 | refine ⟨∏ v ∈ s, ThetaTest.Construction.rationalLeviCoefficient F N A v, |
| 233 | Finset.prod_pos (fun v _ => ThetaTest.Construction.rationalLeviCoefficient_pos F N A v), ?_⟩ |
| 234 | exact (hasProd_prod_of_ne_finset_one ht).map Complex.ofRealHom Complex.continuous_ofReal |
| 235 | |
| 236 | theorem RestrictedTestFamilies.Construction.RestrictedTestFamily.levi_rational_value (A : Local.FunctionsMetaplectic.Construction.GeneralLinear F N) |
| 237 | (a : Rational.Construction.RestrictedCover F N ψ) (ha : Rational.Construction.IsRationalLevi F N ψ A a) |
| 238 | (c : ℝ) (hc : HasProd (fun v => (ThetaTest.Construction.rationalLeviCoefficient F N A v : ℂ)) (c : ℂ)) |
| 239 | (f : RestrictedTestFamilies.Construction.RestrictedTestFamily F N) (q : Fin N → F) : |
| 240 | (f.act F N ψ a).value F N (fun i => algebraMap F (ArchimedeanAdeles.Construction.Adeles F) (q i)) = |
| 241 | (c : ℂ) * f.value F N (fun i => algebraMap F (ArchimedeanAdeles.Construction.Adeles F) ((A⁻¹).val.mulVec q i)) := by |
| 242 | have hv (v : ArchimedeanAdeles.Construction.Places F) : |
| 243 | (f.act F N ψ a).localValue F N (fun i => algebraMap F (ArchimedeanAdeles.Construction.Adeles F) (q i)) v = |
| 244 | (ThetaTest.Construction.rationalLeviCoefficient F N A v : ℂ) * f.localValue F N |
| 245 | (fun i => algebraMap F (ArchimedeanAdeles.Construction.Adeles F) ((A⁻¹).val.mulVec q i)) v := by |
| 246 | change (Oscillator.Construction.localOperator (ArchimedeanAdeles.Construction.Completion F v) N (Characters.Construction.localAdditiveCharacter F ψ v) (a v) (f v)).val |
| 247 | (fun i => ArchimedeanAdeles.Construction.rationalScalar F v (q i)) = _ |
| 248 | rw [ha.2, Local.FunctionsMetaplectic.Construction.substitutionOperator_apply, ThetaTest.Construction.localizeLinear_inverse_mulVec] |
| 249 | rw [ThetaTest.Construction.rationalLeviCoefficient, Complex.ofReal_inv] |
| 250 | rfl |
| 251 | exact ((f.act F N ψ a).localValue_hasProd F N _).unique |
| 252 | ((hc.mul (f.localValue_hasProd F N _)).congr_fun hv) |
| 253 | |
| 254 | theorem ThetaTest.Construction.theta_rational_levi_positive (A : Local.FunctionsMetaplectic.Construction.GeneralLinear F N) |
| 255 | (a : Rational.Construction.RestrictedCover F N ψ) (ha : Rational.Construction.IsRationalLevi F N ψ A a) : |
| 256 | ∃ c : ℝ, 0 < c ∧ ∀ f : RestrictedTestFamilies.Construction.RestrictedTestFamily F N, |
| 257 | (f.act F N ψ a).theta F N = (c : ℂ) * f.theta F N := by |
| 258 | obtain ⟨c, hc, hp⟩ := ThetaTest.Construction.rationalLeviCoefficient_positive_product F N ψ A a ha |
| 259 | refine ⟨c, hc, fun f => ?_⟩ |
| 260 | change (∑' q : Fin N → F, (f.act F N ψ a).value F N |
| 261 | (fun i => algebraMap F (ArchimedeanAdeles.Construction.Adeles F) (q i))) = (c : ℂ) * f.theta F N |
| 262 | simp_rw [f.levi_rational_value F N ψ A a ha c hp] |
| 263 | rw [tsum_mul_left] |
| 264 | congr 1 |
| 265 | exact (LinearSubstitution.LocalAnalysis.positionLinearEquiv A⁻¹).toEquiv.tsum_eq |
| 266 | (fun q => f.value F N (fun i => algebraMap F (ArchimedeanAdeles.Construction.Adeles F) (q i))) |
| 267 | |
| 268 | end |
| 269 | |
| 270 | end OAI.RepresentationTheory.Weil.AdelicSplitting |