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.AbelianScheme.TateComparison.Local |
| 2 | |
| 3 | /-! # Hecke Kernel -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.HeckeKernel |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! |
| 12 | The spherical algebra is constructed as the algebra of equivariant |
| 13 | endomorphisms of the free rational module on G/K. Equivariance forces each |
| 14 | column to be a translate of the finite identity column. Thus this is the |
| 15 | ordinary finite-support convolution model, with integral-level volume one; |
| 16 | no convolution constants or geometric action are supplied as data. |
| 17 | -/ |
| 18 | |
| 19 | open scoped Classical |
| 20 | |
| 21 | section Convolution |
| 22 | |
| 23 | variable {G : Type*} [Group G] (U : Subgroup G) |
| 24 | |
| 25 | /-- The free rational module on right cosets. Inversion identifies these |
| 26 | with the left-coset convention used for the inverse lattice representatives. -/ |
| 27 | abbrev CosetModule := (G ⧸ U) →₀ ℚ |
| 28 | |
| 29 | /-- The permutation representation on the coset module. -/ |
| 30 | def translate (g : G) : Module.End ℚ (CosetModule U) := |
| 31 | Finsupp.lmapDomain ℚ ℚ (fun x : G ⧸ U => g • x) |
| 32 | |
| 33 | @[simp] |
| 34 | theorem translate_single (g : G) (x : G ⧸ U) (r : ℚ) : |
| 35 | translate U g (Finsupp.single x r) = Finsupp.single (g • x) r := by |
| 36 | simp [translate] |
| 37 | |
| 38 | theorem translate_mul (g h : G) : translate U (g * h) = translate U g * translate U h := by |
| 39 | apply Finsupp.lhom_ext |
| 40 | intro x r |
| 41 | simp [Module.End.mul_apply, mul_smul] |
| 42 | |
| 43 | @[simp] |
| 44 | theorem translate_one : translate U (1 : G) = 1 := by |
| 45 | apply Finsupp.lhom_ext |
| 46 | intro x r |
| 47 | simp |
| 48 | |
| 49 | /-- The genuine spherical convolution algebra, in its coset-module model. -/ |
| 50 | def sphericalAlgebra : Subalgebra ℚ (Module.End ℚ (CosetModule U)) := |
| 51 | Subalgebra.centralizer ℚ (Set.range (translate U)) |
| 52 | |
| 53 | abbrev SphericalHecke := sphericalAlgebra U |
| 54 | |
| 55 | /-- Equivariance follows from the definition of the algebra. -/ |
| 56 | theorem hecke_translate (T : SphericalHecke U) (g : G) (v : CosetModule U) : |
| 57 | T.val (translate U g v) = translate U g (T.val v) := by |
| 58 | have h := T.property (translate U g) ⟨g, rfl⟩ |
| 59 | exact (LinearMap.congr_fun h v).symm |
| 60 | |
| 61 | /-- The finite-support identity column is the convolution kernel. -/ |
| 62 | def kernel (T : SphericalHecke U) : CosetModule U := |
| 63 | T.val (Finsupp.single (QuotientGroup.mk (1 : G)) 1) |
| 64 | |
| 65 | /-- A matrix column is a translated identity column. -/ |
| 66 | theorem hecke_single (T : SphericalHecke U) (g : G) : |
| 67 | T.val (Finsupp.single (QuotientGroup.mk g) 1) = |
| 68 | translate U g (kernel U T) := by |
| 69 | have h := hecke_translate U T g |
| 70 | (Finsupp.single (QuotientGroup.mk (1 : G)) 1) |
| 71 | simpa [kernel, translate] using h |
| 72 | |
| 73 | /-- No algebra element is hidden by the finite convolution-kernel model. -/ |
| 74 | theorem kernel_injective : Function.Injective (kernel U) := by |
| 75 | intro T S hTS |
| 76 | apply Subtype.ext |
| 77 | apply Finsupp.lhom_ext |
| 78 | intro x r |
| 79 | induction x using Quotient.inductionOn with |
| 80 | | h g => |
| 81 | have h1 : T.val (Finsupp.single (QuotientGroup.mk g) 1) = |
| 82 | S.val (Finsupp.single (QuotientGroup.mk g) 1) := by |
| 83 | rw [hecke_single, hecke_single, hTS] |
| 84 | have hr := congrArg (fun v : CosetModule U => r • v) h1 |
| 85 | simpa only [← map_smul, Finsupp.smul_single, smul_eq_mul, mul_one] using hr |
| 86 | |
| 87 | /-- Multiplication is computed by applying one kernel operator to the other |
| 88 | finite kernel. This determines convolution, without an assumed multiplication law. -/ |
| 89 | theorem kernel_mul (S T : SphericalHecke U) : |
| 90 | kernel U (S * T) = S.val (kernel U T) := rfl |
| 91 | |
| 92 | /-- Raw double cosets are unnormalized characteristic functions. The inverse |
| 93 | is the manuscript's superlattice convention. Existence is not assumed here. -/ |
| 94 | def IsRawDoubleCoset (g : G) (T : SphericalHecke U) : Prop := |
| 95 | ∀ x : G, |
| 96 | kernel U T (QuotientGroup.mk x) = |
| 97 | if ∃ k l : U, x = (k : G) * g⁻¹ * (l : G) then 1 else 0 |
| 98 | |
| 99 | theorem rawDoubleCoset_unique {g : G} {S T : SphericalHecke U} |
| 100 | (hS : IsRawDoubleCoset U g S) (hT : IsRawDoubleCoset U g T) : S = T := by |
| 101 | apply kernel_injective U |
| 102 | ext x |
| 103 | induction x using Quotient.inductionOn with |
| 104 | | h x => rw [hS x, hT x] |
| 105 | |
| 106 | /-- A central group element gives an actual equivariant permutation operator. -/ |
| 107 | def centralTranslation (z : G) (hz : ∀ g : G, Commute g z) : SphericalHecke U := |
| 108 | ⟨translate U z, by |
| 109 | rintro _ ⟨g, rfl⟩ |
| 110 | rw [← translate_mul, ← translate_mul, (hz g).eq]⟩ |
| 111 | |
| 112 | /-- The central double coset is invertible, before any geometric action is |
| 113 | constructed. The inverse representative implements the superlattice convention. -/ |
| 114 | def centralHeckeUnit (z : G) (hz : ∀ g : G, Commute g z) : (SphericalHecke U)ˣ where |
| 115 | val := centralTranslation U z⁻¹ (fun g => (hz g).inv_right) |
| 116 | inv := centralTranslation U z hz |
| 117 | val_inv := by |
| 118 | apply Subtype.ext |
| 119 | change translate U z⁻¹ * translate U z = 1 |
| 120 | rw [← translate_mul, inv_mul_cancel, translate_one] |
| 121 | inv_val := by |
| 122 | apply Subtype.ext |
| 123 | change translate U z * translate U z⁻¹ = 1 |
| 124 | rw [← translate_mul, mul_inv_cancel, translate_one] |
| 125 | |
| 126 | theorem centralHeckeUnit_kernel (z : G) (hz : ∀ g : G, Commute g z) : |
| 127 | kernel U (centralHeckeUnit U z hz).val = |
| 128 | Finsupp.single (QuotientGroup.mk z⁻¹) 1 := by |
| 129 | simp [kernel, centralHeckeUnit, centralTranslation, translate] |
| 130 | |
| 131 | end Convolution |
| 132 | |
| 133 | variable (s q : ℕ) [Fact q.Prime] |
| 134 | |
| 135 | /-- The split local similitude group has one shared rational multiplier. -/ |
| 136 | abbrev SplitGroup := |
| 137 | (Fin s → Matrix.GeneralLinearGroup (Fin 3) ℚ_[q]) × (ℚ_[q])ˣ |
| 138 | |
| 139 | /-- Integral blocks and an integral unit multiplier embed in the split group. -/ |
| 140 | def integralLevelMap : |
| 141 | ((Fin s → Matrix.GeneralLinearGroup (Fin 3) ℤ_[q]) × (ℤ_[q])ˣ) →* |
| 142 | HeckeKernel.SplitGroup s q where |
| 143 | toFun x := (fun v => Matrix.GeneralLinearGroup.map (PadicInt.Coe.ringHom (p := q)) (x.1 v), |
| 144 | Units.map (PadicInt.Coe.ringHom (p := q)).toMonoidHom x.2) |
| 145 | map_one' := by ext <;> simp |
| 146 | map_mul' x y := by ext <;> simp |
| 147 | |
| 148 | /-- The spherical integral-level subgroup. -/ |
| 149 | def integralLevel : Subgroup (HeckeKernel.SplitGroup s q) := (integralLevelMap s q).range |
| 150 | |
| 151 | /-- The rank-three spherical algebra used by TateComparison. -/ |
| 152 | abbrev Hecke := SphericalHecke (integralLevel s q) |
| 153 | |
| 154 | /-- q is a unit in Q_q, even though it is not a unit in Z_q. -/ |
| 155 | def qUnit : (ℚ_[q])ˣ := |
| 156 | Units.mk0 (q : ℚ_[q]) (by exact_mod_cast (Fact.out : q.Prime).ne_zero) |
| 157 | |
| 158 | /-- A diagonal matrix built from three units, with its inverse constructed. -/ |
| 159 | def diagonalUnit {R : Type*} [CommRing R] (d : Fin 3 → Rˣ) : |
| 160 | Matrix.GeneralLinearGroup (Fin 3) R where |
| 161 | val := Matrix.diagonal (fun i => (d i : R)) |
| 162 | inv := Matrix.diagonal (fun i => ((d i)⁻¹ : Rˣ)) |
| 163 | val_inv := by simp [Matrix.diagonal_mul_diagonal] |
| 164 | inv_val := by simp [Matrix.diagonal_mul_diagonal] |
| 165 | |
| 166 | /-- The cocharacter representative has chosen-side powers and one multiplier. -/ |
| 167 | def representative (t : Local.LocalType s) : HeckeKernel.SplitGroup s q := |
| 168 | (fun v => diagonalUnit (fun i => qUnit q ^ t.exponent v i), |
| 169 | qUnit q ^ t.multiplier) |
| 170 | |
| 171 | /-- The source's q²-multiplier central element. -/ |
| 172 | def centralElement : HeckeKernel.SplitGroup s q := |
| 173 | (fun _ => Matrix.GeneralLinearGroup.scalar (Fin 3) (qUnit q), (qUnit q) ^ 2) |
| 174 | |
| 175 | theorem centralElement_commutes (g : HeckeKernel.SplitGroup s q) : Commute g (centralElement s q) := by |
| 176 | change g * centralElement s q = centralElement s q * g |
| 177 | apply Prod.ext |
| 178 | · funext v |
| 179 | exact (Matrix.GeneralLinearGroup.scalar_commute (qUnit q) (g.1 v)).symm |
| 180 | · exact mul_comm _ _ |
| 181 | |
| 182 | /-- A concrete invertible central operator in the spherical algebra. -/ |
| 183 | def scalarHeckeUnit : (Hecke s q)ˣ := |
| 184 | centralHeckeUnit (integralLevel s q) (centralElement s q) (centralElement_commutes s q) |
| 185 | |
| 186 | theorem representative_central : |
| 187 | representative s q (Local.LocalType.central s) = centralElement s q := by |
| 188 | apply Prod.ext |
| 189 | · funext v |
| 190 | apply Units.ext |
| 191 | simp [representative, centralElement, diagonalUnit, Local.LocalType.central, |
| 192 | Matrix.GeneralLinearGroup.scalar, Matrix.scalar] |
| 193 | · simp [representative, centralElement, Local.LocalType.central] |
| 194 | |
| 195 | end |
| 196 | |
| 197 | section |
| 198 | |
| 199 | /-! |
| 200 | Construction of an equivariant coset-module operator from its invariant |
| 201 | finite kernel. Raw operators are then obtained from finite subgroup orbits. |
| 202 | Neither multiplication nor equivariance is assumed of the constructed map. |
| 203 | -/ |
| 204 | |
| 205 | open scoped Classical |
| 206 | |
| 207 | variable {G : Type*} [Group G] (U : Subgroup G) |
| 208 | |
| 209 | def IsInvariantKernel (k : CosetModule U) : Prop := |
| 210 | ∀ u : U, translate U (u : G) k = k |
| 211 | |
| 212 | /-- Translation of an invariant kernel is independent of the coset representative. -/ |
| 213 | def kernelColumn (k : CosetModule U) (hk : IsInvariantKernel U k) : |
| 214 | G ⧸ U → CosetModule U := |
| 215 | Quotient.lift (fun g => translate U g k) (by |
| 216 | intro a b hab |
| 217 | have hu : a⁻¹ * b ∈ U := QuotientGroup.leftRel_apply.mp hab |
| 218 | have h := congrArg (fun v => translate U a v) (hk ⟨a⁻¹ * b, hu⟩) |
| 219 | simpa only [← Module.End.mul_apply, ← translate_mul, mul_inv_cancel_left] using h.symm) |
| 220 | |
| 221 | @[simp] |
| 222 | theorem kernelColumn_mk (k : CosetModule U) (hk : IsInvariantKernel U k) (g : G) : |
| 223 | kernelColumn U k hk (QuotientGroup.mk g) = translate U g k := rfl |
| 224 | |
| 225 | theorem kernelColumn_translate (k : CosetModule U) (hk : IsInvariantKernel U k) |
| 226 | (g : G) (x : G ⧸ U) : |
| 227 | kernelColumn U k hk (g • x) = translate U g (kernelColumn U k hk x) := by |
| 228 | induction x using Quotient.inductionOn with |
| 229 | | h x => |
| 230 | change translate U (g * x) k = translate U g (translate U x k) |
| 231 | rw [translate_mul, Module.End.mul_apply] |
| 232 | |
| 233 | /-- Linear extension of the translated columns. -/ |
| 234 | def kernelOperator (k : CosetModule U) (hk : IsInvariantKernel U k) : |
| 235 | Module.End ℚ (CosetModule U) := |
| 236 | Finsupp.linearCombination ℚ (kernelColumn U k hk) |
| 237 | |
| 238 | @[simp] |
| 239 | theorem kernelOperator_single (k : CosetModule U) (hk : IsInvariantKernel U k) |
| 240 | (x : G ⧸ U) (r : ℚ) : |
| 241 | kernelOperator U k hk (Finsupp.single x r) = r • kernelColumn U k hk x := |
| 242 | Finsupp.linearCombination_single _ _ _ |
| 243 | |
| 244 | /-- The constructed operator commutes with all group translations. -/ |
| 245 | def heckeOfKernel (k : CosetModule U) (hk : IsInvariantKernel U k) : SphericalHecke U := |
| 246 | ⟨kernelOperator U k hk, by |
| 247 | rintro _ ⟨g, rfl⟩ |
| 248 | apply Finsupp.lhom_ext |
| 249 | intro x r |
| 250 | change translate U g (kernelOperator U k hk (Finsupp.single x r)) = |
| 251 | kernelOperator U k hk (translate U g (Finsupp.single x r)) |
| 252 | rw [translate_single, kernelOperator_single, kernelOperator_single, |
| 253 | kernelColumn_translate, map_smul]⟩ |
| 254 | |
| 255 | @[simp] |
| 256 | theorem kernel_heckeOfKernel (k : CosetModule U) (hk : IsInvariantKernel U k) : |
| 257 | kernel U (heckeOfKernel U k hk) = k := by |
| 258 | change kernelOperator U k hk (Finsupp.single (QuotientGroup.mk 1) 1) = k |
| 259 | rw [kernelOperator_single, one_smul, kernelColumn_mk, translate_one] |
| 260 | rfl |
| 261 | |
| 262 | theorem kernel_invariant (T : SphericalHecke U) : IsInvariantKernel U (kernel U T) := by |
| 263 | intro u |
| 264 | rw [← hecke_single] |
| 265 | have h : (QuotientGroup.mk (u : G) : G ⧸ U) = QuotientGroup.mk (1 : G) := by |
| 266 | apply QuotientGroup.eq.mpr |
| 267 | rw [mul_one] |
| 268 | exact U.inv_mem u.property |
| 269 | rw [h] |
| 270 | rfl |
| 271 | |
| 272 | /-- The kernel construction is inverse to extracting the identity column. -/ |
| 273 | theorem heckeOfKernel_kernel (T : SphericalHecke U) : |
| 274 | heckeOfKernel U (kernel U T) (kernel_invariant U T) = T := |
| 275 | kernel_injective U (kernel_heckeOfKernel U _ _) |
| 276 | |
| 277 | /-- Evaluation of a translated coefficient at the translated coset. -/ |
| 278 | theorem translate_apply_smul (g : G) (k : CosetModule U) (x : G ⧸ U) : |
| 279 | translate U g k (g • x) = k x := by |
| 280 | exact Finsupp.mapDomain_apply_of_injective (MulAction.injective g) k x |
| 281 | |
| 282 | def doubleCosetOrbit (g : G) : Set (G ⧸ U) := |
| 283 | Set.range (fun u : U => (u : G) • QuotientGroup.mk g⁻¹) |
| 284 | |
| 285 | theorem mem_doubleCosetOrbit (g x : G) : |
| 286 | QuotientGroup.mk x ∈ doubleCosetOrbit U g ↔ |
| 287 | ∃ k l : U, x = (k : G) * g⁻¹ * (l : G) := by |
| 288 | constructor |
| 289 | · rintro ⟨k, hk⟩ |
| 290 | have hr : (k.val * g⁻¹)⁻¹ * x ∈ U := QuotientGroup.eq.mp hk |
| 291 | refine ⟨k, ⟨(k.val * g⁻¹)⁻¹ * x, hr⟩, ?_⟩ |
| 292 | change x = (k.val * g⁻¹) * ((k.val * g⁻¹)⁻¹ * x) |
| 293 | exact (mul_inv_cancel_left _ _).symm |
| 294 | · rintro ⟨k, l, rfl⟩ |
| 295 | refine ⟨k, ?_⟩ |
| 296 | apply QuotientGroup.eq.mpr |
| 297 | change (k.val * g⁻¹)⁻¹ * ((k.val * g⁻¹) * l.val) ∈ U |
| 298 | simpa only [inv_mul_cancel_left] using l.property |
| 299 | |
| 300 | theorem smul_mem_doubleCosetOrbit (g : G) (u : U) (x : G ⧸ U) : |
| 301 | (u : G) • x ∈ doubleCosetOrbit U g ↔ x ∈ doubleCosetOrbit U g := by |
| 302 | constructor |
| 303 | · rintro ⟨v, hv⟩ |
| 304 | refine ⟨u⁻¹ * v, ?_⟩ |
| 305 | have h := congrArg (fun z : G ⧸ U => (u.val)⁻¹ • z) hv |
| 306 | simpa only [Subgroup.coe_mul, Subgroup.coe_inv, mul_smul, inv_smul_smul] using h |
| 307 | · rintro ⟨v, rfl⟩ |
| 308 | exact ⟨u * v, mul_smul _ _ _⟩ |
| 309 | |
| 310 | /-- The unnormalized characteristic kernel of a finite double-coset orbit. -/ |
| 311 | def rawKernel (g : G) (hg : (doubleCosetOrbit U g).Finite) : CosetModule U := |
| 312 | Finsupp.indicator hg.toFinset (fun _ _ => 1) |
| 313 | |
| 314 | @[simp] |
| 315 | theorem rawKernel_apply (g : G) (hg : (doubleCosetOrbit U g).Finite) (x : G ⧸ U) : |
| 316 | rawKernel U g hg x = if x ∈ doubleCosetOrbit U g then 1 else 0 := by |
| 317 | simp [rawKernel, Finsupp.indicator_apply] |
| 318 | |
| 319 | theorem rawKernel_invariant (g : G) (hg : (doubleCosetOrbit U g).Finite) : |
| 320 | IsInvariantKernel U (rawKernel U g hg) := by |
| 321 | intro u |
| 322 | ext x |
| 323 | obtain ⟨y, rfl⟩ := MulAction.surjective (u : G) x |
| 324 | rw [translate_apply_smul, rawKernel_apply, rawKernel_apply, |
| 325 | smul_mem_doubleCosetOrbit] |
| 326 | |
| 327 | /-- A finite double coset gives the actual raw Hecke operator. -/ |
| 328 | def rawHecke (g : G) (hg : (doubleCosetOrbit U g).Finite) : SphericalHecke U := |
| 329 | heckeOfKernel U (rawKernel U g hg) (rawKernel_invariant U g hg) |
| 330 | |
| 331 | theorem rawHecke_isRaw (g : G) (hg : (doubleCosetOrbit U g).Finite) : |
| 332 | IsRawDoubleCoset U g (rawHecke U g hg) := by |
| 333 | intro x |
| 334 | rw [rawHecke, kernel_heckeOfKernel, rawKernel_apply, mem_doubleCosetOrbit] |
| 335 | |
| 336 | end |
| 337 | |
| 338 | section |
| 339 | |
| 340 | /-! Raw convolution has nonnegative integral coefficients. The statements |
| 341 | refer to the actual coset kernels; no multiplicity table is supplied. -/ |
| 342 | |
| 343 | open scoped Classical |
| 344 | |
| 345 | variable {G : Type*} [Group G] (U : Subgroup G) |
| 346 | |
| 347 | def kernelLinear : SphericalHecke U →ₗ[ℚ] CosetModule U where |
| 348 | toFun := kernel U |
| 349 | map_add' _ _ := rfl |
| 350 | map_smul' _ _ := rfl |
| 351 | |
| 352 | def NatValuedKernel (k : CosetModule U) : Prop := ∀ x, ∃ n : ℕ, k x = (n : ℚ) |
| 353 | |
| 354 | theorem kernel_u_smul (T : SphericalHecke U) (u : U) (x : G ⧸ U) : |
| 355 | kernel U T ((u : G) • x) = kernel U T x := by |
| 356 | have h := congrArg (fun k : CosetModule U => k ((u : G) • x)) (kernel_invariant U T u) |
| 357 | rw [translate_apply_smul] at h |
| 358 | exact h.symm |
| 359 | |
| 360 | theorem kernel_eq_of_same_orbit (T : SphericalHecke U) (g : G) {x y : G ⧸ U} |
| 361 | (hx : x ∈ doubleCosetOrbit U g) (hy : y ∈ doubleCosetOrbit U g) : |
| 362 | kernel U T x = kernel U T y := by |
| 363 | obtain ⟨u, rfl⟩ := hx |
| 364 | obtain ⟨v, rfl⟩ := hy |
| 365 | rw [kernel_u_smul, kernel_u_smul] |
| 366 | |
| 367 | theorem raw_kernel_at {g : G} {T : SphericalHecke U} (hT : IsRawDoubleCoset U g T) |
| 368 | (x : G ⧸ U) : kernel U T x = if x ∈ doubleCosetOrbit U g then 1 else 0 := by |
| 369 | induction x using Quotient.inductionOn with |
| 370 | | h x => rw [hT, mem_doubleCosetOrbit] |
| 371 | |
| 372 | theorem raw_natValued {g : G} {T : SphericalHecke U} (hT : IsRawDoubleCoset U g T) : |
| 373 | NatValuedKernel U (kernel U T) := by |
| 374 | intro x |
| 375 | rw [raw_kernel_at U hT] |
| 376 | split_ifs |
| 377 | · exact ⟨1, rfl⟩ |
| 378 | · exact ⟨0, rfl⟩ |
| 379 | |
| 380 | theorem natValued_translate {k : CosetModule U} (hk : NatValuedKernel U k) (g : G) : |
| 381 | NatValuedKernel U (translate U g k) := by |
| 382 | intro x |
| 383 | obtain ⟨y, rfl⟩ := MulAction.surjective g x |
| 384 | rw [translate_apply_smul] |
| 385 | exact hk y |
| 386 | |
| 387 | theorem natValued_column {k : CosetModule U} (hk : NatValuedKernel U k) |
| 388 | (hfix : IsInvariantKernel U k) (x : G ⧸ U) : |
| 389 | NatValuedKernel U (kernelColumn U k hfix x) := by |
| 390 | induction x using Quotient.inductionOn with |
| 391 | | h x => exact natValued_translate U hk x |
| 392 | |
| 393 | theorem kernelOperator_apply (k : CosetModule U) (hk : IsInvariantKernel U k) |
| 394 | (f : CosetModule U) (x : G ⧸ U) : |
| 395 | kernelOperator U k hk f x = |
| 396 | ∑ y ∈ f.support, f y * kernelColumn U k hk y x := by |
| 397 | simp only [kernelOperator, Finsupp.linearCombination_apply, Finsupp.sum, |
| 398 | Finsupp.finsetSum_apply, Finsupp.smul_apply, smul_eq_mul] |
| 399 | |
| 400 | theorem natValued_kernelOperator {k f : CosetModule U} |
| 401 | (hk : NatValuedKernel U k) (hfix : IsInvariantKernel U k) |
| 402 | (hf : NatValuedKernel U f) : NatValuedKernel U (kernelOperator U k hfix f) := by |
| 403 | intro x |
| 404 | choose n hn using hf |
| 405 | choose m hm using fun y => natValued_column U hk hfix y x |
| 406 | refine ⟨∑ y ∈ f.support, n y * m y, ?_⟩ |
| 407 | rw [kernelOperator_apply] |
| 408 | simp only [hn, hm, Nat.cast_sum, Nat.cast_mul] |
| 409 | |
| 410 | theorem natValued_kernel_mul (S T : SphericalHecke U) |
| 411 | (hS : NatValuedKernel U (kernel U S)) (hT : NatValuedKernel U (kernel U T)) : |
| 412 | NatValuedKernel U (kernel U (S * T)) := by |
| 413 | have hSmap : S.val = kernelOperator U (kernel U S) (kernel_invariant U S) := |
| 414 | (congrArg Subtype.val (heckeOfKernel_kernel U S)).symm |
| 415 | rw [kernel_mul, hSmap] |
| 416 | exact natValued_kernelOperator U hS _ hT |
| 417 | |
| 418 | /-- Subtracting one complete raw orbit removes that orbit and leaves |
| 419 | every other coefficient unchanged. -/ |
| 420 | theorem kernel_sub_raw_apply (S T : SphericalHecke U) {g : G} |
| 421 | (hT : IsRawDoubleCoset U g T) {x : G ⧸ U} (hx : x ∈ doubleCosetOrbit U g) |
| 422 | (n : ℕ) (hn : kernel U S x = (n : ℚ)) (y : G ⧸ U) : |
| 423 | kernel U (S - n • T) y = |
| 424 | if y ∈ doubleCosetOrbit U g then 0 else kernel U S y := by |
| 425 | have hlin : kernel U (S - n • T) = kernel U S - n • kernel U T := by |
| 426 | exact (kernelLinear U).map_sub S (n • T) |>.trans |
| 427 | (congrArg (fun z => kernel U S - z) (map_nsmul (kernelLinear U) n T)) |
| 428 | rw [hlin] |
| 429 | change kernel U S y - n • kernel U T y = _ |
| 430 | rw [raw_kernel_at U hT] |
| 431 | by_cases hy : y ∈ doubleCosetOrbit U g |
| 432 | · rw [ite_eq_left hy, ite_eq_left hy, kernel_eq_of_same_orbit U S g hy hx, hn] |
| 433 | simp |
| 434 | · rw [ite_eq_right hy, ite_eq_right hy, smul_zero, sub_zero] |
| 435 | |
| 436 | theorem kernel_sub_raw_support (S T : SphericalHecke U) {g : G} |
| 437 | (hT : IsRawDoubleCoset U g T) {x : G ⧸ U} (hx : x ∈ doubleCosetOrbit U g) |
| 438 | (n : ℕ) (hn : kernel U S x = (n : ℚ)) : |
| 439 | (kernel U (S - n • T)).support ⊆ (kernel U S).support := by |
| 440 | intro y hy |
| 441 | rw [Finsupp.mem_support_iff, kernel_sub_raw_apply U S T hT hx n hn] at hy |
| 442 | by_cases hmem : y ∈ doubleCosetOrbit U g |
| 443 | · rw [ite_eq_left hmem] at hy |
| 444 | exact False.elim (hy rfl) |
| 445 | · rw [ite_eq_right hmem] at hy |
| 446 | exact Finsupp.mem_support_iff.mpr hy |
| 447 | |
| 448 | theorem natValued_sub_raw (S T : SphericalHecke U) {g : G} |
| 449 | (hT : IsRawDoubleCoset U g T) {x : G ⧸ U} (hx : x ∈ doubleCosetOrbit U g) |
| 450 | (n : ℕ) (hn : kernel U S x = (n : ℚ)) (hS : NatValuedKernel U (kernel U S)) : |
| 451 | NatValuedKernel U (kernel U (S - n • T)) := by |
| 452 | intro y |
| 453 | rw [kernel_sub_raw_apply U S T hT hx n hn] |
| 454 | split_ifs |
| 455 | · exact ⟨0, rfl⟩ |
| 456 | · exact hS y |
| 457 | |
| 458 | end |
| 459 | |
| 460 | /-! Finite invariant natural kernels expand in raw orbit indicators. |
| 461 | The proof removes a complete orbit at each step. -/ |
| 462 | |
| 463 | open scoped Classical |
| 464 | |
| 465 | variable {G I : Type*} [Group G] (U : Subgroup G) |
| 466 | |
| 467 | theorem exists_raw_expansion (rep : I → G) (basis : I → SphericalHecke U) |
| 468 | (hraw : ∀ i, IsRawDoubleCoset U (rep i) (basis i)) |
| 469 | (T : SphericalHecke U) (hT : NatValuedKernel U (kernel U T)) |
| 470 | (hcover : ∀ x ∈ (kernel U T).support, ∃ i, x ∈ doubleCosetOrbit U (rep i)) : |
| 471 | ∃ c : I →₀ ℕ, T = c.sum (fun i n => n • basis i) := by |
| 472 | suffices ∀ (s : Finset (G ⧸ U)) (S : SphericalHecke U), |
| 473 | (kernel U S).support = s → NatValuedKernel U (kernel U S) → |
| 474 | (∀ x ∈ s, ∃ i, x ∈ doubleCosetOrbit U (rep i)) → |
| 475 | ∃ c : I →₀ ℕ, S = Finsupp.linearCombination ℕ basis c by |
| 476 | exact this _ T rfl hT hcover |
| 477 | intro s |
| 478 | induction s using Finset.strongInductionOn with |
| 479 | | _ s ih => |
| 480 | intro S hs hS hcov |
| 481 | by_cases hempty : s = ∅ |
| 482 | · refine ⟨0, ?_⟩ |
| 483 | rw [map_zero] |
| 484 | apply kernel_injective U |
| 485 | exact Finsupp.support_eq_empty.mp (hs.trans hempty) |
| 486 | obtain ⟨x, hx⟩ := Finset.nonempty_iff_ne_empty.mpr hempty |
| 487 | obtain ⟨i, hi⟩ := hcov x hx |
| 488 | obtain ⟨n, hn⟩ := hS x |
| 489 | let R := S - n • basis i |
| 490 | have hsub : (kernel U R).support ⊆ s := by |
| 491 | rw [← hs] |
| 492 | exact kernel_sub_raw_support U S (basis i) (hraw i) hi n hn |
| 493 | have hnot : x ∉ (kernel U R).support := by |
| 494 | rw [Finsupp.mem_support_iff, kernel_sub_raw_apply U S (basis i) (hraw i) hi n hn, |
| 495 | ite_eq_left hi] |
| 496 | exact not_not_intro rfl |
| 497 | have hstrict : (kernel U R).support ⊂ s := |
| 498 | Finset.ssubset_iff_subset_ne.mpr ⟨hsub, fun heq => hnot (heq.symm ▸ hx)⟩ |
| 499 | obtain ⟨c, hc⟩ := ih _ hstrict R rfl |
| 500 | (natValued_sub_raw U S (basis i) (hraw i) hi n hn hS) |
| 501 | (fun y hy => hcov y (hsub hy)) |
| 502 | refine ⟨c + Finsupp.single i n, ?_⟩ |
| 503 | rw [map_add, Finsupp.linearCombination_single] |
| 504 | change S - n • basis i = _ at hc |
| 505 | exact (sub_eq_iff_eq_add (a := S) (b := n • basis i)).mp hc |
| 506 | |
| 507 | end |
| 508 | |
| 509 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.HeckeKernel |