import Lib.Shimura.GoodReduction.TorsionSizes /-! # Orthogonality of theta translates and balls of integral theta functions Theta functions for a full lattice `L` with Appell–Humbert data with positive Riemann form (`New.IsPosRiemann`) are acted on by the translations `New.RealComplexForm.thetaShift B a` by the dual lattice. The file proves an orthogonality relation for these translates. It then studies the balls of a sup norm ‖f‖ on theta functions, built from the values at torsion points. ## Main definitions and results * `New.IsAppellHumbert.sum_shift_mul_shift`: the orthogonality relation for the translates of two theta functions. * `New.IsAppellHumbert.exists_proportional_orbit_lattice`: over a valuation ring of `ℂ`, the modules generated by the translates of two finite families are proportional. This needs that neither family is zero. It also needs a natural number that is a unit of the ring and kills the dual lattice modulo `L`. * `New.ThetaTori.HasGoodReduction.normBall`: the theta functions of norm at most ‖f‖. * `New.ThetaTori.HasGoodReduction.mem_of_mem_normBall` (from `New.ThetaTori.HasGoodReduction.exists_smul_thetaNorm_eq`): if f is also a theta function for an Appell–Humbert datum (L₀, B, ζ), L₀ ⊇ L, a module that contains the translates `New.RealComplexForm.thetaShift B u f` of f by the dual of L₀ contains the theta functions for (L₀, B, ζ) in the ball of f. The later results rest on this. * `New.ThetaTori.HasGoodReduction.normBall_pow_pow`: if f is also a theta function for an Appell–Humbert datum (L₀, B, ζ) with L₀ ⊇ L/r, the r ^ j-th power of the ball of f is the ball of f ^ r ^ j. * `New.ThetaTori.HasGoodReduction.finrank_reduction_eq`: the reduction of a finitely generated ball has dimension dim `New.RealComplexForm.thetaSpace`. Notions from other files: * `New.RealComplexForm.thetaShift`: The twisted translation by `a`, a complex-linear map on all functions `V → ℂ`: `thetaShift B a f z = exp (-(B a z + B a a / 2)) * f (z + a)`. * `New.IsAppellHumbert`: Appell–Humbert data: Re B is symmetric, and on L one has |χ| = 1 and χ(l + m) = χ(l)χ(m)·exp(πi E(m, l)), E the Riemann form of B. * `New.ThetaTori.IsAmpleType`: (L, B, χ) is an Appell–Humbert datum with positive Riemann form, and χ has finite order on L: χⁿ = 1 there for some n ≠ 0. ## Relation to the literature Known result: Schur orthogonality for the theta group of a polarised complex torus. This is `New.IsAppellHumbert.sum_shift_mul_shift`. See also `Lib.Shimura.ThetaNormality.RiemannRelation` and `Lib.Shimura.ComplexTheta.DimensionFormula`. -/ /-! ## Orthogonality of theta translates and proportional orbit lattices The translations `New.RealComplexForm.thetaShift B a` by the dual lattice `New.RealComplexForm.dualLattice` act on the theta functions `New.RealComplexForm.thetaSpace`, a space whose dimension is the square root of the index of `L` in the dual lattice. The results of this section are for Appell–Humbert data (`New.IsAppellHumbert`) with positive Riemann form (`New.IsPosRiemann`) on a full lattice `L`. -/ /-- If `u * a * b = 1`, then the weighted product `d * (u * (b * x / q * (a * y)))` equals `q⁻¹ * (d * (x * y))`. -/ private lemma mul_mul_div_mul_eq_inv_mul_of_mul_mul_eq_one {u a b : ℂ} (h : u * a * b = 1) (d x y q : ℂ) : d * (u * (b * x / q * (a * y))) = q⁻¹ * (d * (x * y)) := by linear_combination q⁻¹ * d * x * y * h namespace New open Module LinearMap Fintype Function QuotientAddGroup ValuationRing variable {V : Type} [FinComplexSpace V] {L : Submodule ℤ V} [IsFullRankLattice L] {B : ThetaTori.LatticeForm L} {χ : V → ℂ} [hB : IsAppellHumbert B χ] [hp : IsPosRiemann B] /-- Schur orthogonality for the translates of theta functions. Let translation by every point of the dual lattice permute the points `a s`, `s ∈ T`, of the dual lattice modulo `L`. With `U a = thetaShift B a`, theta functions satisfy `d * ∑ s, U (-a s) g z * U (a s) f w = |T| f z g w`, where `d` is `Nat.sqrt` of the index of `L` in the dual lattice, the index being the square of the dimension of the space of theta functions. -/ lemma IsAppellHumbert.sum_shift_mul_shift (T : Type*) [Fintype T] (a : T → B.dualLattice) (ha : ∀ t : ↥(RealComplexForm.dualLattice B), ∃ e : T ≃ T, ∀ s : T, (t + a s - a (e s)).val ∈ L) (f g : B.thetaSpace χ) (z w : V) : (L.toAddSubgroup.relIndex B.dualLattice.toAddSubgroup).sqrt * ∑ s : T, B.thetaShift (-a s) g z * B.thetaShift (a s) f w = card T * f.val z * g.val w := by -- The operator `Q : x ↦ ∑ s, thetaShiftEnd (-a s) x z • thetaShiftEnd (a s) f` commutes with the -- translations by the dual lattice, so it is a scalar `c` (Schur). Evaluating `Q g` at `w` gives -- the sum; the trace of `Q` gives `c`; the square root of the index is the dimension. have shift_cancel (s : V) (x : V → ℂ) : B.thetaShift (-s) (B.thetaShift s x) = x := by simpa using hB.thetaShift_thetaShift (-s) s (f := x) let Q : End ℂ (B.thetaSpace χ) := ∑ s, ((proj z ∘ₗ B.thetaShift (-a s)).domRestrict _).smulRight (hB.thetaShiftEnd (a s) f) obtain ⟨c, hQ⟩ : ∃ c : ℂ, Q = c • 1 := by refine schur_lemma fun t ↦ ext fun x ↦ ?_ obtain ⟨e, he_mem⟩ := ha t -- the term `s` of `thetaShift t (Q x)` is the term `e s` of `Q (thetaShift t x)` have term_eq (s : T) : B.thetaShift (-a s) x z • B.thetaShift t (B.thetaShift (a s) f) = B.thetaShift (-a (e s)) (B.thetaShift t x) z • B.thetaShift (a (e s)) f := by -- as `t + a s ≡ a (e s)` modulo `L`, on theta functions -- `thetaShift t ∘ thetaShift (a s) = κ • thetaShift (a (e s))`: translation by a further -- point of `L` only rescales them (`thetaShift_add_eq_smul_of_mem`) set l : V := (t + a s - a (e s)).val have sum_eq : t + a s = a (e s) + l := by simp [l] -- `κ` collects the factors of `thetaShift_thetaShift` and `thetaShift_add_eq_smul_of_mem` let κ : ℂ := Complex.exp (Real.pi * Complex.I * B.riemannForm t (a s)) * (Complex.exp (-(Real.pi * Complex.I * B.riemannForm (a (e s)) l)) * χ l) have hκ (y : V → ℂ) (hy : y ∈ B.thetaSpace χ) : B.thetaShift t (B.thetaShift (a s) y) = κ • B.thetaShift (a (e s)) y := by rw [hB.thetaShift_thetaShift, sum_eq, hB.thetaShift_add_eq_smul_of_mem hy _ (he_mem s), smul_smul] -- apply this to `f` and to `y = thetaShiftEnd (-a s) x`, for which -- `thetaShiftEnd (a s) y = x` have hx : B.thetaShift t x = κ • B.thetaShift (a (e s)) (B.thetaShift (-a s) x) := by rw [← hκ _ (hB.thetaShift_mem_of_mem_dualLattice (neg_mem (a s).property) x.property)] simpa using congrArg (B.thetaShift t) (shift_cancel (-a s) x).symm simp [hκ f f.property, hx, shift_cancel, smul_smul, mul_comm] -- reindex the sum by `e` have h_sum : ∑ s, B.thetaShift (-a s) x z • B.thetaShift t (B.thetaShift (a s) f) = ∑ s, B.thetaShift (-a s) (B.thetaShift t x) z • B.thetaShift (a s) f := sum_equiv e _ _ term_eq simpa [Q, Subtype.ext_iff] using h_sum have h_finite : Module.Finite ℂ (B.thetaSpace χ) := hB.finite_thetaSpace have sum_eq : ∑ s, B.thetaShift (-a s) g z * B.thetaShift (a s) f w = c * g.val w := by simpa [Q] using congrArg (fun T : End ℂ (B.thetaSpace χ) ↦ (T g).val w) hQ -- each summand of `Q` has rank at most one, and its trace is -- `thetaShiftEnd (-a s) (thetaShiftEnd (a s) f) z = f z` have trace_eq : card T * f.val z = c * finrank ℂ (B.thetaSpace χ) := by simpa [Q, shift_cancel] using congrArg (trace ℂ (B.thetaSpace χ)) hQ rw [← hB.finrank_thetaSpace_sq, Nat.sqrt_eq', sum_eq, trace_eq, mul_left_comm, mul_assoc] omit hB in /-- If a natural number `N` that is a unit of the ring `O` kills the dual lattice modulo `L`, then the order of the dual lattice modulo `L` is a unit of `O`. -/ private lemma IsAppellHumbert.isUnit_natCard_dualLattice_quotient_of_nsmul_mem (hB : IsAppellHumbert B χ) {O : Type*} [CommRing O] {N : ℕ} (hN : IsUnit (N : O)) (hN_kills : ∀ a ∈ B.dualLattice, N • a ∈ L) : IsUnit (Nat.card (B.dualLattice ⧸ (L.submoduleOf B.dualLattice).toAddSubgroup) : O) := by have h_finite : Finite (B.dualLattice ⧸ (L.submoduleOf B.dualLattice).toAddSubgroup) := hB.finite_dualLattice_quotient have kills : ∀ s : B.dualLattice ⧸ (L.submoduleOf B.dualLattice).toAddSubgroup, N • s = 0 := mk_surjective.forall.mpr fun a ↦ (eq_zero_iff _).mpr (hN_kills a a.property) exact isUnit_of_dvd_unit (card_dvd_exponent_nsmul_rank' _ kills).natCast (mod_cast hN.pow _) /-- Let `O` be a valuation ring with fraction field `ℂ`, and `f`, `g` finite families of theta functions. Suppose that (a) a natural number that is a unit of `O` kills the dual lattice modulo `L`, (b) neither family is zero, and (c) the weights `c` are such that, for `a` in the dual lattice, `c a * c (-a)` is the image of a unit of `O`. Then for some `γ ≠ 0`, an `O`-module stable under the translations `c a • thetaShift B a` contains all `g k` iff it contains all `γ • f i`. -/ lemma IsAppellHumbert.exists_proportional_orbit_lattice {O : Type*} [CommRing O] [IsDomain O] [ValuationRing O] [Algebra O ℂ] [IsFractionRing O ℂ] {ι κ : Type} [Finite ι] [Finite κ] (f : ι → B.thetaSpace χ) (g : κ → B.thetaSpace χ) (i : ι) (k : κ) (c : V → ℂ) {N : ℕ} (hN : IsUnit (N : O)) (hN_kills : ∀ a ∈ B.dualLattice, N • a ∈ L) (hf : f i ≠ 0) (hg : g k ≠ 0) (hc : ∀ a ∈ B.dualLattice, ∃ e : Oˣ, algebraMap O ℂ e = c a * c (-a)) : ∃ γ ≠ (0 : ℂ), ∀ M : Submodule O (V → ℂ), (∀ a ∈ B.dualLattice, ∀ x ∈ M, c a • B.thetaShift a x ∈ M) → ((∀ k : κ, (g k).val ∈ M) ↔ ∀ i : ι, γ • (f i).val ∈ M) := by -- Fix `z` with `f i z ≠ 0`, and let `A s` be the weighted translation by `-s`. By orthogonality, -- a stable module containing `x` contains `(x z / q) • y` once all `A s y z / q` are integral. -- Take for `γ` the ratio `A t (g k₀) z / A s (f i₀) z`, each of largest valuation in its family. obtain ⟨z, hz⟩ : ∃ z : V, (f i).val z ≠ (0 : B.thetaSpace χ).val z := ne_iff.mp fun h_eq ↦ hf (Subtype.ext h_eq) let H : AddSubgroup B.dualLattice := (L.submoduleOf B.dualLattice).toAddSubgroup -- `G`, the dual lattice modulo `L`, is finite, and its order divides a power of `N`. let G : Type := B.dualLattice ⧸ H have h_finite : Finite G := hB.finite_dualLattice_quotient have h_fintype : Fintype G := Fintype.ofFinite G have card_unit : IsUnit (Nat.card G : O) := hB.isUnit_natCard_dualLattice_quotient_of_nsmul_mem hN hN_kills let A (s : G) : End ℂ (B.thetaSpace χ) := c (-s.out) • hB.thetaShiftEnd (-s.out) have inv_mem (s : G) : ∃ e : O, algebraMap O ℂ e * c s.out * c (-s.out) = 1 := by obtain ⟨e, he_eq⟩ := hc s.out s.out.property exact ⟨↑e⁻¹, by simp [mul_assoc, ← he_eq]⟩ choose e he_mul using inv_mem -- `sum_shift_mul_shift`, divided by `q`, with the weights inserted by `e s * c s * c (-s) = 1`. have expand (x y : B.thetaSpace χ) (q : ℂ) : (Nat.card G : O) • (x.val z / q) • y.val = finrank ℂ (B.thetaSpace χ) • ∑ s, e s • ((A s y).val z / q) • c s.out • B.thetaShift s.out x := by funext w -- the family is a set of representatives `s.out`, which translation by `t` permutes modulo `L` have h_perm (t : B.dualLattice) : ∃ e : G ≃ G, ∀ s : G, (t + s.out - (e s).out).val ∈ L := ⟨.addLeft ↑t, fun s ↦ (eq_iff_sub_mem (N := H)).mp (by simp)⟩ have orthogonality := sum_shift_mul_shift G (fun s ↦ s.out) h_perm x y z w trans q⁻¹ * (card G * x.val z * y.val w) · simp [Algebra.smul_def, field] · -- termwise, the weights cancel by `e s * c s * c (-s) = 1` simp [← orthogonality, ← hB.finrank_thetaSpace_sq, Finset.mul_sum, A, Algebra.smul_def, mul_mul_div_mul_eq_inv_mul_of_mul_mul_eq_one, he_mul] -- Among the values `A s (u j) z` of a non-zero family, one of largest valuation divides all the -- others; it is not zero, or else all values vanish and `expand` gives `f i z • u k = 0`. have exists_max {ι : Type} [Finite ι] {u : ι → B.thetaSpace χ} {k : ι} (hu : u k ≠ 0) : ∃ (j : ι) (s : G), (A s (u j)).val z ≠ 0 ∧ ∀ (j' : ι) (s' : G), ∃ b : O, algebraMap O ℂ b = (A s' (u j')).val z / (A s (u j)).val z := by have h_nonempty : Nonempty ι := ⟨k⟩ obtain ⟨⟨j, s⟩, h_max⟩ := Finite.exists_max fun p : ι × G ↦ valuation O ℂ ((A p.snd (u p.fst)).val z) refine ⟨j, s, fun h_zero ↦ ?_, fun j' s' ↦ ?_⟩ · -- all values vanish by `h_max`, so the right side of `h_expand` is `0`; the left is not, -- as `f i z ≠ 0`, `u k ≠ 0` and the order of `G` is a unit have h_all_zero : ∀ (j' : ι) (s' : G), (A s' (u j')).val z = 0 := fun j' s' ↦ by simpa [h_zero] using h_max (j', s') have h_expand := expand (f i) (u k) 1 simp_all · exact (mem_integer_iff O ℂ _).mp (div_le_one_of_le₀ (h_max (j', s')) zero_le) obtain ⟨i₀, s, f_ne, f_max⟩ := exists_max hf obtain ⟨k₀, t, g_ne, g_max⟩ := exists_max hg let γ : ℂ := (A t (g k₀)).val z / (A s (f i₀)).val z refine ⟨γ, div_ne_zero g_ne f_ne, fun M hM ↦ ?_⟩ -- `(x z / q) • y ∈ M` follows from `expand`, since the order of `G` is a unit of `O` have smul_mem (x : B.thetaSpace χ) (hx : x.val ∈ M) (y : B.thetaSpace χ) {q : ℂ} (hq : ∀ r : G, ∃ b : O, algebraMap O ℂ b = (A r y).val z / q) : (x.val z / q) • y.val ∈ M := by choose b hb using hq rw [← M.smul_mem_iff_of_isUnit card_unit, expand] refine nsmul_mem (sum_mem fun r _ ↦ ?_) _ simp [← hb, M.smul_mem, hM _ r.out.property _ hx] have A_mem (r : G) (x : B.thetaSpace χ) (hx : x.val ∈ M) : (A r x).val ∈ M := hM _ (-r.out).property _ hx refine ⟨fun hg_mem j ↦ ?_, fun hf_mem j ↦ ?_⟩ · -- take `x = A t (g k₀)`, `y = f j` and `q = A s (f i₀) z`, so that `x z / q = γ` exact smul_mem (A t (g k₀)) (A_mem t (g k₀) (hg_mem k₀)) (f j) (f_max j) · -- take `x = A s (γ • f i₀)`, `y = g j` and `q = A t (g k₀) z`, so that `x z / q = 1` have h_ratio : γ * (A s (f i₀)).val z / (A t (g k₀)).val z = 1 := by simp [γ, f_ne, g_ne] simpa [h_ratio] using smul_mem (A s (γ • f i₀)) (A_mem s (γ • f i₀) (hf_mem i₀)) (g j) (g_max j) end New /-! ## Balls of the theta norm under good reduction Theta functions for (L, B, χ) on V carry a sup norm ‖f‖ = `New.ThetaTori.LatticeForm.thetaNorm`, the supremum over the torsion points x of V/L of the valuation v of the value `New.RealComplexForm.thetaShift B x f 0`. The standing hypothesis is `New.ThetaTori.HasGoodReduction`: the datum is of ample type, the norm is multiplicative, a natural number that is a v-unit maps the dual lattice `New.RealComplexForm.dualLattice` into L, and r > 1 is a v-unit. -/ namespace New.ThetaTori open Module Submodule NNReal Valuation MvPolynomial Set IsLocalRing variable {ι V : Type} [FinComplexSpace V] {L : Submodule ℤ V} {B : LatticeForm L} {χ g : V → ℂ} {u : V} {f : V → ℂ} {v : Valuation ℂ ℝ≥0} {r a : ℕ} {M : Submodule v.valuationSubring (V → ℂ)} (R : Type*) {A : Type*} [CommRing R] [CommRing A] [Algebra R A] (x : ι → A) (m : ℕ) /-- The m-th power of the R-span of the x_i in A, that is, the values at x of the forms of degree m over R. -/ abbrev formSpan : Submodule R A := span R (range x) ^ m /-- Evaluation at `x` maps the homogeneous polynomials of degree `m` over `R` onto `New.ThetaTori.formSpan R x m`. -/ lemma map_homogeneousSubmodule_eq_formSpan : (homogeneousSubmodule ι R m).map (aeval x).toLinearMap = formSpan R x m := by simp [Submodule.map_pow, ← homogeneousSubmodule_one_pow R m, map_span, homogeneousSubmodule_one_eq_span_X, ← range_comp'] /-- p is a primitive integral scaling of w: p_j = w_j/s for one complex s and all j, and some coordinate p_c is a unit of the valuation ring. -/ def IsIntegralCoords (w : ι → ℂ) (p : ι → v.valuationSubring) : Prop := ∃ s : ℂ, (∀ j : ι, p j = w j / s) ∧ ∃ c : ι, v (p c) = 1 /-- The theta norm is homogeneous: ‖c • f‖ = v(c) ‖f‖. -/ lemma thetaNorm_smul (c : ℂ) : B.thetaNorm v (c • f) = v c * B.thetaNorm v f := by have h_size : B.sizeAt v (c • f) = fun x ↦ v c * B.sizeAt v f x := funext fun x ↦ by simp [LatticeForm.sizeAt] simp only [LatticeForm.thetaNorm, h_size, NNReal.mul_iSup] @[simp] lemma thetaNorm_zero : B.thetaNorm v 0 = 0 := by simp [range, LatticeForm.sizeAt] /-- The theta norm of `f ^ a`, taken for the form `a • B`, is the `a`-th power of the theta norm of `f`. -/ lemma thetaNorm_pow : (a • B).thetaNorm v (f ^ a) = B.thetaNorm v f ^ a := by have h_size : (a • B).sizeAt v (f ^ a) = fun x ↦ B.sizeAt v f x ^ a := sizeAt_pow simp only [LatticeForm.thetaNorm, h_size, NNReal.iSup_pow] /-- Let `r ≠ 0`, and let `L₀` contain every `u` with `r • u ∈ L`. Then the dual lattice of `L₀` for the form `r • B` lies in the dual lattice of `L` for `B`. -/ lemma dualLattice_nsmul_le {L₀ : Submodule ℤ V} (hr : r ≠ 0) (h : ∀ u : V, r • u ∈ L → u ∈ L₀) : (r • B).dualLattice (L := L₀) ≤ B.dualLattice := by -- For l in L the vector l / r lies in L₀, and pairing it for r • B is pairing l for B. intro u hu l hl simpa [hr, h, hl, ← smul_assoc] using hu ((r⁻¹ : ℝ) • l) variable [IsFullRankLattice L] /-- For (L, B, χ) of ample type (`New.ThetaTori.IsAmpleType`) and `u` in the dual lattice, the translate `New.RealComplexForm.thetaShift B u f` has the same theta norm as `f`. -/ lemma IsAmpleType.thetaNorm_thetaShift (G : IsAmpleType B χ) (hu : u ∈ B.dualLattice) : B.thetaNorm v (B.thetaShift u f) = B.thetaNorm v f := by -- u is a torsion point, and shifting by it permutes the torsion points. have h_pos : IsPosRiemann B := G.isPosRiemann obtain ⟨N, hN, h_kills⟩ := G.exists_nsmul_mem_of_mem_dualLattice let u' : torsionPoints L := ⟨u, N, hN, h_kills u hu⟩ calc _ = ⨆ x, B.sizeAt v f (x + u') := iSup_congr (G.sizeAt_thetaShift u') _ = B.thetaNorm v f := (Equiv.addRight _).iSup_comp namespace HasGoodReduction /-- The ball of radius ‖f‖: the module, over the valuation ring of v, of the theta functions g for (L, B, χ) with v(`New.RealComplexForm.thetaShift` B x g 0) ≤ ‖f‖ at every torsion point x. -/ noncomputable def normBall (_ : HasGoodReduction B χ v r) (f : V → ℂ) : Submodule v.valuationSubring (V → ℂ) := (B.thetaSpace χ).restrictScalars v.valuationSubring ⊓ ⨅ x : torsionPoints L, Submodule.comap ((LinearMap.proj 0 ∘ₗ B.thetaShift x).restrictScalars v.valuationSubring) (v.leSubmodule (B.thetaNorm v f)) variable (G : HasGoodReduction B χ v r) /-- A function lies in the ball of `g` if and only if it is a theta function for (L, B, χ) whose theta norm is at most that of `g`. -/ @[local simp, local grind =] lemma mem_normBall : f ∈ G.normBall g ↔ f ∈ B.thetaSpace χ ∧ B.thetaNorm v f ≤ B.thetaNorm v g := by -- for a theta function `f` the sizes are bounded above, so `‖f‖ ≤ ‖g‖` says that each size of -- `f` is at most `‖g‖` rw [normBall, Submodule.mem_inf, Submodule.restrictScalars_mem] refine and_congr_right fun hf_mem ↦ ?_ rw [ciSup_le_iff (bddAbove_of_mem_sizes ⟨G.toIsAmpleType, hf_mem⟩), Submodule.mem_iInf] -- membership in the preimage of `v.leSubmodule` is, by definition, the bound on the size at `x` exact forall_congr' fun x ↦ Iff.rfl /-- For `u` in the dual lattice, the ball of `g` is stable under the translation `New.RealComplexForm.thetaShift B u`. -/ @[local grind .] lemma thetaShift_mem_normBall (hu : u ∈ B.dualLattice) (hf : f ∈ G.normBall g) : B.thetaShift u f ∈ G.normBall g := by grind [G.thetaNorm_thetaShift, G.thetaShift_mem_of_mem_dualLattice] include G /-! ### Consequences of good reduction -/ omit [IsFullRankLattice L] in /-- Good reduction passes from (B, χ) to (r ^ j • B, χ ^ r ^ j), with the same `v` and `r`. -/ lemma pow (j : ℕ) : HasGoodReduction (r ^ j • B) (χ ^ r ^ j) v r := by have h_amp : IsAmpleType (r ^ j • B) (χ ^ r ^ j) := G.nsmul (pow_ne_zero j G.one_lt.ne_bot) -- If N kills the dual for B modulo L, then N * r ^ j kills the dual for r ^ j • B, and it has -- valuation 1 because v r = 1. obtain ⟨N, hN_val, hN_kills⟩ := G.dual_torsion have h_tor : ∀ a ∈ (r ^ j • B).dualLattice, (N * r ^ j) • a ∈ L := fun a ha ↦ by simpa [mul_smul] using hN_kills _ (mem_dualLattice_nsmul.mp ha) exact { h_amp, G with dual_torsion := ⟨N * r ^ j, by simp [hN_val, G.val_eq_one], h_tor⟩ } variable (hf : f ∈ B.thetaSpace χ) (hf_ne : f ≠ 0) {L₀ : Submodule ℤ V} {ζ : V → ℂ} /-! ### Modules containing the translates of f; normal generation -/ include G hf include hf_ne in /-- Assume good reduction (`G`), let f ≠ 0 be a theta function for (L, B, χ) (`hf`, `hf_ne`) and for an Appell–Humbert datum (L₀, B, ζ) (`hAH`, `hf_L₀`) with L ≤ L₀ (`h_le`), let g be a theta function for (L₀, B, ζ), and let the module M over the valuation ring of the valuation v on ℂ contain the translates `New.RealComplexForm.thetaShift B u f` of f by the dual lattice of L₀. Then g = c • x with x in M and ‖g‖ = v(c)‖f‖, where ‖·‖ is the sup norm `New.ThetaTori.LatticeForm.thetaNorm`. -/ lemma exists_smul_thetaNorm_eq (h_le : L ≤ L₀) [IsFullRankLattice L₀] (hAH : IsAppellHumbert (L := L₀) B ζ) (hf_L₀ : f ∈ B.thetaSpace (L := L₀) ζ) (hg_L₀ : g ∈ B.thetaSpace (L := L₀) ζ) (h_shift : ∀ u ∈ B.dualLattice (L := L₀), B.thetaShift u f ∈ M) : ∃ c : ℂ, ∃ x ∈ M, g = c • x ∧ B.thetaNorm v g = v c * B.thetaNorm v f := by -- By `IsAppellHumbert.exists_proportional_orbit_lattice` a nonzero multiple γ • g lies in the -- same shift-stable lattices as f. For balls this gives ‖γ • g‖ = ‖f‖; for the functions all of -- whose shifts lie in M, γ • g ∈ M. have h_posRiemann : IsPosRiemann B := G.isPosRiemann by_cases g0 : g = 0 · exact ⟨0, 0, zero_mem M, by simp [g0], by simp [g0]⟩ have h_dual : B.dualLattice (L := L₀) ≤ B.dualLattice := fun u hu l hl ↦ hu l (h_le hl) -- The number n that kills the dual of L modulo L is a unit of the valuation ring, and it also -- kills the dual of L₀ modulo L₀. obtain ⟨n, hn_val, hn_kills⟩ := G.dual_torsion have hn_unit : IsUnit (n : v.valuationSubring) := (valuationSubring.integers v).isUnit_of_one' hn_val obtain ⟨γ, γ0, h_scale⟩ := hAH.exists_proportional_orbit_lattice ![⟨g, hg_L₀⟩] ![⟨f, hf_L₀⟩] 0 0 1 hn_unit (fun u hu ↦ h_le (hn_kills u (h_dual hu))) (by simpa using g0) (by simpa using hf_ne) (by simp) replace h_scale (N : Submodule v.valuationSubring (V → ℂ)) (hN : ∀ u ∈ B.dualLattice (L := L₀), ∀ x ∈ N, B.thetaShift u x ∈ N) : f ∈ N ↔ γ • g ∈ N := by simpa using h_scale N (by simpa using hN) -- Balls are stable under shifts, so f and γ • g lie in each other's ball. have h_ball (y : V → ℂ) : f ∈ G.normBall y ↔ γ • g ∈ G.normBall y := h_scale (G.normBall y) fun u hu x ↦ G.thetaShift_mem_normBall (h_dual hu) have h_norm : B.thetaNorm v f = v γ * B.thetaNorm v g := by obtain ⟨hγg_theta, hγg_le⟩ := G.mem_normBall.mp ((h_ball f).mp (G.mem_normBall.mpr ⟨hf, le_rfl⟩)) rw [← thetaNorm_smul] exact le_antisymm (G.mem_normBall.mp ((h_ball _).mpr (G.mem_normBall.mpr ⟨hγg_theta, le_rfl⟩))).right hγg_le -- The functions all of whose shifts lie in M form a shift-stable lattice: two shifts compose -- to one shift up to a factor of valuation 1, as dual vectors are torsion. set N : Submodule v.valuationSubring (V → ℂ) := ⨅ b ∈ B.dualLattice (L := L₀), M.comap ((B.thetaShift b).restrictScalars v.valuationSubring) have mem_N (x : V → ℂ) : x ∈ N ↔ ∀ b ∈ B.dualLattice (L := L₀), B.thetaShift b x ∈ M := by simp [N] have hN_stable : ∀ u ∈ B.dualLattice (L := L₀), ∀ x ∈ N, B.thetaShift u x ∈ N := by obtain ⟨m, m0, hm_kills⟩ := hAH.exists_nsmul_mem_of_mem_dualLattice intro u hu x hx refine (mem_N _).mpr fun b hb ↦ ?_ have h_val : v (Complex.exp (Real.pi * Complex.I * B.riemannForm b u)) = 1 := hAH.valuation_exp_riemannForm ⟨b, m, m0, hm_kills b hb⟩ ⟨u, m, m0, hm_kills u hu⟩ rw [hAH.thetaShift_thetaShift] exact M.smul_mem ⟨_, h_val.le⟩ ((mem_N x).mp hx (b + u) (add_mem hb hu)) have h_in_N : γ • g ∈ N := (h_scale N hN_stable).mp ((mem_N f).mpr h_shift) have h_in_M : γ • g ∈ M := by simpa using (mem_N (γ • g)).mp h_in_N 0 (zero_mem _) exact ⟨γ⁻¹, γ • g, h_in_M, by simp [γ0], by simp [h_norm, γ0]⟩ /-- Assume good reduction (`G`), and let f be a theta function for (L, B, χ) (`hf`) and for an Appell–Humbert datum (L₀, B, ζ) (`hAH`, `hf_L₀`) with L ≤ L₀ (`h_le`). A module M over the valuation ring of v that contains the translates of f by the dual lattice of L₀ contains every theta function g for (L₀, B, ζ) that lies in the ball of f (`New.ThetaTori.HasGoodReduction.normBall`). -/ lemma mem_of_mem_normBall (h_le : L ≤ L₀) [IsFullRankLattice L₀] (hAH : IsAppellHumbert (L := L₀) B ζ) (hf_L₀ : f ∈ B.thetaSpace (L := L₀) ζ) (hg_L₀ : g ∈ B.thetaSpace (L := L₀) ζ) (h_shift : ∀ u ∈ B.dualLattice (L := L₀), B.thetaShift u f ∈ M) (hg : g ∈ G.normBall f) : g ∈ M := by obtain ⟨hg_theta, hg_le⟩ := G.mem_normBall.mp hg rcases eq_or_ne f 0 with hf_zero | hf_ne · -- The ball of radius 0 contains only 0, since a nonzero theta function has positive norm. obtain rfl : g = 0 := by by_contra g0 simp [hf_zero, (G.thetaNorm_pos hg_theta g0).ne'] at hg_le exact zero_mem M -- Otherwise g = c • x with x ∈ M and v c * ‖f‖ = ‖g‖ ≤ ‖f‖, so c is integral. obtain ⟨c, x, hx, rfl, h_norm⟩ := G.exists_smul_thetaNorm_eq hf hf_ne h_le hAH hf_L₀ hg_L₀ h_shift have hc : v c ≤ 1 := by simpa [h_norm, G.thetaNorm_pos hf hf_ne] using hg_le exact M.smul_mem ⟨c, hc⟩ hx /-- Assume good reduction `G` for `(B, χ)` at `v` with level `r`: the ample-type conditions, `v(N) = 1` for some `N` mapping the dual lattice of `L` into `L`, `r > 1` with `v(r) = 1`, and a multiplicative sup norm. Let `f` be a theta function for `(L, B, χ)` (`hf`) and also for an Appell–Humbert datum `(L₀, B, ζ)` (`hAH`, `hf_L₀`) with `L₀` containing `r⁻¹L` (`h_div`), and let `G_nsmul` be good reduction for `(r • B, χ ^ r)`. Here `normBall f` is the module, over the valuation ring of `v`, of theta functions `g` whose shifted values at every torsion point have valuation at most `‖f‖`. Then the `r`-th power of this module for `f` equals the corresponding module for `f ^ r` in degree `r • B`. -/ lemma normBall_pow [IsFullRankLattice L₀] (hAH : IsAppellHumbert (L := L₀) B ζ) (hf_L₀ : f ∈ B.thetaSpace (L := L₀) ζ) (h_div : ∀ u : V, r • u ∈ L → u ∈ L₀) (G_nsmul : HasGoodReduction (r • B) (χ ^ r) v r) : G.normBall f ^ r = G_nsmul.normBall (f ^ r) := by -- ≤ is submultiplicativity of the norm. For ≥, by `mem_of_mem_normBall` it is enough to put each -- shift of f ^ r by a vector b of the dual of L for r • B into the r-th power of the ball; -- `mem_of_mem_normBall` again, now for L₀, reduces this to the shifts of t = f ^ (r - 1) * (shift -- of f by r • b). obtain ⟨a, rfl⟩ : ∃ a : ℕ, r = a + 1 := le_iff_exists_add'.mp G.one_lt.le apply le_antisymm · -- Only the definition of the balls is used; the hypotheses that mention `a` go before the -- induction. simp only [normBall] clear G_nsmul h_div G induction a with | zero => simp | succ n ih => refine (mul_le_mul_left ih _).trans ?_ rw [Submodule.mul_le, thetaNorm_pow, thetaNorm_pow] -- A product of theta functions is one, and the sizes multiply point by point. The bounds -- range over the type `torsionPoints L`, on which `sizeAt_mul` is stated. simpa [pow_add, add_smul, -Subtype.forall] using fun x hx hx_le y hy hy_le ↦ ⟨thetaSpace.mul hx hy, fun i ↦ (v.map_mul ..).trans_le (mul_le_mul' (hx_le i) (hy_le i))⟩ intro x hx have hAH_pow : IsAppellHumbert (L := L₀) ((a + 1) • B) (ζ ^ (a + 1)) := hAH.nsmul (a + 1) have hf_mem : f ∈ G.normBall f := G.mem_normBall.mpr ⟨hf, le_rfl⟩ have hf_pow : f ^ (a + 1) ∈ ((a + 1) • B).thetaSpace (χ ^ (a + 1)) := thetaSpace.pow hf _ -- By `mem_of_mem_normBall` for L₀ = L it suffices to treat each shift of f ^ r. refine G_nsmul.mem_of_mem_normBall hf_pow le_rfl G_nsmul.isAppellHumbert hf_pow (G_nsmul.mem_normBall.mp hx).left (fun b hb ↦ ?_) hx have hb' : (a + 1) • b ∈ B.dualLattice := mem_dualLattice_nsmul.mp hb have h_shift_mem : B.thetaShift ((a + 1) • b) f ∈ G.normBall f := G.thetaShift_mem_normBall hb' hf_mem set t : V → ℂ := f ^ a * B.thetaShift ((a + 1) • b) f with ht have ht_L : t ∈ ((a + 1) • B).thetaSpace (χ ^ (a + 1)) := by rw [succ_nsmul, pow_succ] exact thetaSpace.mul (thetaSpace.pow hf a) (G.mem_normBall.mp h_shift_mem).left -- For L₀ the product t has the multiplier of the shift of f ^ r by b. have ht_L₀ : t ∈ ((a + 1) • B).thetaSpace (L := L₀) fun l ↦ (ζ ^ (a + 1)) l * ((a + 1) • B).riemannPhase l b := by rw [show (fun l ↦ (ζ ^ (a + 1)) l * ((a + 1) • B).riemannPhase l b) = ζ ^ a * fun l ↦ ζ l * B.riemannPhase l ((a + 1) • b) by ext l; simp [pow_succ, mul_assoc], succ_nsmul B a] exact thetaSpace.mul (thetaSpace.pow hf_L₀ a) (hAH.thetaShift_mem hf_L₀ ((a + 1) • b)) have h_le : L ≤ L₀ := fun l hl ↦ h_div l (nsmul_mem hl (a + 1)) -- The dual of L₀ for r • B lies in the dual of L for B (`dualLattice_nsmul_le`), and a shift of -- t is a product of r shifts of elements of the ball. have h_shift_t : ∀ u ∈ ((a + 1) • B).dualLattice (L := L₀), ((a + 1) • B).thetaShift u t ∈ G.normBall f ^ (a + 1) := by intro u hu have hu' : u ∈ B.dualLattice := dualLattice_nsmul_le a.succ_ne_zero h_div hu rw [show ((a + 1) • B).thetaShift u t = B.thetaShift u f ^ a * B.thetaShift u (B.thetaShift ((a + 1) • b) f) by simp [ht, add_smul]] exact mul_mem_mul (pow_mem_pow _ (G.thetaShift_mem_normBall hu' hf_mem) a) (G.thetaShift_mem_normBall hu' h_shift_mem) -- Good reduction: the norm is multiplicative, so both sides are ‖f‖ ^ r. have ha0 : a ≠ 0 := by simpa using G.one_lt.ne' have h_norm_t : ((a + 1) • B).thetaNorm v t = (a • B).thetaNorm v (f ^ a) * B.thetaNorm v (B.thetaShift ((a + 1) • b) f) := by rw [succ_nsmul, ht, LatticeForm.thetaNorm, sizeAt_mul] exact G.hasMultiplicativeNorm ⟨G.nsmul ha0, thetaSpace.pow hf a⟩ ⟨G.toIsAmpleType, (G.mem_normBall.mp h_shift_mem).left⟩ have h_norm_le : ((a + 1) • B).thetaNorm v (((a + 1) • B).thetaShift b (f ^ (a + 1))) ≤ ((a + 1) • B).thetaNorm v t := by rw [G_nsmul.thetaNorm_thetaShift hb, h_norm_t, G.thetaNorm_thetaShift hb', thetaNorm_pow, thetaNorm_pow, pow_succ] -- t is a theta function for both lattices and the shift of f ^ r by b lies in its ball, so -- `mem_of_mem_normBall` for L₀ puts that shift into the power of the ball of f. exact G_nsmul.mem_of_mem_normBall ht_L h_le (hAH_pow.mul_riemannPhase b) ht_L₀ (hAH_pow.thetaShift_mem (thetaSpace.pow hf_L₀ _) b) h_shift_t (G_nsmul.mem_normBall.mpr ⟨G_nsmul.thetaShift_mem_of_mem_dualLattice hb hf_pow, h_norm_le⟩) /-- Integral normal generation: assume good reduction (`G`), and let f be a theta function for (L, B, χ) (`hf`) and also for an Appell–Humbert datum (L₀, B, ζ) (`hAH`, `hf_L₀`) on a lattice L₀ containing r⁻¹L (`h_div`). Then the r^j-th power of the ball of radius ‖f‖ is the ball of radius ‖f^(r^j)‖ in degree r^j B, for the good reduction `New.ThetaTori.HasGoodReduction.pow` of (r ^ j • B, χ ^ r ^ j); here r > 1, with v(r) = 1, is the level of `G`. -/ lemma normBall_pow_pow [IsFullRankLattice L₀] (hAH : IsAppellHumbert (L := L₀) B ζ) (hf_L₀ : f ∈ B.thetaSpace (L := L₀) ζ) (h_div : ∀ u : V, r • u ∈ L → u ∈ L₀) (j : ℕ) : G.normBall f ^ r ^ j = (G.pow j).normBall (f ^ r ^ j) := by induction j with | zero => simp | succ j ih => have h_pow : G.normBall f ^ r ^ (j + 1) = (G.pow j).normBall (f ^ r ^ j) ^ r := by rw [pow_succ, pow_mul, ih] -- Apply `normBall_pow` to f ^ r ^ j in degree r ^ j • B. The forms r • r ^ j • B and r ^ -- (j + 1) • B agree; simp rewrites the form under the good-reduction argument of `normBall`. rw [h_pow] simp_all [pow_add, pow_mul, mul_nsmul, thetaSpace.pow, ← (G.pow _).normBall_pow _ (hAH.nsmul _)] /-! ### Reduction of a ball -/ variable {W : Type} [AddCommGroup W] [Module v.valuationSubring W] {ballMap : W →ₗ[v.valuationSubring] V → ℂ} include hf_ne /-- Assume good reduction (`G`) for the valuation v on ℂ, with ‖·‖ the theta norm `New.ThetaTori.LatticeForm.thetaNorm`, and let f ≠ 0 be a theta function for (L, B, χ) (`hf`, `hf_ne`). Every theta function g for (L, B, χ) is c • y for some c in ℂ and y in the ball of f, with ‖g‖ = v(c)‖f‖. -/ lemma exists_eq_smul_normBall (hg : g ∈ B.thetaSpace χ) : ∃ c : ℂ, ∃ y ∈ G.normBall f, g = c • y ∧ B.thetaNorm v g = v c * B.thetaNorm v f := by -- `exists_smul_thetaNorm_eq` for L₀ = L and M the ball of f, which contains the shifts of f. exact G.exists_smul_thetaNorm_eq hf hf_ne le_rfl G.isAppellHumbert hf hg fun u hu ↦ G.thetaShift_mem_normBall hu (G.mem_normBall.mpr ⟨hf, le_rfl⟩) omit G hf hf_ne in /-- The reduction of a ball has the dimension of the space of theta functions. Let `L` be a full lattice in the complex vector space `V`, `B` a form for `L`, `χ : V → ℂ` a multiplier, and `v` a valuation on `ℂ` with valuation ring `O`. Write `‖g‖ = B.thetaNorm v g` for the supremum of `v (B.thetaShift x g 0)` over the torsion points `x` of `V/L`. Assume good reduction (`G`): `(L, B, χ)` is of ample type, the norm is multiplicative, some natural number `N` with `v N = 1` maps the dual lattice into `L`, and `r > 1` has `v r = 1`. Let `f ≠ 0` be a theta function for `(L, B, χ)`, and let `ballMap` be an `O`-linear map from a finite `O`-module `W` onto the ball `G.normBall f` of the theta functions `g` with `‖g‖ ≤ ‖f‖`. Let `φ` be a ring map from `O` onto a field `k`, and `reduction` a `φ`-semilinear map from `W` to a `k`-vector space `Q` that vanishes at `w` exactly when `‖ballMap w‖ < ‖f‖`. Then the `k`-span of the image of `reduction` has the dimension over `k` that the space `B.thetaSpace χ` of theta functions has over `ℂ`. -/ lemma finrank_reduction_eq (G : HasGoodReduction B χ v r) (hf : f ∈ B.thetaSpace χ) (hf_ne : f ≠ 0) {W : Type} [AddCommGroup W] [Module v.valuationSubring W] {ballMap : W →ₗ[v.valuationSubring] V → ℂ} (h_range : ballMap.range = G.normBall f) {k Q : Type*} [Field k] [AddCommGroup Q] [Module k Q] [Module.Finite v.valuationSubring W] {φ : v.valuationSubring →+* k} (hφ : Function.Surjective φ) {reduction : W →ₛₗ[φ] Q} (h_zero : ∀ w : W, reduction w = 0 ↔ B.thetaNorm v (ballMap w) < B.thetaNorm v f) : finrank k (span k (range reduction)) = finrank ℂ (B.thetaSpace χ) := by -- The ball is finitely generated and torsion free over the valuation ring, hence free. A basis -- `b` of it spans `B.thetaSpace χ` over `ℂ`, and its reduction is a basis of the image -- of `reduction`. have h_flat : Flat v.valuationSubring ballMap.range := Flat.flat_iff_torsion_eq_bot_of_isBezout.mpr (isTorsionFree_iff_torsion_eq_bot.mp inferInstance) have h_free : Free v.valuationSubring ballMap.range := free_of_flat_of_isLocalRing have h_surj : RingHomSurjective φ := ⟨hφ⟩ have h_flat_ℂ : Flat v.valuationSubring ℂ := IsLocalization.flat ℂ (nonZeroDivisors v.valuationSubring) let b : Basis (Fin (finrank v.valuationSubring ballMap.range)) v.valuationSubring ballMap.range := finBasis v.valuationSubring ballMap.range have h_span : span ℂ (ballMap.range : Set (V → ℂ)) = B.thetaSpace χ := by refine span_eq_of_le _ (fun z hz ↦ (G.mem_normBall.mp (h_range.le hz)).left) fun g hg ↦ ?_ -- Every theta function is a multiple of an element of the ball. obtain ⟨c, z, hz, rfl, -⟩ : ∃ c : ℂ, ∃ z ∈ G.normBall f, g = c • z ∧ B.thetaNorm v g = v c * B.thetaNorm v f := G.exists_eq_smul_normBall hf hf_ne hg exact smul_mem _ c (subset_span (h_range.ge hz)) -- `reduction` factors through `W ⧸ ker ballMap`, which `e` identifies with the ball; `red` is the -- induced map. have h_ker : ballMap.ker ≤ reduction.ker := fun w hw ↦ by simp [h_zero, LinearMap.mem_ker.mp hw, G.thetaNorm_pos hf hf_ne] let red : W ⧸ ballMap.ker →ₛₗ[φ] Q := ballMap.ker.liftQ reduction h_ker let e : ballMap.range ≃ₗ[v.valuationSubring] W ⧸ ballMap.ker := ballMap.quotKerEquivRange.symm have h_image : reduction.range = span k (range (red ∘ b.map e)) := by rw [← ballMap.ker.range_liftQ reduction h_ker, LinearMap.range_eq_map, ← (b.map e).span_eq, map_span, ← range_comp] -- An element killed by `red` is `a • z` with `v a < 1` and `z` in the ball, so its coordinates -- lie in the maximal ideal, the kernel of `φ`. have h_coord (t : ballMap.range) (ht : red (e t) = 0) (i : Fin (finrank v.valuationSubring ballMap.range)) : φ (b.repr t i) = 0 := by obtain ⟨_, w, rfl⟩ := t have h_e : e ⟨ballMap w, w, rfl⟩ = ballMap.ker.mkQ w := ballMap.quotKerEquivRange_symm_apply_image w ⟨w, rfl⟩ -- `red (e t)` is `reduction w`, so `ballMap w` has norm less than `f`. replace ht : B.thetaNorm v (ballMap w) < B.thetaNorm v f := by simpa [red, h_e, h_zero] using ht obtain ⟨a, z, hz, hw, h_norm⟩ : ∃ a : ℂ, ∃ z ∈ G.normBall f, ballMap w = a • z ∧ B.thetaNorm v (ballMap w) = v a * B.thetaNorm v f := G.exists_eq_smul_normBall hf hf_ne (G.mem_normBall.mp (h_range.le ⟨w, rfl⟩)).left have ha : v a < 1 := by simpa [h_norm, G.thetaNorm_pos hf hf_ne] using ht have ha_red : φ ⟨a, ha.le⟩ = 0 := (ker_eq_maximalIdeal φ hφ).ge (v.mem_maximalIdeal_iff.mpr ha) have h_repr : b.repr ⟨a • z, w, hw⟩ = (⟨a, ha.le⟩ : v.valuationSubring) • b.repr ⟨z, h_range.ge hz⟩ := b.repr.map_smul ⟨a, ha.le⟩ ⟨z, h_range.ge hz⟩ simp [hw, h_repr, ha_red] have h_indep : LinearIndependent k (red ∘ b.map e) := by rw [Fintype.linearIndependent_iff] -- As φ is onto, the coefficients are φ of the coordinates of some t in the ball. have h_lift : Function.Surjective fun t : ballMap.range ↦ φ ∘ b.equivFun t := hφ.comp_left.comp b.equivFun.surjective refine h_lift.forall.mpr fun t ht i ↦ h_coord t ?_ i simpa [← map_smulₛₗ, ← map_smul, ← map_sum] using ht -- Both sides are the rank of the ball; on the right, `ℂ` is flat over the valuation ring. calc finrank k (span k (range reduction)) = finrank v.valuationSubring ballMap.range := by rw [← reduction.coe_range, span_eq, h_image, finrank_span_eq_card h_indep, Fintype.card_fin] _ = finrank ℂ (span ℂ (ballMap.range : Set (V → ℂ))) := by simp _ = finrank ℂ (B.thetaSpace χ) := by rw [h_span] /-- Values at points meeting every class of the dual lattice modulo L detect the reduction. Here L is a full lattice in the complex vector space V, B a form for it, χ and f functions V → ℂ, and v a valuation on ℂ. Under good reduction (`G`), let f ≠ 0 be a theta function (`hf`, `hf_ne`), `ballMap` a linear map of W onto the ball of f (`h_range`), every point of the dual lattice congruent modulo L to some `pt b` (`hpt_cover`), and `scaled b` a primitive integral scaling of (ballMap w (pt b))_w with a unit coordinate (`h_scaled`). Then ‖ballMap w₀‖ < ‖f‖ if and only if `scaled b w₀` is a non-unit for all b. -/ lemma thetaNorm_lt_iff_coords (h_range : ballMap.range = G.normBall f) {I : Sort*} {pt : I → V} (hpt_cover : ∀ u : B.dualLattice, ∃ b : I, pt b - u ∈ L) {scaled : I → W → v.valuationSubring} (h_scaled : ∀ b : I, IsIntegralCoords (fun w : W ↦ ballMap w (pt b)) (scaled b)) (w₀ : W) : B.thetaNorm v (ballMap w₀) < B.thetaNorm v f ↔ ∀ b : I, v (scaled b w₀) < 1 := by -- Every y in the ball has integral scaled values y (pt b) / s b. If ‖ballMap w₀‖ < ‖f‖, then -- ballMap w₀ is a non-unit times such a y. Conversely, if all scaled b w₀ are non-units but -- ‖f‖ ≤ ‖ballMap w₀‖, then by `mem_of_mem_normBall` the whole ball has non-unit scaled values at -- pt b, although scaled b has a unit coordinate. have h_coords : ∀ b : I, ∃ s : ℂ, (∀ w : W, (scaled b w : ℂ) = ballMap w (pt b) / s) ∧ ∃ c : W, v (scaled b c) = 1 := by simpa only [IsIntegralCoords] using h_scaled choose s hp_eq c hc using h_coords have h_ball_mem (i : W) : ballMap i ∈ G.normBall f := h_range.le ⟨i, rfl⟩ have hw₀_theta : ballMap w₀ ∈ B.thetaSpace χ := (G.mem_normBall.mp (h_ball_mem w₀)).left have h_int (b : I) (y : V → ℂ) (hy : y ∈ G.normBall f) : v (y (pt b) / s b) ≤ 1 := by obtain ⟨i, rfl⟩ := h_range.ge hy simpa [← hp_eq, v.mem_valuationSubring_iff] using (scaled b i).prop constructor · intro h_lt b obtain ⟨γ, y, hy, h_eq, hγ⟩ := G.exists_eq_smul_normBall hf hf_ne hw₀_theta have hγ_lt : v γ < 1 := by simpa [hγ, G.thetaNorm_pos hf hf_ne] using h_lt have hp_mul : (scaled b w₀ : ℂ) = γ * (y (pt b) / s b) := by simp [hp_eq, h_eq, mul_div_assoc] rw [hp_mul, map_mul] exact mul_lt_one_of_lt_of_le hγ_lt (h_int b y hy) intro h_small by_contra h_norm -- Take a point pt b in L; N consists of the functions whose scaled value there is a non-unit. obtain ⟨b, hb⟩ : ∃ b : I, pt b ∈ L := by simpa using hpt_cover 0 set N : Submodule v.valuationSubring (V → ℂ) := comap (.smulRight (.proj (pt b)) (s b)⁻¹) (v.ltSubmodule 1) -- By the definitions of `comap` and `ltSubmodule`. have mem_N (y : V → ℂ) : y ∈ N ↔ v (y (pt b) / s b) < 1 := .rfl have h_shift_mem (u : V) (hu : u ∈ B.dualLattice) : B.thetaShift u (ballMap w₀) ∈ N := by -- pt b + u is congruent to some pt d, and by quasi-periodicity the values there differ by a -- factor common to all ballMap i. obtain ⟨d, hd : pt d - (pt b + u) ∈ L⟩ := hpt_cover ⟨pt b + u, add_mem (G.le_dualLattice hb) hu⟩ set l : V := pt d - (pt b + u) with hl have h_quasi (i : W) : ballMap i (pt d) = χ l * Complex.exp (B l (pt b + u) + B l l / 2) * ballMap i (pt b + u) := by simpa only [hl, add_sub_cancel] using (G.mem_normBall.mp (h_ball_mem i)).left.2 l hd (pt b + u) have h_shift_val (i : W) : B.thetaShift u (ballMap i) (pt b) = Complex.exp (-(B u (pt b) + B u u / 2)) * ballMap i (pt b + u) := by simp [thetaShift] -- So the shifted values at pt b are proportional to scaled d, whose coordinate c d is a unit. have h_cross : scaled d (c d) * (B.thetaShift u (ballMap w₀) (pt b) / s b) = scaled d w₀ * (B.thetaShift u (ballMap (c d)) (pt b) / s b) := by simp only [hp_eq, h_quasi, h_shift_val] ring rw [mem_N] calc _ = v (scaled d w₀) * v (B.thetaShift u (ballMap (c d)) (pt b) / s b) := by rw [← map_mul, ← h_cross, map_mul, hc, one_mul] _ < 1 := mul_lt_one_of_lt_of_le (h_small d) (h_int b _ (G.thetaShift_mem_normBall hu (h_ball_mem (c d)))) obtain ⟨hc_theta, hc_le⟩ := G.mem_normBall.mp (h_ball_mem (c b)) have h_ball : ballMap (c b) ∈ G.normBall (ballMap w₀) := G.mem_normBall.mpr ⟨hc_theta, hc_le.trans (not_lt.mp h_norm)⟩ have h_mem : ballMap (c b) ∈ N := G.mem_of_mem_normBall hw₀_theta le_rfl G.isAppellHumbert hw₀_theta hc_theta h_shift_mem h_ball have h_unit : v (ballMap (c b) (pt b) / s b) = 1 := by rw [← hp_eq, hc] exact ((mem_N (ballMap (c b))).mp h_mem).ne h_unit end HasGoodReduction end New.ThetaTori