Chapter V · Unit 141
The seesaw identity for the chain of theta lifts, and the index types of the data
Data.seesaw : there is a unit c \in \mathbb{C}^\times, depending on D only, such that for every twist \vartheta some good datum \Psi has \iota_\vartheta(\mathcal{P}(c \cdot \varphi)) = B^\Psi_\vartheta(\varphi) for all ramified columns \varphi (\varphi = 0 included; no further condition on \varphi), i.e. the indefinite chain of m theta lifts Y_0 \to \cdots \to Y_m of the Poincaré series equals a finite admissible combination of definite chains X_0 \to \cdots \to X_m restricted to Y_m; this is the input of Theorem A (Data.short_forms ). It is proved by unfolding the chain one lift at a time against Bessel periods (exists_isAdmissibleComb_unfolding), each unfolded period being a finite sum over a cut of cosets whose multiplicities divide powers of the conductor of \vartheta (exists_stage_cut, with the near-lines bounds of the lattices), evaluating pairs of lifts through zero terms of arrow pairs (AdmissibleEvaluation, EdgePair, DoubleLiftValue), and turning the resulting invariant admissible combination of reduced vacua into a good datum (GoodDatumExists). The folder also defines objects used across the proof: the places, characters, level prime N and index types of the data (IndexTypes), the lifts along the Y_j (GradingsOfY), the grid spaces (PairTensorData), and the Gauss-sum operator at the level prime used by the columns (NamesAtSplitLevel, LiftCharacters).Notes
- The seesaw identity for the chain of theta lifts 40 pages · PDF
- Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms 32 pages · PDF
- Chains of definite theta lifts and the Gauss-sum operator at the level prime 27 pages · PDF
- The characters, the level prime and the index sets of the data; the grid spaces 26 pages · PDF
What it holds · 312 declarations
def
IsAdmissibleComblines 12–13assemblyDefinition. For a type \alpha, a complex vector space Z, a family v : \alpha \to Z, a set A \subseteq \alpha, natural numbers n and d, a proposition p, a real number B and z \in Z:IsAdmissibleComb(v, A, n, d, p, B, z) holds when z = \sum_{x} r(x)\cdot v(x) for some finitely supported r : \alpha \to \mathbb{C} withIsAdmissibleCoeffs(A, n, d, p, B, r): the support of r lies in A, d\cdot r(x) \inintegralAway(n) for all x, and, if p holds, \sum_{x} |\sigma(r(x))| \le B for every automorphism \sigma of \mathbb{C}. In words: z is a finite combination of the v(x), x \in A, with coefficients integral away from n up to the denominator d, of size at most B at every conjugate when p holds.The Lean statement
New/Seesaw/AdmissibleComb.lean · line 12 def IsAdmissibleComb A n d p B z := ∃ r, IsAdmissibleCoeffs A n d p B r ∧ z = r.sum fun x ↦lemma
IsAdmissibleComb.lines 20–22one-stepof_sum Let \alpha be a type, Z a complex vector space, v : \alpha \to Z, n and d natural numbers, p a proposition, B a real number, s \subseteq \alpha a finite set and c : \alpha \to \mathbb{C}. Assumehc: d\cdot c(i) \inintegralAway(n) for every i \in s, andhB: if p, then \sum_{i\in s} |\sigma(c(i))| \le B for every automorphism \sigma of \mathbb{C}. ThenIsAdmissibleComb(v, s, n, d, p, B, \sum_{i\in s} c(i)\cdot v(i)) (with the coefficients c restricted to s).Lemma 3.1, p. 14 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleComb.lean · lines 20–21 lemma of_sum {c : α → ℂ} (hc : ∀ i ∈ s, d * c i ∈ integralAway n) (hB : p → ∀ σ : ℂ ≃+* ℂ, ∑ i ∈ s, ‖σ (c i)‖ ≤ B) : IsAdmissibleComb v s n d p B (∑ i ∈ s, c i • v i) :=lemma
IsAdmissibleComb.lines 24–25one-stepsingle Let \alpha be a type, Z a complex vector space, v : \alpha \to Z, A \subseteq \alpha, n and d natural numbers, p a proposition, and x \in A (hypothesishx). ThenIsAdmissibleComb(v, A, n, d, p, 1, v(x)): v(x) is the combination with the single coefficient 1 at x.Lemma 3.1, p. 14 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleComb.lean · line 24 lemma single x (hx : x ∈ A) : IsAdmissibleComb v A n d p 1 (v x) :=lemma
IsAdmissibleComb.lines 32–40argumentbind Let \alpha, \alpha' be types, Z a complex vector space, v : \alpha \to Z and v' : \alpha' \to Z, A \subseteq \alpha and A' \subseteq \alpha', n, d, d', e natural numbers, p a proposition, B, B', C real numbers and z \in Z. Assume h:IsAdmissibleComb(v, A, n, d, p, B, z); H:IsAdmissibleComb(v', A', n, d', p, B', v(x)) for every x \in A;hd: d\cdot d' \mid e (default proof: simp);hB: if p then B\cdot|B'| \le C (default proof: simp). ThenIsAdmissibleComb(v', A', n, e, p, C, z): substituting combinations into a combination multiplies denominators and sizes.Structured proof, 3 steps Theorem A, p. 2 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleComb.lean · lines 32–33 lemma bind {e C} d' B' (H : ∀ x ∈ A, IsAdmissibleComb v' A' n d' p B' (v x)) (hd : d * d' ∣ e := by simp) (hB : p → B * |B'| ≤ C := by simp) : IsAdmissibleComb v' A' n e p C z := bylemma
IsAdmissibleComb.line 42one-stepmap Let \alpha be a type, Z and Z' complex vector spaces, v : \alpha \to Z, A \subseteq \alpha, n, d natural numbers, p a proposition, B real, z \in Z with h:IsAdmissibleComb(v, A, n, d, p, B, z), and L : Z \to Z' a \mathbb{C}-linear map. ThenIsAdmissibleComb(L \circ v, A, n, d, p, B, L(z)).Lemma 3.1, p. 14 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleComb.lean · line 42 lemma map (L : Z →ₗ[ℂ] Z') : IsAdmissibleComb (L ∘ v) A n d p B (L z) := h.imp (by simp_all [sum])lemma
IsAdmissibleComb.lines 44–46one-stepsmul Let \alpha be a type, Z a complex vector space, v : \alpha \to Z, A \subseteq \alpha, n, d natural numbers, p a proposition, B real, z \in Z with h:IsAdmissibleComb(v, A, n, d, p, B, z), and c \in \mathbb{C} withhc: c \inintegralAway(n) andhc': if p, |\sigma(c)| \le 1 for every automorphism \sigma of \mathbb{C}. ThenIsAdmissibleComb(v, A, n, d, p, B, c\cdot z).Lemma 3.1, p. 14 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleComb.lean · lines 44–45 lemma smul {c} (hc : c ∈ integralAway n) (hc' : p → ∀ σ : ℂ ≃+* ℂ, ‖σ c‖ ≤ 1) : IsAdmissibleComb v A n d p B (c • z) := (h.map (c • 1)).bind 1 1lemma
IsAdmissibleComb.lines 48–50one-stepsmul_of_eq_zero_or_isOfFinOrder Let \alpha be a type, Z a complex vector space, v : \alpha \to Z, A \subseteq \alpha, n, d natural numbers, p a proposition, B real, z \in Z with h:IsAdmissibleComb(v, A, n, d, p, B, z), and \zeta \in \mathbb{C} that is 0 or a root of unity (hypothesis o). ThenIsAdmissibleComb(v, A, n, d, p, B, \zeta\cdot z).Lemma 3.1, p. 14 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleComb.lean · lines 48–49 lemma smul_of_eq_zero_or_isOfFinOrder {ζ : ℂ} (o : ζ = 0 ∨ IsOfFinOrder ζ) : IsAdmissibleComb v A n d p B (ζ • z) := have {R} [NormedField R] (f : ℂ →+* R) := o.elim (by aesop) (f.1.isOfFinOrder ·lemma
IsAdmissibleComb.lines 52–54one-stepof_eq_isOfFinOrder_smul Let \alpha, \alpha' be types, Z a complex vector space, v : \alpha \to Z, v' : \alpha' \to Z, A \subseteq \alpha, A' \subseteq \alpha', n, d natural numbers, p a proposition, B real, z \in Z with h:IsAdmissibleComb(v, A, n, d, p, B, z). If every v(x), x \in A, equals \zeta\cdot v'(y) for some root of unity \zeta \in \mathbb{C} and some y \in A' (premise), thenIsAdmissibleComb(v', A', n, d, p, B, z).Lemma 3.1, p. 14 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleComb.lean · lines 52–53 lemma of_eq_isOfFinOrder_smul : (∀ x ∈ A, ∃ ζ : ℂ, IsOfFinOrder ζ ∧ ∃ y ∈ A', v x = ζ • v' y) → IsAdmissibleComb v' A' n d p B z :=lemma
IsAdmissibleComb.lines 56–59one-stepmap_bilinear Let \alpha, \alpha' be types, Z, Z', W complex vector spaces, v : \alpha \to Z, v' : \alpha' \to Z', A \subseteq \alpha, A' \subseteq \alpha', n, d, d' natural numbers, p a proposition, B, B' real, z \in Z, z' \in Z', b : Z \times Z' \to W a \mathbb{C}-bilinear map, with h:IsAdmissibleComb(v, A, n, d, p, B, z) and g:IsAdmissibleComb(v', A', n, d', p, B', z'). ThenIsAdmissibleComb((x, x') \mapsto b(v(x), v'(x')), A \times A', n, d\cdot d', p, B\cdot|B'|, b(z, z')).Lemma 3.1, p. 14 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleComb.lean · lines 56–58 lemma map_bilinear {W} [AddCommGroup W] [Module ℂ W] (b : Z →ₗ[ℂ] Z' →ₗ[ℂ] W) (g : IsAdmissibleComb v' A' n d' p B' z') : IsAdmissibleComb (fun x ↦ b (v x.1) (v' x.2)) (A ×ˢ A') n (d * d') p (B * |B'|) (b z z') :=lemma
IsAdmissibleComb.lines 64–67argumentsmul_mem Let \alpha be a type, Z a complex vector space, v : \alpha \to Z, A \subseteq \alpha, n, d natural numbers, p a proposition, B real, z \in Z with h:IsAdmissibleComb(v, A, n, d, p, B, z); let l be a prime with a chosen ring homomorphism \iota_{p} : \mathbb{C} \to \mathbb{C}_l (PadicPlacel), coprime to n (hypothesishq), and M an O_{\iota}-submodule of Z, O_{\iota} = \{x \in \mathbb{C} : |\iota_{p}(x)|_{l} \le 1\} (embValRing), containing v(x) for every x \in A (hypothesishv). Then d\cdot z \in M.Structured proof, 2 steps Theorem A, p. 2 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleComb.lean · lines 64–65 lemma smul_mem {l} [Fact l.Prime] [PadicPlace l] (hq : l.Coprime n) {M : Submodule embValRing Z} (hv : ∀ x ∈ A, v x ∈ M) : (d : ℂ) • z ∈ M := bylemma
IsAdmissibleComb.lines 71–77argumentpure Let n be a natural number and p a proposition; let \alpha_j (j \in \mathbb{N}) be additive groups, F_j complex vector spaces, v_i : \alpha_{2i} \times \alpha_{2i+1} \to F_i, A_j \subseteq \alpha_j additive subgroups, f_i \in F_i, d and m natural numbers and B real. Assume (premise)IsAdmissibleComb(v_i, A_{2i} \times A_{2i+1}, n, d, p, B, f_i) for every i < m. Then the pure tensor f_{m-1} \otimes \cdots \otimes f_0 (TensorChain.f m) is an admissible combinationpure IsAdmissibleComb(y \mapsto v_{m-1}(y_{2m-2}, y_{2m-1}) \otimes \cdots \otimes v_0(y_0, y_1), {y : y_j \in A_j for all j}, n, d^{m}, p, |B|^{m}, f_{m-1} \otimes \cdots \otimes f_0) of pure tensors indexed by tuples y.Structured proof, 3 steps Theorem A, p. 2 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleComb.lean · lines 71–75 lemma pure {α F : ℕ → _} [∀ j, AddGroup (α j)] [∀ j, AddCommGroup (F j)] [∀ j, Module ℂ (F j)] {v : ∀ i, α (2 * i) × α (2 * i + 1) → F i} {A : ∀ _, AddSubgroup _} {f} d B m : (∀ i < m, IsAdmissibleComb (v i) (A _ ×ˢ A _) n d p B (f i)) → IsAdmissibleComb (fun y : ∀ _, _ ↦ TensorChain.pure (v · (y _, y _)) m) {y | ∀ j, y j ∈ A j} n (d ^ m) p (|B| ^ m) (TensorChain.pure f m) := m.rec (single 0 ∘ by simp) fun m i h ↦ ((i (by grind)).map_bilinear (TensorProduct.mklemma
IsAdmissibleComb.lines 79–83argumentnormUnit_smul Let \alpha be a type, Z a complex vector space, v : \alpha \to Z, A \subseteq \alpha, n, d natural numbers with d \ne 0 (hypothesishd), p a proposition, B real, z \in Z, and C, a \in \mathbb{C}. If (premise)IsAdmissibleComb(x \mapsto C\cdot v(x), A, n, d, p, B, z), thenIsAdmissibleComb(v, A, n, 1, p, d\cdot B,normUnit(a\cdot C/d)\cdot a\cdot z), wherenormUnit(w) = w^{-1} for w \ne 0 andnormUnit(0) = 1. If a\cdot C \ne 0, the scalarnormUnit(a\cdot C/d)\cdot a is d/C, which clears both the factor C and the denominator d. If a\cdot C = 0,normUnit(a\cdot C/d) = 1 and the vectornormUnit(a\cdot C/d)\cdot a\cdot z is 0 (for a = 0 directly; for C = 0 because z is a combination of the vectors C\cdot v(x) = 0); e.g. a = 0, d = C = 1 and z \ne 0 give the zero vector, not (d/C)\cdot z. No hypothesis a\cdot C \ne 0 is made.Structured proof, 2 steps Lemma 3.1, p. 14 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleComb.lean · lines 79–80 lemma normUnit_smul {C : ℂ} a (hd : d ≠ 0) : IsAdmissibleComb (C • v ·) A n d p B z → IsAdmissibleComb v A n 1 p (d * B) ((normUnit (a * C / d)).1 • a • z) := bydef
selfOrConjline 20assemblyDefinition. For a CM field E, index types \iota, \kappa, \beta \in \hat{O} and j \in \iota \sqcup \kappa:selfOrConj(\beta, j) = \beta if j \in \iota and \overline{\beta} if j \in \kappa.The Lean statement
New/Seesaw/AdmissibleEvaluation.lean · line 20 noncomputable def selfOrConj {ι κ} (β : Ô E) (j : ι ⊕ κ) := ite j.isLeft β.1 (star β)lemma
mulVec_mem_weightedTranslationslines 22–26argumentFor a CM field E, finite index types n, n_{0}, a natural number q, an integral n \times n_{0} matrix M over \mathbb{A}_f (h), weights d : n \to \mathbb{A}_f and d' : n_{0} \to \mathbb{A}_f, and y \inweightedTranslations(q, d) (hy); assume h': for all i, j and every finite place u, if d_i and d'_{j} have different valuations at u, then the component of M_{ij} at \overline{u} is 0. Then M^{H}\cdot y \inweightedTranslations(q, d').Structured proof, 2 steps Lemma 3.3, p. 16 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleEvaluation.lean · lines 22–24 lemma mulVec_mem_weightedTranslations {M : Matrix n n₀ _} (h : IsIntMatrix (Ô E) M) {d d' y} (hy : y ∈ weightedTranslations q d) (h' : ∀ i j u, v (d i u) ≠ v (d' j u) → M i j (star u) = 0) : Mᴴ *ᵥ y ∈ weightedTranslations q d' := mulVec_eq_sum y _ ▸ sum_mem fun i _ j ↦ bylemma
star_mem_weightedTranslationslines 28–30automationFor a CM field E, a natural number q, index types \iota, X, c \in \hat{O} (h), weights d : \iota \to \mathbb{A}_f, x \inweightedTranslations(q, d) (hx) and f : X \to \iota: the vector (c\cdot\operatorname{conj}(x_{f(i)}))_{i\in X} lies inweightedTranslations(q, (\operatorname{conj}(d_{f(i)}))_{i\in X}).Lemma 3.3, p. 16 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleEvaluation.lean · lines 28–30 lemma star_mem_weightedTranslations {ι X c} (h : c ∈ Ô E) {d x} (hx : x ∈ weightedTranslations q d) (f : X → ι) : (fun i ↦ c * star (x (f i))) ∈ weightedTranslations q (star <| d <| f ·) := by simp_all [mul_left_comm, mul_le_one', mem_Ô]lemma
inv_xFin_mulVec_mem_of_spansLatticelines 32–42argumentLet E be a CM field, V a hermitian space over E (indices n, signs s) with a grading Y presenting it as (n_{0} \sqcup \{\operatorname{pt}\}) plus a string of odd length q (hs), such thatY.(a, \pi, u) (SpansLattice hL); let x : n_{0} \sqcup \{\operatorname{pt}\} \to \mathbb{A}_f with x_i \in \hat{O} for i \in n_{0} (h) and \overline{\pi}\cdot x_{pt} \in \hat{O} (h₁), c \in \hat{O} (h₂), and v the vector with v(e_Y(i)) = x(i) on n_{0} \sqcup \{\operatorname{pt}\} and, at the string index b, u\cdot(\pi^{-1}x_{pt} + c) if 2b + 1 = q (the middle index) and 0 otherwise (hv). Then (x_f^{-1}\cdot v)_{i} \in \hat{O} for every basis index i: v lies in the lattice spanned by the finite frame x_f of V.Structured proof, 4 steps Lemma 4.3, p. 18 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleEvaluation.lean · lines 32–37 lemma inv_xFin_mulVec_mem_of_spansLattice {E : Type} [Field E] [CMType E] [Fintype n₀] {s N a π u c} {V : Space E n s} {Y : Grading V N (n₀ ⊕ _) q} (hL : Y.SpansLattice a π u) (x : _ → _) (h₂ : c ∈ Ô E) (hs : Odd q) {v} (h : ∀ i, x (.inl i) ∈ Ô E) (h₁ : star ↑π * x (.inr ()) ∈ Ô E) (hv : ∀ i, v (Y.indexEquiv i) = i.elim x (if 2 * ·.1 + 1 = q then u * (π⁻¹ * x (.inr ()) + c) else 0)) i : (V.xFin⁻¹.1 *ᵥ v) i ∈ Ô E := hL.elim fun k _ ↦ bydef
IsNeighbourVectorlines 60–62assemblyDefinition. For a CM field E with Weil data, finite index types X, q, a finite idele \pi, finite adeles \delta, c and a vector x indexed by (X \sqcup \{\operatorname{pt}\}) \sqcup (q \sqcup \{\operatorname{pt}\}):IsNeighbourVector(\pi, \delta, c, x) holds when \delta\cdot c = c; x_i \in \hat{O} for every index i other than the two points e = \operatorname{inl}(\operatorname{pt}) and e'' = \operatorname{inr}(\operatorname{pt}); \overline{\pi}\cdot x_i \in \hat{O} for every i; c - \pi^{-1}\cdot x_e \in \hat{O}; and \overline{\varepsilon}\cdot c - \pi^{-1}\cdot x_{e''} \in \hat{O}, where \varepsilon =Weil.is the chosen unit of \hat{O} with \overline{\varepsilon}\varepsilon = -1.normNegOne The Lean statement
New/Seesaw/AdmissibleEvaluation.lean · line 60 def IsNeighbourVector (π : (𝔸f E)ˣ) (δ : 𝔸f E) c (x : (X ⊕ _) ⊕ q ⊕ _ → _) := δ * c = c ∧def
IsAdmissibleEvallines 67–72assemblyDefinition. For a CM field E with Weil data, finite index types \iota, \iota', \iota'', X, X', \mu, signs \varepsilon, \varepsilon', \varepsilon'', hermitian spaces V, V', V'', a prime N, a finite set P of places, \beta \in \hat{O}, a map L on \mathcal{S}(\operatorname{Hom}(V', V^{-} \oplus V'')) and weights d (defaultselfOrConj(\beta)):IsAdmissibleEval(N, P, \beta, L, d) holds when there is C \in \mathbb{C} such that for every natural number n coprime to N, every proposition q (the q of \forall n q is a proposition, under which the size bound is asked; the text reading also lists the section's finite type q and its instance, which the definition does not use: text-inferred pending Lean's signature) and every y \inweightedTranslations(n, (i, j) \mapsto d_i): L(\varrho_f(y)\cdot\operatorname{vac}) satisfiesIsAdmissibleComb(t \mapsto C\cdot\tau_N(\varrho_f(t_{1})\operatorname{vac} \otimes \varrho_f(t_{2})\operatorname{vac}), \operatorname{translations}(n, \overline{\beta}) \times \operatorname{translations}(n, \overline{\beta}), n, |((X \sqcup \{\operatorname{pt}\}) \sqcup (\mu \sqcup \{\operatorname{pt}\})) \times X' \to \hat{O}/\beta|, q, 1, L(\varrho_f(y)\operatorname{vac})), where \tau_N =translateSum(X, X', P, N, \mu). In words: evaluated vacua are admissible combinations (size 1 under q, denominator |\hat{O}/\beta|^{(|X|+|\mu|+2)|X'|}) of C times \tau_N of pairs of translated vacua.The Lean statement
New/Seesaw/AdmissibleEvaluation.lean · lines 67–68 def IsAdmissibleEval (N : ℕ) [Fact N.Prime] (P : Finset (FinPlace E)) (β : Ô E) (L : 𝒮 (V'.hom (flipSum V V'')) → _) (d : _ := selfOrConj β) := ∃ C : ℂ, ∀ n q, N.Coprime n →lemma
exists_isAdmissibleEval_stdlines 81–160argumentLet E be a CM field with Weil data, X, X', X'' finite index types, N a prime, P a split level for N (hP), \pi a finite idele withIsSplitSquarefree(P, N, \pi) (hq), \delta a finite adele with \delta\overline{\delta} = 1 (h1), \beta \in \hat{O}, such that at every place w above N, \delta_w = 1 and \beta_w is a unit (hN), and \kappa a family on (X \sqcup \{\operatorname{pt}\}) \sqcup (X'' \sqcup \{\operatorname{pt}\}) with \kappa_b \in \{1, \delta\} (hκ) and \overline{\beta}\kappa_b,selfOrConj(\beta, b)\kappa_b \in \hat{O} (hG). Then there are k in the finite adelic unitary group of rank ((X \sqcup \operatorname{pt}) \sqcup (X'' \sqcup \operatorname{pt})) \times X', a matrix \gamma and vectors b_j such that: k = (\operatorname{diag}(\kappa)\cdot\gamma) \otimes 1; at every place w with w, \overline{w} \notin P, b_j vanishes and \gamma is the identity; for every j,IsNeighbourVector(\pi, \delta, b_j, column j of \gamma); andIsAdmissibleEval(N, P, \beta,leftInverse\circ \omega(1, k),selfOrConj(\beta)\cdot\kappa), whereleftInverseis the left inverse ofarrowTensor.Structured proof, 32 steps Proposition 8.1, p. 24 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleEvaluation.lean · lines 81–84 lemma exists_isAdmissibleEval_std : ∃ k : Gf E (_ × X'), ∃ γ, ∃ b : _ → _, k.1.1 = (diagonal κ * γ) ⊗ₖ 1 ∧ (∀ w, ¬(w ∈ P ∨ star w ∈ P) → ∀ j, evalAt w (b j) = 0 ∧ ∀ i, evalAt w (γ i j) = ite (i = j) 1 0) ∧ (∀ j, IsNeighbourVector π δ (b j) (γ · j)) ∧ IsAdmissibleEval N P β (arrowTensor.leftInverse <| ω _ (1, k) ·) (selfOrConj β * κ) := bylemma
isAdmissibleEval_finEvallines 167–215argumentIn the setting ofexists_isAdmissibleEval_std(E, N prime, P split level for N (hP), \pi withIsSplitSquarefree(hq), \delta\overline{\delta} = 1 (h1), \beta, \kappa withhN,hG, h\kappa), let Y, Y', Y'' be gradings of V (X \sqcup \{\operatorname{pt}\}, string m), V' (X' \sqcup \{\operatorname{pt}\}, m'), V'' (\mu, m'') of norm N, with Y'.SpansLattice(a, \pi, u) (hL') and \delta = (\overline{\alpha}/\alpha)\cdot(a/\overline{a}) (hδ), and D an arrow pair for Y \to Y' \to Y'' whose embedding \operatorname{incl}_D of the zero part satisfies two hypotheses: (hA) for all i, b, the entry \operatorname{incl}_D(i, \operatorname{inr} b) is 0, orselfOrConj(\beta, i) andselfOrConj(\beta, b)\cdot\kappa_b have equal valuations at every place; (hM) for all s, t with s\cdot(a/\overline{a}) = \overline{\varepsilon}\cdot\delta and t\cdot s = 1, every neighbour vector (IsNeighbourVector(\pi, \delta, c, x)) and v = \operatorname{incl}_D\cdot((0, s\cdot u\cdot c), ((s, 1)\cdot\kappa\cdot x)), the frame coordinates x_{f,V}^{-1}\cdot(t\cdot v|_{V}) and x_{f,V''}^{-1}\cdot(v|_{V''}) of the two components of this scaled embedded neighbour vector are integral. ThenIsAdmissibleEval(N, P, \beta, \mathrm{finEval}_D) (with the default weightsselfOrConj(\beta)).Structured proof, 22 steps Theorem D, p. 4 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/AdmissibleEvaluation.lean · lines 167–172 lemma isAdmissibleEval_finEval (D : ArrowPair _ q Y Y' Y'') (hA : ∀ i b, D.zeroPart.incl i (.inr b) = 0 ∨ ∀ w, v (selfOrConj β i w) = v ((selfOrConj β b * κ b) w)) (hM : ∀ s t, s * (divStar a).1 = star normNegOne.1.1 * δ ∧ t * s = 1 → ∀ x c, IsNeighbourVector π δ c x → ∀ v, v = D.zeroPart.incl.map (↑) *ᵥ ((0 ⊕ᵥ fun _ ↦ s * u * c) ⊕ᵥ ((fun _ ↦ s) ⊕ᵥ 1) * κ * x) → ∀ i, Sum.elim (V.xFin⁻¹.1 *ᵥ t • v ∘ .inl) (V''.xFin⁻¹.1 *ᵥ v ∘ .inr) i ∈ Ô E) : IsAdmissibleEval N P β D.finEval := bylemma
Data.lines 14–22argumentfilling_fits For admissible data D: the filling dataD.fit the space Y_{0} (filling Filling.) with the parametersFits D., the weights \kappa, the gradingparamW gradingY(0) and \eta =scalarFin(D.(0))^{-1}: the Bessel systems have the types (\mathrm{paramW}_v, \kappa_v); the indexing of Y_{0} is the standard Bessel indexing;latticeScale typeKernel(D.) is an idempotent kernel; the finite frame of Y_{0} is u\cdotparamW toBesselH(N, \eta)\cdot(lattice basis of the filling)\cdot k with u a finite idele and k integral, \equiv 1 at the chosen places; and \eta is central.Structured proof, 7 steps Proposition 4.1, p. 19 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/BesselGeneric.lean · lines 14–15 lemma Data.filling_fits : D.filling.Fits _ D.paramW D.κ (D.gradingY 0) (scalarFin _ (D.latticeScale 0))⁻¹ := ⟨(D.exists_besselSystem · |>.choose_spec), rfl, D.isCuspKernel_paramW.1,def
Data.lines 27–28assemblycolumnCoords Definition. For admissible data D: the linear isomorphism from the columns (D.: algebraic forms on X_{0} of weight (\kappa, 0) fixed byColumn D.(0)) to \ell^{2}(classes \times Bessel coordinates): translate a column by the central elementcolumnLevel D.(0) (latticeScale D., bijective), then apply the column coordinates ofcentralRep filling_fits(values at class representatives, Weyl coordinates changed to Bessel coordinates byweylBesselEquiv).Definition 2.11, p. 10 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/BesselGeneric.lean · line 27 noncomputable def Data.columnCoords :=abbrev
Data.lines 32–33assemblygoodProjTranslate Definition. For admissible data D and s \in \mathsf{G}: the linear map y \mapsto |\mathsf{G}|\cdot e_{0}(s\cdot y) fromD.(Y_{0}) to the image of the good idempotent e_{0} (principalForms D.(s), then the action of e_{0} restricted to its range, times |\mathsf{G}|).principalRep Definition 2.11, p. 10 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/BesselGeneric.lean · line 32 noncomputable abbrev Data.goodProjTranslate s := (Nat.card D.G : ℂ) •lemma
Filling.lines 40–41one-stepFits. poincare_rat_mul For filling data S fitting V (h), coefficients \varphi, a subgroup \Delta of the rational points, \gamma \in \Delta (o) and an adelic point g: \mathrm{poincare}_h(\varphi, \Delta)(\gamma\cdot g) = \mathrm{poincare}_h(\varphi, \Delta)(g): the Poincaré series over \Delta is left \Delta-invariant (reindex the sum over \Delta).Lemma 4.2, p. 19 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/BesselGeneric.lean · lines 40–41 lemma Filling.Fits.poincare_rat_mul φ {Δ} γ (o : γ ∈ Δ) g : h.poincare φ Δ (γ * g) = h.poincare φ Δ g := congr(∑ _, _ * $(.trans (by simp) ((Equiv.mulRight ⟨γ, o⟩).tsum_eq _)))lemma
Filling.lines 46–50argumentFits. exists_besselFin_mul_mem_of_ne_zero For filling data S fitting V (h), coefficients \varphi and an adelic point g at which the Poincaré series \mathsf{W}_{\varphi} = \mathrm{poincare}_h(\varphi,Y.) over the rational points of the Bessel group does not vanish (ratBessel hg): some r in the finite Bessel group B_f (Grading.) has r\cdot g_f \inbesselFin stdPrincipalLevel.Structured proof, 2 steps Lemma 4.2, p. 19 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/BesselGeneric.lean · lines 46–47 lemma Filling.Fits.exists_besselFin_mul_mem_of_ne_zero φ {g} (hg : h.poincare φ Y.ratBessel g ≠ 0) : ∃ r ∈ Y.besselFin, r * g.2 ∈ S.stdPrincipalLevel := bylemma
Filling.lines 58–95argumentFits. poincare_bessel_normal_form Let E be a CM field with Weil data, S admissible filling data (Filling.) fitting V (h), \psi a column of level K_c, n in the unipotent radical of the Bessel group of Y (IsAdmissible hn), a \in U(X_{0})(\mathbb{A}) and x with x_f \instdPrincipalLevel(hx). Then the Poincaré series ofh.(\psi) over the rational Bessel points, at n\cdot\mathrm{inclX}_Y(a)\cdot x, equals \psi_{\mathrm{std}}(-\sigma(n)/(g\varpi))\cdot(A(columnCoords conjWeylRep(a_\infty^{-1})\cdot\psi(a_f\cdot\eta)) \cdot W(x_\infty)), where \sigma =simpleRootSumof n (read throughadelicEquiv), A =weylBesselEquiv, W =besselFn(atrealHomeo(x_\infty)), \psi_{\mathrm{std}} the standard additive character, and u \cdot v = \sum_{i} u_i\cdot v_i the bilinear dot product (no complex conjugation of either vector). Hereh.is the coordinate map of the arbitrary fitting data h (columnCoords Filling.: values at class representatives in Bessel coordinates), not the specializedFits. columnCoords D., which first translates the column by the central elementcolumnCoords D.(0).latticeScale Structured proof, 14 steps Proposition 4.3, p. 19 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/BesselGeneric.lean · lines 58–62 lemma Filling.Fits.poincare_bessel_normal_form ψ [S.IsAdmissible] {n} (hn : n ∈ Y.unipotent) a {x} (hx : x.2 ∈ S.stdPrincipalLevel) : h.poincare (h.columnCoords ψ) Y.ratBessel (n * (Y.inclX a * x)) = stdAddChar E (toAdele (-(S.g * S.ϖ : E)⁻¹) * simpleRootSum (h.adelicEquiv n)) * h.weylBesselEquiv.1 (conjWeylRep _ 0 a.1⁻¹ (ψ.1.1 (a.2 * η))) ⬝ᵥ S.besselFn (h.realHomeo x.1) := bylemma
Filling.lines 101–123argumentFits. isGeneric_poincare Let E be a CM field with Weil data, S admissible filling data fitting V (h), \psi a column, and assume \jmath\cdot c(Y) = -(g\varpi)^{-1} (hjc). Then the Poincaré series ofh.(\psi) (the coordinate map of the arbitrary fitting data h,columnCoords Filling., notFits. columnCoords D.) over the rational Bessel points satisfiescolumnCoords Grading.for Y, which comprises three conditions: it is continuous, left invariant under the rational points of the Bessel group, and P(n\cdot g) = \psi_{\mathrm{std}}((\jmath/2)\cdot\operatorname{tr}(\operatorname{shift}(Y)\cdotIsGeneric ratCoord(n)))\cdot P(g) for every g and every unipotent n withratCoord(n) - 1 raising grades by at least 2.Structured proof, 8 steps Proposition 4.4, p. 20 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/BesselGeneric.lean · lines 101–102 lemma Filling.Fits.isGeneric_poincare ψ [S.IsAdmissible] (hjc : WeilData.j * Y.c = -(S.g * S.ϖ : E)⁻¹) : Y.IsGeneric (h.poincare (h.columnCoords ψ) Y.ratBessel) := bylemma
integral_theta_eq_lift₂lines 27–53argumentLet E be a CM field with Weil data, X, X', X_{0} finite index types, \kappa, e, e', e'' weights, O a type, a, b : O \to characters of U(1)(\mathbb{A}), and for every o linear maps k(o), k'(o) that are theta lifts X \to X' forrankTwist(a(o)) (hk) and X' \to X_{0} forrankTwist(b(o)) (hk') in the sense ofSpace.. Let u be a real datum and t a functional on weight-(\kappa, e) vectors, and put L(o)(y) = the composite k'(o)(\Phi') \circ k(o)(\Phi) for y = \Phi \otimes \Phi' (extended linearly). Then there is a functional t'' such that for all o, all y in \mathcal{W}_f(\operatorname{Hom}(X, X')) \otimes \mathcal{W}_f(\operatorname{Hom}(X', X_{0})), all forms \varphi on X and all points g: \int_{[U(X)]}IsThetaLift algFormCoeff(1, t, \varphi)(x)\cdot\int_{[U(X')]} \theta(tripleWeil(a(o), b(o))(x, r, g)(u \otimesarrowTensor(y))) dr dx =algFormCoeff(1, t'', L(o)(y)(\varphi))(g): integrating the coefficient t of \varphi against the theta kernel of u \otimesarrowTensor(y) over [U(X)] \times [U(X')] gives the coefficient t'' of the double lift.Structured proof, 8 steps Theorem C, p. 3 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/DoubleLiftValue.lean · lines 27–32 lemma integral_theta_eq_lift₂ {κ e e' e'' O k k'} {a b : O → _} (hk : IsThetaLift κ e e' (rankTwist <| a ·) k) (hk' : IsThetaLift κ _ e'' (rankTwist <| b ·) k') u t : let L o := TensorProduct.lift (.flip (.compl₁₂ (.llcomp ..) (k' o) (k o))); ∃ t'', ∀ o y φ g, ∫ x, algFormCoeff 1 t φ x * ∫ r, θ _ (tripleWeil (V'' := stdSpace E X₀) (a o) (b o) (x, r, g) (integrated _ u (arrowTensor y))) ∂(stdSpace E X').quotMeasure ∂(stdSpace E X).quotMeasure = algFormCoeff 1 t'' (L o y φ) glemma
ArrowPair.lines 58–118argumentintegral_constTermAtT_mul Let E be a CM field with Weil data, gradings Y of V (X, s), Y' of V' (X', s'), Y'' of V'' (X_{0}, s'') of norm N, and D an arrow pair for Y \to Y' \to Y''. There is z \in \mathbb{C} such that for all characters a, b of U(1)(\mathbb{A}), data f, f', points k \in U(X_{0})(\mathbb{A}) and t, and every P generic for Y (Grading.): with F(g, r) = P(g\cdot t)\cdotIsGeneric constTermAtT_{Y,Y'}(rankTwista, f)(g, r)\cdotconstTermAtT_{Y',Y''}(rankTwistb, f')(r,inclX_{Y''} k), \int_{[B']} \int_{[B]} F(g, r) dg dr = \int_{[U(X)]} P(\mathrm{inclX}_Y(g)\cdot t)\cdot(z\cdot\int_{[U(X')]} \theta(tripleWeil(a, b)(g, r, \mathrm{embX}_D k)(zeroTerm_{\mathrm{splitting} D}(homHeisOp(stackedT)(f \boxtimes f')))) dr) dg, where [B], [B'] are the quotients of the Bessel groups of Y, Y' by their rational points: the two unfolding steps give a double theta integral of the zero term of the translated arrow product.Structured proof, 22 steps Theorem C, p. 3 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/DoubleLiftValue.lean · lines 58–63 lemma ArrowPair.integral_constTermAtT_mul (D : ArrowPair X'' q Y Y' Y'') : ∃ z, ∀ a b f f' k P t, Y.IsGeneric P → let F g r := P (g * t) * Y.constTermAtT Y' (rankTwist a) f g r * Y'.constTermAtT Y'' (rankTwist b) f' r (Y''.inclX k) ∫ r, ∫ g, F g r ∂Y.besselMeasure ∂Y'.besselMeasure = ∫ g, P (Y.inclX g * t) * (z * ∫ r, θ _ (tripleWeil a b (g, r, D.embX k) (D.splitting.zeroTerm (homHeisOp (stackedT Y Y' Y'') (arrowProduct f f')))) ∂(stdSpace E _).quotMeasure) ∂(stdSpace E X).quotMeasuredef
zeroTermFinlines 24–27assemblyDefinition. Let E be a field with a CM type and Weil data, n, n_{0}, p finite index types, V and V_{0} hermitian spaces over E (basis indices n, n_{0}; signs s, s_{0}) and D a splitting of V over V_{0} along p (Space.).Splitting zeroTermFin(D) is the continuous linear map f \mapsto \mathrm{zeroTerm}_D(v \otimes f) from \mathcal{S}(V) to \mathcal{S}(V_{0}): v is the Fock vacuum moved by the real point of a chosen element adapted to D (Splitting.with t = 1), v \otimes f =exists_isAdapted_and_frame_eq Space.v f = \int v(y)\varrho(y)f dy, and \mathrm{zeroTerm}_D is the zero term along the isotropic frame k (integrated Splitting.: the mean of f(\iota y + kb) over b \in \mathbb{A}^{p}/E^{p}). It is the finite part of the constant term.zeroTerm The Lean statement
New/Seesaw/EdgePair.lean · line 24 @[local simp] def zeroTermFin := D.zeroTerm ∘L V.integrated (realWeillemma
zeroTermFin_speclines 28–37argumentLet E be a field with a CM type and Weil data, n, n_{0}, p finite index types, V, V_{0} hermitian spaces (signs s, s_{0}) and D a splitting of V over V_{0} along p. Then (i)zeroTermFin(D) maps the finite part \mathcal{W}_f(V) (the span of the translates \varrho_f(x)\cdot\operatorname{vac} of the vacuum) into \mathcal{W}_f(V_{0}); and (ii) for every adelic vector y of V and every real datum v (a vector of the Fock model of V) there is a real datum v_{0} of V_{0} such that, for all f \in \mathcal{S}(V), \mathrm{zeroTerm}_D(\varrho(y)(v \otimes f)) = v_{0} \otimeszeroTermFin(D)(\varrho_f(y_f)f), where \varrho is the Heisenberg action, \otimes =Space.and y_f =integrated finCoord(y) the finite coordinates of y.Structured proof, 4 steps Proposition 5.1, p. 18 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/EdgePair.lean · lines 28–30 lemma zeroTermFin_spec : (∀ f ∈ V.finitePart, zeroTermFin D f ∈ V₀.finitePart) ∧ ∀ y v, ∃ v₀, ∀ f, D.zeroTerm (V.ϱ y (V.integrated v f)) = V₀.integrated v₀ (zeroTermFin D (V.finHeisOp (finCoord y) f)) := bylemma
zeroTermFin_finHeisOp_finFrameVectorlines 39–41one-stepLet E, n, n_{0}, p, V, V_{0} (signs s, s_{0}) and the splitting D be as inzeroTermFin; let b \in (\mathbb{A}_f)^{p}, w a finite adelic vector of V_{0} and z =finFrameVector(1, 1, 0, w, b) = \iota_f w + k_f b (hypothesis h; the finite frame vector of D at g = 1, t = 1, a = 0); and f \in \mathcal{S}(V). ThenzeroTermFin(D)(\varrho_f(z)f) = \varrho_f(w)(zeroTermFin(D)f): translating along the isotropic frame k is invisible in the zero term, and along \iota it becomes translation in V_{0}.The Lean statement
New/Seesaw/EdgePair.lean · lines 39–40 lemma zeroTermFin_finHeisOp_finFrameVector b {z w} (h : z = D.finFrameVector 1 1 0 w b) f : zeroTermFin D (V.finHeisOp z f) = V₀.finHeisOp w (zeroTermFin D f) :=lemma
zeroTermFin_supportlines 46–54argumentLet E, n, n_{0}, p, V, V_{0} (signs s, s_{0}) and D be as inzeroTermFin; let M, M' be n \times n matrices over \mathbb{A}_f with M\cdot M'^{H} = 1 (m), f \in \mathcal{S}(V) with \varrho_f(Mx)f = f for every x \in \hat{O}^{n} (hf), and y a finite adelic vector of V withzeroTermFin(D)(\varrho_f(y)f) \ne 0 (h). Then there is l \in \hat{O}^{n} with k_f^{H}\cdot(y - M'l) = 0, where k_f is the finite part of the adelic isotropic frame k of D (Splitting.): y lies in M'\hat{O}^{n} + k^\bot.kAdelic Structured proof, 3 steps Proposition 5.2, p. 19 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/EdgePair.lean · lines 46–48 lemma zeroTermFin_support M M' {f y} (h : zeroTermFin D (V.finHeisOp y f) ≠ 0) (m : M * M'ᴴ = 1) (hf : ∀ x ∈ stdLattice E n, V.finHeisOp (M *ᵥ x) f = f) : ∃ l ∈ stdLattice E n, (D.kAdelic.map snd)ᴴ *ᵥ (y - M' *ᵥ l) = 0 := (isValuationPair_Ohat.exists_isPrimitiveMatrix_mul (X := M'ᴴ *lemma
zeroTermFin_finHeisOp_vacElemlines 58–75argumentLet E, n, n_{0}, p, V, V_{0} (signs s, s_{0}) and D be as inzeroTermFin; let g be in the finite adelic unitary group of V_{0}, c a p \times n_{0} matrix over \mathbb{A}_f, and B = \iota_f\cdot g + k_f\cdot c (hypothesis e) integral (hB), \iota_f, k_f the finite parts of the adelic frames of D. Then there is C \in \mathbb{C} such that for every finite adelic vector y of V there is \zeta \in \mathbb{C}, zero or a root of unity, withzeroTermFin(D)(\varrho_f(y)\cdot\operatorname{vac}) = \zeta\cdot C\cdot\omega(1, g)(\varrho_f(B^{H}y)\cdot\operatorname{vac}_{0}), \operatorname{vac} and \operatorname{vac}_{0} the vacua of V and V_{0}.Structured proof, 8 steps Proposition 5.3, p. 19 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/EdgePair.lean · lines 58–61 lemma zeroTermFin_finHeisOp_vacElem g (c : Matrix p _ (𝔸f E)) {B} (e : B = D.iAdelic.map snd * g.1.1 + D.kAdelic.map snd * c) (hB : IsIntMatrix (Ô E) B) : ∃ C, ∀ y, ∃ ζ, (ζ = 0 ∨ IsOfFinOrder ζ) ∧ zeroTermFin D (V.finHeisOp y V.vacElem) = (ζ * C : ℂ) • V₀.ω (1, g) (V₀.finHeisOp (Bᴴ *ᵥ y) V₀.vacElem) := .imp (fun C hC y ↦ by_contra fun H ↦ bystructure
GradeZeroPartlines 90–96assemblyDefinition (structure). For a field E with a CM type, finite index types \iota, \iota'', signs \varepsilon, \varepsilon'', hermitian spaces V (indices \iota) and V'' (indices \iota'') and weights \operatorname{wt} : \iota \to \mathbb{Z}, aGradeZeroPart(V, V'', \operatorname{wt}) consists of an injection index : \iota'' \hookrightarrow \iota whose image is exactly \{i : \operatorname{wt}(i) = 0\} (mem_range_index); a matrix \operatorname{incl} \in M_{\iota\times\iota''}(E) with \operatorname{incl}(a, b) = 0 whenever \operatorname{wt}(a) \ne 0 (incl_eq_zero) and \operatorname{incl}^{H}\cdot J_V\cdot\operatorname{incl} = J_{V''} (gram_incl); and the condition that J_V pairs only opposite weights: J_V(a, b) \ne 0 implies \operatorname{wt}(a) + \operatorname{wt}(b) = 0 (grade_add). So \operatorname{incl} is a rational isometry from V'' into the span of the basis vectors of weight 0.The Lean statement
New/Seesaw/EdgePair.lean · line 90 structure GradeZeroPart (V : Space E ι ε) (V'' : Space E _ ε'') (wt : ι → ℤ) wherelemma
ratCoordMatrix_sumlines 99–100automationFor a field E with a CM type, finite index types \iota, \iota', signs \varepsilon, \varepsilon', hermitian spaces V, V' and a pair g = (g_{1}, g_{2}) of adelic unitary points of V and V': the rational coordinate matrix ofG.(g) in the orthogonal sum V \oplus V' is \operatorname{diag}(\mathrm{ratCoordMatrix}_V(g_{1}),sum ratCoordMatrix_{V'}(g_{2})).Lemma 6.1, p. 20 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/EdgePair.lean · lines 99–100 lemma ratCoordMatrix_sum g : (V.sum V').ratCoordMatrix (.sum g) = fromBlocks (V.ratCoordMatrix g.1) 0 0 (V'.ratCoordMatrix g.2) := by simp [ratCoordMatrix_eq, sum, blockGL]def
GradeZeroPart.lines 107–114assemblysplitting Definition. For a field E with a CM type, finite index types \iota, \iota'', signs \varepsilon, \varepsilon'', hermitian spaces V, V'', weights w : \iota \to \mathbb{Z} and a grade-zero part Z of V (weights w) with zero part V'': the splitting of V over V'' along the positive-weight indices \{i : w(i) > 0\} (Space.). Its isotropic frame k is the inclusion of the basis vectors of positive weight, its frame l = J_V^{-1}\cdot k (so l^{H}Jk = 1), and its embedding of V'' isSplitting Z.; the axioms of a splitting follow fromincl grade_add(J_V and J_V^{-1} pair only opposite weights) andgram_incl.The Lean statement
New/Seesaw/EdgePair.lean · line 107 def GradeZeroPart.splitting (Z : GradeZeroPart V V'' w) : V.Splitting V'' {i // 0 < w i} :=def
GradeZeroPart.lines 118–122assemblyhom Definition. For a field E with a CM type, finite index types \iota, \iota', \iota'', X', signs \varepsilon, \varepsilon', \varepsilon'', hermitian spaces V, V', V'', N \in E, a grading Y' of V' (X' plus a string of length s', s' even:hs'), weights w : \iota \to \mathbb{Z}, all even (hw), and a grade-zero part Z of V (weights w, zero part V''): the grade-zero part of \operatorname{Hom}(V', V) for the weights (i, j) \mapsto w(i) -gradeOf_{Y'}(j), whose zero part is \operatorname{Hom}(X', V'') (\operatorname{Hom} from the standard space of X'); its index map isZ.\times (the inclusion of X' into the indices of V' along Y') and its \operatorname{incl} is the Kronecker product ofindex Z.with the inclusion matrix of X'.incl The Lean statement
New/Seesaw/EdgePair.lean · lines 118–119 def GradeZeroPart.hom (Z : GradeZeroPart V V'' w) (hs' : Even s') (hw : ∀ i, Even (w i)) : GradeZeroPart (V'.hom V) ((stdSpace E X').hom V'') fun r ↦ w r.1 - Y'.gradeOf r.2 := bydef
stackedTline 126assemblyDefinition. For a field E with a CM type, gradings Y of V (X plus a string of length s), Y' of V' (X', s') and Y'' of V'' (X_{0}, s''), all of norm N:stackedT(Y, Y', Y'') is the adelic matrix from V' to V^{-} \oplus V'' with the two row blocks T\ast and T', where T\ast is the form adjoint (Space.V V') of the frequency map T =formAdjoint stringMap(Y, Y') and T' =stringMap(Y', Y''). In the source's words: the adelic map (T\ast, T') from V' to V^{-} \oplus V'' for the frequency maps T : Y \to Y' and T' : Y' \to Y''.The Lean statement
New/Seesaw/EdgePair.lean · line 126 def stackedT := fromRows (V.formAdjoint V' (Y.stringMap Y')) (Y'.stringMap Y'')def
stackedTFinline 130assemblyDefinition. For gradings Y, Y', Y'' as instackedT:stackedTFin(Y, Y', Y'') =finCoord(homAtPoint_{V', V^{-}\oplus V''}(stackedT(Y, Y', Y''))), the finite coordinates ofstackedTas a point of \operatorname{Hom}(V', V^{-} \oplus V'') in its frame coordinates (by the source's comment, multiplied by \alpha^{-1}, \alpha the idele of the Weil data).The Lean statement
New/Seesaw/EdgePair.lean · line 130 def stackedTFin := finCoord (V'.homAtPoint (flipSum V V'') (stackedT Y Y' Y''))lemma
inclX_mul_stringMap_mul_inclX_invlines 133–135automationFor a field E with a CM type, gradings Y of V (X, s) and Y' of V' (X', s') of norm N, and adelic points g \in U(X), g' \in U(X'):ratCoord_{V'}(inclX_{Y'}(g'))\cdotstringMap(Y, Y')\cdot\mathrm{ratCoord}_V(\mathrm{inclX}_Y(g))^{-1} =stringMap(Y, Y'), where \mathrm{inclX}_Y : U(X) \to U(V) is the inclusion given by the grading. The frequency map is invariant under U(X) \times U(X').Lemma 6.1, p. 20 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/EdgePair.lean · lines 133–134 lemma inclX_mul_stringMap_mul_inclX_inv g g' : V'.ratCoordMatrix (Y'.inclX g') * Y.stringMap Y' * V.ratCoordMatrix (Y.inclX g)⁻¹ = Y.stringMap Y' := bystructure
ArrowPairlines 141–153assemblyDefinition (structure: data for two consecutive lifts Y \to Y' \to Y''). For a field E with a CM type and Weil data, gradings Y of V (X, s), Y' of V' (X', s'), Y'' of V'' (X_{0}, s'') of norm N and finite index types X'', q, anArrowPair(X'', q, Y, Y', Y'') consists of:zeroPart, a grade-zero part of V^{-} \oplus V'' for the weights \mathrm{gradeOf}_Y \sqcupgradeOf_{Y''}, whose zero part is the sum of q hyperbolic planes and X^{-} \oplus X'' (hypSumq (flipSumX X''));string_spec: s odd, s' = s - 1, s'' = s' - 1, and the constant c of Y' equals that of Y;even_card_add: |\iota| + |\iota''| even;embX: U(X_{0}) \to U(X''), a homomorphism of adelic unitary groups with \det(embXk) = \det k (det_embX); intertwines: \operatorname{diag}(ratCoord\mathrm{inclX}_Y(g),ratCoordinclX_{Y''}(k))\cdot\operatorname{incl} = \operatorname{incl}\cdot(1 \oplus g^{-} \oplusembX(k)) for g \in U(X), k \in U(X_{0}) (the identification is compatible with U(X) \times U(X_{0}));gradeOne: q \hookrightarrow {indices l of V' withgradeOf_{Y'}(l) = 1}; andstackedT_apply:stackedT(Y, Y', Y'')(index a, l) = \sum_{k} [l =gradeOnek]\cdot\operatorname{incl}(index a, (k-th dual hyperbolic vector))\cdot c(Y').The Lean statement
New/Seesaw/EdgePair.lean · line 141 structure ArrowPair wheredef
ArrowPair.lines 159–160assemblyhomZeroPart Definition. For an arrow pair D for Y \to Y' \to Y'': the grade-zero part of \operatorname{Hom}(V', V^{-} \oplus V'') (weights (i, j) \mapsto (\mathrm{gradeOf}_Y \sqcupgradeOf_{Y''})(i) -gradeOf_{Y'}(j)) with zero part \operatorname{Hom}(X', (q planes) \oplus X^{-} \oplus X''), obtained byGradeZeroPart.fromhom D.; its hypotheses (s' even, all weights of Y and Y'' even) follow fromzeroPart string_spec.The Lean statement
New/Seesaw/EdgePair.lean · line 159 def ArrowPair.homZeroPart := D.zeroPart.hom Y' (by grind [ArrowPair])def
ArrowPair.line 164assemblysplitting Definition. For an arrow pair D: the splitting of \operatorname{Hom}(V', V^{-} \oplus V'') over \operatorname{Hom}(X', X^{-} \oplus X'') obtained by composing the splitting ofhomZeroPart(D) (which removes the maps of non-zero degree) with the splitting that removes the q hyperbolic planes (removePlanes, transported to \operatorname{Hom}(X', \cdot) byhomTarget).The Lean statement
New/Seesaw/EdgePair.lean · line 164 def ArrowPair.splitting := D.homZeroPart.splitting.comp ((removePlanes q _).homTarget _)def
ArrowPair.lines 168–169assemblyfinEval Definition. For an arrow pair D: the finite evaluation, the linear map on \mathcal{S}(\operatorname{Hom}(V', V^{-} \oplus V'')) that translates by \varrho_f(stackedTFin(Y, Y', Y'')), takeszeroTermFinalongArrowPair.(D), and then applies a chosen left inverse ofsplitting arrowTensor(the injective map \mathcal{W}_f(\operatorname{Hom}(X, X')) \otimes \mathcal{W}_f(\operatorname{Hom}(X', X'')) \to \mathcal{S}(\operatorname{Hom}(X', X^{-} \oplus X'')) induced byarrowProduct); its values lie in that tensor product.The Lean statement
New/Seesaw/EdgePair.lean · line 168 def ArrowPair.finEval :=lemma
ArrowPair.lines 171–174argumentarrowTensor_finEval For an arrow pair D and data \Phi \in \mathcal{W}_f(\operatorname{Hom}(V, V')), \Psi \in \mathcal{W}_f(\operatorname{Hom}(V', V'')):arrowTensor(\mathrm{finEval}_D(\Phi \boxtimes \Psi)) =zeroTermFin(splitting D)(\varrho_f(stackedTFin)(\Phi \boxtimes \Psi)), where \boxtimes =arrowProduct. So on such data the left inverse infinEvalis exact.Structured proof, 2 steps Lemma 6.2, p. 20 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/EdgePair.lean · lines 171–172 lemma ArrowPair.arrowTensor_finEval (Φ Ψ : finitePart _) : arrowTensor (D.finEval (arrowProduct Φ Ψ.1)) = zeroTermFin D.splitting (finHeisOp _ (stackedTFin Y Y' Y'') (arrowProduct Φ.1 Ψ)) :=lemma
ArrowPair.lines 179–207argumentzeroTerm_splitting_tripleWeil For an arrow pair D, characters a, b of U(1)(\mathbb{A}), adelic points g \in U(X), g' \in U(X'), k \in U(X_{0}) and f \in \mathcal{S}(\operatorname{Hom}(V', V^{-} \oplus V'')):zeroTerm_{\mathrm{splitting} D}(tripleWeil(a, b)(\mathrm{inclX}_Y g,inclX_{Y'} g',inclX_{Y''} k)\cdot f) =tripleWeil(a, b)(g, g', \mathrm{embX}_D k)\cdotzeroTerm_{\mathrm{splitting} D}(f).tripleWeil(a, b)(g_{1}, g_{2}, g_{3}) is the Weil operator of (g_{2}, g_{1}^{-} \oplus g_{3}) on \operatorname{Hom}(V', V^{-} \oplus V'') times explicit characters of the determinants (tripleWeil). The zero term intertwines the two triple actions.Structured proof, 11 steps Theorem B, p. 2 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/EdgePair.lean · lines 179–181 lemma ArrowPair.zeroTerm_splitting_tripleWeil a b g g' k f : D.splitting.zeroTerm (tripleWeil a b (Y.inclX g, Y'.inclX g', Y''.inclX k) f) = tripleWeil a b (g, g', D.embX k) (D.splitting.zeroTerm f) := bylemma
ArrowPair.lines 211–225argumentfinEval_inclXFin For an arrow pair D, characters a, b of U(1)(\mathbb{A}), finite points g \in U(X), g' \in U(X'), k \in U(X_{0}), k' \in U(X''), x \in U(V'') with x =inclXFin_{Y''}(k) (hx) and \mathrm{embX}_D(1, k) = (1, k') (e), and data \Phi \in \mathcal{W}_f(\operatorname{Hom}(V, V')), \Phi' \in \mathcal{W}_f(\operatorname{Hom}(V', V'')): \mathrm{finEval}_D(\omega_a(\mathrm{inclXFin}_Y g,inclXFin_{Y'} g')\Phi \boxtimes \omega_b(inclXFin_{Y'} g', x)\Phi') = (\omega_a(g, g') \otimes \omega_b(g', k'))(\mathrm{finEval}_D(\Phi \boxtimes \Phi')), \omega_a =liftWeilFina the finite Weil representation twisted by a. The finite evaluation commutes with the finite points of U(X) \times U(X') \times U(X_{0}).Structured proof, 5 steps Theorem B, p. 2 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/EdgePair.lean · lines 211–214 lemma ArrowPair.finEval_inclXFin a b {g g' k k' x} (hx : Y''.inclXFin k = x) (e : D.embX (1, k) = (1, k')) Φ Φ' : D.finEval (arrowProduct (liftWeilFin a (Y.inclXFin g, Y'.inclXFin g') Φ).1 (liftWeilFin b (Y'.inclXFin g', x) Φ').1) = .map (liftWeilFin a (g, g')) (liftWeilFin b (g', k')) (D.finEval (arrowProduct Φ Φ')) := bydef
middlePairlines 237–245assemblyDefinition. For a field E with a CM type and Weil data, gradings Y of V (X, s), Y' of V' (X', s'), Y'' of V'' (X_{0}, s'') of norm N with s odd, s' = s - 1, s'' = s' - 1 and equal constants c (H), |\iota| + |\iota''| even (H') and s \ne 1 (h): theArrowPair(X_{0}, \{\operatorname{pt}\}, Y, Y', Y'') that removes one hyperbolic plane, spanned by the middle vectors z of Y and z'' of Y''. Its zero part sends the two basis vectors of the plane to (2N)^{-1}(z - z'') and z + z'' and the bases of X and X_{0} to the corresponding basis vectors of V and V'';embXis the identity of U(X_{0});gradeOnepicks the middle string vector of Y' (index s''/2).The Lean statement
New/Seesaw/EdgePair.lean · lines 237–238 def middlePair (h : s ≠ 1) : ArrowPair X₀ Unit Y Y' Y'' := let z _ := Sum.inl (Y.indexEquiv (.inr ⟨s / 2, by grind⟩))def
lastPairlines 249–256assemblyDefinition. For a field E with a CM type and Weil data, gradings Y, Y', Y'' as inmiddlePair(H, H'), an element p \in E with p\cdot\overline{p} = N (e) and s = 1 (h): theArrowPair(X_{0} \sqcup \{\operatorname{pt}\}, \emptyset, Y, Y', Y'') that removes no plane. X'' = X_{0} \sqcup \{\operatorname{pt}\}, and the zero part sends the basis of X and X_{0} to the corresponding basis vectors and the new point to z/p, z the only string vector of Y;embX: U(X_{0}) \to U(X_{0} \sqcup \{\operatorname{pt}\}) is the block embedding g \mapsto \operatorname{diag}(g, 1); there are no planes (q = \emptyset).The Lean statement
New/Seesaw/EdgePair.lean · line 249 def lastPair (e : p * star p = N) (h : s = 1) : ArrowPair (X₀ ⊕ Unit) Empty Y Y' Y'' := let j :=def
flagOrderline 18assemblyDefinition. For a bijection e : X \sqcup \{0, \ldots, s-1\} \simeq \iota and i \in \iota:flagOrder(e)(i) = 2s if e^{-1}(i) \in X, and 4a + 1 if e^{-1}(i) is the a-th string index (the numbering used for triangularity).Definition 2.18, p. 13 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/EqualLinesOrbit.lean · line 18 def flagOrder i := (e.symm i).elim (fun _ ↦ 2 * s) (4 * ·.1 + 1)lemma
mul_apply_string_of_blockTriangularlines 24–27one-stepFor a bijection e : X \sqcup \{0, \ldots, s-1\} \simeq \iota, a commutative ring R, \iota \times \iota matrices A, B over R that are block upper triangular forflagOrder(e) (h, h') and a string index a, with i = e(a): (A\cdot B)_{ii} = A_{ii}\cdot B_{ii} (the string indices are alone in their blocks).Lemma 6.1, p. 22 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/EqualLinesOrbit.lean · lines 24–27 lemma mul_apply_string_of_blockTriangular {e : X ⊕ Fin s ≃ ι} {R} [CommRing R] {A B} (h : BlockTriangular (R := R) A (flagOrder e)) (h' : BlockTriangular B (flagOrder e)) a : letI i := e (.inr a); (A * B) i i = A i i * B i istructure
Grading.lines 31–34assemblyIsAdaptedBasis Definition (structure). For a field E with a CM type, a hermitian space V with a grading Y (X plus a string of length s, norm N), x, b \in \mathrm{GL}_{\iota}(\mathbb{A}_f) and \beta : Fin s \to (\mathbb{A}_f)^{\times}:IsAdaptedBasis(x, b, \beta) holds when (triangular) b is block upper triangular forflagOrder(e_Y); (integral) b^{-1}\cdot x \in \mathrm{GL}_{\iota}(\hat{O}), so the columns of b span the same \hat{O}-lattice as those of x; (diag_eq) b(e_Y(i), e_Y(i)) = \beta_i for every string index i.Definition 2.18, p. 13 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/EqualLinesOrbit.lean · line 31 structure Grading.IsAdaptedBasis (x b : GL ι (𝔸f E)) (β : _ → (𝔸f E)ˣ) whereabbrev
Grading.line 38assemblyIsAdaptedAt Definition. For a grading Y of V and y \in G_f(\iota):IsAdaptedAt(y) =IsAdaptedBasis(x_f\cdot y), x_f the finite frame of V; as a predicate of (b, \beta), b is an adapted basis, with string diagonal \beta, of the lattice spanned by the columns of x_f\cdot y.Definition 2.18, p. 13 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/EqualLinesOrbit.lean · line 38 abbrev Grading.IsAdaptedAt := Y.IsAdaptedBasis (V.xFin * y)def
Grading.lines 42–44assemblyHasNearLines Definition. For a grading Y of V, a finite idele a, a finite set Q of places, n, k \in \mathbb{N} and a finite adelic point x:HasNearLines(a, Q, n, k, x) holds when there are b, \beta withIsAdaptedAt(x)(b, \beta) such that for every string index i and place w, |ideleLogVal(\beta_i)_{w} -ideleLogVal((a/\overline{a})^{n}\cdot c_i)_{w}| \le k if w \in Q or \overline{w} \in Q, and = 0 otherwise, where c_i = 1 if s is odd, and c_i = a^{-1} if 2i < s, c_i = \overline{a} otherwise, if s is even (ideleLogVal= -\operatorname{ord}_w).Definition 2.19, p. 14 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/EqualLinesOrbit.lean · line 42 def Grading.HasNearLines a (Q : Finset _) (n k : ℕ) x := ∃ b β, Y.IsAdaptedAt x b β ∧ ∀ i w,lemma
Grading.lines 46–49argumentexists_isAdaptedAt For a field E with a CM type, a grading Y of V (X plus a string of length s, norm N) and y \in G_f(\iota): there are b, \beta withIsAdaptedAt(y)(b, \beta): every lattice x_f\cdot\hat{O}^{\iota} has an adapted basis.Structured proof, 3 steps Lemma 6.1, p. 22 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/EqualLinesOrbit.lean · line 46 lemma Grading.exists_isAdaptedAt : ∃ b β, Y.IsAdaptedAt y b β :=lemma
Grading.lines 54–60computationIsAdaptedAt. gram_string_entry For a grading Y of V, y \in G_f(\iota) with an adapted basis b of string diagonal \beta at y (h), and string indices i, j with j \le s - 1 - i (hj): with k = (b^{-1}\cdot x_f\cdot y)^{-1} and f(i) = e_Y(string index i): (k^{H}\cdot k)(f(i), f(j)) = J_V(f(i), f(j))\cdot(\overline{\beta}_i\cdot\beta_j). (Computation: the lattice at y is x_f\cdot y\cdot\hat{O}^{\iota}; h = x_f\cdot y satisfies h^{H}\cdot J_V\cdot h = 1 in finite adelic coordinates (Space.and the unitarity of y), so k = (b^{-1}\cdot h)^{-1} = h^{-1}\cdot b has k^{H}\cdot k = b^{H}\cdot J_V\cdot b; for j \le s - 1 - i the block triangularity of b and the graded form of J_V leave only the term J_V(f(i), f(j))\cdot\overline{\beta}_i\cdot\beta_j.)gram_xFin Lemma 6.1, p. 22 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/EqualLinesOrbit.lean · lines 54–56 lemma Grading.IsAdaptedAt.gram_string_entry [Fintype X] (h : Y.IsAdaptedAt y b β) i j (hj : j ≤ i.rev) : letI k := (b⁻¹ * (V.xFin * y))⁻¹.1 letI f := Y.indexEquiv ∘ .inr; (kᴴ * k) (f i) (f j) = V.J (f i) (f j) • (star (β i) * β j).1lemma
Grading.lines 62–64argumentIsAdaptedBasis. inv For a grading Y and b an adapted basis of g with string diagonal \beta (h):IsAdaptedBasis(b^{-1}, b^{-1}, \beta^{-1}): b^{-1} is an adapted basis of its own lattice with string diagonal \beta^{-1}.Structured proof, 3 steps Lemma 6.1, p. 22 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/EqualLinesOrbit.lean · line 62 lemma Grading.IsAdaptedBasis.inv (h : Y.IsAdaptedBasis g b β) : Y.IsAdaptedBasis b⁻¹ b⁻¹ β⁻¹ :=lemma
Grading.lines 68–73argumentIsAdaptedBasis. ideleLogVal_le For a grading Y, adapted bases b of g (string diagonal \beta, h) and b' of g' (\beta', h'), a finite place w at which the matrix g^{-1}g' is integral (e), and a string index i:ideleLogVal(\beta'_{i})_{w} \leideleLogVal(\beta_i)_{w}.Structured proof, 1 step Lemma 6.1, p. 22 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/EqualLinesOrbit.lean · lines 68–69 lemma Grading.IsAdaptedBasis.ideleLogVal_le (e : IsIntMatrix v.integer ((g⁻¹ * g').map (evalAt w)).1) i : ideleLogVal (β' i) w ≤ ideleLogVal (β i) w := bylemma
Grading.lines 75–77one-stepIsAdaptedBasis. ideleLogVal_eq For a grading Y, adapted bases b of g (\beta, h) and b' of g' (\beta', h'), a place w with g_w = g'_{w} (e) and a string index i:ideleLogVal(\beta'_{i})_{w} =ideleLogVal(\beta_i)_{w} (both inequalities ofideleLogVal_le).Lemma 6.1, p. 22 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/EqualLinesOrbit.lean · lines 75–76 lemma Grading.IsAdaptedBasis.ideleLogVal_eq (e : g.map (evalAt w) = g'.map (evalAt w)) i : ideleLogVal (β' i) w = ideleLogVal (β i) w := bylemma
Grading.lines 84–106argumentIsAdaptedAt. exists_mem_besselFin Let E be a stably unramified field with a CM type, V a hermitian space with a grading Y (X plus a string of length s, norm N), x, x' \in G_f(\iota) with adapted bases b at x (string diagonal \beta, h) and b' at x' (\beta', h'), such that \beta_i and \beta'_{i} have the same valuation at every finite place for every string index i of the first half (i \le s - 1 - i) (l). Then there is k \in K_{0} = \operatorname{Kf}(E, \iota) with x'\cdot k\cdot x^{-1} \in B_f, the finite Bessel group of Y (Grading.).besselFin Structured proof, 10 steps Proposition 6.2, p. 23 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/EqualLinesOrbit.lean · lines 84–87 lemma Grading.IsAdaptedAt.exists_mem_besselFin {E X ι} [Field E] [CMType E] [Fintype ι] [Fintype X] {ε s N} {V : Space E ι ε} [StablyUnram E] {Y : Grading V N X s} {x x' b b' β β'} (h : Y.IsAdaptedAt x b β) (h' : Y.IsAdaptedAt x' b' β') (l : ∀ i w, i ≤ i.rev → ideleLogVal (β' i) w = ideleLogVal (β i) w) : ∃ k ∈ Kf E ι, x' * k * x⁻¹ ∈ Y.besselFin := bylemma
isUnimodular_gradedLatticeBasis_gramlines 15–24argumentFor finite index types X, \iota, s, N \in \mathbb{N}, a bijection e : (X \sqcup \{\operatorname{pt}\}) \sqcup \{0, \ldots, s-1\} \simeq \iota, commutative rings S and R (R with an involution), a subring O of R, a ring homomorphism f : S \to R, units a, \pi of R with f(N) = \pi\cdot\overline{\pi} (hN) and a unitary u \in R: the Gram matrix G^{H}\cdot f(gradedGram(e, N))\cdot G of the graded lattice basis G =gradedLatticeBasis(e, a, \pi, u) is unimodular over O (IsUnimodular: hermitian and in \mathrm{GL}_{\iota}(O)).Structured proof, 4 steps Input 3, p. 9 of Good forms and rows: equal Hecke traces on unitary groups that differ at the real places Proposition 4.1, p. 17 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/FramesForY.lean · lines 15–17 lemma isUnimodular_gradedLatticeBasis_gram {S O} [CommRing S] [StarRing R] {f : S →+* R} {a π : Rˣ} {u} (hN : f N = π * star ↑π) : IsUnimodular O ((gradedLatticeBasis e a π u)ᴴ * (gradedGram e ↑N).map f * gradedLatticeBasis e a π u) := bylemma
exists_frame_gradedGramlines 29–36argumentFor finite index types X, \iota, s \in \mathbb{N}, N > 0 (hN), a commutative ring R, a bijection e : (X \sqcup \{\operatorname{pt}\}) \sqcup \{0, \ldots, s-1\} \simeq \iota, a ring homomorphism \varphi : R \to \mathbb{C} and signs \varepsilon on \iota with exactly \lfloor (s + 1)/2\rfloor minus signs (h): there is a complex matrix y with y^{H}\cdot\varphi(gradedGram(e, N))\cdot y = \operatorname{diag}(\varepsilon), and y^{H}\cdot y = 1 if N = 1.Structured proof, 3 steps Input 3, p. 9 of Good forms and rows: equal Hecke traces on unitary groups that differ at the real places Proposition 4.2, p. 18 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/FramesForY.lean · lines 29–30 lemma exists_frame_gradedGram (φ : R →+* ℂ) (hN : 0 < N) {ε} (h : negCount ε = (s + 1) / 2) : ∃ y, yᴴ * (gradedGram e ↑N).map φ * y = signMatrix ε ∧ (N = 1 → yᴴ * y = 1) := bylemma
Data.lines 21–38argumentisAdmissibleEval_pairEvalY For admissible data D and i \le \varrho (hi):IsAdmissibleEval(N,D., \overline{\pi}_g,piPlaces pairEvalY(i)) (with the default weightsselfOrConj(\overline{\pi}_g)): the finite evaluation of the pair Y_{2i} \to Y_{2i+1} \to Y_{2i+2} satisfies the admissible-evaluation property at the level prime N, for the places dividing \pi (\pi\overline{\pi} = N) and \beta = \overline{\pi}_g (the image ofD.in \hat{O}).piGBar Structured proof, 9 steps Proposition 9.1, p. 31 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GoodDatumExists.lean · lines 21–22 lemma isAdmissibleEval_pairEvalY i (hi : i ≤ D.ϱ) : IsAdmissibleEval D.N D.piPlaces (algebraMap _ _ D.piGBar) (pairEvalY i) := bylemma
Data.lines 43–82argumentexists_isAdmissibleComb_reducedVacuum For admissible data D there is C \in \mathbb{C} such that for every tame character \vartheta (Data.; the statement binds its own \vartheta, whose type is fixed byTameChar levelNormandevaluatedDatum, both defined for tame characters: it is not the section's twist, and its tame part may be trivial at places of Q) with q =levelNorm(\vartheta) = \prod_{w\in Q} N(w), and every tuple y = (y_k) of finite adelic unitary points with y_k inlocalLevel(away from q) — integral at every place not dividing q — for all k: the pure tensor \otimes_{i\le\varrho}evaluatedDatum(\vartheta, y, i) (TensorChain.) satisfiespure IsAdmissibleComb(t \mapsto C\cdotD.(t),reducedVacuum admissibleTranslations(q), q,cutBound^{2m}, (Q(\vartheta) = \emptyset), 1, \cdot): it is a combination of C times the reduced vacua over admissible translations (\pi_g\cdot t_k integral away from q), with coefficients integral away from q up to the denominatorcutBound^{2m}, m = 2\varrho + 2, and, if Q is empty, of size at most 1. One C serves all tame characters and all such tuples; the non-triviality of the tame part at the places of Q (Data.) enters only later, in the good datum.Twist Structured proof, 17 steps Proposition 9.2, p. 32 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GoodDatumExists.lean · lines 43–46 lemma exists_isAdmissibleComb_reducedVacuum : ∃ C : ℂ, ∀ ϑ y, (∀ k, y k ∈ localLevel _ {w | ϑ.levelNorm ∉ w.1}) → IsAdmissibleComb (C • D.reducedVacuum ·) (admissibleTranslations ϑ.levelNorm) ϑ.levelNorm (D.cutBound ^ (2 * D.m)) (ϑ.Q = ∅) 1 (TensorChain.pure (evaluatedDatum ϑ y) _) := bylemma
Data.lines 84–97argumentprojOnFinPart_pairTranslates For admissible data D, a tame character \vartheta, t \inadmissibleTranslations(levelNorm\vartheta) (ht) and i \in \mathbb{N}: (P \otimes P)(pairTranslates(translateDatumt)(i)) =translateDatum(t, 2i) \otimestranslateDatum(t, 2i + 1), where P =projOnFinPart(D.) is the projection to the vectors that are vacua above the places dividing \pi: the projection kills all translates of \tau_N except the trivial one.piPlaces Structured proof, 4 steps Lemma 9.3, p. 33 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GoodDatumExists.lean · lines 84–86 lemma projOnFinPart_pairTranslates (ϑ : D.TameChar) {t} (ht : t ∈ D.admissibleTranslations ϑ.levelNorm) i : TensorProduct.map (projOnFinPart _ D.piPlaces) (projOnFinPart _ D.piPlaces) (D.pairTranslates (D.translateDatum t) i) = D.translateDatum t _ ⊗ₜ D.translateDatum t _ := bylemma
Data.lines 101–113argumentisAdmissibleComb_reducedVacuum For admissible data D, a natural number q, a proposition p and t \inadmissibleTranslations(q) (ht):D.(t) is an admissible combinationreducedVacuum IsAdmissibleComb(x \mapsto \otimes_{i\le\varrho} (translateDatum(x, 2i) \otimestranslateDatum(x, 2i + 1)),admissibleTranslations(q\cdot N), q, 1^{\varrho+1}, p, |N^{f\cdot n_m}|^{\varrho+1},D.(t)) of pure tensors of translated vacua, with translations admissible for qN, denominator 1 and, under p, size at most N^{f\cdot n_m\cdot(\varrho+1)}.reducedVacuum Structured proof, 4 steps Lemma 9.4, p. 33 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GoodDatumExists.lean · lines 101–104 lemma isAdmissibleComb_reducedVacuum {q p} ⦃t⦄ (ht : t ∈ D.admissibleTranslations q) : IsAdmissibleComb (fun x ↦ pure (fun _ ↦ D.translateDatum x _ ⊗ₜ D.translateDatum x _) _) (D.admissibleTranslations (q * D.N)) q (1 ^ D.ϱ.succ) p (|↑(D.N ^ (D.f * D.n D.m))| ^ D.ϱ.succ) (D.reducedVacuum t) := bylemma
Data.lines 121–136argumentexists_isGoodDatum_of_invariant For admissible data D and a twist \vartheta (q =levelNorm\vartheta), let w be an admissible combination of theD.(t), t \inreducedVacuum admissibleTranslations(q), with denominator 1 and, if Q(\vartheta) = \emptyset, size \lecutBound^{2m}\cdotcutBound^{2\varrho+2} (hw), fixed by the joint action of every b \in \prod_{k}D.(k) with last component b_{2\varrho+2} = 1 (columnLevel hi). Then there is a good datum \Psi (IsGoodDatum(\vartheta, \Psi)) such that, for every smooth form \varphi on X_{0}, the chain of paired lifts with datum w (TensorChain.oflift liftInPairsof theliftKernel(\vartheta)) applied to \varphi equalschainComb(\vartheta, \Psi,translateDatum, m)(\varphi) = \sum_{t} \Psi(t)\cdot(chain of m lifts with datatranslateDatum(t))(\varphi).Structured proof, 4 steps Proposition 9.5, p. 33 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GoodDatumExists.lean · lines 121–126 lemma exists_isGoodDatum_of_invariant {w} (hw : IsAdmissibleComb D.reducedVacuum (D.admissibleTranslations ϑ.levelNorm) ϑ.levelNorm 1 (ϑ.Q = ∅) (↑(D.cutBound ^ (2 * D.m)) * D.cutBound ^ (2 * D.ϱ + 2)) w) (hi : ∀ b : ∀ k, D.columnLevel k, b (2 * D.ϱ + 2) = 1 → TensorChain.map (twoKernelAction (D.liftKernel ϑ) (b ·)) _ w = w) : ∃ Ψ, IsGoodDatum ϑ Ψ ∧ ∀ φ, TensorChain.lift (TensorChain.liftInPairs (D.liftKernel ϑ · |>.lift)) φ _ w = chainComb ϑ Ψ D.translateDatum _ φ := let T := TensorChain.lift (TensorChain.liftInPairs (M :=abbrev
Data.line 23assemblyinclY Definition. For admissible data D and j \in \mathbb{N}: the inclusion of the basis index set Y_j =BlockIndex(D., Fin t, j) into Y_{j+1} = Y_j \sqcup \{0, \ldots, t-1\} as the first summand.RowIndex Definition 2.4, p. 8 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 23 abbrev Data.inclY (j : ℕ) : D.Y j ↪ D.Y (j + 1) := .inllemma
Data.lines 25–26automationliftTamePart_eq_of_mem_Q For admissible data D, a tame character \vartheta, j \in \mathbb{N} and w \in Q(\vartheta):D.(\vartheta, j)_{w} = \psi_{\vartheta,w}, i.e. (\omega^{j}\cdot\psi_{\vartheta})_{w} = \psi_{\vartheta,w}, because w is not a chosen place, so \omega_w = 1.liftTamePart Lemma 3.1, p. 16 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · lines 25–26 lemma Data.liftTamePart_eq_of_mem_Q (w : ϑ.Q) : D.liftTamePart ϑ j w = ϑ.ψ w := by simp [liftTamePart, IsChosen, D.levelNorm_mem_and_notMem_of_mem_Q ϑ]abbrev
Data.line 30assemblylevelY Definition. For admissible data D, a tame character \vartheta and j \in \mathbb{N}:levelY(\vartheta, j) =levelOf(placeAtofD.(\vartheta), \bot), the subgroup of elements of K_{0} \subset G_f(Y_j) whose reductions are 1 at every chosen place above g_{0}g_{1} and at every place of Q(\vartheta).levelPlaces Definition 2.7, p. 9 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 30 abbrev Data.levelY := levelOf (n := D.Y j) (D.levelPlaces ϑ).placeAt ⊥lemma
Data.lines 32–33one-steplevelY_le_chosenLevel For admissible data D, a tame character \vartheta and j \in \mathbb{N}:levelY(\vartheta, j) \lechosenLevel, the principal congruence subgroup at the chosen places (on Y_j).Lemma 3.1, p. 16 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 32 lemma Data.levelY_le_chosenLevel : levelY ϑ j ≤ chosenLevel :=def
Data.lines 37–38assemblyupsilonY Definition. For admissible data D, a tame character \vartheta and j \in \mathbb{N}: \Upsilon_j =upsilonY(\vartheta, j) is the finite datum on \operatorname{Hom}(Y_j, Y_{j+1}) obtained from the indicator of the block inclusion matrix (1; 0) =inclMatrix(inclYj) modulo \mathfrak{m} = \mathfrak{m}(\vartheta, 1) = M\cdot Q (the product of the chosen places and the places of Q(\vartheta)), named at the places of \mathfrak{m} and applied to the vacuum (vacuumDatum); an element of the finite part \mathcal{W}_f.Definition 2.7, p. 9 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 37 def Data.upsilonY := delta% vacuumDatum (D.spaceY j) (D.spaceY _) (D.𝔪 ϑ 1)abbrev
Data.lines 42–43assemblythetaKernelY Definition. For admissible data D, a tame character \vartheta and j \in \mathbb{N}: the theta kernel of the pair (Y_j, Y_{j+1}) (pairThetaKer), with the charactersrankTwist(\nu, Y_j) = \nu\cdot\upsilon^{\lfloor n/2\rfloor} andrankTwist(\nu, Y_{j+1}) = \nu\cdot\upsilon^{\lfloor n'/2\rfloor}, n, n' the ranks of Y_j, Y_{j+1} and \nu =D.(\vartheta, j + 1) = \mu^{0}_{j+1}\cdot\vartheta^{j+1}.chainChar Definition 2.7, p. 9 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 42 abbrev Data.thetaKernelY := pairThetaKer (D.spaceY j) (D.spaceY (j + 1))abbrev
Data.line 47assemblyliftTame Definition. For admissible data D, a tame character \vartheta and j \in \mathbb{N}:liftTame(\vartheta, j) =D.(\vartheta^{j+1}, j + 1) = \omega^{j+1}\cdot\psi_{\vartheta}^{j+1}, the tame part of the character \mu^{0}_{j+1}\vartheta^{j+1} of lift j + 1 (a family of characters of the residue fields).liftTamePart Definition 2.7, p. 9 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 47 abbrev Data.liftTame := D.liftTamePart (.pow ϑ (j + 1)) (j + 1)lemma
Data.lines 52–62argumentthetaKernelY_omega_upsilonY For admissible data D, a tame character \vartheta, j \in \mathbb{N}, k \in K_{0}(Y_j) and k' \in K_{0}(Y_{j+1}) with reductions g (e) and g' (e') at the places x ofD.(\vartheta) (chosen places and places of Q), such that g'_{x}\cdot(1; 0) = (1; 0)\cdot g_x for every x (h): \omega((1, k), (1, k'))\cdot\Upsilon_j = (\prod_{x}levelPlaces liftTame(\vartheta, j)_{x}(\det g'_{x})/liftTame(\vartheta, j)_{x}(\det g_x))\cdot\Upsilon_j, \omega the representation ofthetaKernelY(\vartheta, j).Structured proof, 5 steps Lemma 3.2, p. 17 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · lines 52–55 lemma Data.thetaKernelY_omega_upsilonY {k k' g g'} (e : reduceFamily _ k = g) (e' : reduceFamily (D.levelPlaces ϑ).placeAt k' = g') (h : ∀ x, (g' x).1.submatrix id (D.inclY j) = inclMatrix _ (D.inclY j) * (g x).1) : (thetaKernelY ϑ j).ω ((1, k), 1, k') (upsilonY ϑ j) = (∏ x, liftTame ϑ j _ (g' x).1.det / liftTame ϑ j _ (g x).1.det) • upsilonY ϑ j := bydef
blockNumberlines 66–67assemblyDefinition. For index types R, T and j \in \mathbb{N}:blockNumber(j) :BlockIndex(R, T, j) \to \{0, \ldots, j\} sends an index of R to 0 and an index of the l-th copy of T to l (by recursion: onBlockIndex(R, T, j + 1) =BlockIndex(R, T, j) \sqcup T, the old indices keep their number and the new ones get j + 1).Definition 2.4, p. 8 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · lines 66–67 def blockNumber {R T} : ∀ j, BlockIndex R T j → Fin (j + 1) | 0 => 0 | j + 1 => castSucc ∘ blockNumber j ⊕ᵥ fun _ ↦ last _lemma
blockNumber_eq_zerolines 69–70one-stepFor index types R, T, j \in \mathbb{N} and every index i ofBlockIndex(R, T, j):blockNumber(j)(i) = 0 iff i lies in the first block, the range offirstBlock(j) : R \hookrightarrowBlockIndex(R, T, j).Lemma 3.3, p. 17 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · lines 69–70 lemma blockNumber_eq_zero {R T} j : ∀ i, @blockNumber R T j i = 0 ↔ i ∈ Set.range (BlockIndex.firstBlock j) := j.rec (by tauto) fun _ _ ↦ show ∀ i, _ ↔ ∃ _, Sum.inl _ = i by simpa!instance
Data.line 72one-stepinstNonemptyY Instance. For admissible data D and j \in \mathbb{N}, the basis index set Y_j is non-empty.Definition 2.4, p. 8 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 72 instance Data.instNonemptyY : Nonempty (D.Y j) := .map (BlockIndex.firstBlock j) inferInstanceabbrev
Data.line 76assemblyFormY Definition. For admissible data D and j \in \mathbb{N}:FormY(j) is the space of forms on U(Y_j) (Y_j =D.j) of the typespaceY typeKernel(D.(j), signs), with the Petersson product;paramY D.is the doubled parameter of Y_j.paramY Definition 2.7, p. 9 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 76 abbrev Data.FormY := (D.spaceY j).Form (typeKernel (D.paramY j) _)abbrev
Data.lines 80–81assemblydatumY Definition. For admissible data D, a tame character \vartheta and j \in \mathbb{N}:datumY(\vartheta, j) is the datum \varphi \otimes \Upsilon on \operatorname{Hom}(Y_j, Y_{j+1}) of lift j + 1: the polynomial vector of the joint harmonicD.(0, false, true, j, false, 0, j, 0, \cdot) at infinity, integrated (gridHarmonic Space.) with the finite datum \Upsilon_j =integrated upsilonY(\vartheta, j).Definition 2.7, p. 9 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 80 abbrev Data.datumY := ((D.spaceY j).hom (D.spaceY (j + 1))).integratedlemma
Data.lines 86–89one-stepisArrow_datumY For admissible data D, a tame character \vartheta and j < m (hj):datumY(\vartheta, j) satisfiesIsArrowforthetaKernelY(\vartheta, j) from forms of typeD.(j) on Y_j to forms of typeparamY D.(j + 1) on Y_{j+1} (forms of the first type are rapid and their lifts are forms of the second type), andparamY IsArrowfor the swapped kernel from the conjugate type on Y_{j+1} to the conjugate type on Y_j.Lemma 3.1, p. 16 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · lines 86–88 lemma Data.isArrow_datumY {j} (hj : j < D.m) : IsArrow (thetaKernelY ϑ j) (typeKernel (D.paramY j) _) (typeKernel (D.paramY _) _) (datumY ϑ j) ∧ IsArrow (thetaKernelY ϑ j).swap (star (typeKernel (D.paramY _) _)) (star (typeKernel (D.paramY j) _)) (datumY ϑ j) :=def
Data.lines 93–94assemblyliftY Definition. For admissible data D, a tame character \vartheta and j \in \mathbb{N}:liftY(\vartheta, j) :FormY(j) \toFormY(j + 1), F \mapsto [K_{0} :levelY(\vartheta, j)]\cdotformLift(thetaKernelY(\vartheta, j),datumY(\vartheta, j))(F), the theta lift with datumdatumY(\vartheta, j) multiplied by the index oflevelY(\vartheta, j) in K_{0}.Definition 2.7, p. 9 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 93 def Data.liftY : D.FormY j →ₗ[ℂ] D.FormY (j + 1) :=def
Data.lines 98–99assemblylastResLevel Definition. For admissible data D and a tame character \vartheta: the subgroup of \prod_{x} \mathrm{GL}(Y_m mod w_x), over the places x ofD.(\vartheta), of the families whose component at each x lies in the block parabolic (block upper triangular forlevelPlaces blockNumber(m)) intersected with \bot at the chosen places and with \top at the places of Q: the component is 1 at the chosen places above g, and any block upper triangular matrix (the full block parabolic, not all of \mathrm{GL}(Y_m mod w)) at the places of Q.Definition 2.9, p. 10 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 98 def Data.lastResLevel : Subgroup (∀ x, GL (D.Y D.m) (ResField ((D.levelPlaces ϑ).placeAt x))) :=def
Data.lines 103–104assemblyliftChainY Definition. For admissible data D, a tame character \vartheta and j \in \mathbb{N}:liftChainY(\vartheta, j) =liftY(\vartheta, j - 1) \circ \cdots \circliftY(\vartheta, 0), restricted to the formsD.(Y_{0}) of principal level g on Y_{0}: the composite of the first j theta lifts along Y_{0}, \ldots, Y_j.principalForms Definition 2.8, p. 9 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 103 def Data.liftChainY : D.principalForms (D.spaceY 0) →ₗ[ℂ] D.FormY j :=def
Data.line 107assemblyι Definition. For admissible data D and a tame character \vartheta: \iota_{\vartheta} =toAlgForm\circliftChainY(\vartheta, m), the chain of m lifts from forms of principal level on Y_{0} to forms on the definite space Y_m, followed by the isomorphism of such forms with algebraic forms (Space., using \mathrm{isHCParam}_Y).toAlgForm Definition 2.8, p. 9 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 107 def Data.ι := (Space.toAlgForm _ D.isHCParam_Y).1 ∘ₗ liftChainY ϑ _lemma
Data.lines 111–131argumentalgFormRep_iota For admissible data D, a tame character \vartheta, s \in \mathsf{G}, a form y of principal level on Y_{0} and k \in K_{0} on Y_m with reductions g (e) at the places x ofD.(\vartheta) that are block upper triangular forlevelPlaces blockNumber(m) (h), with block 0 equal to s_x at the chosen places (h'): k\cdot\iota_{\vartheta}(y) = (\prod_{x} \prod_{l<m}liftTame(\vartheta, l)_{x}(\det of block l + 1 of g_x))\cdot\iota_{\vartheta}(s\cdot y), where k\cdot is right translation of algebraic forms and s\cdot y =D.(s)(y).principalRep Structured proof, 12 steps Input 7, p. 12 of Good forms and rows: equal Hecke traces on unitary groups that differ at the real places Proposition 3.4, p. 18 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · lines 111–114 lemma Data.algFormRep_iota y k g (e : reduceFamily (D.levelPlaces ϑ).placeAt k = g) (h : ∀ x, (g x).1.BlockTriangular (blockNumber _)) (h' : ∀ x, (g (.inl x)).1.submatrix (BlockIndex.firstBlock _) (BlockIndex.firstBlock _) = (s x).1) : algFormRep _ _ k.1 (ι ϑ y) = (∏ x, ∏ l : Fin _, liftTame ϑ l _ ((g x).1.toSquareBlock (blockNumber _) l.succ).det) • ι ϑ (D.principalRep _ s y) := bydef
Data.lines 135–137assemblylastLevelChar Definition. For admissible data D and a tame character \vartheta: the homomorphismlastResLevel(\vartheta) \to \mathbb{C} sending \kappa to \prod_{x} \prod_{l<m}liftTame(\vartheta, l)_{x}(\det \kappa_{x, l+1}), over the places x ofD.(\vartheta) and the blocks l + 1 \ge 1 (levelPlaces blockHom),liftTame(\vartheta, l) the tame part of \mu^{0}_{l+1}\vartheta^{l+1}.Definition 2.9, p. 10 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 135 def Data.lastLevelChar : lastResLevel ϑ →* ℂ := ∏ x, ∏ l : Fin _,def
Data.lines 141–145assemblyiotaAtLevel Definition. For admissible data D and a tame character \vartheta: \iota_{\vartheta} with its target restricted to the spaceLevelFormof algebraic forms on Y_m of weight (D.,columnsY D.(m)) on which the level cut out bylastEntry lastResLevel(\vartheta) acts throughlastLevelChar(\vartheta); the restriction is possible byalgFormRep_iotawith s = 1.Input 7, p. 12 of Good forms and rows: equal Hecke traces on unitary groups that differ at the real places Definition 2.9, p. 10 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · lines 141–142 def Data.iotaAtLevel : D.principalForms (D.spaceY 0) →ₗ[ℂ] LevelPlaces.LevelForm _ _ (lastLevelChar ϑ) D.columnsY (D.lastEntry D.m) :=def
Data.lines 149–150assemblygroupLift Definition. For admissible data D, a tame character \vartheta and s \in \mathsf{G}: a chosen element of K_{0} on Y_m (liftResidue) whose reductions are \operatorname{diag}(s_x, 1) at the chosen places above g and 1 at the places of Q (the familyfirstBlockHom(s)).Definition 2.9, p. 10 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 149 def Data.groupLift :=lemma
Data.lines 154–161argumentiota_principalRep For admissible data D, a tame character \vartheta, s \in \mathsf{G} and a form y of principal level on Y_{0}: \iota_{\vartheta}(s\cdot y) =groupLift(\vartheta, s)\cdot\iota_{\vartheta}(y), s\cdot y =D.(s)(y) and the right side the right translate of the algebraic form: \iota_{\vartheta} commutes with \mathsf{G}.principalRep Structured proof, 5 steps Corollary 3.5, p. 18 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · lines 154–155 lemma Data.iota_principalRep y : ι ϑ (D.principalRep _ s y) = algFormRep _ _ (groupLift ϑ s) (ι ϑ y) := bylemma
card_parabolic_blockNumberlines 163–173argumentFor finite index types N, T and j \in \mathbb{N}: there is one k \in \mathbb{N} such that for every commutative ring R (finite or not),Nat.of the subgroup of \mathrm{GL}(card BlockIndex(N, T, j), R) of the matrices that are block upper triangular forblockNumber(j) equalsNat.(\mathrm{GL}_N(R))\cdotcard Nat.(\mathrm{GL}_T(R))^{j}\cdotcard Nat.(R)^{k} (card Nat.is 0 on an infinite type). For a finite ring R this counts those matrices; that reading is a special case.card Structured proof, 6 steps Lemma 3.3, p. 17 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · lines 163–164 lemma card_parabolic_blockNumber j : ∃ k, ∀ R [CommRing R], Nat.card (parabolic (R := R) (@blockNumber N T j)) = .card (GL N R) * .card (GL T R) ^ j * .card R ^ k := j.rec ⟨0, by simp!lemma
LevelPlaces.lines 175–177one-stepker_reductionK₀_eq For a CM field E, a system X of level places and a finite index type N: the kernel of reduction K_{0} \to \mathrm{GL}_N(O_E/\mathfrak{m}) modulo \mathfrak{m} =levelModulus(X, 1) equals the kernel of the family of reductions at the places of X (reduceFamily).Lemma 3.3, p. 17 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · lines 175–176 lemma LevelPlaces.ker_reductionK₀_eq {N : Type} [Fintype N] : (X.levelModulus 1).reductionK₀.ker = (reduceFamily (n := N) X.placeAt).ker := by ext; simp [Units.ext_iff.translemma
LevelPlaces.lines 179–181one-stepcard_levelModulus_resRing For a CM field E, a system X of level places and e \in \mathbb{N}: |O_E/levelModulus(X, e)| = (\prod_{i} N(w_i))^{e}\cdot\prod_{i} N(v_i), the w_i the chosen places and the v_i the twist places of X.Lemma 3.3, p. 17 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · lines 179–180 lemma LevelPlaces.card_levelModulus_resRing e : Fintype.card (X.levelModulus e).ResRing = (∏ i, (X.chosenPlace i).q) ^ e * ∏ i, (X.twistPlace i).q :=lemma
LevelPlaces.lines 183–185automationcard_GL_levelModulus For a finite index type N, a CM field E and a system X of level places: |\mathrm{GL}_N(O_E/levelModulus(X, 1))| =stdLevelIndex(levelOf(placeAtX, \bot)) = [K_{0} :levelOf(placeAtX, \bot)].Lemma 3.3, p. 17 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · lines 183–184 lemma LevelPlaces.card_GL_levelModulus : Fintype.card (GL N (X.levelModulus 1).ResRing) = stdLevelIndex (levelOf (n := N) X.placeAt ⊥) := bydef
Data.lines 193–196assemblygradingY Definition. For admissible data D and k \le 2\varrho + 1 (hk, default by omega; note m = 2\varrho + 2): the grading of Y_k =D.(k) that presents it as X_k plus a string of length 2\varrho + 1 - k = m - 1 - k, with indexingspaceY D.(k), norm N (the level prime) and constant c = -(\jmath\cdot g\cdot\varpi)^{-1}, \jmath from the Weil data, g = g_{0}g_{1} and \varpi the chosen generator of the different (P.\varpi s).indexEquivY Definition 2.6, p. 8 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 193 def Data.gradingY k (hk : k ≤ 2 * D.ϱ + 1 := by omega) := (⟨D.indexEquivY k (by grind), by grinddef
Data.lines 200–202assemblylastGrading Definition. For admissible data D and M with m = M (e): the grading of Y_M that presents it as a space with basisD.(M) (rank n_M - 1) in grade 0 plus a string of length 0, with norm N and constant 1 (Y_M is standard: J = 1, frame 1).InitIndex Definition 2.6, p. 8 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 200 def Data.lastGrading {M} (e : D.m = M) : Grading (D.spaceY M) D.N (D.InitIndex M) 0 := e ▸ bydef
Data.lines 206–209assemblypairEvalY Definition. For admissible data D and i \in \mathbb{N}: the finite evaluationArrowPair.of the pair of arrows Y_{2i} \to Y_{2i+1} \to Y_{2i+2}: offinEval middlePair(gradingY(2i),gradingY(2i+1),gradingY(2i+2)) if i < \varrho, oflastPair(gradingY(2\varrho),gradingY(2\varrho+1),lastGrading, with \pi\cdot\overline{\pi} = N) if i = \varrho, and 0 if i > \varrho.Definition 2.17, p. 13 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 206 def Data.pairEvalY i := by refine if _ : i < D.ϱ then (middlePair (D.gradingY (2 * i))abbrev
Data.line 212assemblycutBound Definition. For admissible data D:cutBound= g^{f\cdot n_m^{2}}, g = g_{0}g_{1}, f the number of infinite places of E, n_m =Data.m.n Definition 2.17, p. 13 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 212 abbrev Data.cutBound := D.gProd ^ (D.f * D.n D.m ^ 2)def
Data.lines 216–217assemblytranslatedUpsilon Definition. For admissible data D, a tame character \vartheta, a tuple y = (y_k) of finite adelic unitary points of the Y_k and k \in \mathbb{N}:translatedUpsilon(\vartheta, y, k) = \omega_{\mathrm{D.chainChar}(\vartheta, k+1)}(y_k, y_{k+1})\cdot\Upsilon_k, the finite datumupsilonY(\vartheta, k) moved by (y_k, y_{k+1}) under the twisted finite Weil action (liftWeilFin).Definition 2.17, p. 13 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 216 def Data.translatedUpsilon ϑ (y : ∀ _, _) k :=def
Data.lines 221–222assemblyevaluatedDatum Definition. For admissible data D, a tame character \vartheta, a tuple y and i \in \mathbb{N}:evaluatedDatum(\vartheta, y, i) =pairEvalY(i)(translatedUpsilon(\vartheta, y, 2i) \boxtimestranslatedUpsilon(\vartheta, y, 2i + 1)), the finite evaluation of pair i on the arrow product of the moved data of lifts 2i + 1 and 2i + 2.Definition 2.17, p. 13 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/GradingsOfY.lean · line 221 def Data.evaluatedDatum ϑ y i :=instance
Data.lines 19–27computationhasLogBound_varpi Instance. For admissible data D, an infinite place v of E and a Boolean u:D.(u, |\varpi|_{v}, (12 if u else 10)\cdot\log x): |v(\varpi)| \le x^{12} and |v(\varpi)| \ge x^{10}, \varpi = P.\varpi(s) the chosen generator of the different (its absolute value at v is that of P'(\zeta) times \sqrt{d}, computed from the cyclotomic polynomial).HasLogBound Lemma 5.1, p. 8 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · lines 19–20 instance hasLogBound_varpi (v : D.Φ) (u) : D.HasLogBound u (v (P.ϖ D.s)) (ite u 12 10 * D.logX) := byinstance
Data.lines 30–33computationhasLogBound_rootDisc Instance. For admissible data D and a Boolean u:D.(u, \mathrm{rd}_E, (12 if u else 10)\cdot\log x): the root discriminant \mathrm{rd}_E, the geometric mean of the |\varpi|_{v}, lies in [x^{10}, x^{12}].HasLogBound Lemma 5.1, p. 8 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 30 instance hasLogBound_rootDisc (u) : D.HasLogBound u D.rootDisc (ite u 12 10 * D.logX) := have :=abbrev
Data.line 37assemblypiGBar Definition. For admissible data D: \overline{\pi}_g =D., the complex conjugate of the element \pi_g \in \mathcal{O}_K of norm g_{0}g_{1} (the fieldpiGBar piGof D), as an integer of E; the chosen places are its prime divisors.The Lean statement
New/Seesaw/IndexTypes.lean · line 37 abbrev piGBar := star (algebraMap _ (𝓞 D.E) D.piG)def
Data.line 41assemblyIsChosen Definition. For admissible data D and a finite place w of E:D.(w) holds when w divides \overline{\pi}_g.IsChosen The Lean statement
New/Seesaw/IndexTypes.lean · line 41 def IsChosen (w : FinPlace D.E) := D.piGBar ∈ w.1abbrev
Data.line 45assemblyChosenPlace Definition. For admissible data D and i \in \{0, 1\}:D.(i) is the type of finite places w of E that divide both \overline{\pi}_g and g_i (the chosen places above g_i).ChosenPlace The Lean statement
New/Seesaw/IndexTypes.lean · line 45 protected abbrev ChosenPlace i := {w : FinPlace _ // D.piGBar ∈ w.1 ∧ ↑(D.g i) ∈ w.1}lemma
Data.lines 47–48one-steppiGBar_mul_star For admissible data D: \overline{\pi}_g\cdot\operatorname{conj}(\overline{\pi}_g) = g_{0}g_{1} =D..gProd Lemma 3.2, p. 6 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 47 lemma piGBar_mul_star : D.piGBar * star D.piGBar = D.gProd := bylemma
Data.line 50one-steppiG_ne_zero For admissible data D: \pi_g \ne 0.Lemma 3.2, p. 6 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 50 @[simp] lemma piG_ne_zero : D.piG ≠ 0 := (by simpa [·, ne] using D.norm_piG)lemma
Data.line 52automationpiGBar_ne_zero For admissible data D: \overline{\pi}_g \ne 0.Lemma 3.2, p. 6 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 52 lemma piGBar_ne_zero : D.piGBar ≠ 0 := by simplemma
Data.lines 54–55one-stepexists_cofactor For admissible data D and i \in \{0, 1\}: there is a natural number c with \overline{\pi}_g\cdot\operatorname{conj}(\overline{\pi}_g) = g_i\cdot c and g_i coprime to c (c = g_{1-i}; the primes are distinct).Lemma 3.2, p. 6 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 54 lemma exists_cofactor {i} : ∃ c : ℕ, D.piGBar * star D.piGBar = D.g i * c ∧ (D.g i).Coprime c :=lemma
Data.lines 57–58automationisChosen_iff For admissible data D and a finite place w:D.(w) iffIsChosen D.(w) and g_i \in w for some i \in \{0, 1\}.IsChosen Lemma 3.2, p. 6 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 57 lemma isChosen_iff : D.IsChosen w ↔ ∃ i, D.IsChosen w ∧ ↑(D.g i) ∈ w.1 := bylemma
Data.lines 62–63one-stepq_eq_g For admissible data D, i \in \{0, 1\} and a finite place w of E above g_i (premise): the absolute norm of w is g_i (w has residue degree one, as g_i \equiv 1 mod N_{1}d).Lemma 3.2, p. 6 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 62 lemma q_eq_g {i} {w : FinPlace D.E} : ↑(D.g i) ∈ w.1 → w.q = D.g i :=lemma
Data.lines 65–66automationfinite_isChosen For admissible data D: the set of chosen places {w :D.(w)} is finite.IsChosen Lemma 3.2, p. 6 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · lines 65–66 lemma finite_isChosen : {w | D.IsChosen w}.Finite := by simp [IsChosen, ← dvd_span_singleton, finite_factors]lemma
Data.lines 70–72one-stepexists_residue_char_of_order For admissible data D and a chosen place w (h): the residue field of w has a complex multiplicative character T of order exactly M_{\omega}^{2}, M_{\omega} =Parameters.(s) = (N_{0}d)^{s+6} (M_{\omega}^{2} divides N(w) - 1).Mω Lemma 3.3, p. 6 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · lines 70–71 lemma exists_residue_char_of_order (h : D.IsChosen w) : ∃ T : MulChar (ResField w) ℂ, orderOf T = P.Mω D.s ^ 2 := exists_mulChar_orderOf _ (by grind [isChosen_iff, q_eq_g, dvd_g_sub_one,def
Data.line 76assemblyω Definition. For admissible data D and a finite place w: \omega_w = (the chosen character of order M_{\omega}^{2} ofexists_residue_char_of_order)^{M_{\omega}} if w is chosen, and the trivial character otherwise.The Lean statement
New/Seesaw/IndexTypes.lean · line 76 def ω w := if h : D.IsChosen w then (D.exists_residue_char_of_order h).choose ^ P.Mω D.s else 1lemma
Data.lines 79–80automationorderOf_ω For admissible data D and a chosen place w (h): \omega_w has order exactly M_{\omega} = (N_{0}d)^{s+6}.Lemma 3.5, p. 6 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 79 lemma orderOf_ω (h : D.IsChosen w) : orderOf (D.ω w) = P.Mω D.s := bylemma
Data.line 82one-stepomega_eq_one_of_not_isChosen For admissible data D and a finite place w that is not chosen (premise): \omega_w = 1.Lemma 3.5, p. 6 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 82 @[simp] lemma omega_eq_one_of_not_isChosen : ¬D.IsChosen w → D.ω w = 1 := (dite_eq_right ·)lemma
Data.lines 84–85one-stepomega_zpow_mul_pow_eq_one For admissible data D, a finite place w, a family \psi of residue characters with \psi_w = 1 (h) and n \in \mathbb{Z}: ((\omega^{n}\cdot\psi)_{w})^{M_{\omega}} = 1.Lemma 3.5, p. 6 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 84 lemma omega_zpow_mul_pow_eq_one {ψ} (n : ℤ) (h : ψ w = 1) : (D.ω ^ n * ψ) w ^ P.Mω D.s = 1 := bylemma
Data.lines 89–97argumentexists_char_hasWeight For admissible data D and natural numbers a, n: there is a unitary character \mu of U(1)(\mathbb{A}), trivial on U(1)(E), of weight \sigma \mapsto -a\cdot w_{0}(\sigma) (w_{0} =Data.0) and tame part (\omega_w^{n})_{w} (w AutChar.).HasWeight Structured proof, 4 steps Theorem B, p. 2 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 89 lemma exists_char_hasWeight : ∃ μ, HasWeight μ (-a * D.w 0 ·) (D.ω ^ n) :=def
Data.line 101assemblymuFlat Definition. For admissible data D: \mu\flat =D., a chosen character of U(1)(\mathbb{A}) of weight -w_{0} and trivial tame part (muFlat exists_char_hasWeightwith a = 1, n = 0).The Lean statement
New/Seesaw/IndexTypes.lean · line 101 def muFlat := (D.exists_char_hasWeight 1 0).choosedef
Data.line 105assemblyχ Definition. For admissible data D: \chi = a chosen character of U(1)(\mathbb{A}) of weight 0 and tame part \omega (exists_char_hasWeightwith a = 0, n = 1).The Lean statement
New/Seesaw/IndexTypes.lean · line 105 def χ := (D.exists_char_hasWeight 0 1).chooselemma
Data.line 108automationmuFlat_hasWeight For admissible data D: \mu\flat has weight \sigma \mapsto -w_{0}(\sigma) and trivial tame part.Lemma 4.2, p. 7 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 108 lemma muFlat_hasWeight : D.muFlat.HasWeight (-D.w 0 ·) 1 := by grind [muFlat, pow_zero]lemma
Data.line 111one-stepchi_hasWeight For admissible data D: \chi has weight 0 and tame part \omega.Lemma 4.2, p. 7 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 111 lemma chi_hasWeight : D.χ.HasWeight 0 D.ω := by rw [Pi.zero_def]; grind [χ, pow_one]structure
Data.lines 115–122assemblyPair Definition (structure). For admissible data D, a pair consists of a character \nu of U(1)(\mathbb{A}) (anAutChar), c : \Phi \to \mathbb{N}, a family \psi of residue characters and a natural number z, such that \nu has weight \sigma \mapsto -c(\sigma) and tame part \psi (hasWeight), \psi_w = 1 at every place w that is not chosen (ψ_eq_one), 1 \le z \le t (z_mem), and z \le c(v) \le 4b for every infinite place v (le_c, c_{le}).The Lean statement
New/Seesaw/IndexTypes.lean · line 115 structure Pair wheredef
Data.line 126assemblyrowParameter Definition. For admissible data D, an infinite place v and i \in \mathbb{N}:D.(v, i) = k/2 - 1 - i if i + 1 < k, and h_{2} - w_{i+2-k}(v) otherwise (the entry i of the row parameter \varsigma at v; w^{-}_{j} = w_j - h_{2}).rowParameter The Lean statement
New/Seesaw/IndexTypes.lean · line 126 def rowParameter v i := ite (i + 1 < D.k) (D.k / 2 - 1 - i : ℤ) (D.h₂ - D.w (i + 2 - D.k) v)instance
(anonymous)lines 128–129one-stepInstance. For admissible data D and a Boolean u:D.(u, \Omega, (0 if u else -13\cdot\log x)): the period \Omega =HasLogBound P.(s) = \exp(bigOmega chowlaSelbergConst)\cdot2\pi/\mathrm{rd}_E satisfies |\Omega| \le 1 and \Omega \ge x^{-13}.The Lean statement
New/Seesaw/IndexTypes.lean · line 128 instance {u} : D.HasLogBound u (P.bigOmega D.s) (ite u 0 (-13 * D.logX)) :=def
Data.lines 133–134assemblylogLevelTarget Definition. For admissible data D: \lambda =D.= m\cdot(mean over the infinite places v of \log w(v)) + (m - 1)\cdot\log(g\cdot\mathrm{rd}_E/2\pi) - (15/2)\cdot\log b, with w =logLevelTarget D.and g = g_{0}g_{1}.nominalWeight The Lean statement
New/Seesaw/IndexTypes.lean · line 133 def logLevelTarget := D.m * ((∑ v, .log (D.nominalWeight v)) / D.f) + (D.m - 1) * .loglemma
Data.lines 137–141argumentlogLevelTarget_mem_Icc For admissible data D: m\cdot\log b \le \lambda \le 29\cdot m\cdot\log b, \lambda =D..logLevelTarget Structured proof, 4 steps Theorem A, p. 2 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 137 lemma logLevelTarget_mem_Icc : D.logLevelTarget ∈ Set.Icc (D.m * D.logB) (29 * D.m * D.logB) := bydef
Data.lines 145–146assemblyN Definition. For admissible data D: the level N, a prime chosen (from the fieldexists_prime_windowof D) with N \equiv 1 mod M_{\omega}^{2} and \log N \in [\lambda, \lambda + \sqrt{\log b}], \lambda =D..logLevelTarget The Lean statement
New/Seesaw/IndexTypes.lean · line 145 def N := (D.exists_prime_window _lemma
Data.line 149automationN_prime For admissible data D: the level N is prime.Theorem A, p. 2 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 149 lemma N_prime : D.N.Prime := by grind [N]lemma
Data.lines 151–152automationN_modEq_one For admissible data D: N \equiv 1 mod N_{1}d (D.).cycloConductor Theorem A, p. 2 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 151 lemma N_modEq_one : D.N ≡ 1 [MOD D.cycloConductor] := by grind [N, ModEq.of_dvd,lemma
Data.lines 157–158automationlog_N_mem_window For admissible data D: \lambda \le \log N \le \lambda + \sqrt{\log b}, \lambda =D..logLevelTarget Theorem A, p. 2 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · lines 157–158 lemma log_N_mem_window : .log D.N ∈ Set.Icc D.logLevelTarget (D.logLevelTarget + √D.logB) := by grind [N]lemma
Data.lines 161–162automationlog_N_mem_Icc For admissible data D: m\cdot\log b \le \log N \le 30\cdot m\cdot\log b.Theorem A, p. 2 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 161 lemma log_N_mem_Icc : .log D.N ∈ Set.Icc (D.m * D.logB) (30 * D.m * D.logB) := byinstance
(anonymous)lines 164–165one-stepInstance. For admissible data D and a Boolean u:D.(u, \log N, (\log x)/2 + \log \log b + (32 if u else 0)).HasLogBound The Lean statement
New/Seesaw/IndexTypes.lean · line 164 instance {u} : D.HasLogBound u (.log D.N) (D.logX / 2 + D.logB.log + ite u 32 0) :=instance
(anonymous)line 167one-stepInstance. For admissible data D: Fact(N is prime).The Lean statement
New/Seesaw/IndexTypes.lean · line 167 instance : Fact D.N.Prime := ⟨D.N_prime⟩instance
(anonymous)lines 169–170one-stepInstance. For admissible data D:D.(N, 101\cdot\log b), i.e. N \ge b^{101}.HasLogLower The Lean statement
New/Seesaw/IndexTypes.lean · line 169 instance : D.HasLogLower D.N (101 * D.logB) :=lemma
Data.lines 173–175argumentexists_pi_mul_star For admissible data D: there is an integer \pi of E with \pi\cdot\overline{\pi} = N.Structured proof, 2 steps Theorem A, p. 2 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 173 lemma exists_pi_mul_star : ∃ π : 𝓞 D.E, π * star π = D.N :=def
Data.line 178assemblyπ Definition. For admissible data D: a chosen integer \pi of E with \pi\cdot\overline{\pi} = N (exists_pi_mul_star).The Lean statement
New/Seesaw/IndexTypes.lean · line 178 def π := D.exists_pi_mul_star.chooselemma
Data.line 182automationπ_mul_star For admissible data D: \pi\cdot\overline{\pi} = N.Theorem A, p. 2 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 182 lemma π_mul_star : D.π * star D.π = D.N := by grind [π]structure
Data.lines 186–192assemblyTameChar Definition (structure). For admissible data D, a tame character consists of a charactertoAutCharof U(1)(\mathbb{A}) trivial on U(1)(E), a finite set Q of finite places and a family \psi of residue characters such that the character has weight 0 and tame part \psi (hasWeight), \psi_w = 1 for w \notin Q (ψ_eq_one), \overline{w} \notin Q for w \in Q (star_notMem), and g_{0}g_{1}N is coprime to \prod_{w\in Q} N(w) (coprime, the seventh field). Nothing is asked of \psi_w for w \in Q: a tame character may mark a place of Q at which its tame part is trivial; the non-triviality at every marked place is the extra field ofData..Twist The Lean statement
New/Seesaw/IndexTypes.lean · line 186 structure TameChar whereabbrev
Data.line 195assemblyTameChar. levelNorm Definition. For a tame character \vartheta:levelNorm(\vartheta) = \prod_{w\in Q(\vartheta)} N(w), the product of the norms of the places of Q.The Lean statement
New/Seesaw/IndexTypes.lean · line 195 abbrev TameChar.levelNorm {D} (ϑ : @TameChar P D) := ∏ w ∈ ϑ.Q, w.qstructure
Data.line 199assemblyTwist Definition (structure). For admissible data D, a twist is a tame character (Data.) whose tame part is non-trivial at every place of its set Q (TameChar psi_ne_one: \psi_w \ne 1 for w \in Q).The Lean statement
New/Seesaw/IndexTypes.lean · line 199 structure Twist extends D.TameChar where psi_ne_one : ∀ w ∈ Q, ψ w ≠ 1instance
(anonymous)line 201one-stepInstance. For admissible data D: the trivial twist 1 (trivial character, Q = \emptyset, trivial tame part).The Lean statement
New/Seesaw/IndexTypes.lean · line 201 instance : One D.Twist := by use! 1, ∅, 1, .one <;> simpabbrev
Data.line 206assemblyTameChar. one Definition. For admissible data D: the trivial tame character, with empty set Q and trivial tame part.The Lean statement
New/Seesaw/IndexTypes.lean · line 206 abbrev TameChar.one {D} : @TameChar P D := Twist.toTameChar 1def
Data.line 210assemblyμ₀ Definition. For admissible data D and j \in \mathbb{N}: \mu^{0}_{j} = \mu\flat\cdot(\upsilon^{-h}\cdot\chi)^{j}, a character of U(1)(\mathbb{A}), with \upsilon the restricted splitting character (WeilData.) and h the gap.upsilonU1 The Lean statement
New/Seesaw/IndexTypes.lean · line 210 def μ₀ := D.muFlat * (WeilData.upsilonU1 ^ (-D.h : ℤ) * D.χ) ^ jlemma
Data.lines 213–215argumentmu₀_hasWeight For admissible data D and j \in \mathbb{N}: \mu^{0}_{j} has weight \sigma \mapsto -w_j(\sigma) and tame part \omega^{j}.Structured proof, 1 step Theorem B, p. 2 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 213 lemma mu₀_hasWeight : (D.μ₀ j).HasWeight (-D.w j ·) (D.ω ^ (j : ℤ)) := bydef
Data.line 218assemblyliftChar Definition. For admissible data D, a tame character \vartheta and j \in \mathbb{N}:D.(\vartheta, j) = \mu^{0}_{j}\cdot\vartheta (product of characters of U(1)(\mathbb{A})).liftChar The Lean statement
New/Seesaw/IndexTypes.lean · line 218 def liftChar ϑ j := D.μ₀ j * TameChar.toAutChar ϑdef
Data.line 222assemblyliftTamePart Definition. For admissible data D, a tame character \vartheta and j \in \mathbb{N}:D.(\vartheta, j) = \omega^{j}\cdot\psi_{\vartheta}, the family of residue characters \omega_w^{j}\cdot\psi_{\vartheta,w}; it is the tame part of \mu^{0}_{j}\vartheta.liftTamePart The Lean statement
New/Seesaw/IndexTypes.lean · line 222 def liftTamePart ϑ (j : ℕ) := D.ω ^ (j : ℤ) * TameChar.ψ ϑinstance
Data.lines 224–225automationhasWeight_liftChar Instance. For admissible data D, a tame character \vartheta and j \in \mathbb{N}:D.(\vartheta, j) has weight -w_j and tame partliftChar D.(\vartheta, j).liftTamePart Theorem B, p. 2 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · lines 224–225 instance hasWeight_liftChar {ϑ j} : (D.liftChar ϑ j).HasWeight (-D.w j ·) (D.liftTamePart ϑ j) := by simpa using! (mu₀_hasWeight ..).mul ϑ.hasWeightabbrev
Data.line 228assemblyLiftIndex Definition. For admissible data D:D.= \{j \in \mathbb{N} : 1 \le j \le m\}, the indices of the lifts.LiftIndex The Lean statement
New/Seesaw/IndexTypes.lean · line 228 abbrev LiftIndex := Set.Icc 1 D.mdef
BlockIndexline 231assemblyDefinition (by recursion on j). For index types S, T and j \in \mathbb{N}:BlockIndex(S, T, 0) = S andBlockIndex(S, T, j + 1) =BlockIndex(S, T, j) \sqcup T: the disjoint union of S and j copies of T (the index type of Y_j).The Lean statement
New/Seesaw/IndexTypes.lean · line 231 @[instance_reducible] def _root_.BlockIndex (S T : Type) | 0 => S | j + 1 => BlockIndex S T j ⊕ Tdef
BlockIndex.lines 234–235assemblyfirstBlock Definition. For index types S, T and j: the inclusion S \hookrightarrowBlockIndex(S, T, j) of the first block.The Lean statement
New/Seesaw/IndexTypes.lean · lines 234–235 def _root_.BlockIndex.firstBlock : ∀ j, S ↪ BlockIndex S T j | 0 => .refl _ | j + 1 => (BlockIndex.firstBlock j).trans .inldef
BlockIndex.lines 239–241assemblyequivSum Definition. For index types S, T, \alpha, a bijection \nu : S \simeq \alpha and j: a chosen bijectionBlockIndex(S, T, j) \simeq \alpha \sqcup (\{0, \ldots, j-1\} \times T) (for j = 0 it is \nu; for j + 1 one is chosen by cardinality).The Lean statement
New/Seesaw/IndexTypes.lean · line 239 def _root_.BlockIndex.equivSum (ν : S ≃ α) : ∀ j, BlockIndex S T j ≃ α ⊕ Fin j × Tinstance
instFintypeYTlines 245–246one-stepInstance. For finite index types S, T and every j:BlockIndex(S, T, j) is finite.Lemma 7.2, p. 11 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · lines 245–246 instance _root_.instFintypeYT : ∀ j, Fintype (BlockIndex S T j) | 0 => ‹_› | j + 1 => @instFintypeSum _ T (instFintypeYT j) _lemma
BlockIndex.lines 248–249automationcard For finite index types S, T and j \in \mathbb{N}: |BlockIndex(S, T, j)| = |S| + j\cdot|T|.Lemma 7.2, p. 11 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · lines 248–249 @[simp] lemma _root_.BlockIndex.card : Fintype.card (BlockIndex S T j) = Fintype.card S + j * Fintype.card T := by simp [Fintype.card_congr (BlockIndex.equivSum (.refl _) j)]def
Data.line 252assemblyϱ Definition. For admissible data D: \varrho = \lfloor m/2\rfloor - 1 (truncated at zero); then m = 2\varrho + 2.The Lean statement
New/Seesaw/IndexTypes.lean · line 252 def ϱ := D.m / 2 - 1abbrev
Data.line 255assemblyInitIndex Definition. For admissible data D and j:D.(j) = \{0, \ldots, n_j - 2\}, the basis indices of X_j other than the last (n_j - 1 elements).InitIndex The Lean statement
New/Seesaw/IndexTypes.lean · line 255 abbrev InitIndex := Fin (D.n j - 1)abbrev
Data.line 259assemblyX Definition. For admissible data D and j: X(j) =D.(j) \sqcup \{\operatorname{pt}\}, the basis index set of X_j (n_j indices, the point the last basis vector).InitIndex The Lean statement
New/Seesaw/IndexTypes.lean · line 259 abbrev X := D.InitIndex j ⊕ Unitabbrev
Data.line 263assemblyshape Definition. For admissible data D: the shape of Y_{0} (Shape): \varrho hyperbolic planes, the basis indices X(0) of X_{0}, and the point as the distinguished index.The Lean statement
New/Seesaw/IndexTypes.lean · line 263 abbrev shape : Shape := ⟨D.ϱ, D.X 0, .inr ()⟩def
Data.line 267assemblyRowIndex Definition. For admissible data D:D.= the Bessel index set of the shape: e_{1}, \ldots, e_{\varrho}, the indices of X_{0}, the middle vector z, and e\ast_{1}, \ldots, e\ast_{\varrho} — the basis index set of Y_{0}.RowIndex The Lean statement
New/Seesaw/IndexTypes.lean · line 267 @[reducible] def RowIndex := D.shape.BesselIndex deriving DecidableEq, Fintypeabbrev
Data.line 270assemblyY Definition. For admissible data D and j: Y(j) =BlockIndex(D., \{0, \ldots, t-1\}, j), the basis index set of Y_j (block R followed by j blocks of t indices).RowIndex The Lean statement
New/Seesaw/IndexTypes.lean · line 270 abbrev Y := BlockIndex D.RowIndex (Fin D.t) jlemma
Data.line 274automationcard_rowIndex For admissible data D: |D.| = r.RowIndex Lemma 7.4, p. 11 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 274 lemma card_rowIndex : Fintype.card D.RowIndex = D.r := by simp; grind [ϱ, n]instance
(anonymous)lines 276–277one-stepInstance. For admissible data D: a \log boundD.(u, r, l) for r gives the same for |HasLogBound D.| (= r).RowIndex The Lean statement
New/Seesaw/IndexTypes.lean · line 276 instance {u l} [D.HasLogBound u D.r l] : D.HasLogBound u (Fintype.card D.RowIndex) l :=def
Data.line 281assemblybasisNumber Definition. For admissible data D: a chosen bijectionD.\simeq \{0, \ldots, r - 1\}.RowIndex The Lean statement
New/Seesaw/IndexTypes.lean · line 281 def basisNumber := Fintype.equivFinOfCardEq D.card_rowIndexdef
Data.line 285assemblyparamW Definition. For admissible data D, an infinite place \tau and i \inD.:RowIndex D.(\tau, i) = 2\cdotparamW D.(\tau,rowParameter D.(i)), the doubled parameter on the W_j and on Y_{0}.basisNumber The Lean statement
New/Seesaw/IndexTypes.lean · line 285 def paramW τ i := 2 * D.rowParameter τ (D.basisNumber i)def
Data.line 289assemblyentrySign Definition (by equations).entrySign: \mathbb{N} \to \mathbb{N} \to \mathbb{N} \to \{\pm1\}:entrySign(o + 1, 0, a) = -entrySign(o, 0, a), and otherwiseentrySign(o, j, a) = (-1)^{o + a + \min(a - o, j)} (a - o truncated at zero).The Lean statement
New/Seesaw/IndexTypes.lean · line 289 def entrySign : ℕ → ℕ → ℕ → ℤˣ | o + 1, 0, a => -entrySign o 0 a | o, j, a => (-1) ^ (o + a + min (a - o) j)lemma
Data.line 291automationite_odd_eq_sub_emod For j \in \mathbb{N} and y \in \mathbb{Z}: (y - 1 if j mod 2 = 1, else y) = y - (j mod 2).Lemma 7.7, p. 12 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/IndexTypes.lean · line 291 lemma ite_odd_eq_sub_emod (y : ℤ) : ite (j % 2 = 1) (y - 1) y = y - j % 2 := by liadef
Data.line 295assemblysignsW Definition. For admissible data D, j and i \inD.:RowIndex D.(j, i) = -1 ifsignsW D.(i) \ge k + j - 1 (basisNumber D.(j)), and +1 otherwise: the signs of W_j.posRank The Lean statement
New/Seesaw/IndexTypes.lean · line 295 def signsW i := ite (D.posRank j ≤ D.basisNumber i) (-1 : ℤˣ) 1def
Data.line 299assemblychosen Definition. For admissible data D and a pair x = (i, w) with i \in \{0, 1\} and w \inD.(i):ChosenPlace D.(x) = w, the finite place underlying the pair.chosen The Lean statement
New/Seesaw/IndexTypes.lean · line 299 def chosen (x : Σ i, D.ChosenPlace i) := x.2.1abbrev
Data.line 302assemblyG Definition. For admissible data D: \mathsf{G} = \prod_{x} \mathrm{GL}_r(\mathbb{F}_{w_x}) (indicesD.), over the chosen places x = (i, w) above g_{0} and g_{1}.RowIndex The Lean statement
New/Seesaw/IndexTypes.lean · line 302 abbrev G := ∀ x, GL D.RowIndex (ResField (D.chosen x))instance
(anonymous)line 304one-stepInstance. For admissible data D and i \in \{0, 1\}:D.(i) is finite.ChosenPlace The Lean statement
New/Seesaw/IndexTypes.lean · line 304 instance (i) : Fintype (D.ChosenPlace i) := (D.finite_isChosen.sep _).fintypedef
Data.lines 308–310assemblygoodTupleFamilies Definition. For admissible data D: the finite set of families (c_x) of monic polynomials of degree r over the residue fields of the chosen places x above g_{0}, g_{1} whose restriction above each g_i lies ingoodTuples(M_{\omega}, r) (each an allowed label without roots of order dividing M_{\omega}, at least one primitive).The Lean statement
New/Seesaw/IndexTypes.lean · line 308 def goodTupleFamilies :=def
Data.line 314assemblye₀ Definition. For admissible data D: e_{0} = \sum_{c \in \mathrm{D.goodTupleFamilies}}tupleIdem(D., c) \in \mathbb{C}[\mathsf{G}], the good idempotent.RowIndex Definition 7.8, p. 12 of The characters, the level prime and the index sets of the data; the grid spaces Definition 2.11, p. 7 of Good forms and rows: equal Hecke traces on unitary groups that differ at the real places
The Lean statement
New/Seesaw/IndexTypes.lean · line 314 def e₀ := ∑ c ∈ D.goodTupleFamilies, tupleIdem D.RowIndex cdef
coverMultiplicityline 17assemblyDefinition. For a group H, subgroups S, A, J of H, a finite set T of left cosets of J and a coset t \in H/J:coverMultiplicity(S, A, T, t) is the number of left cosets r(S \cap A) \in S/(S \cap A) that have some representative r \in S with r^{-1}\cdot t \in T (equivalently t \in r\cdot T), i.e. the cardinality of the image of \{r \in S : r^{-1}\cdot t \in T\} in S/(S \cap A), counted as 0 if it is infinite. When T is stable under S \cap A the condition does not depend on the representative.Definition 2.20, p. 14 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/IntegralAsCosetSum.lean · line 17 noncomputable def coverMultiplicity t := (mk (s := A.subgroupOf S) '' {r | r⁻¹ • t ∈ T}).ncardlemma
coverMultiplicity_smullines 19–21one-stepFor a group H, subgroups S, A, J, a finite set T of cosets of J, p \in S and t \in H/J:coverMultiplicity(S, A, T, p\cdot t) =coverMultiplicity(S, A, T, t).Lemma 7.1, p. 27 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/IntegralAsCosetSum.lean · lines 19–20 lemma coverMultiplicity_smul (p : S) t : coverMultiplicity S A T (p • t) = coverMultiplicity S A T t := by rw [coverMultiplicity, ← ncard_smul_set p⁻¹,lemma
exists_cut_coverMultiplicity_dvdlines 26–51argumentLet E be a field with a CM type, \iota a finite index type, S, A, J, B subgroups of G_f(\iota) with A, J levels (k, o), J \le A (l) and A \le B (b), D \subseteq G_f(\iota) compact (cD), q a natural number and W a property of elements. AssumehD: every x \in D lies in B and has n with (x u x^{-1})^{q^{n}} \in A for all u \in J; andhW: for every x with W(x) some r \in S has r\cdot x \in D. Then there is a finite set T of cosets of J such that (i) T is stable under S \cap A (for p \in S with p \in A: t \in T \iff p\cdot t \in T); (ii) every x with xJ \in T lies in B; (iii) for every x with xJ \in T or W(x),coverMultiplicity(S, A, T, xJ) divides q^{j} for some j.Structured proof, 9 steps Proposition 7.2, p. 27 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/IntegralAsCosetSum.lean · lines 26–30 lemma exists_cut_coverMultiplicity_dvd {S A J : Subgroup (Gf E ι)} [k : IsLevel A] [o : IsLevel J] (l : J ≤ A) {D q B} (cD : IsCompact D) {W : _ → _} (b : A ≤ B) (hD : ∀ x ∈ D, x ∈ B ∧ ∃ n, ∀ u ∈ J, (x * u * x⁻¹) ^ q ^ n ∈ A) (hW : ∀ x, W x → ∃ r ∈ S, r * x ∈ D) : ∃ T : Finset (_ ⧸ J), (∀ p : S, ↑p ∈ A → ∀ t, t ∈ T ↔ p • t ∈ T) ∧ (∀ ⦃x⦄, ↑x ∈ T → x ∈ B) ∧ ∀ x, ↑x ∈ T ∨ W x → ∃ j, coverMultiplicity S A T x ∣ q ^ j := ((mk '' D).exists_subset_bijOn (orbit S)).elim fun C ⟨hC, _,lemma
measure_union_cosetslines 55–59argumentFor a group H with a measurable structure and measurable multiplication, a left-invariant measure \mu, a measurable subgroup J (h) and a finite non-empty set s of left cosets of J (f: \operatorname{ncard} s \ne 0): the union of the cosets in s has measure |s|\cdot\mu(J).Structured proof, 2 steps Lemma 7.1, p. 27 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/IntegralAsCosetSum.lean · lines 55–56 lemma measure_union_cosets [MeasurableSpace H] [MeasurableMul H] {μ} [IsMulLeftInvariant μ] (h : @MeasurableSet H _ J) {s} (f : ncard s ≠ 0) : μ (mk (s := J) ⁻¹' s) = s.ncard * μ J := bylemma
Grading.lines 67–107argumentexists_integral_eq_sum_over_cut Let E be a field with a CM type and Weil data, V a hermitian space (indices \iota, signs \varepsilon) with a grading Y (X plus a string of length s, norm N), A a level (k) and a a function on the real points. There is \kappa \in \mathbb{C} such that for every function P on the adelic unitary group G, every y automorphic on V, every level J, every finite set T of cosets of J and every b : G_f/J \to \mathbb{C} the following holds. If P is generic for Y (Grading.), y is automorphic, f = P\cdot y is integrable for the measure computing integrals over B(E^{+})\backslash G (B =IsGeneric Grading., B(E^{+}) its rational pointsbesselGroup Grading.), T is stable under B_f \cap A (B_f =ratBessel Grading.),besselFin coverMultiplicity(B_f, A, T, g_f J) \ne 0 whenever f(g) \ne 0, and \int_{[B]} f(r\cdot t) dr = [K_{0} : J]\cdot a(t_\infty)\cdot b(t_f J) for every t with t_f J \in T, then \int_{B(E^{+})\backslash G} f = \kappa\cdot\sum_{t\in T} b(t)/coverMultiplicity(B_f, A, T, t).Structured proof, 19 steps Proposition 7.3, p. 28 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/IntegralAsCosetSum.lean · lines 67–73 lemma Grading.exists_integral_eq_sum_over_cut [WeilData E] A [k : IsLevel A] (a : _ → ℂ) : ∃ κ, ∀ {P y J T} [IsLevel J] (b : _ ⧸ J → ℂ), Y.IsGeneric P → V.IsAutomorphic y → let f := P * y; Integrable f Y.ratBessel.qms → (∀ p : Y.besselFin, ↑p ∈ A → ∀ t, t ∈ T ↔ p • t ∈ T) → (∀ g, f g ≠ 0 → coverMultiplicity Y.besselFin A T g.2 ≠ 0) → (∀ t, t.2 ∈ T → ∫ r, f (r * t) ∂Y.besselMeasure = stdLevelIndex J * (a t.1 * b t.2)) → Y.ratBessel.qms[f] = κ * ∑ t ∈ T, (↑(coverMultiplicity Y.besselFin A T t))⁻¹ * b tlemma
div_mem_integralAwaylines 21–23argumentFor natural numbers q, c, d, k with c \mid d\cdot q^{k} (hypothesis h): the complex number d/c lies inintegralAway(q), i.e. |\iota(d/c)|_{l} \le 1 for every prime l coprime to q and every ring homomorphism \iota : \mathbb{C} \to \mathbb{C}_l.Structured proof, 2 steps Lemma 3.2, p. 16 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/IntegralAway.lean · line 21 lemma div_mem_integralAway (h : c ∣ d * q ^ k) : (d / c : ℂ) ∈ integralAway q := fun l _ c ↦ bylemma
localLevel_le_integralAbove_of_coprimelines 26–27one-stepFor a field E with a CM type, natural numbers q and l with l coprime to q (hypothesishl), and a finite index type n: the subgrouplocalLevel(n, \{w : q \notin w\}) of the finite adelic unitary group G_f(n) (elements whose component lies in \mathrm{GL}_n(O_w) at every finite place w not dividing q) is contained inintegralAbove(n, l) (elements integral invertible at every place above l): a place above l does not divide q.Lemma 3.2, p. 16 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/IntegralAway.lean · lines 26–27 lemma localLevel_le_integralAbove_of_coprime (hl : l.Coprime q) : localLevel n {w : FinPlace E | ↑q ∉ w.1} ≤ integralAbove n l := fun _ h w ↦ h w ∘ w.2.notMem_of_isCoprime_of_mem hl.castlemma
Parameters.lines 29–32automationnorm_finMultiplier_eq_one For a field E with a CM type and Weil data, a prime l, a ring homomorphism \iota : \mathbb{C} \to \mathbb{C}_l, a finite index type n and g \in G_f(n) lying inintegralAbove(n, l) (hypothesishg: integral invertible at every place above l): |\iota(\Delta_f(g))|_{l} = 1, where \Delta_f(g) =finMultiplierg is the finite multiplier of the Weil representation at g. (Proof: one simp call unfolding the multiplier into the values of the splitting character \chi_f, which have norm 1 at an element integral above l, and the valuation of the determinant of a saturating element.)Lemma 3.2, p. 16 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/IntegralAway.lean · lines 29–30 lemma Parameters.norm_finMultiplier_eq_one [WeilData E] (hg : g ∈ integralAbove n l) : ‖ι (finMultiplier g)‖ = 1 := by simp_all (maxDischargeDepth := 4) [finMultiplier, glMultiplier,lemma
AutChar.lines 34–36automationHasWeight. norm_padic_det For a field E with a CM type, a prime l, a ring homomorphism \iota : \mathbb{C} \to \mathbb{C}_l, a finite index type n, an element g \in G_f(n) lying inintegralAbove(n, l) (hypothesishg), a character a of U(1)(\mathbb{A}) with weight e and tame part \psi (instanceha:AutChar.a e \psi), and signs s: |\iota(a(\det(1, g)))|_{l} = 1, where \det(1, g) =HasWeight detFins g is the determinant of the adelic point (1, g) of U(V) (an adele of norm one).Lemma 3.2, p. 16 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/IntegralAway.lean · lines 34–35 lemma AutChar.HasWeight.norm_padic_det {a : AutChar E} {e ψ s} [ha : a.HasWeight e ψ] (hg : g ∈ integralAbove n l) : ‖ι (a.1 (detFin s g))‖ = 1 := by simp [ha.norm_padic_eq_prod,def
gradedLatticeBasislines 16–19assemblyDefinition. Let R be a commutative ring with an involution r \mapsto \overline{r}, X' and \iota index types, s a natural number, e : (X' \sqcup \{\operatorname{pt}\}) \sqcup \{0, \ldots, s-1\} \simeq \iota a bijection, a and \pi units of R, and u a unitary element of R (u\cdot\overline{u} = 1).gradedLatticeBasis(e, a, \pi, u) is the \iota \times \iota matrix obtained by relabelling rows and columns along e from the block matrix, for the decomposition (X' \sqcup \{\operatorname{pt}\}) \sqcup \{0, \ldots, s-1\} of rows and columns: upper left block the identity if s is even, and \operatorname{diag}(1 on X', \overline{\pi}^{-1} at \operatorname{pt}) if s is odd; upper right block 0; lower left block zero except in the column \operatorname{pt}, where the row of the string index b has u\cdot(\overline{\pi}\pi)^{-1} if b = s-1-b (the middle index z, which exists only for s odd) and 0 otherwise; lower right block diagonal, with entry u at every string index if s is odd, and, if s is even, u\cdot a^{-1} at the b with 2b < s and u\cdot\overline{a} at the other b. In words: a basis matrix whose string rows are multiplied by u; for odd s the identity with the column of the point e replaced by e/\overline{\pi} + z/(\pi\overline{\pi}), for even s \operatorname{diag}(1; a^{-1}, \ldots, a^{-1}, \overline{a}, \ldots, \overline{a}).The Lean statement
New/Seesaw/LatticeAndTorsionDefs.lean · lines 16–17 noncomputable def gradedLatticeBasis {R X' ι : Type*} {s} [CommRing R] [StarRing R] (e : (X' ⊕ Unit) ⊕ Fin s ≃ ι) (a π : Rˣ) (u : unitary R) := reindex e e (fromBlocks (ite (Odd s)def
Grading.lines 25–26assemblySpansLattice Definition. Let E be a field with a CM type, X' and \iota index types with \iota finite, \varepsilon signs on \iota, s a natural number, N \in E, V a hermitian space over E with basis indices \iota and signs \varepsilon, and Y a grading of V that presents it as (X' \sqcup \{\operatorname{pt}\}) plus a string of length s with norm N; let a, \pi be finite ideles of E (units of \mathbb{A}_f) and u a unitary finite adele.Y.(a, \pi, u) holds when the finite frame x_f of V (SpansLattice Space.) equalsxFin gradedLatticeBasis(e_Y, a, \pi, u)\cdot k for some k \in \mathrm{GL}_{\iota}(\hat{O}), e_Y the indexing of Y: the columns of x_f and of the graded lattice basis span the same \hat{O}-lattice.The Lean statement
New/Seesaw/LatticeAndTorsionDefs.lean · line 25 def Grading.SpansLattice [Fintype ι] {ε s N} {V : Space E ι ε} (Y : Grading V N (X' ⊕ _) s) a π u :=def
integralAwaylines 30–31assemblyDefinition. For a natural number n,integralAway(n) is the subring of \mathbb{C} of the complex numbers z such that |\iota(z)|_{l} \le 1 for every prime l coprime to n and every ring homomorphism \iota : \mathbb{C} \to \mathbb{C}_l (the closure under sums and products holds by the ultrametric inequality).The Lean statement
New/Seesaw/LatticeAndTorsionDefs.lean · line 30 def integralAway n := (by use! {z | ∀ l [Fact l.Prime], l.Coprime n → ∀ ι : _ →+* ℂ_[l], ‖ι z‖ ≤structure
IsAdmissibleCoeffslines 35–38assemblyDefinition (a structure with three fields). For a type X, a set A \subseteq X, natural numbers n and d, a proposition p, a real number B and a finitely supported function r : X \to \mathbb{C},IsAdmissibleCoeffs(A, n, d, p, B, r) holds when (support_subset) every x in the support of r lies in A; (integral) d\cdot r(x) \inintegralAway(n) for every x \in X; (size_le) if p holds, then \sum_{x \in \operatorname{supp} r} |\sigma(r(x))| \le B for every field automorphism \sigma of \mathbb{C}.The Lean statement
New/Seesaw/LatticeAndTorsionDefs.lean · line 35 structure IsAdmissibleCoeffs {X} (A : Set X) (n d : ℕ) (p : Prop) B (r : X →₀ ℂ) wheredef
weightedTranslationslines 46–48assemblyDefinition. For a number field E, an index type \iota, a natural number q and a family d : \iota \to \mathbb{A}_f of finite adeles of E,weightedTranslations(q, d) is the additive subgroup of (\mathbb{A}_f)^{\iota} of the vectors x such that d_i\cdot x_i is integral at every finite place w of E that does not divide q, for every i \in \iota.The Lean statement
New/Seesaw/LatticeAndTorsionDefs.lean · line 46 def weightedTranslations (d : ι → 𝔸f E) : AddSubgroup (ι → 𝔸f E) :=abbrev
translationsline 52assemblyDefinition. For a number field E, an index type \iota, a natural number q and a finite adele d of E, \operatorname{translations}(\iota, q, d) =weightedTranslations(q, i \mapsto d): the group of vectors x \in (\mathbb{A}_f)^{\iota} such that d\cdot x_i is integral at every finite place not dividing q, for every i.The Lean statement
New/Seesaw/LatticeAndTorsionDefs.lean · line 52 abbrev translations ι q d := weightedTranslations (E := E) q fun _ : ι ↦ ddef
IsSplitSquarefreelines 58–59assemblyDefinition. For a field E with a CM type, a finite set P of finite places of E, an element N \in E and a finite idele \pi \in (\mathbb{A}_f)^{\times} of E,IsSplitSquarefree(P, N, \pi) holds when N = \pi\cdot\overline{\pi} in \mathbb{A}_f and, for every finite place w, \pi_w is a uniformiser at w (valuation \exp(-1)) if w \in P and a unit (valuation 1) otherwise, and w \in P implies \overline{w} \notin P. So N is split along P and squarefree.The Lean statement
New/Seesaw/LatticeAndTorsionDefs.lean · line 58 def IsSplitSquarefree (P : Finset (FinPlace E)) (N : E) (π : (𝔸f E)ˣ) := ↑N = π * star π.1 ∧ ∀ w,lemma
Data.lines 20–33argumentGaugeLe. restrictToY_of_diag Let p be a prime with a chosen \iota_{p} : \mathbb{C} \to \mathbb{C}_p, d \in G_f(X_m) whose image at each \tau \in \Phi (adeleExtensionalongweightEmbedding(\iota_{p}, \tau)) is \operatorname{diag}(1, \ldots, 1, N) if the conjugate of the induced place of \tau divides \pi and the identity otherwise (hs), and \varphi an algebraic form on X_m withGaugeLe(d, c, \varphi) (h: the gauge of \varphi(g) at g\cdot d is \le c for all g). ThenGaugeLe(1, c,D.(\varphi)): the restriction to Y_m has gauge \le c.restrictToY Structured proof, 6 steps Lemma 7.4, p. 20 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/LiftCharacters.lean · lines 20–22 lemma Data.GaugeLe.restrictToY_of_diag {d : Gf _ _} (hs : ∀ τ, .map (adeleExtension (weightEmbedding ιₚ τ)) d.1 = diagGL (ite ·.isLeft 1 (ite (star (inducedPlace τ) ∈ D.piPlaces) (.mk0 ↑D.N out) 1))) {c φ} (h : GaugeLe d c φ) : GaugeLe 1 c (D.restrictToY φ) := fun g ↦lemma
Data.lines 37–39one-stepGaugeLe. restrictToY For a prime p \ne N (hp) with a chosen \iota_{p} : \mathbb{C} \to \mathbb{C}_p and an algebraic form \varphi on X_m: ifGaugeLe(1, c, \varphi) (premise), thenGaugeLe(1, c,D.(\varphi)) (the case d = 1 ofrestrictToY restrictToY_of_diag: no place above p divides \pi).Lemma 7.4, p. 20 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/LiftCharacters.lean · lines 37–38 lemma Data.GaugeLe.restrictToY (hp : p ≠ D.N) {c φ} : GaugeLe 1 c φ → GaugeLe 1 c (D.restrictToY φ) :=lemma
Data.lines 41–51argumentweylNormSq_restrictToY_le For admissible data D, a ring homomorphism \sigma : \mathbb{C} \to \mathbb{C}, an algebraic form \varphi on X_m and h \in U(Y_m)(\mathbb{A}_f):weylNormSq(\sigma \circD.(\varphi)(h)) \le \exp(x^{70} - (\sum_{\tau}restrictToY D.(\tau))\cdot\log N)\cdotbranchExp weylNormSq(\sigma \circ \varphi(D.(h))).borderU Structured proof, 6 steps Lemma 7.4, p. 20 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/LiftCharacters.lean · lines 41–42 lemma Data.weylNormSq_restrictToY_le (σ : ℂ →+* ℂ) φ h : weylNormSq (σ ∘ (D.restrictToY φ).1 h) ≤ .exp (D.x ^ 70 - (∑ τ, D.branchExp τ : ℝ) * .log D.N) * weylNormSq (σ ∘ φ.1 (D.borderU h)) := bydef
Data.line 55assemblynonInducedPlaces Definition. For admissible data D (and the chosen \iota_{p} : \mathbb{C} \to \mathbb{C}_p):D.= {\operatorname{conj}(nonInducedPlaces inducedPlace(\tau)) : \tau \in \Phi}, the complex conjugates of the primes of E above p induced by the embeddings \iota_{p} \circ \tau of the CM type.The Lean statement
New/Seesaw/LiftCharacters.lean · line 55 noncomputable def Data.nonInducedPlaces := univ.image fun τ ↦ star (D.inducedPlace τ)lemma
Data.lines 57–61argumentisSplitLevel_nonInducedPlaces For admissible data D and a chosen \iota : \mathbb{C} \to \mathbb{C}_N (PadicPlaceN):D.is a split level for N (nonInducedPlaces IsSplitLevel): disjoint from its conjugate, of norm N with uniformiser N, and the places above N are those of S \cup \overline{S}.Structured proof, 2 steps Lemma 7.1, p. 19 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/LiftCharacters.lean · lines 57–58 lemma Data.isSplitLevel_nonInducedPlaces [PadicPlace D.N] : IsSplitLevel D.nonInducedPlaces D.N := by use (by simpa [nonInducedPlaces, ← inducedPlace_mul] using fun τ ↦ (P.smul_ne_starabbrev
Data.line 67assemblydiagPointN Definition. For admissible data D, \iota : \mathbb{C} \to \mathbb{C}_N and the split level l of S =D.:nonInducedPlaces D.(j) = \mathrm{embedGL}_l(diagPointN diagN(D.(j),InitIndex D.)), the finite adelic unitary point on X_j supported on S \cup \overline{S} with component \operatorname{diag}(1, \ldots, 1, N) at the w \in S that divide \pi and 1 at the other w \in S.piPlaces The Lean statement
New/Seesaw/LiftCharacters.lean · line 67 noncomputable abbrev Data.diagPointN j := l.embedGL (diagN (D.InitIndex j) D.piPlaces)def
Data.line 71assemblyconjEmbedGL Definition. For admissible data D, \iota : \mathbb{C} \to \mathbb{C}_N, the split level l of S and a stage j: the homomorphism \mathrm{GL}(\prod_{w\in S} E_w) \to G_f(X_j), \mathrm{embedGL}_l followed by conjugation g \mapsto d\cdot g\cdot d^{-1} with d =D.(j).diagPointN The Lean statement
New/Seesaw/LiftCharacters.lean · line 71 noncomputable def Data.conjEmbedGL j := (MulAut.conj (D.diagPointN j)).toMonoidHom.comp l.embedGLabbrev
Data.lines 75–76assemblynonInducedRep Definition. For admissible data D, \iota : \mathbb{C} \to \mathbb{C}_N, the split level l of S and a stage j: the representation of \mathrm{GL}(\prod_{w\in S} E_w) on the smooth forms of stage j (D.j) by right translation throughStage D.(j).conjEmbedGL The Lean statement
New/Seesaw/LiftCharacters.lean · line 75 noncomputable abbrev Data.nonInducedRep j :=lemma
Data.lines 78–82argumentadeleExtension_map_diagN For admissible data D, \iota : \mathbb{C} \to \mathbb{C}_N, the split level l, a stage j, a finite set S of places and \tau \in \Phi: the image of \mathrm{embedGL}_l(diagN(D.(j), S)) underInitIndex adeleExtensionalongweightEmbedding(\iota_{p}, \tau) is \operatorname{diag}(1, \ldots, 1, N) if the conjugate ofinducedPlace(\tau) lies in S and the identity otherwise.Structured proof, 2 steps Lemma 7.1, p. 19 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/LiftCharacters.lean · lines 78–80 lemma Data.adeleExtension_map_diagN j S τ : .map (adeleExtension (weightEmbedding ιₚ τ)) (l.embedGL (diagN (D.InitIndex j) S)).1 = diagGL (ite ·.isLeft 1 (ite (star (inducedPlace τ) ∈ S) (.mk0 ↑D.N out) 1)) := congr($(atPlace_atSplits star_notMem _lemma
Data.lines 84–95computationlastColDatum_conj_ne_zero_iff For admissible data D, \iota : \mathbb{C} \to \mathbb{C}_N, the split level l of S =D., a stage j and k \in G_f(X_j): \mathbf{b}_e(components at S ofnonInducedPlaces D.(j)^{-1}\cdot k\cdotdiagPointN D.(j)) \ne 0 iff for every w \in S: k_w is integral; if \overline{w} divides \pi, every entry of the last row of (k^{-1})_{\overline{w}} - 1 has valuation \le \exp(-1); and if w divides \pi, every entry of the last row of k_w - 1 has valuation \le \exp(-1). (Computation: unfold the indicator and the conjugation by \operatorname{diag}(1, \ldots, 1, N).)diagPointN Lemma 7.2, p. 19 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/LiftCharacters.lean · lines 84–87 lemma Data.lastColDatum_conj_ne_zero_iff {j} (k : Gf _ (D.X j)) : l.lastColDatum lastBasisVector (atPlaces _ ((D.diagPointN j)⁻¹ * k * D.diagPointN j)).1 ≠ 0 ↔ ∀ w ∈ D.nonInducedPlaces, (∀ b c, v (k.atPlace w b c) ≤ 1) ∧ (star w ∈ D.piPlaces → ∀ b, v (((k⁻¹.atPlace (star w)).1 - 1) (.inr ()) b) ≤ exp (-1)) ∧ (w ∈ D.piPlaces → ∀ b, v (((k.atPlace w).1 - 1) (.inr ()) b) ≤ exp (-1)) := bylemma
Data.lines 97–101argumentatPlaces_conj_mem_mirabolic For admissible data D, \iota : \mathbb{C} \to \mathbb{C}_N, the split level l, a stage j and k \inD.(j): the components at S ofcolumnLevel D.(j)^{-1}\cdot k\cdotdiagPointN D.(j) lie in \mathrm{mirabolic}_l (integral, with last column \equiv e mod N).diagPointN Structured proof, 2 steps Lemma 7.2, p. 19 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/LiftCharacters.lean · lines 97–98 lemma Data.atPlaces_conj_mem_mirabolic {j} (k : D.columnLevel j) : atPlaces _ ((D.diagPointN j)⁻¹ * k.1 * D.diagPointN j) ∈ l.mirabolic :=lemma
Data.lines 103–108argumentmem_ramified_of_mem_ramifiedColumns For admissible data D, \iota : \mathbb{C} \to \mathbb{C}_N, the split level l and a ramified column \varphi (r): \varphi (as a form of stage 0) lies in ramified(D.(0)) (nonInducedRep IsSplitLevel.).ramified Structured proof, 2 steps Lemma 7.3, p. 20 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/LiftCharacters.lean · lines 103–104 lemma Data.mem_ramified_of_mem_ramifiedColumns {φ} (r : φ ∈ D.ramifiedColumns) : φ.1 ∈ l.ramified (D.nonInducedRep 0) := fun w ↦ bylemma
Data.lines 112–123argumentfourierOp_mem_column For admissible data D, \iota : \mathbb{C} \to \mathbb{C}_N, the split level l and a column \varphi (r):fourierOp(D.(0))(\varphi) is again a column (fixed bynonInducedRep D.(0)).columnLevel Structured proof, 4 steps Lemma 7.3, p. 20 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/LiftCharacters.lean · lines 112–113 lemma Data.fourierOp_mem_column {φ} (r : φ ∈ D.Column) : fourierOp (D.nonInducedRep 0) φ ∈ D.Column := fun k ↦ have G := D.atPlaces_conj_mem_mirabolic klemma
Data.lines 128–169argumentexists_indexDvd_fourierOp_pow For admissible data D, a chosen \iota : \mathbb{C} \to \mathbb{C}_N and the split level l of S =D.(defaultnonInducedPlaces isSplitLevel_nonInducedPlaces): there is e \le 4\cdot m\cdot f\cdot b\cdot\dim_\mathbb{C} \operatorname{Column}(D) (Module.) such thatfinrank IndexDvd(columns integral at 1, the pullback by F^{\varrho+1} of the lattice of the columns integral atD.(0), N^{e}), where F =diagPointN fourierOp(D.(0)): every finite family of \iota-integral columns admits a square matrix over O_{\iota} with determinant dividing N^{e} whose combinations are sent by F^{\varrho+1} to columns integral atnonInducedRep D.(0).diagPointN Structured proof, 23 steps Theorem D, p. 4 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/LiftCharacters.lean · lines 128–131 lemma Data.exists_indexDvd_fourierOp_pow {P} {D : Data P} [PadicPlace _] (l := D.isSplitLevel_nonInducedPlaces) : ∃ e : ℕ, e ≤ 4 * D.m * D.f * D.b * Module.finrank ℂ D.Column ∧ IndexDvd (integralFormsAt D.Column 1) ((integralFormsAt D.Column (D.diagPointN 0)).comap ((fourierOp (D.nonInducedRep 0) ^ (D.ϱ + 1)).restrictScalars _)) (D.N ^ e) := bylemma
Data.lines 171–174one-stepcharUnramifiedAt_rankTwist_of_N_mem For admissible data D, a tame character \vartheta, j \in \mathbb{N}, a finite index type n and a finite place w dividing N (h): the finite part of the base change ofrankTwist(D.(\vartheta, j), n) is unramified at w (One step:chainChar AutChar., the tame partHasWeight. charUnramifiedAt D.being trivial at w because w is not chosen and not in Q(\vartheta)).liftTamePart Lemma 7.5, p. 22 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/LiftCharacters.lean · lines 171–172 lemma Data.charUnramifiedAt_rankTwist_of_N_mem {P} (D : Data P) ϑ j n [Fintype n] w (h : ↑D.N ∈ w.1) : CharUnramifiedAt (rankTwist (D.chainChar ϑ j) n).baseChange.finPart w := by applylemma
Data.lines 178–180one-stepspaceChar_rankTwist For admissible data D, a tame character \vartheta and j, i \in \mathbb{N}:rankTwist(D.(\vartheta, i), X_j).chainChar spaceChar(|X_j|) =D.(\vartheta, i).chainChar baseChange: the Hecke character x \mapsto \nu(x/\overline{x})\cdot\upsilon^{\lfloor |X_j|/2\rfloor}\ldots\cdot\upsilon(x)^{-|X_j|} reduces to x \mapsto \nu(x/\overline{x}) because |X_j| = n_j is even.Lemma 7.5, p. 22 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/LiftCharacters.lean · lines 178–180 lemma Data.spaceChar_rankTwist {P} (D : Data P) ϑ j i : (rankTwist (D.chainChar ϑ i) (D.X j)).spaceChar (Fintype.card (D.X j)) = (D.chainChar ϑ i).baseChange := _root_.spaceChar_rankTwist (Even.two_dvd (by grind [card_X, n]))lemma
Grading.lines 17–50argumentIsAdaptedAt. ideleLogVal_add_rev_nonpos Let E be a stably unramified field with a CM type, V a hermitian space with a grading Y (X plus a string of length s, norm N), x \in G_f(\iota) with an adapted basis b of string diagonal \beta (h), and N = \pi\overline{\pi} split and squarefree along P (q:IsSplitSquarefree(P, N, \pi)). Assume (hg) that, if s is odd, for no n \in B_f and w \in P is (nx)^{-1}\cdot K_w(X)\cdot(nx) \subseteq K_w(V), i.e. some a \inmaxCompactAt(X, w) has (nx)^{-1}\cdotinclXFin(a)\cdot(nx) \notinmaxCompactAt(\iota, w). Then for every string index i and finite place w:ideleLogVal(\beta_i)_{w} +ideleLogVal(\beta_{s-1-i})_{\overline{w}} \le 0, i.e. \operatorname{ord}_w(\beta_i) + \operatorname{ord}_{\overline{w}}(\beta_{s-1-i}) \ge 0.Structured proof, 12 steps Proposition 6.5, p. 24 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/LinesStep.lean · lines 17–20 lemma Grading.IsAdaptedAt.ideleLogVal_add_rev_nonpos {x b β P π} [StablyUnram E] (h : Y.IsAdaptedAt x b β) (q : IsSplitSquarefree P N π) (hg : Odd s → ∀ᵉ (n ∈ Y.besselFin) (w : P), ¬∀ a ∈ maxCompactAt X w, (n * x)⁻¹ * (Y.inclXFin a * (n * x)) ∈ maxCompactAt ι w) i w : ideleLogVal (β i) w + ideleLogVal (β i.rev) (star w) ≤ 0 := bylemma
Grading.lines 57–94argumentHasNearLines. step Let E be a CM field with Weil data, Y a grading of V (X, string s) and Y' of V' (X', string s') with s' + 1 = s (hs), m = m' + (0 if s is odd, 1 if s is even) (hm). Assume:HasNearLines(Y, a, Q, m, k, x_f) (hx); v(c_w) = v((a\overline{a})_{w}) for all w, c the constant of Y (ha); the constant termconstTermAtT_{Y,Y'}(\mu, t \otimes f)(x, x') \ne 0 (n); b a finite idele withideleLogVal(\operatorname{conj}(\alpha/a))_{w} \leideleLogVal(b)_{w} + [w \in Q] for all w (hb); \varrho_f(b\cdot y)f = f for all y \in \hat{O} (hf); and every adapted basis of Y' at x'_{f} satisfiesideleLogVal(\beta_i)_{w} +ideleLogVal(\beta_{s'-1-i})_{\overline{w}} \le 0 (hg). ThenHasNearLines(Y', a, Q, m', k + 1, x'_{f}): one lift moves the lines of the lattice by at most one step above Q.Structured proof, 20 steps Proposition 6.6, p. 25 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/LinesStep.lean · lines 57–62 lemma Grading.HasNearLines.step {Y' : Grading V' N X' s'} [WeilData E] {μ f a m m' Q k x x' t} (hx : Y.HasNearLines a Q m k x.2) (hm : m = m' + ite (Odd s) 0 1) (hs : s' + 1 = s) (ha : ∀ w, v ((Y.c : 𝔸f E) w) = v ((a * star a.1) w)) (n : Y.constTermAtT Y' μ (integrated _ t f) x x' ≠ 0) b (hb : ∀ w, ideleLogVal (star (α / a)) w ≤ ideleLogVal b w + ite (w ∈ Q) 1 0) (hf : ∀ y ∈ stdLattice E _, finHeisOp _ (b.1 • y) f = f) (hg : ∀ {b β}, Y'.IsAdaptedAt x'.2 b β → ∀ i w, ideleLogVal (β i) w + ideleLogVal (β i.rev) (star w) ≤ 0) : Y'.HasNearLines a Q m' (k + 1) x'.2 := bylemma
isAdmissibleComb_weil_vacElemlines 12–22argumentLet E be a field with a CM type and Weil data, n a finite index type, s signs on n, V a hermitian space over E with basis indices n and signs s; let q and d be natural numbers, g \in G_f(n) a finite adelic unitary element, x \in (\mathbb{A}_f)^{n}, A a set of finite adelic vectors, p a proposition, and C, c \in \mathbb{C}. Assume e: c\cdot C = \Delta_f(g) (the finite multiplierfinMultiplierg of the Weil representation); I: g\cdot(x + y) \in A for every y \in \hat{O}^{n};hc: d\cdot(c/|\Delta_f(g)|^{2}) \inintegralAway(q);hp: if p, then |\sigma(c)| \le 1 for every automorphism \sigma of \mathbb{C}. Then \omega(1, g)(\varrho_f(x)\cdot\operatorname{vac}) satisfiesIsAdmissibleComb(z \mapsto C\cdot\varrho_f(z)\cdot\operatorname{vac}, A, q, d, p, 1, \omega(1, g)(\varrho_f(x)\cdot\operatorname{vac})), where \varrho_f =Space.is the finite Heisenberg operator, \operatorname{vac} the vacuum of \mathcal{S}(V) and \omega the Weil representation: the moved translate of the vacuum is an admissible combination of the vacuum translates C\cdot\varrho_f(z)\operatorname{vac}, z \in A, with denominator d and size 1.finHeisOp Structured proof, 3 steps Proposition 3.4, p. 17 of Two consecutive theta lifts: admissible combinations, arrow pairs and zero terms
The Lean statement
New/Seesaw/MovedVacuumComb.lean · lines 12–16 lemma isAdmissibleComb_weil_vacElem {E n : Type} [Field E] [CMType E] [WeilData E] [Fintype n] {s} (V : Space E n s) {q g x A p d C c} (e : c * C = finMultiplier g) (I : ∀ y ∈ stdLattice E n, g *ᵥ (x + y) ∈ A) (hc : (d : ℕ) * (c / ‖finMultiplier g‖ ^ 2) ∈ integralAway q) (hp : p → ∀ σ : ℂ ≃+* ℂ, ‖σ c‖ ≤ 1) : IsAdmissibleComb (C • V.finHeisOp · V.vacElem) A q d p 1 (V.ω (1, g) (V.finHeisOp x V.vacElem)) := byclass
IsSplitLevellines 25–29assemblyDefinition (class). For a field E with a CM type, a finite set P of finite places of E and a natural number N,IsSplitLevel(P, N) holds when (star_notMem) \overline{w} \notin P for every w \in P; (q_eq) every w \in P has absolute norm N; (v_natCast) N has valuation \exp(-1) in E_w, i.e. N is a uniformiser at w, for every w \in P; and (natCast_mem_iff) a finite place w divides N exactly when w \in P or \overline{w} \in P. So the places above N are those of P \cup \overline{P}, each of norm N with uniformiser N.Definition 2.1, p. 4 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 25 class IsSplitLevel (P : Finset (FinPlace E)) (N : outParam ℕ) wheredef
residueOverNlines 33–34assemblyDefinition. For a number field E, a finite set P of finite places, a natural number N and y \in (\mathbb{Z}/N)^{P}:residueOverN(y) is the finite adele with component \widetilde{y}_w/N at w \in P, \widetilde{y}_w \in \{0, \ldots, N-1\} the least non-negative representative of y_w, and 0 at the places outside P (extension by zero). The definition accepts every natural number N; the description by representatives in \{0, \ldots, N-1\} is for N > 0. For N = 0, ZMod 0 = \mathbb{Z} and division by 0 in the local field gives 0, soresidueOverN(y) = 0.Definition 2.1, p. 4 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 33–34 def residueOverN {E : Type} [Field E] [NumberField E] {P : Finset (FinPlace E)} {N : ℕ} (y : P → ZMod N) := adeleOfLocal P fun w ↦ (y w).val / Nlemma
idem_mul_residueOverNline 41automationFor a field E with a CM type, a finite set P, a prime N and y \in (\mathbb{Z}/N)^{P}: \operatorname{idem}(P)\cdotresidueOverN(y) =residueOverN(y), where \operatorname{idem}(P) is the finite adele equal to 1 at the places of P and 0 elsewhere.Lemma 3.1, p. 11 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 41 lemma idem_mul_residueOverN : idem P * residueOverN y = residueOverN y := by aesopdef
IsSplitLevel.lines 48–49assemblydiagN Definition. For a field E with a CM type, a finite set P of finite places withIsSplitLevel(P, N) (instance \Lambda; N prime), a finite index type n and a finite set S of finite places:diagN(n, S) \in \mathrm{GL}_{n+1}(\prod_{w\in P} E_w) is the diagonal matrix with entries 1 on n and, at the last index, the element of \prod_{w\in P} E_w with component N at the w \in P that lie in S and 1 at the others.Definition 2.3, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 48 def diagN [Λ : IsSplitLevel P N] : GL (n ⊕ Unit) (LocProd P) :=def
IsSplitLevel.lines 56–57assemblyresidueEquiv Definition. For a split level P for the prime N (instance \Lambda) and w \in P: a ring isomorphism from the residue field of E_w, which has N elements (prime order) because w has norm N, to \mathbb{Z}/N.Definition 2.2, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 56 def residueEquiv (w : P) :=def
IsSplitLevel.line 61assemblyreduction Definition. For a split level P for the prime N (instance \Lambda): the ring homomorphism from the ring O of integral elements of \prod_{w\in P} E_w to (\mathbb{Z}/N)^{P} that reduces each component modulo its prime and identifies the residue field with \mathbb{Z}/N (residueEquiv).Definition 2.2, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 61 def reduction := RingHom.pi fun w ↦ (Λ.residueEquiv w).toRingHom.comp (residueAt w)lemma
IsSplitLevel.lines 64–67one-stepreduction_eq_iff For a field E with a CM type, a split level P for the prime N (instance \Lambda), x \in O (integral elements of \prod_{w\in P} E_w) and c \in (\mathbb{Z}/N)^{P}: \operatorname{reduction}(x) = c if and only if for every w \in P, (x_w - \widetilde{c}_w)/N is integral in E_w (valuation \le 1), \widetilde{c}_w the least non-negative representative. (One simpa: the residue of x_w - \widetilde{c}_w is zero iff x_w - \widetilde{c}_w lies in the maximal ideal, generated by the uniformiser N.)Lemma 3.1, p. 11 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 64–65 lemma reduction_eq_iff {x c} : Λ.reduction x = c ↔ ∀ w, v ((x.1 w - (c w).val) / N) ≤ 1 := by simpa [funext_iff, reduction, Λ.v_natCast, div_le_iff₀, ← exp_add,instance
(anonymous)line 69one-stepInstance. For a split level P for the prime N (instance \Lambda): the reduction map O \to (\mathbb{Z}/N)^{P} is a local homomorphism: an element of O whose reduction is a unit is a unit (each component is a unit of the local ring O_w when its residue is non-zero).The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 69 instance : IsLocalHom Λ.reduction := ⟨by simp [reduction, Pi.isUnit_iff]⟩abbrev
IsSplitLevel.lines 72–73assemblyinclGL Definition. For a number field E, a finite set P of finite places and a finite index type n: the group homomorphism \mathrm{GL}_n(O) \to \mathrm{GL}_n(\prod_{w\in P} E_w) induced by the inclusion of the ring O of integral elements.Definition 2.2, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 72 abbrev inclGL {E n : Type} [Field E] [NumberField E] {P : Finset (FinPlace E)} [Fintype n] :=abbrev
IsSplitLevel.line 77assemblyreductionGL Definition. For a split level P for the prime N (instance \Lambda) and a finite index type n: entrywise reduction \mathrm{GL}_n(O) \to \mathrm{GL}_n((\mathbb{Z}/N)^{P}).Definition 2.2, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 77 abbrev reductionGL := map (n := n) Λ.reductionabbrev
IsSplitLevel.lines 80–81assemblyliftGL Definition. For a split level P for the prime N (instance \Lambda) and a finite index type n: a chosen set-theoretic section \mathrm{GL}_n((\mathbb{Z}/N)^{P}) \to \mathrm{GL}_n(O) ofreductionGL(which is surjective: lift each entry to its least non-negative representative; the lift of an invertible matrix is invertible because reduction is a local homomorphism).Definition 2.2, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 80 abbrev liftGL := surjInv (GL_map_surjective (n := n) Λ.reduction fun y ↦ ⟨⟨(y · |>.val),abbrev
IsSplitLevel.line 87assemblydiagNInv Definition. For a split level P for the prime N (instance \Lambda) and a finite index type n: u_{0} =diagN(n, P)^{-1} \in \mathrm{GL}_{n+1}(\prod_{w\in P} E_w), the diagonal matrix \operatorname{diag}(1, \ldots, 1, N^{-1}) at every place of P.Definition 2.3, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 87 abbrev diagNInv := (Λ.diagN n P)⁻¹def
IsSplitLevel.line 91assemblypsiN Definition. For a field E with a CM type and Weil data, a finite set P, a prime N and y \in (\mathbb{Z}/N)^{P}:psiN(y) = \psi_{0}(-residueOverN(y)), the standard finite additive character \psi_{0} (stdLattice.) at -y/N; by the source's comment, the value \psi_f(-\jmath\alpha\overline{\alpha}\cdot y/N).psi₀ Definition 2.1, p. 4 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 91 def psiN := stdLattice.psi₀ E (-residueOverN y)abbrev
IsSplitLevel.line 94assemblylastBasisVector Definition. For a finite set P of places, a natural number N and a finite index type n: the last standard basis vector e = (0, \ldots, 0, 1) of length n + 1 over the ring (\mathbb{Z}/N)^{P}, i.e. the function (i, w) \mapsto 1 if i is the last index and 0 otherwise.Definition 2.2, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 94 abbrev lastBasisVector : n ⊕ Unit → P → ZMod N := Pi.single (.inr ()) 1lemma
IsSplitLevel.lines 98–102argumentexists_GL_last_col_and_row For a finite index type n and a commutative ring R: there is a map k from vectors of length n + 1 over R to \mathrm{GL}_{n+1}(R) such that every vector y whose last entry is a unit of R is both the last column and the last row of k(y). (Construction: with C the identity matrix whose last column is replaced by y, k(y) = y_{\mathrm{last}}^{-1}\cdot C\cdot C^{T}.)Structured proof, 2 steps Lemma 2.5, p. 6 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 98–100 lemma exists_GL_last_col_and_row {R} [CommRing R] : ∃ k : _ → GL (n ⊕ _) R, ∀ y, IsUnit (y (.inr ())) → (k y).1.col (.inr ()) = y ∧ (k y).1.row (.inr ()) = y := ⟨fun y ↦ let C := updateCol 1 (.inr ()) ydef
IsSplitLevel.lines 106–107assemblyfourierOp Definition. For a field E with a CM type and Weil data, a split level P for the prime N (instance \Lambda), a finite index type n and a representation \pi of \mathrm{GL}_{n+1}(\prod_{w\in P} E_w):fourierOp(\pi) = \pi(u_{0})\cdot\sum_{y}psiN(y_last)\cdot\pi(\kappa_y), the sum over the vectors y \in ((\mathbb{Z}/N)^{P})^{n+1} whose last entry y_{\mathrm{last}} is a unit of (\mathbb{Z}/N)^{P}, where u_{0} =diagNInvand \kappa_y =inclGL(liftGL(k(y))) is an integral invertible matrix whose reduction has last column and last row y (k fromexists_GL_last_col_and_row). A Gauss-sum Hecke operator: Fourier transform in the last row, followed by u_{0}.Definition 2.6, p. 6 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 106 def fourierOp := π.ρ diagNInv * ∑ y with IsUnit (y (.inr ())),def
IsSplitLevel.lines 111–112assemblymirabolic Definition. For a split level P for the prime N (instance \Lambda) and a finite index type n: the subgroup of \mathrm{GL}_{n+1}(\prod_{w\in P} E_w) of the integral invertible matrices whose reduction modulo N fixes the last basis vector e, i.e. whose last column is \equiv (0, \ldots, 0, 1) mod N (the image underinclGLof the preimage underreductionGLof the stabiliser of e).Definition 2.3, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 111 def mirabolic := ((stabilizer (GL (n ⊕ Unit) _) (lastBasisVector : n ⊕ _ → P → ZMod N)).comapdef
IsSplitLevel.lines 116–117assemblyramified Definition. For a split level P for the prime N (instance \Lambda), a finite index type n and a representation \pi of \mathrm{GL}_{n+1}(\prod_{w\in P} E_w): \operatorname{ramified}(\pi) is the set of vectors \varphi of \pi such that for every w \in P there is an integral unit x of \prod_{v\in P} E_v with x \equiv 1 mod N at every v \in P other than w and \varphi in the image of 1 - \pi(x\cdot1), x\cdot1 the scalar matrix.Definition 2.3, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 116 def ramified :=abbrev
IsSplitLevel.lines 121–123assemblyliftFn Definition. For a split level P for the prime N (instance \Lambda) and finite index types n, n': the \mathbb{C}-linear map sending a function f on n' \times n matrices over (\mathbb{Z}/N)^{P} to the function on n' \times n matrices S over \prod_{w\in P} E_w equal to f(S mod N) if S is integral and 0 otherwise (liftIntegralFnfor the reduction).Definition 2.4, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 121 @[simps! -isSimp] abbrev liftFn := liftIntegralFn (m := n') (n := n) Λ.reductiondef
IsSplitLevel.lines 127–128assemblylastRowDatum Definition. \mathbf{e} =lastRowDatum: for a split level P for the prime N (instance \Lambda) and finite index types n, n', the function on (n'+1) \times (n+1) matrices S over \prod_{w\in P} E_w equal to 1 if S is integral with last row \equiv e = (0, \ldots, 0, 1) mod N, and 0 otherwise.Definition 2.4, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 127 def lastRowDatum :=def
IsSplitLevel.line 132assemblylastColDatum Definition. \mathbf{b}_y =lastColDatum(y): for a split level P for the prime N (instance \Lambda), finite index types n, n' and y \in ((\mathbb{Z}/N)^{P})^{n'}, the function on n' \times (n+1) matrices S over \prod_{w\in P} E_w equal to 1 if S is integral with last column \equiv y mod N, and 0 otherwise.Definition 2.4, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 132 def lastColDatum y := Λ.liftFn fun T : Matrix n' (n ⊕ _) _ ↦ ite (Tᵀ (.inr ()) = y) 1 0def
IsSplitLevel.line 136assemblycharDatum Definition. \mathbf{c}_y =charDatum(y): for a field E with a CM type and Weil data, a split level P for the prime N (instance \Lambda), finite index types n, n' and y \in ((\mathbb{Z}/N)^{P})^{n}, the function on (n'+1) \times n matrices S over \prod_{w\in P} E_w equal topsiN(r\cdot y) if S is integral with last row r mod N, and 0 if S is not integral.Definition 2.4, p. 5 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 136 def charDatum y := Λ.liftFn (n := n) (n' := n' ⊕ _) (psiN <| · (.inr ()) ⬝ᵥ y)structure
IsSplitLevel.lines 141–146assemblyLiftLaw Definition (structure). Let E be a field with a CM type and Weil data, P a split level for the prime N (instanceIsSplitLevelP N, which Lean takes as an argument), \pi, \pi' representations of \mathrm{GL}_{n+1} and \mathrm{GL}_{n'+1} over \prod_{w\in P} E_w, L a \mathbb{C}-linear map from functions on (n'+1) \times (n+1) matrices over \prod E_w to \operatorname{Hom}(\pi, \pi'), and \gamma \in \mathbb{C}.LiftLaw(\pi, \pi', L, \gamma) holds when (integral_equivariant) for all a \in \mathrm{GL}_{n+1}(O), b \in \mathrm{GL}_{n'+1}(O), every function f of residue matrices and every \varphi: \pi'(b)\cdot(L[liftFn(T \mapsto f(\operatorname{red}(b)\cdot T\cdot\mathrm{red}(a)))](\pi(a)\varphi)) = L[liftFnf]\varphi, red the reduction modulo N; and (diagNInv_law) \pi'(u_{0})(L[\mathbf{e}]\varphi) = \gamma\cdot L[\mathbf{b}_e](\pi(u_{0})\varphi) for every \varphi, with \mathbf{e} =lastRowDatum, \mathbf{b}_e =lastColDatumof the last basis vector and u_{0} =diagNInv.Definition 2.7, p. 6 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 141–142 structure LiftLaw (L : (Matrix (n' ⊕ Unit) (n ⊕ Unit) (LocProd P) → ℂ) →ₗ[ℂ] π →ₗ[ℂ] π') (γ : ℂ) wherelemma
IsSplitLevel.lines 161–165computationlastRowDatum_conj_u₀ For a split level P for the prime N (instance \Lambda), finite index types n, n' and an (n'+1) \times (n+1) matrix S over \prod_{w\in P} E_w: \mathbf{e}(u_{0}'^{-1}\cdot S\cdot u_{0}) = \mathbf{b}_e(S), with u_{0}, u_{0}' =diagNInvin ranks n + 1, n' + 1: u_{0}'^{-1}Su_{0} is integral with last row \equiv e mod N exactly when S is integral with last column \equiv e mod N. (Proof: the entries of u_{0}'^{-1}Su_{0} are those of S with the last row multiplied by N and the last column divided by N; one simp and one grind.)Lemma 3.3, p. 12 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 161–162 lemma lastRowDatum_conj_u₀ (S : Matrix (n' ⊕ _) (n ⊕ _) (LocProd P)) : lastRowDatum ((Λ.diagNInv (n := n'))⁻¹.1 * S * Λ.diagNInv (n := n).1) = lastColDatum lastBasisVector S := bylemma
IsSplitLevel.lines 167–168one-stepexists_inclGL_eq For a split level P for the prime N (instance \Lambda), a finite index type n, a function f on n \times n matrices over (\mathbb{Z}/N)^{P} and g \in \mathrm{GL}_n(\prod_{w\in P} E_w) withliftFn(f)(g) \ne 0 (a) andliftFn(f)(g^{-1}) \ne 0 (b): there is k \in \mathrm{GL}_n(O) with f(reductionGL(k)) \ne 0 andinclGL(k) = g (g and g^{-1} are integral).Lemma 3.3, p. 12 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 167–168 lemma exists_inclGL_eq {f} {g : GL n (LocProd P)} (a : Λ.liftFn f g ≠ 0) (b : liftFn f ↑g⁻¹ ≠ 0) : ∃ k, f (reductionGL k).1 ≠ 0 ∧ inclGL k = g := (mem_intGL.2 (by aesop) : g ∈ _).imp (by aesop)lemma
IsSplitLevel.lines 170–171one-steplastColDatum_ne_zero For a split level P for the prime N (instance \Lambda), a finite index type n and g \in mirabolic (premise): \mathbf{b}_e(g) \ne 0, i.e. g is integral with last column \equiv e mod N.Lemma 3.3, p. 12 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 170 lemma lastColDatum_ne_zero {g} : g ∈ Λ.mirabolic (n := n) → lastColDatum lastBasisVector g.1 ≠ 0 :=lemma
IsSplitLevel.lines 178–188argumentmirabolic_fix_fourierOp Let E be a field with a CM type and Weil data, P a split level for the prime N (instance, taken by Lean), n a finite index type, \pi a representation of \mathrm{GL}_{n+1}(\prod_{w\in P} E_w), \varphi a vector of \pi, T a linear endomorphism of \pi and g \in mirabolic (G). Assume h: \pi(a)(T(\pi(b)\varphi)) = \varphi for all a, b \in \mathrm{GL}_{n+1}(\prod E_w) with a\cdot g\cdot b \in mirabolic. Then T(F \varphi) = F \varphi for F =fourierOp(\pi).Structured proof, 3 steps Lemma 3.4, p. 13 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 178–179 lemma mirabolic_fix_fourierOp (T : π →ₗ[ℂ] π) {g} (G : g ∈ mirabolic) (h : ∀ a b, a * g * b ∈ mirabolic → π.ρ a (T (π.ρ b φ)) = φ) : T (fourierOp π φ) = fourierOp π φ := bylemma
IsSplitLevel.lines 191–193automationliftFn_comp_eq_sum_smul For a split level P for the prime N (instance \Lambda), representations \pi, \pi', a vector \varphi of \pi, a linear L as inLiftLaw, a finite type \iota, a function r from (n'+1) \times (n+1) residue matrices to \iota and g : \iota \to \mathbb{C}: L[liftFn(g \circ r)]\varphi = \sum_{y\in\iota} g(y)\cdot L[liftFn(T \mapsto [r(T) = y])]\varphi (linearity of L \circliftFn).Lemma 3.3, p. 12 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 191–192 lemma liftFn_comp_eq_sum_smul {ι} [Fintype ι] (r : _ → ι) (g : ι → ℂ) : L (liftFn (g <| r ·)) φ = ∑ y, g y • L (liftFn fun T ↦ ite (r T = y) 1 0) φ := bylemma
IsSplitLevel.lines 198–202argumentLiftLaw. eq_zero_of_smul_invariant Let L be a lift law for \pi, \pi' with constant \gamma (H; P a split level for the prime N, instance \Lambda), \varphi \in \operatorname{ramified}(\pi) (h), w \in P, and f a function on residue matrices such that f(c\cdot T) = f(T) for every T and every c \in (\mathbb{Z}/N)^{P} with the property that c\cdot t = y \iff t = y for all t, y \in (\mathbb{Z}/N)^{P} with y_w = 0 (that is, c_v = 1 at the places v \ne w and c_w \ne 0) (a). Then L[liftFnf]\varphi = 0.Structured proof, 2 steps Lemma 4.1, p. 13 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 198–200 lemma LiftLaw.eq_zero_of_smul_invariant (h : φ ∈ ramified π) w {f} (a : ∀ c : P → ZMod N, (∀ t y, y w = 0 → (c * t = y ↔ t = y)) → ∀ T, f (c • T) = f T) : L (liftFn f) φ = 0 := have ⟨x, e, ψ, b⟩ := h wlemma
IsSplitLevel.lines 205–207one-stepLiftLaw. inclGL_lastColDatum Let L be a lift law for \pi, \pi' with constant \gamma (H; P a split level for the prime N, instance taken by Lean), \varphi a vector of \pi, k \in \mathrm{GL}_{n'+1}(O) and y \in ((\mathbb{Z}/N)^{P})^{n'+1}: \pi'(inclGLk)(L[\mathbf{b}_y]\varphi) = L[\mathbf{b}_{\overline{k}\cdot y}]\varphi, \overline{k} =reductionGL(k).Lemma 4.1, p. 13 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 205–206 lemma LiftLaw.inclGL_lastColDatum k y : π'.ρ (inclGL k) (L (lastColDatum y) φ) = L (lastColDatum (reductionGL k • y)) φ := .trans (by simp [← smul_eq_mulVec, vecMul_transpose,lemma
IsSplitLevel.lines 212–225argumentLiftLaw. u₀_charDatum_eq_fourierOp Let E be a field with a CM type and Weil data, P a split level for the prime N (instance taken by Lean), L a lift law for \pi, \pi' with constant \gamma (H) and \varphi \in \operatorname{ramified}(\pi) (h). Put C = \pi'(u_{0})(L[\mathbf{c}_e]\varphi). Then C = F'(L[\mathbf{b}_e]\varphi) and C = \gamma\cdot L[\mathbf{b}_e](F\varphi), where F =fourierOp(\pi), F' =fourierOp(\pi'), u_{0} =diagNInv, \mathbf{c}_e =charDatumand \mathbf{b}_e =lastColDatumat the last basis vector e.Structured proof, 4 steps Proposition 4.2, p. 13 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 212–215 lemma LiftLaw.u₀_charDatum_eq_fourierOp (h : φ ∈ ramified π) : let C := π'.ρ Λ.diagNInv (L (charDatum lastBasisVector) φ) C = fourierOp _ (L (lastColDatum lastBasisVector) φ) ∧ C = γ • L (lastColDatum lastBasisVector) (fourierOp π φ)lemma
IsSplitLevel.lines 233–255argumentcompUpTo_pairs_eq_smul Let E be a field with a CM type and Weil data, P a split level for the prime N (instance \Lambda), X_j finite index types, \pi_j representations of \mathrm{GL}_{X_j+1}(\prod_{w\in P} E_w), L_j lift laws from \pi_j to \pi_{j+1} with constants \gamma_j (R, for all j), d_i \in \mathbb{C}, \varphi \in \operatorname{ramified}(\pi_0) (h) and p \in \mathbb{N}. The composite of the p maps \psi \mapsto d_i\cdot\pi_{2i+2}(u_{0})(\sum_{y} L_{2i+1}[\mathbf{c}_y](L_{2i}[\mathbf{b}_y]\psi)) (i = 0, \ldots, p-1; y over ((\mathbb{Z}/N)^{P})^{X_{2i+1}+1}) sends \varphi to (\prod_{i<p} d_i\cdot o_i\cdot\prod_{l<2i+2} \gamma_l)\cdot L_{2p-1}[\mathbf{b}_e](\cdots L_0[\mathbf{b}_e](F^{p} \varphi)), where F =fourierOp(\pi_0) and o_i is the number of y \in ((\mathbb{Z}/N)^{P})^{X_{2i+1}+1} that are non-zero at every w \in P (some entry y_a(w) is a unit).Structured proof, 12 steps Theorem A, p. 2 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 233–238 lemma compUpTo_pairs_eq_smul {X : ℕ → _} [∀ j, Fintype (X j)] (π : ∀ j, Rep ℂ (GL (X j ⊕ _) (LocProd P))) {L γ : ∀ j, _} (R : ∀ j, LiftLaw _ (π (j + 1)) (L j) (γ j)) {φ} {d : ℕ → ℂ} (h : φ ∈ ramified (π 0)) p : compUpTo (M := (π <| 2 * ·)) (d · • (π _).ρ diagNInv ∘ₗ ∑ y, L _ (charDatum y) ∘ₗ L _ (lastColDatum y)) p φ = (∏ i ∈ range p, d i * #{y : X (2 * i + 1) ⊕ Unit → P → ZMod N | ∀ w, ∃ a, IsUnit (y a w)} • ∏ l ∈ range (2 * i + 2), γ l) • compUpTo (L · (lastColDatum lastBasisVector)) _ ((fourierOp _ ^ p) φ) := p.rec (by simp!) fun q ih ↦ bydef
chainline 269assemblyDefinition. For a field E with a CM type, families n_j of finite index types and S_j of complex vector spaces, a weight \kappa, last entries e_j, levels K_j, theta kernels k_j from rank n_j to n_{j+1} (data S_j, level K_j) and data \Phi_j \in S_j: \operatorname{chain}(k, \Phi) is the family j \mapsto \mathrm{lift}_{k_{j-1}}(\Phi_{j-1}) \circ \cdots \circ \mathrm{lift}_{k_0}(\Phi_0), the composite of the first j theta lifts (Kernel.), a linear map from algebraic forms of weight (\kappa, e_0) on rank n_0 to forms of weight (\kappa, e_j) on rank n_j (the identity for j = 0).lift Definition 2.9, p. 7 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 269 def chain := compUpTo (k · |>.lift (Φ _))lemma
chain_equivariantlines 275–277one-stepLet E be a field with a CM type, k_j theta kernels as inchain(ranks n_j, data S_j, levels K_j, weights (\kappa, e_j)), \varphi an algebraic form of weight (\kappa, e_0) fixed by K_0 (h), a_j \in K_j for all j, data \Phi_j \in S_j and a stage j. Then \operatorname{chain}(k, (\omega_i(a_i, a_{i+1})\Phi_i)_{i}, j)(\varphi) = a_j\cdot\mathrm{chain}(k, \Phi, j)(\varphi), a\cdot\psi the right translate (algFormRep): moving the data by the levels translates the chain.Lemma 5.1, p. 15 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 275–277 lemma chain_equivariant (h : φ ∈ levelSpace (algFormRep ..) (K 0)) (a : ∀ j, K j) Φ j : chain k (fun j ↦ (k j).ω (a j, (a _).1) (Φ j)) j φ = algFormRep _ _ (a j).1 (chain k Φ j φ) := by induction j <;> simp_alldef
chain₂line 281assemblyDefinition. For theta kernels k_j as inchainand data \Phi_i \in S_{2i} \otimes S_{2i+1}:chain₂(k, \Phi) is the family p \mapsto the composite of p pairs of lifts, the i-th pair acting byTensorChain.(s \otimes s' \mapsto \mathrm{lift}_{k_{2i+1}}(s') \circ \mathrm{lift}_{k_{2i}}(s)) with datum \Phi_i: a linear map from forms of stage 0 to forms of stage 2p.liftInPairs Definition 2.9, p. 7 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 281 def chain₂ := compUpTo fun i ↦ TensorChain.liftInPairs (k · |>.lift) i (Φ i)def
twoKernelActionline 285assemblyDefinition. For theta kernels k_j as inchain, a family a_j \in G_f(n_j) and i \in \mathbb{N}:twoKernelAction(k, a, i) = \omega_{2i}(a_{2i}, a_{2i+1}) \otimes \omega_{2i+1}(a_{2i+1}, a_{2i+2}), an endomorphism of S_{2i} \otimes S_{2i+1}.Definition 2.9, p. 7 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 285 def twoKernelAction i := map ((k (2 * i)).ω (a _, a _)) ((k (2 * i + 1)).ω (a _, a _))lemma
chain₂_equivariantlines 290–293argumentLet E be a field with a CM type, k_j theta kernels as inchain, a_j \in G_f(n_j) arbitrary finite adelic points, t_i \in S_{2i} \otimes S_{2i+1}, p \in \mathbb{N} and \varphi a form of stage 0. Thenchain₂(k, (twoKernelAction(k, a, i)(t_i))_{i}, p)(a_0\cdot\varphi) = a_{2p}\cdotchain₂(k, t, p)(\varphi), a\cdot\psi the right translate (algFormRep).Structured proof, 2 steps Lemma 5.1, p. 15 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 290–291 lemma chain₂_equivariant t p φ : chain₂ k (fun i ↦ twoKernelAction k a i (t i)) p (algFormRep _ _ (a 0) φ) = algFormRep _ _ (a _) (chain₂ k t p φ) := bylemma
exists_linear_chain_eq_purelines 295–296one-stepFor theta kernels k_j as inchain, a stage j, a form \varphi of stage 0 and a point g: there is a linear map \beta on S_{j-1} \otimes \cdots \otimes S_0 with \operatorname{chain}(k, \Phi, j)(\varphi)(g) = \beta(\Phi_{j-1} \otimes \cdots \otimes \Phi_0) for all data \Phi (the value of a chain at g depends linearly on the pure tensor of its data).Lemma 5.1, p. 15 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 295–296 lemma exists_linear_chain_eq_pure j φ g : ∃ β : _ →ₗ[ℂ] _, ∀ Φ, (chain k Φ j φ).1 g = β (TensorChain.pure Φ j) := by use! (TensorChain.lift (k · |>.lift) φ j · |>.1 g) <;> simpdef
IsJointlyInvariantlines 300–302assemblyDefinition. For theta kernels k_j as inchain, a type X, m \in \mathbb{N}, a finite set s \subseteq X, linear maps L_x (x \in X) from functions onWeylIndex(n_m, \kappa) to a complex vector space M, and data \Phi_x = (\Phi_{x,j}):IsJointlyInvariant(k, m, s, L, \Phi) holds when for every family a_j \in K_j with a_j = 1 for j \ge m and every linear map \beta on S_{m-1} \otimes \cdots \otimes S_0: \sum_{x\in s} L_x(\beta(\otimes_{j} \omega_j(a_j, a_{j+1})\Phi_{x,j})) = \sum_{x\in s} L_x(\beta(\otimes_{j} \Phi_{x,j})); i.e. \sum_{x} L_x \otimes \Phi_{x,m-1} \otimes \cdots \otimes \Phi_{x,0} is invariant under the joint action.The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 300 def IsJointlyInvariant {X} m s (L : X → (WeylIndex (n m) κ → ℂ) →ₗ[ℂ] M) (Φ : X → ∀ j, _) := ∀ a :lemma
IsJointlyInvariant.lines 307–323argumentsum_chain_mem_nsmul Let E be a field with a CM type, k_j theta kernels as inchain, M a complex vector space, \varphi a form of stage 0, X a type, m \in \mathbb{N}, s \subseteq X finite, L_x linear maps into M and \Phi_x data. Assume H:IsJointlyInvariant(k, m, s, L, \Phi); fr: for j < m and every g the stabiliserclassAut(K_j, g) of the class gK_j in the rational points is trivial; h\varphi: \varphi is fixed by K_0; P_j(g, v) properties withhs: for x \in s, j < m, points g, h and vectors v, P_j(g, v) implies P_{j+1}(h, \mathrm{jetMatrix}_j(\omega_j(g, h)\Phi_{x,j})v);hB: P_0(g, \varphi(g)) for every g; and, for a point h and a set A \subseteq M,hL: for every linear \beta, if P_m(h, \beta(\otimes\Phi_x)) for all x \in s then \sum_{x\in s} L_x(\beta(\otimes\Phi_x)) \in A. Then \sum_{x\in s} L_x(\operatorname{chain}(k, \Phi_x, m)(\varphi)(h)) lies in c\cdot A, the set of sums of c elements of A, where c = \prod_{j<m} |\Gamma_j\backslash G_f(n_j)/K_j| is the product of the numbers of classes.Structured proof, 9 steps Theorem C, p. 3 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 307–312 lemma IsJointlyInvariant.sum_chain_mem_nsmul {X m s L Φ} (H : IsJointlyInvariant k m s L Φ) (fr : ∀ j < m, ∀ g, classAut stdRatPoints (K j) g = ⊥) (hφ : φ ∈ levelSpace (algFormRep ..) (K 0)) (P : ∀ j, _ → _ → Prop) (hs : ∀ x ∈ s, ∀ j < m, ∀ g h v, P j g v → P _ h ((k j).jetMatrix ((k j).ω (g, h) (Φ x j)) v)) (hB : ∀ g, P 0 g (φ.1 g)) {h} {A : Set M} (hL : ∀ β : _ →ₗ[ℂ] _, let v (x : X) := β (TensorChain.pure (Φ x) m); (∀ x ∈ s, P m h (v x)) → ∑ x ∈ s, L x (v x) ∈ A) : ∑ x ∈ s, L x ((chain k (Φ x) m φ).1 h) ∈ (∏ j ∈ .range m, Nat.card (StdClasses (K j))) • A := bylemma
scalarFin_atPlacelines 334–335one-stepFor a field E with a CM type, a finite index type n, a norm-one finite adele \nu and a finite place w: the component at w of the scalar elementscalarFin(n, \nu) \in G_f(n) is the scalar matrix \operatorname{diag}(\nu_w, \ldots, \nu_w).Lemma 6.1, p. 16 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 334–335 @[simp] lemma scalarFin_atPlace ν (w : FinPlace E) : ((scalarFin n ν).atPlace w).1 = diagonal fun _ ↦ ν.1 w := diagonal_map rfllemma
pairWeilFinite_scalarFinlines 337–340one-stepFor a field E with a CM type and Weil data, finite index types n, n', characters a, b of U(1)(\mathbb{A}) and norm-one finite adeles \nu, \nu': on the finite part of \operatorname{Hom}(I_n, I_{n'}) (standard spaces), the pair Weil operator with characters a, b of the scalar pair (scalarFin(n, \nu),scalarFin(n', \nu')) equalspairChar(a, b)((1,scalarFin(n, \nu)), (1,scalarFin(n', \nu'))) times the untwisted operator of (1,scalarFin(n', \nu'/\nu)).Lemma 6.2, p. 17 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 337–339 lemma pairWeilFinite_scalarFin (a b : AutChar E) ν ν' : pairWeilFinite (stdSpace ..) (stdSpace ..) a b (scalarFin n ν, scalarFin n' ν') = pairChar (s := 1) (s' := 1) a b ((1, scalarFin n ν), 1, scalarFin n' ν') • pairWeilFinite _ _ 1 1 (1, scalarFin _ (ν' / ν)) := bydef
translateSumlines 345–347assemblyDefinition. \tau_N =translateSum(n, n', P, N, m): for a field E with a CM type and Weil data, finite index types n, n', m, a finite set P of places and a prime N, the operator \sum_{y} \varrho_f(c(y)) \otimes \varrho_f(r(y)) on the tensor product of the finite parts of \operatorname{Hom}(I_{n+1}, I_{n'}) and \operatorname{Hom}(I_{n'}, I_{m+1}), the sum over y \in ((\mathbb{Z}/N)^{P})^{n'}, where c(y) is the point with last column -residueOverN(y) (zero elsewhere) and r(y) the point with last row -\operatorname{conj}(residueOverN(y)) (zero elsewhere).The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 345 def translateSum := ∑ y : n' → P → ZMod N, TensorProduct.map (((stdSpace E (n ⊕ Unit)).homabbrev
Space.lines 351–352assemblyprojOnFinPart Definition. For a field E with a CM type and Weil data, a hermitian space V (indices n, signs s) and a set S of finite places: the projection P^{S} =Space.S (the mean of \varrho_f over the lattice vectors supported above S \cup \overline{S}) restricted to an endomorphism of the finite part \mathcal{W}_f(V).projOn The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 351 abbrev Space.projOnFinPart {s} (V : Space E n s) S := (V.projOn S).1.restrict fun _ ↦def
IsSplitLevel.line 358assemblydetCharAt Definition. For a field E with a CM type, a finite index type n, a finite set P of places, a Hecke character \chi and k \in \mathbb{N}:detCharAt(\chi, k) is the character g \mapsto \prod_{w\in P} \chi_w(\det g_w)\cdot|\det g_w|_{w}^{-k/2} of \mathrm{GL}_n(\prod_{w\in P} E_w), with values in \mathbb{C}^{\times}.The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 358 def detCharAt χ (k : ℕ) := (localChar P χ (-k)).toUnitHom.comp (det (n := n))def
IsSplitLevel.lines 366–367assemblyembedGL Definition. For a field E with a CM type, a finite index type n and a split level P (for N; instance taken by Lean): the homomorphismembedGL: \mathrm{GL}_n(\prod_{w\in P} E_w) \to G_f(n) that places the w-component of a matrix at the place w for w \in P, its conjugate-inverse-transpose at \overline{w}, and 1 elsewhere (atSplits, using that P is disjoint from \overline{P}).The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 366 def embedGL : GL n (LocProd P) →* Gf E n :=lemma
IsSplitLevel.lines 370–371one-stepatPlaces_embedGL For a split level P and g \in \mathrm{GL}_n(\prod_{w\in P} E_w):atPlaces(P,embedGL(g)) = g.Lemma 6.1, p. 16 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 370–371 @[simp] lemma atPlaces_embedGL : atPlaces P (embedGL g) = g := by ext : 3; apply congr($(atPlace_atSplits star_notMem ..) _ _)lemma
IsSplitLevel.lines 374–375one-stepembedGL_mem_supportedOn For a split level P and g \in \mathrm{GL}_n(\prod_{w\in P} E_w):embedGL(g) lies insupportedOn(n, P), i.e. its components are 1 outside P \cup \overline{P}.Lemma 6.1, p. 16 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 374 lemma embedGL_mem_supportedOn : embedGL g ∈ supportedOn n P :=lemma
IsSplitLevel.line 383automationdisjoint_star For a split level P for N (instance h): P and its conjugate \overline{P} are disjoint.Lemma 3.1, p. 11 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 383 lemma disjoint_star : Set.IsConjDisjoint (E := E) P := by grind [star_notMem]lemma
IsSplitLevel.line 385automationnatCast_mem For a split level P for N (instance h) and every w \in P (premise): w divides N.Lemma 3.1, p. 11 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 385 lemma natCast_mem : ∀ w ∈ P, ↑N ∈ w.1 := by simp_all [h.4]lemma
IsSplitLevel.lines 387–390argumentmem_integralAbove_of_inclGL_eq For a split level P for N (instance h), a finite index type n, g \in G_f(n) and a \in \mathrm{GL}_n(O) withinclGL(a) =atPlaces(P, g) (e): g \inintegralAbove(n, N), i.e. g is integral invertible at every place above N.Structured proof, 2 steps Lemma 6.1, p. 16 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 387–388 lemma mem_integralAbove_of_inclGL_eq {g : Gf E n} {a} (e : inclGL a = atPlaces P g) : g ∈ integralAbove n N := fun w o ↦ bylemma
IsSplitLevel.lines 395–396automationreduction_eq_iff_idem_mul_mem For a split level P for the prime N (instance h), x \in O, c \in (\mathbb{Z}/N)^{P} and a finite adele u with x = \mathrm{evalPlaces}_P(N\cdot u) (the components at P of N\cdot u) (e): \operatorname{reduction}(x) = c iff \operatorname{idem}(P)\cdot(u -residueOverN(c)) \in \hat{O}.Lemma 3.1, p. 11 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 395–396 lemma reduction_eq_iff_idem_mul_mem {x c u} (e : x.1 = evalPlaces P (N * u)) : reduction x = c ↔ idem P * (u - residueOverN c) ∈ Ô E := by simp_all [reduction_eq_iff, sub_div]lemma
IsSplitLevel.lines 402–408argumentexists_embedGL_scalar_eq_scalarFin For a split level P for the prime N (instance h), a finite index type n, w \in P and a norm-one finite adele \nu that is integral and equal to 1 at every v \notin \{w, \overline{w}\} (a): there is an integral unit x of \prod_{v\in P} E_v with \operatorname{reduction}(x)_{v} = 1 for every v \in P other than w andembedGL(inclGL(x\cdot1)) =scalarFin(n, \nu).Structured proof, 3 steps Lemma 6.1, p. 16 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 402–404 lemma exists_embedGL_scalar_eq_scalarFin {ν} (w : P) (a : ↑ν ∈ Ô E ∧ ∀ v ≠ w.1, star v ≠ w → ν.1 v = 1) : ∃ x : Oˣ, (∀ v ≠ w, h.reduction x v = 1) ∧ h.embedGL (inclGL (scalar n x)) = scalarFin n ν := ⟨.mkOfMulEqOne ⟨_, evalPlaces_mem_O _ a.1⟩ ⟨_,def
IsSplitLevel.lines 414–416assemblyname Definition. For a field E with a CM type and Weil data, finite index types n, n' and a split level P for the prime N (instance h): the \mathbb{C}-bilinear map sending a function F on n' \times n matrices over \prod_{w\in P} E_w and a vector v of the finite part of \operatorname{Hom}(I_n, I_{n'}) to the operator named by F (Space.at P of F \circ (vectors to matrices at P)) applied to v, again in the finite part.name The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · line 414 def name [h : IsSplitLevel P N] := (by apply LinearMap.mk₂ ℂ fun F v ↦lemma
IsSplitLevel.lines 419–421one-stepliftFn_eq_residueDatum For a split level P for the prime N (instance h) and a function f on n' \times n matrices over (\mathbb{Z}/N)^{P}:liftFn(f) \circ (vectors of \operatorname{Hom} read as matrices at P) =residueDatum(f afterresidueEquiv): both send a finite adelic matrix to f of its reductions modulo the places of P if it is integral there, and to 0 otherwise.Lemma 6.2, p. 17 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 419–420 lemma liftFn_eq_residueDatum : h.liftFn f ∘ (vecToMat · |>.map (evalPlaces _)) = residueDatum _ fun T ↦ f (of fun i j w ↦ residueEquiv w (T w i j)) := funext fun x ↦ .symm (dite_congrinstance
IsSplitLevel.lines 423–425automationisSchwartzBruhat_liftFn Instance. For a split level P for the prime N (instance h) and a function f on n' \times n residue matrices:liftFn(f) \circ (vectors read as matrices at P) is a Schwartz–Bruhat function at P (IsSchwartzBruhat).Lemma 6.2, p. 17 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 423–424 instance isSchwartzBruhat_liftFn : IsSchwartzBruhat P (h.liftFn f ∘ (vecToMat · |>.map (evalPlaces _))) := by simpa [liftFn_eq_residueDatum] usinglemma
IsSplitLevel.lines 430–436argumentpairWeilFinite_name For a field E with a CM type and Weil data, a split level P for the prime N (instance h), g \in \mathrm{GL}_n(\prod_{w\in P} E_w), k \in \mathrm{GL}_{n'}(\prod E_w), a function f on n' \times n matrices, characters a, b of U(1)(\mathbb{A}) and a finite datum v: the pair Weil operator with characters a, b of (embedGLg,embedGLk) sends name(liftFnf)(v) to (detCharAt(b.(|n'|), |n'|)(g)^{-1}\cdotspaceChar detCharAt(a.(|n|), |n|)(k))\cdot\mathrm{name}(S \mapsto \widetilde{f}(k^{-1}\cdot S\cdot g))(v), the factors in this order, where \widetilde{f} =spaceChar liftFn(f) is the local lift of f (\widetilde{f}(S) = f(S mod N) for integral S over \prod_{w\in P} E_w and 0 otherwise). The change of variables S \mapsto k^{-1}\cdot S\cdot g acts on the lifted function \widetilde{f}, not inside the residue function f: g and k are general elements of the local general linear groups and can move a matrix into or out of the integral locus, so S \mapsto \widetilde{f}(k^{-1}\cdot S\cdot g) is in general notliftFn(S \mapsto f(k^{-1}\cdot S\cdot g)).Structured proof, 3 steps Lemma 6.2, p. 17 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 430–432 lemma pairWeilFinite_name k v : pairWeilFinite _ _ a b (embedGL g, h.embedGL k) (name (liftFn f) v) = ((detCharAt (b.spaceChar (card n')) (card n') g)⁻¹ * detCharAt (a.spaceChar (card n)) (card n) k) • h.name (liftFn f <| k⁻¹.1 * · * g.1) v := bylemma
IsSplitLevel.lines 441–445argumentdetCharAt_inclGL For a field E with a CM type and Weil data, a finite index type n, a finite set P of places, a character a of U(1)(\mathbb{A}) whose base change a(x/\overline{x}) is unramified at every w \in P (c), i, k \in \mathbb{N} and g \in \mathrm{GL}_n(O):detCharAt(a.(i), k)(spaceChar inclGLg) = 1, wherea.(i) is the Hecke character x \mapsto a(x/\overline{x})\cdot\upsilon(x)^{-i}.spaceChar Structured proof, 2 steps Lemma 6.3, p. 17 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 441–442 lemma detCharAt_inclGL (c : ∀ w ∈ P, CharUnramifiedAt a.baseChange.finPart w) i k (g : GL n _) : detCharAt (a.spaceChar i) k (inclGL (P := P) g) = 1 := bylemma
IsSplitLevel.lines 451–455argumentnorm_detCharAt_diagN_anti For a split level P for the prime N (instance h), finite index types n, n', a finite set S of places, \iota : \mathbb{C} \to \mathbb{C}_N, a Hecke character \chi and k \le k' (e): |\iota(detCharAt(\chi, k')(diagN(n, S)))|_{N} \le |\iota(detCharAt(\chi, k)(diagN(n', S)))|_{N}; the N-adic size of the character value at \operatorname{diag}(1, \ldots, 1, N) on S does not increase from k to k' (and does not depend on the rank).Structured proof, 3 steps Lemma 6.3, p. 17 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 451–452 lemma norm_detCharAt_diagN_anti {ι : ℂ →+* ℂ_[N]} {χ k k'} (e : k ≤ k') : ‖ι (detCharAt χ k' (h.diagN n S))‖ ≤ ‖ι (detCharAt χ k (h.diagN n' S))‖ := bylemma
IsSplitLevel.lines 460–461automationdiagN_eq_sdiff_mul For a split level P for the prime N (instance h), a finite index type n and a finite set S of places:diagN(n, P) =diagN(n, P \setminus S)\cdotdiagN(n, S).Lemma 3.1, p. 11 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 460–461 lemma diagN_eq_sdiff_mul S : h.diagN n P = diagN n (P \ S) * diagN n S := by simp_all [diagN, ← map_mul, Pi.mul_def]lemma
IsSplitLevel.lines 467–472argumentexists_sub_residueOverN_mem_iff For a split level P for the prime N (instance h) and a finite adele z: there is b \in (\mathbb{Z}/N)^{P} such that, for every y \in (\mathbb{Z}/N)^{P}, \operatorname{idem}(P)\cdot(z -residueOverN(y)) \in \hat{O} iff \operatorname{idem}(P)\cdot(N\cdot z) \in \hat{O} and b = y: z - y/N is integral at P exactly when Nz is integral at P and y is the reduction b of Nz. When Nz is integral at P the witness b is its reduction; when it is not, both sides are false for every y, and the equivalence holds whatever b is.Structured proof, 3 steps Lemma 3.2, p. 12 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 467–468 lemma exists_sub_residueOverN_mem_iff z : ∃ b, ∀ y : P → ZMod N, idem P * (z - residueOverN y) ∈ Ô E ↔ idem P * (N * z) ∈ Ô E ∧ b = y := ⟨_, fun y ↦ (iff_and_self.2 fun a ↦ by simpa [mul_sub,lemma
IsSplitLevel.lines 479–521argumenttranslateSum_eq_sum_name For a field E with a CM type and Weil data, finite index types n, n', m, a prime N and two split levels P (instance h) and S (h') for N — so P \cup \overline{P} = S \cup \overline{S} — and finite data v, v': \tau_N(P^{S} v \otimes P^{S} v') = \sum_{z} \mathrm{name}_P(\mathbf{b}_z(\cdot D))(v) \otimes \mathrm{name}_P(\mathbf{c}_z(D'\cdot))(v'), the sum over z \in ((\mathbb{Z}/N)^{P})^{n'}, where \tau_N =translateSum(n, n', S, N, m), P^{S} =projOnFinPart(S), D =diagN(n, S), D' =diagN(m, P \setminus S), \mathbf{b}_z =lastColDatum(z) and \mathbf{c}_z =charDatum(z).Structured proof, 22 steps Theorem B, p. 2 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 479–481 lemma translateSum_eq_sum_name (h' : IsSplitLevel S N) v v' : translateSum n n' S N m (projOnFinPart _ S v ⊗ₜ projOnFinPart _ S v') = ∑ z, h.name (lastColDatum z <| · * (h.diagN n S).1) v ⊗ₜ h.name (charDatum z <| (h.diagN m (P \ S)).1 * ·) v' := bylemma
exists_branching_pairinglines 22–58argumentLet E be a CM field, n a non-empty and n' a finite index type, \kappa, \kappa' weights, e, e' determinant exponents, l' and l doubled Harish-Chandra parameters on n' and n withIsHCParam(\kappa, e, l') (h) andIsHCParam(\kappa', e', -l) (h'), interlacing: \#\{j : x < l'_{w}(j)\} - \#\{i : x < l_w(i)\} \in \{0, 1\} for every place w and x (hi); and let \sigma : n \sqcup \{\operatorname{pt}\} \simeq n' with signs s on n, r on \operatorname{pt}, t on n' such that (s \sqcup r)\circ\sigma^{-1} = t (hσ) and t = 1 (ht). Write v' \cdot (B\cdot v) = (v')^{T}\cdot B\cdot v for the bilinear pairing given by B (the dot product \cdot, no complex conjugation). Then there is an integer matrix B such that (a) there are integers N_{\tau} with (\rho_{\kappa',e'}(g)v') \cdot (B\cdot\rho_{\kappa,e}(\operatorname{diag}_{\sigma}(g, u))v) = \prod_{\tau} \det(u_{\tau})^{N_{\tau}}\cdot(v' \cdot (B\cdot v)) for all commutative rings S with involution, fields R of characteristic 0, ring maps f_{\tau} : S \to R and g, u, v', v (\rho =weylRep, entries mapped by f); |N_{\tau}| \le \operatorname{boxes}(\kappa, |n'|) + |e_{\tau}|; and |v' \cdot (B\cdot v)| \le (M^{M})^{3}\cdot\sqrt{\texttt{weylNormSq}(v')}\cdot\sqrt{\texttt{weylNormSq}(v)} (the norms of the positive definite Weyl Gram form) for every M \ge \operatorname{boxes}(\kappa, |n'|); and (b) for every g there is c = c_g (chosen after g and before V, \eta, \varphi, u and K; c_g = 0 is not excluded) such that for every standard space V (indices n, signs s), all algebraic forms \eta of weight (\kappa', e') and \varphi of weight (\kappa, e), every u and every level K: \int_{[U(V)]} F_{\eta}^{(-l, s)}(x)\cdot F_{\varphi}^{(l', t)}(\sigma-\operatorname{block}(x, 1, u)\cdot(g, 1)) dx = c_g/[K_{0} : K]\cdot(the class integral at level K of h \mapsto \eta(h) \cdot (B\cdot\varphi(\operatorname{diag}_{\sigma}(h, u)))), F =ofAlgForm. So B pairs the two weights bilinearly and invariantly up to a power of \det u, with explicit bounds, and periods over definite U(n) are constants times means of this pairing.Structured proof, 11 steps Theorem C, p. 3 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/PairTensorData.lean · lines 22–32 lemma exists_branching_pairing [Nonempty n] {l l' s t r} {σ : _ ⊕ Unit ≃ n'} (hσ : (s ⊕ᵥ r) ∘ σ.symm = t) (ht : t = 1) (h : IsHCParam κ e l') (h' : IsHCParam κ' e' (-l)) (hi : ∀ w x, (#{j | x < l' w j} - #{i | x < l w i} : ℤ) ∈ Icc 0 1) : ∃ B : Matrix _ _ ℤ, (∃ N : _ → ℤ, (∀ (S R : Type) [CommRing S] [StarRing S] [Field R] [CharZero R] (f : _ → S →+* R) g u v' v, weylRep κ' e' (g.1.map <| f ·) *ᵥ v' ⬝ᵥ B.map (↑) *ᵥ weylRep κ e ((U.block σ (g, u)).1.map <| f ·) *ᵥ v = (∏ τ, (u.1.map (f τ)).det ^ N τ : Rˣ) * v' ⬝ᵥ B.map (↑) *ᵥ v) ∧ (∀ τ, (N τ).natAbs ≤ boxes κ (card n') + (e τ).natAbs) ∧ ∀ M, boxes κ (card n') ≤ M → ∀ v' v, ‖v' ⬝ᵥ B.map (↑) *ᵥ v‖ ≤ ((M ^ M) ^ 3 :) * √(weylNormSq v') * √(weylNormSq v)) ∧ ∀ g, ∃ c, ∀ (V : Space E n s) [V.IsStd] (η : AlgForm n _ e') (φ : AlgForm _ _ e) u K [IsLevel K], ∫ x, ofAlgForm (-l) s η x * ofAlgForm l' t φ (G.reindex σ hσ (.sum (x, 1, u)) * (g, 1)) ∂V.quotMeasure = c / stdLevelIndex K * classIntegral stdRatPoints K fun h ↦ η.1 h ⬝ᵥ B.map (↑) *ᵥ φ.1 (U.block σ (h, u)) := bydef
Data.lines 68–71assemblygridSpace Definition (by cases). For admissible data D: the hermitian spacegridSpace(o, z, i, j) over E with the signsD.(z, o, i, j) at the node (i, j) of grid z with offset o: for o = 0, z = true, i = j = 0 it is Y_{0} \oplus (a signed line), reindexed; for o = 0, z = false, i = 0 it is Y_j =gridSigns D.(j); for o + 1 and i = j = 0 it is the negative of the space for o; otherwise it is the standard signed spacespaceY signedSpaceof these signs.The Lean statement
New/Seesaw/PairTensorData.lean · line 68 def gridSpace : ∀ o z i j, Space D.E _ (D.gridSigns z o i j)def
Data.line 75assemblygridKernel Definition. For admissible data D and a node (i, j) of grid z: the pair of kernelskernelPair(D.(z, 0, i, j),gridParam D.(z, 0, i, j)): at false the type kernel of the doubled parameter, at true that of its negative.gridSigns The Lean statement
New/Seesaw/PairTensorData.lean · line 75 def gridKernel z i j := kernelPair (D.gridParam z 0 i j) (D.gridSigns z 0 i j)abbrev
Data.line 79assemblyGridForm Definition. For admissible data D and a node (a, b) of grid z: the forms on the unitary group ofgridSpace(0, z, a, b) of the typegridKernel(z, a, b)(true), i.e. of doubled parameter -D..gridParam The Lean statement
New/Seesaw/PairTensorData.lean · line 79 abbrev GridForm z a b := (gridSpace ..).Form (D.gridKernel z a b true)def
Data.lines 83–84assemblygridChar Definition. For admissible data D, an m-fold twist \vartheta, c \in \{true, false\}, l \in \mathbb{N} and a finite index type n:gridChar(\vartheta, c, l, n) =D.(\vartheta^{l+1} if c, else 1; l + 1)\cdot\upsilon^{\lfloor (|n| + [c \mathrm{false}])/2\rfloor}: the character \mu^{0}_{l+1}\vartheta^{l+1}\upsilon^{\lfloor |n|/2\rfloor} if c is true and the untwisted \mu^{0}_{l+1}\upsilon^{\lceil |n|/2\rceil} if c is false.liftChar The Lean statement
New/Seesaw/PairTensorData.lean · line 83 def gridChar := D.liftChar (bif c then ϑ.pow (l + 1) else .one) (l + 1) *abbrev
Data.line 88assemblygridTamePart Definition. For admissible data D, an m-fold twist \vartheta, c and l:gridTamePart(\vartheta, c, l) =D.(\vartheta^{l+1} if c else 1, l + 1), the family \omega_w^{l+1}\psi_{\vartheta,w}^{l+1} if c is true and \omega_w^{l+1} otherwise: the tame part ofliftTamePart gridChar.The Lean statement
New/Seesaw/PairTensorData.lean · line 88 abbrev gridTamePart := D.liftTamePart (bif c then ϑ.pow (l + 1) else .one) (l + 1)abbrev
Data.line 92assemblytriangleOrder Definition. For admissible data D, a grid z, an m-fold twist \vartheta and n \in \mathbb{N}: |\mathrm{GL}_{\mathrm{D.GridIndex}(z, 0, n)}(O_E/triangleModulus(z, \vartheta))|, the order of the general linear group, of the rank of the node (0, n), over the residue ring of the triangle modulus.The Lean statement
New/Seesaw/PairTensorData.lean · line 92 abbrev triangleOrder z ϑ n := Fintype.card (GL (D.GridIndex z 0 n) (D.triangleModulus z ϑ).ResRing)abbrev
Data.line 96assemblyNode Definition. Node = Bool \times \mathbb{N} \times \mathbb{N}: triples (z, a, b), standing for the space V_{a,b} if z is false and Z_{b,a} if z is true.The Lean statement
New/Seesaw/PairTensorData.lean · line 96 abbrev Node := Bool × ℕ × ℕabbrev
Data.line 99assemblyNodeIndex Definition. For admissible data D and a node p = (z, i, j):NodeIndex(p) =D.(z, i, j), the basis index set of the node.GridIndex The Lean statement
New/Seesaw/PairTensorData.lean · line 99 abbrev NodeIndex (p : Node) := D.GridIndex p.1 p.2.1 p.2.2def
Data.lines 103–104assemblynodeLevel Definition. For admissible data D, an m-fold twist \vartheta and a node p = (z, a, b): the subgroup of \mathrm{GL}_{\mathrm{NodeIndex}(p)}(O_E/gridModulus(\vartheta)) that is trivial (\bot) at the nodes (false, 0, b), and otherwise the kernel of reduction to the triangle modulus (reduceToTriangle(\vartheta, true)).The Lean statement
New/Seesaw/PairTensorData.lean · line 103 def nodeLevel p := if !p.1 ∧abbrev
Data.line 108assemblylevelIndex Definition. For admissible data D, an m-fold twist \vartheta and a node (a, b) of grid z: the index ofnodeLevel(\vartheta, (z, a, b)), as a complex number.The Lean statement
New/Seesaw/PairTensorData.lean · line 108 abbrev levelIndex z a b := ((nodeLevel ϑ (z, a, b)).index : ℂ)abbrev
Data.lines 112–113assemblygridLevelForms Definition. For admissible data D and i \in \mathbb{N}: the forms on Z_{i,0} =gridSpace(0, true, 0, i) of the typegridKernel(true, 0, i)(true) that are fixed by the principal level ofgridLevelGen= \overline{\pi}_g^{b_{1}}.The Lean statement
New/Seesaw/PairTensorData.lean · line 112 abbrev gridLevelForms i :=lemma
Data.lines 115–117one-stepisConjKernelPair_gridKernel For admissible data D, a grid z and a node (i, j) with i, j \le m (h):gridKernel(z, i, j) is a conjugate kernel pair (IsConjKernelPair: its two type kernels are complex conjugates and cuspidal of order 0). (One step:isConjKernelPair_kernelPair, the gap ofD.exceeding the threshold for these ranks by the size comparisons of the data.)gridParam Lemma 9.6, p. 19 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/PairTensorData.lean · line 115 lemma isConjKernelPair_gridKernel (h : i ≤ D.m ∧ j ≤ D.m) : IsConjKernelPair (D.gridKernel z i j) :=instance
Data.lines 119–120one-stepgridChar_hasWeight Instance. For admissible data D, an m-fold twist \vartheta, c, l and a finite index type n:gridChar(\vartheta, c, l, n) has weightD.(c, l, n) and tame partgridWeight gridTamePart(\vartheta, c, l) (AutChar.).HasWeight Lemma 9.7, p. 19 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/PairTensorData.lean · lines 119–120 instance gridChar_hasWeight : (gridChar ϑ c l n).HasWeight (D.gridWeight c l n) (gridTamePart ϑ c l) := D.hasWeight_liftChar.mul_upsilonU1_pow _lemma
Data.lines 125–128one-stepisEdgeFamily_grid For admissible data D, a grid z, a node (i, j), a family \vartheta : I \to m-fold twists and a step of the grid from (i, j) to (i', j') given by d and e ((c, l, i', j') = (z, i, i + 1, j) if d, else (\neg z, j, i, j + 1)) with i', j' \le m (hi,hj): the characters x \mapstogridChar(\vartheta_x, c, l), the kernelsgridKernel(z, i, j),gridKernel(z, i', j') and the polynomialD.(0, d, c, l, \ldots) satisfygridHarmonic IsEdgeFamilyin direction d: steps of the grids are edges.Lemma 9.8, p. 20 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/PairTensorData.lean · lines 125–128 lemma isEdgeFamily_grid {I} (ϑ : I → _) d {c l i' j'} (e : (c, l, i', j') = bif d then (z, i, i + 1, j) else (!z, j, i, j + 1)) (hi : i' ≤ D.m := by omega) (hj : j' ≤ D.m := by omega) : IsEdgeFamily (fun x ↦ gridChar (ϑ x) c l) (D.gridKernel z i j) (D.gridKernel z i' j') d (D.gridHarmonic 0 d c l ..) := isEdgeFamily_of_paramsCorrespond _ _ (D.paramsCorrespond_grid _ _ _ _ _ e)lemma
Data.lines 132–136argumentgridSpace_diag For admissible data D and j \le m (the hypothesis h of the reindexing):gridSpace(0, true, j, j) = (gridSpace(0, false, j, j) \oplus the signed line of sign (-1)^{j}) reindexed alongD.(j): Z_{j,j} is V_{j,j} plus a line.gridDiagEquiv Structured proof, 2 steps Lemma 9.9, p. 20 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/PairTensorData.lean · lines 132–133 lemma gridSpace_diag h : D.gridSpace 0 _ j j = ((gridSpace ..).sum (signedSpace ..)).reindex _ (D.gridDiagEquiv_spec h) := bylemma
Data.lines 140–143argumentgridSpace_subdiag For admissible data D and j \in \mathbb{N}: there are a bijection \tau of basis index sets and a compatibility h of the signs withgridSpace(0, true, j, j + 1) =gridSpace(0, false, j + 1, j) reindexed along \tau^{-1}: Z_{j+1,j} equals V_{j+1,j} up to relabelling.Structured proof, 2 steps Lemma 9.9, p. 20 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/PairTensorData.lean · lines 140–141 lemma gridSpace_subdiag j : ∃ τ h, D.gridSpace 0 true j (j + 1) = (D.gridSpace 0 false (j + 1) j).reindex (.symm τ) h :=def
Data.lines 148–150assemblypointDescent Definition. For admissible data D, an m-fold twist \vartheta, a grid z and b \in \mathbb{N}: the linear mapGridForm(z, 0, b + 1) \toGridForm(z, 0, b),triangleOrder(z, \vartheta, b) times the descentmodDescentwith the charactergridChar(\vartheta, \neg z, b), the harmonicD.(0, false, \neg z, b, z, 0, b, 0, b + 1) and the finite datum the indicator of the standard inclusion (1; 0) modulogridHarmonic triangleModulus(z, \vartheta) (inclusionDatum).The Lean statement
New/Seesaw/PairTensorData.lean · line 148 def pointDescent z b : D.GridForm z 0 (b + 1) →ₗ[ℂ] D.GridForm z 0 b := (triangleOrder z ϑ b : ℂ) •def
Data.lines 154–155assemblyiotaPlus Definition. For admissible data D, an m-fold twist \vartheta, a grid z and b \in \mathbb{N}:iotaPlus(z, b) :GridForm(z, 0, m) \toGridForm(z, 0, b), the composite of the descentspointDescentfrom node (0, m) down to (0, b) if b < m (recursively:pointDescent(z, b) \circiotaPlus(z, b + 1)), the identity if b = m and 0 if b > m.The Lean statement
New/Seesaw/PairTensorData.lean · line 154 def iotaPlus z b : D.GridForm z 0 D.m →ₗ[ℂ] D.GridForm z 0 b := if b < D.m then pointDescent ϑ .. ∘ₗdef
Data.lines 161–163assemblydescentMove Definition. For admissible data D, an m-fold twist \vartheta, a node (a, b) of grid z and a residue matrix y modulo \mathfrak{m} =gridModulus(\vartheta): the descentGridForm(z, a, b + 1) \toGridForm(z, a, b) (modDescent) with charactergridChar(\vartheta, \neg z, b), harmonicD.(0, false, \neg z, b, \ldots) and finite datum the indicator of y modulo \mathfrak{m}.gridHarmonic The Lean statement
New/Seesaw/PairTensorData.lean · lines 161–163 def descentMove (y : Matrix (D.GridIndex z a (b + 1)) (D.GridIndex z a b) (gridModulus ϑ).ResRing) : D.GridForm z a (b + 1) →ₗ[ℂ] D.GridForm z a b := modDescent _ _ (gridChar ϑ (!z) b) (D.gridHarmonic 0 false (!z) b ..) (Pi.single y 1) ..def
Data.lines 167–169assemblyliftMove Definition. For admissible data D, an m-fold twist \vartheta, a node (a, b) of grid z and a residue matrix y modulo \mathfrak{m} =gridModulus(\vartheta): the liftGridForm(z, a, b) \toGridForm(z, a + 1, b) (modLift) with charactergridChar(\vartheta, z, a), harmonicD.(0, true, z, a, \ldots) and finite datum the indicator of y modulo \mathfrak{m}.gridHarmonic The Lean statement
New/Seesaw/PairTensorData.lean · lines 167–169 def liftMove (y : Matrix (D.GridIndex z (a + 1) b) (D.GridIndex z a b) (gridModulus ϑ).ResRing) : D.GridForm z a b →ₗ[ℂ] D.GridForm z (a + 1) b := modLift _ _ (gridChar ϑ z a) (D.gridHarmonic 0 true z a ..) (Pi.single y 1) ..lemma
Data.lines 173–177argumentgridChar_det For admissible data D, an m-fold twist \vartheta, c, l, a finite index type n, a finite index type n', signs s and k \in K_{0} of rank n':gridChar(\vartheta, c, l, n) at \det(1, k) equalscharOfTamePart(gridModulus(\vartheta),gridTamePart(\vartheta, c, l)) at \det(k mod \mathfrak{m}): the character modulo \mathfrak{m} with local components (\omega_w\psi_{\vartheta,w})^{l+1} if c, else \omega_w^{l+1}, evaluated at the reduction of \det k, whatever n is.Structured proof, 2 steps Lemma 9.7, p. 19 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/PairTensorData.lean · lines 173–175 lemma gridChar_det {n'} [Fintype n'] s (k : Kf D.E n') : (gridChar ϑ c l n).1 (G.det (s := s) (1, k.1)) = (gridModulus ϑ).charOfTamePart (gridTamePart ϑ c l) ((gridModulus ϑ).reductionK₀ k).1.det := (gridChar_hasWeight ..).apply_det_eq_charOfTamePart (bylemma
Data.lines 181–184argumentlevelIndex_eq_untwisted For admissible data D, an m-fold twist \vartheta and a node (a, b) of grid z with z true or a \ne 0 (h):levelIndex(\vartheta, z, a, b) = |\mathrm{GL}_{\mathrm{D.GridIndex}(z, a, b)}(O_E/gridModulus(1))|, the order of \mathrm{GL} of that rank over the residue ring of \mathfrak{b} = M^{b_{1}} (the untwisted modulus); in particular it does not depend on \vartheta.Structured proof, 2 steps Lemma 9.10, p. 20 of The characters, the level prime and the index sets of the data; the grid spaces
The Lean statement
New/Seesaw/PairTensorData.lean · lines 181–182 lemma levelIndex_eq_untwisted (h : z ∨ a ≠ 0) : levelIndex ϑ z a b = Fintype.card (GL (D.GridIndex z a b) (D.gridModulus 1).ResRing) := bylemma
Data.lines 188–189automationabsNorm_piGBar For admissible data D: the absolute norm of the ideal (\overline{\pi}_g) of E is g^{f}, g = g_{0}g_{1}, f the number of infinite places of E.Lemma 6.7, p. 26 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/PairTensorData.lean · lines 188–189 lemma absNorm_piGBar : Ideal.absNorm (.span {D.piGBar}) = D.gProd ^ D.f := by simp [span_piGBar, prod_q_chosenPlace]lemma
Data.lines 191–193one-stepv_chosenIdele For admissible data D and a finite place w: the chosen idele (generator of (\overline{\pi}_g)) and \overline{\pi}_g have the same valuation at w.Lemma 6.7, p. 26 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/PairTensorData.lean · lines 191–192 lemma v_chosenIdele w : Valued.v (D.chosenIdele.1 w) = Valued.v ((algebraMap _ (Ô _) D.piGBar).1 w) := (Modulus.valued_generator ..).trans ((v_algebraMap_eq_intValuation _).translemma
Data.lines 195–202argumentvaluation_shift_const_eq_ideleA_norm For admissible data D, k \le 2\varrho + 1 (hk) and a finite place w: the constant c = -(\jmath g\varpi)^{-1} ofgradingY(k) and the finite adele a\cdot\overline{a}, a =D.= \alpha/\overline{\pi}_g, have the same valuation at w.ideleA Structured proof, 2 steps Lemma 6.7, p. 26 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/PairTensorData.lean · lines 195–196 lemma valuation_shift_const_eq_ideleA_norm {k hk} w : Valued.v (((D.gradingY k hk).c : 𝔸f _) w) = Valued.v ((D.ideleA * star D.ideleA.1) w) :=lemma
Data.lines 204–205automationspansLattice_gradingY For admissible data D and k \le 2\varrho + 1 (hk):gradingY(k).SpansLattice(D.,ideleA D.,piIdele D.(k)): the finite frame of Y_k islatticeScale gradedLatticeBasis(D., \pi, (a/\overline{a})^{\lceil (m-k)/2\rceil})\cdot(an element of \mathrm{GL}(\hat{O})).ideleA Lemma 6.7, p. 26 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/PairTensorData.lean · lines 204–205 lemma spansLattice_gradingY k hk : (gradingY k hk).SpansLattice D.ideleA D.piIdele (D.latticeScale k) := by grind [Grading.SpansLattice, gradingY, spaceY]lemma
Data.lines 207–209one-stepchosenLevel_inf_trivialOn_le For admissible data D, a tame character \vartheta and a finite index type n:chosenLevel\captrivialOn(Q(\vartheta)) \lelevelOf(placeAtofD.(\vartheta), \bot): an element of the principal level at the chosen places that is 1 at the places of Q reduces to 1 at all places oflevelPlaces D.(\vartheta).levelPlaces Lemma 6.7, p. 26 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/PairTensorData.lean · lines 207–208 lemma chosenLevel_inf_trivialOn_le {n} [Fintype n] : chosenLevel ⊓ Gf.trivialOn n ϑ.Q ≤ levelOf (D.levelPlaces ϑ).placeAt ⊥ := fun _ ⟨h, k⟩ ↦ mem_levelOf.2 ⟨_, funext (Sum.recdef
Data.lines 215–216assemblyreducedVacuum Definition. For admissible data D and a tuple t of translations:D.(t) = the pure tensor over i \le \varrho ofreducedVacuum pairTranslates(translateDatum(t))(i), i.e. of \tau_N (at the places dividing \pi) applied to the tensor of the translated vacuatranslateDatum(t, 2i) \otimestranslateDatum(t, 2i + 1) of lifts 2i + 1 and 2i + 2.Definition 2.14, p. 12 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/PairTensorData.lean · line 215 def Data.reducedVacuum {P} (D : Data P) t :=lemma
Data.lines 39–75argumentexists_stage_cut For admissible data D and k \le 2\varrho + 1 (hk), let Y =gradingY(k) and B_f its finite Bessel group (the statement'slet). There is a level A (an open subgroup of K_{0},IsLevel) withD.(k) \le \mathrm{inclXFin}_Y^{-1}(A), i.e. the image \mathrm{inclXFin}_Y(b) of every b \incolumnLevel D.(k) lies in A, such that for every tame character \vartheta (A comes before \vartheta; each \vartheta has its own cut), with n =columnLevel levelNorm(\vartheta) = \prod_{v\in Q} N(v) and \mathcal{J}_k =levelY(\vartheta, k), there is a finite set T of cosets of \mathcal{J}_k with: (i) T is stable under the elements of B_f that lie in A; (ii) every x with x\mathcal{J}_k \in T is integral at every place not dividing n (localLevel) and, if k = 0, lies inchosenLevel; (iii) for every x such that x\mathcal{J}_k \in T, or such thatunfoldStage(\vartheta, \varphi, \xi, y, k)(g, x) \ne 0 on Y for some ramified column \varphi, real points \xi, finite points y with y_{0} \inchosenLeveland a real point g, the multiplicitycoverMultiplicity(B_f, A, T, x\mathcal{J}_k) divides a power of n (as n \ge 1, such a multiplicity is non-zero).Structured proof, 14 steps Theorem C, p. 4 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/SeesawTheorem.lean · lines 39–43 lemma exists_stage_cut k hk : let Y := gradingY k hk; ∃ A, IsLevel A ∧ D.columnLevel k ≤ A.comap Y.inclXFin ∧ ∀ ϑ, ∃ T : Finset (_ ⧸ levelY ϑ k), (∀ p : Y.besselFin, ↑p ∈ A → ∀ t, t ∈ T ↔ p • t ∈ T) ∧ (∀ ⦃x⦄, ⟦x⟧ ∈ T → x ∈ localLevel _ {w | ↑ϑ.levelNorm ∉ w.1} ∧ (k = 0 → x ∈ chosenLevel)) ∧ ∀ x, (⟦x⟧ ∈ T ∨ ∃ φ ∈ D.ramifiedColumns, ∃ ξ y g, unfoldStage ϑ φ ξ y k hk.step Y (g, x) ≠ 0 ∧ y 0 ∈ chosenLevel) → ∃ j, coverMultiplicity Y.besselFin A T ⟦x⟧ ∣ ϑ.levelNorm ^ jlemma
Data.lines 81–126argumentexists_isAdmissibleComb_unfolding For admissible data D, k \le 2\varrho + 2 (l), a grading Y of Y_k (X plus a string of length s = 2\varrho + 1 - k,hs) and a function a of the real points \xi, there is \kappa \in \mathbb{C} such that for every tame character \vartheta (n =levelNorm\vartheta), every complex vector space M and every map S from tuples of cosets (y_i\cdotlevelY(\vartheta, i))_{i} to M there is w \in M with: (i)IsAdmissibleComb(y \mapsto S(cosets of y), all tuples y of points integral away from n, n, 1, (Q(\vartheta) = \emptyset),cutBound^{k}, w); (ii) \omega(w) = w for every b \in \prod_{i}D.(i) and every linear \omega with \omega(S(q)) = S(i \mapstocolumnLevel inclXFin_{\mathrm{gradingY}(i)}(b_i)\cdot q_i for i < k, q_i otherwise) for all q; and (iii) for every form z on Y_k of the conjugate type, every ramified column \varphi and every linear L: M \to \mathbb{C}: if for all \xi, y with y_{2\varrho+2} = 1 and y_{0} \inchosenLevel, with F =unfoldStage(\vartheta, \varphi, \xi, y, k, Y)\cdot z (the statement'slet), F integrable on B(E^{+})\backslash G implies \int_{B(E^{+})\backslash G} F = a(\xi)\cdot L(S(cosets of y)), then \int_{[U(Y_k)]} z\cdotliftChainY(\vartheta, k)(\mathcal{P}\varphi) = \kappa\cdot L(w), \mathcal{P} the Poincaré series (Data.). The hypothesis of (iii) is, at each such (\xi, y), the implication from integrability of F to the period identity; it does not assert that F is integrable. The constant \kappa comes before the quantifiers over \vartheta, M and S.poincare Structured proof, 12 steps Theorem B, p. 3 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/SeesawTheorem.lean · lines 81–89 lemma exists_isAdmissibleComb_unfolding k l {X s} [Fintype X] (Y : Grading (D.spaceY k) _ X s) (hs : s = 2 * D.ϱ + 1 - k) (a : _ → ℂ) : ∃ κ, ∀ {ϑ} {M : ModuleCat ℂ} (S : (∀ i, _ ⧸ levelY ϑ i) → M), ∃ w, IsAdmissibleComb (fun y : ∀ i, localLevel _ {w | ↑ϑ.levelNorm ∉ w.1} ↦ S (⟦y · |>.1⟧)) .univ ϑ.levelNorm 1 (ϑ.Q = ∅) (D.cutBound ^ k) w ∧ (∀ (b : ∀ i, D.columnLevel i) (ω : _ →ₗ[ℂ] _), (∀ q, ω (S q) = S fun i ↦ (if _ : i < k then (D.gradingY i).inclXFin (b i) else 1) • q i) → ω w = w) ∧ ∀ (z : (D.spaceY k).Form (star (typeKernel (D.paramY k) _))) (φ : D.ramifiedColumns) (L : _ →ₗ[ℂ] _), (∀ ξ y, y (2 * D.ϱ + 2) = 1 → y 0 ∈ D.chosenLevel → let F := unfoldStage ϑ φ ξ y k l Y * z; Integrable F Y.ratBessel.qms → Y.ratBessel.qms[F] = a ξ * L (S (y ·))) → (D.spaceY k).quotMeasure[z * (liftChainY ϑ k (D.poincare φ)).1] = κ * L w := bylemma
Data.lines 135–154argumentseesaw The seesaw identity. For admissible data D there is a unit c \in \mathbb{C}^{\times} (a non-zero complex number) such that for every twist \vartheta there is a finitely supported family \Psi : \operatorname{Translations}(D) \to_{0} \mathbb{C} withIsGoodDatum(\vartheta, \Psi) and \iota_{\vartheta}(\mathcal{P}(c\cdot\varphi)) = B^{\Psi}_{\vartheta}(\varphi) for every ramified column \varphi \inD., the image of the ramifying operator \prod_{w\mid\pi}(1 - z_w) on \operatorname{Column}(D) (\varphi is any element of that subspace, \varphi = 0 included, read in \operatorname{Column}(D) through the inclusionramifiedColumns ramifiedColumns.; no shortness, integrality or non-vanishing condition on \varphi). Here \mathcal{P} =subtype Data.is the Poincaré series (columns on X_{0} \to forms of principal level on Y_{0}), \iota_{\vartheta} =poincare Data.\vartheta is the chain of the m = 2\varrho + 2 theta lifts through Y_{0}, \ldots, Y_m (each liftι liftYcarrying its level-index scalar [K_{0} :levelY(\vartheta, j)]) followed by the identification with algebraic forms on Y_m, and B^{\Psi}_{\vartheta} =Data.\vartheta \Psi is the combination \sum_{x} \Psi(x)\cdot(chain of m definite lifts X_{0} \to \cdots \to X_m with the dataBμ translateDatum(x)) followed by the restriction to Y_m (Data.: restriction to the points \operatorname{diag}(h, 1), the branching matrix, and the factor \prod_{\tau} \tau(\overline{\pi})^{-\mathrm{D.branchExp}(\tau)}).restrictToY IsGoodDatum(\vartheta, \Psi) (unit 145) says: \Psi is supported onadmissibleTranslations(levelNorm(\vartheta)\cdot N) (\pi_g\cdot t_k integral at every place not dividinglevelNorm(\vartheta)\cdot N), coefficients \Psi(t) inintegralAway(levelNorm(\vartheta)) (denominator 1), \sum_{t} |\sigma(\Psi(t))| \le \exp(x^{60}) for every automorphism \sigma of \mathbb{C} when Q(\vartheta) = \emptyset, joint invariance, andchain_at_N(the definite chain of \Psi is the combination of the paired chains with the datapairTranslatesof the projections at the places above \pi); the two moduli,levelNorm(\vartheta)\cdot N andlevelNorm(\vartheta), differ by the level prime N. The unit c is chosen before the quantifier over twists, so it depends on D only, not on \vartheta or \varphi; one \Psi (depending on \vartheta) serves all ramified columns at once. Lean gives no bound on |c|.Structured proof, 11 steps Theorem A, p. 3 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/SeesawTheorem.lean · lines 135–136 lemma seesaw : ∃ c : ℂˣ, ∀ ϑ, ∃ Ψ, IsGoodDatum ϑ Ψ ∧ ∀ φ, ι ϑ (D.poincare ((c.1 • D.ramifiedColumns.subtype) φ)) = Bμ ϑ Ψ φ := bylemma
Grading.lines 16–23argumenthasNearLines_zero For a field E with a CM type, a grading Y of V ((X \sqcup \{\operatorname{pt}\}) plus a string of length s) withSpansLattice(a, \pi, (a/\overline{a})^{n}) (hL), a subgroup K \le K_{0} (l) and x \in G_f(\iota) such that r\cdot x \in K for some r in the finite Bessel group B_f (H), and any finite set Q:HasNearLines(a, Q, n, 0, x): the lattice of x has an adapted basis whose string diagonal has exactly the valuations of (a/\overline{a})^{n}\cdot c_i.Structured proof, 3 steps Lemma 6.3, p. 23 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/StandardLatticeLevel.lean · lines 16–17 lemma Grading.hasNearLines_zero {x Q K n} (hL : Y.SpansLattice a π (divStar a ^ n)) (l : K ≤ Kf ..) (H : ∃ r ∈ Y.besselFin, r * x ∈ K) : Y.HasNearLines a Q n 0 x := bylemma
Grading.lines 25–33argumentinclXFin_mem_Kf For a field E with a CM type, a grading Y of V ((X \sqcup \{\operatorname{pt}\}) plus a string of length s) withY.(a, \pi, u) (SpansLattice hL), N = \pi\overline{\pi} split and squarefree along P (p), and h in the congruence subgroup of \mathrm{GL}_{X\sqcup\operatorname{pt}}(\hat{O}) whose last row is \equiv (0, \ldots, 0, 1) modulo \pi (H): \mathrm{inclXFin}_Y(h) \in K_{0} = \operatorname{Kf}(E, \iota). The inclusion U(X) \to U(V) maps this congruence subgroup into the stabiliser of the standard lattice.Structured proof, 5 steps Lemma 6.4, p. 24 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/StandardLatticeLevel.lean · lines 25–26 lemma Grading.inclXFin_mem_Kf {P u h} (hL : Y.SpansLattice a π u) (p : IsSplitSquarefree P N π) (H : h.1 ∈ congruenceGL (Ô E ∙ ↑π) .inr) : Y.inclXFin h ∈ Kf .. := hL.elim fun _ a ↦ bydef
Data.lines 21–24assemblyunfoldStage Definition (by recursion on k). For admissible data D, a tame character \vartheta, a column \varphi, real points \xi_k and finite points y_k of the U(Y_k):unfoldStage(\vartheta, \varphi, \xi, y)(k, k \le 2\varrho + 2, Y) is a function on the adelic unitary group of Y_k, for any grading Y of Y_k: for k = 0 it is \mathsf{W}_{\varphi}, the Poincaré series ofD.(\varphi) (\varphi translated by the central elementcolumnCoords D.(0), then the column coordinates oflatticeScale filling_fits) over the rational points of the Bessel group of Y (filling_fits.); for k + 1 it ispoincare unfoldStepofgradingY(k) towards Y applied tounfoldStage(k) ongradingY(k), with the characterrankTwist(D.(\vartheta, k + 1)), the datumchainChar datumY(\vartheta, k) and the point (\xi_k, y_k): P_{k+1}(h) = \int_{[B]} P_k(r\cdot(\xi_k, y_k))\cdotconstTermAtT(r\cdot(\xi_k, y_k), h) dr.Definition 2.16, p. 13 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/UnfoldingStages.lean · lines 21–24 noncomputable def unfoldStage : ∀ k ≤ 2 * D.ϱ + 2, ∀ {X s} [Fintype X], Grading (D.spaceY k) D.N X s → _root_.G D.E (D.signsY k) → ℂ | 0, _ => (D.filling_fits.poincare (D.columnCoords φ) ·.ratBessel) | k + 1, l => ((D.gradingY k).unfoldStep · (rankTwist (D.chainChar ϑ (k + 1))) (datumY ϑ k) (unfoldStage k (by lia) (D.gradingY k)) (ξ k, y k))lemma
Data.lines 26–27one-stepunfoldStage_update For admissible data D, \vartheta, \varphi, \xi, y, an index l, points s, t of U(Y_l) and k \le l (h) with k \le 2\varrho + 2 (hk):unfoldStage(\vartheta, \varphi, \operatorname{update}(\xi, l, s), \operatorname{update}(y, l, t), k) =unfoldStage(\vartheta, \varphi, \xi, y, k): stage k uses only the points of index < k.Lemma 5.1, p. 20 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/UnfoldingStages.lean · lines 26–27 lemma unfoldStage_update {l} s t k hk (h : k ≤ l) : @unfoldStage _ D ϑ φ (update ξ l s) (update y l t) k hk = @unfoldStage _ D ϑ φ ξ y k hk := by induction k <;> simp (disch := lia) [unfoldStage, *]lemma
Data.lines 29–32argumentisGeneric_unfoldStage For admissible data D, \vartheta, \varphi, \xi, y and every k \le 2\varrho + 1 (l):unfoldStage(\vartheta, \varphi, \xi, y, k) ongradingY(k) is generic forgradingY(k) (Grading.).IsGeneric Structured proof, 3 steps Lemma 5.1, p. 20 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/UnfoldingStages.lean · lines 29–30 lemma isGeneric_unfoldStage : ∀ k l, (D.gradingY k l).IsGeneric (unfoldStage ϑ φ ξ y k l.step (D.gradingY k))lemma
Data.lines 38–60argumentunfoldStage_even For admissible data D, real points \xi, a pair index i with 2i < 2\varrho + 1 (h), a grading Y of Y_{2i+2} (X, string s) and an arrow pair R forgradingY(2i) \togradingY(2i + 1) \to Y whose finite evaluation ispairEvalY(i) (e), and a real point x: there is a linear functional t such that for every tame \vartheta, column \varphi, tuple y with y_{0} \inchosenLeveland every g \in U(X)(\mathbb{A}):unfoldStage(\vartheta, \varphi, \xi, y, 2i + 2) on Y at \mathrm{inclX}_Y(g)\cdot(x, y_{2i+2}) equalsalgFormCoeff(1, t)(chain₂(liftKernel\vartheta,evaluatedDatum(\vartheta, y), i + 1)(\varphi)) at \mathrm{embX}_R(g): after 2i + 2 unfoldings the stage function is a matrix coefficient of i + 1 paired definite lifts of \varphi.Structured proof, 13 steps Proposition 5.2, p. 21 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/UnfoldingStages.lean · lines 38–42 lemma unfoldStage_even i (h : 2 * i < 2 * D.ϱ + 1) {X q s} [Fintype X] [Fintype q] {Y : Grading _ _ X s} (R : ArrowPair _ q (D.gradingY _ h.le) (D.gradingY _ h) Y) (e : D.pairEvalY i = R.finEval) x : ∃ t, ∀ ϑ φ y, y 0 ∈ D.chosenLevel → ∀ g, unfoldStage ϑ φ ξ y (2 * i + 2) (by lia) Y (Y.inclX g * (x, y _)) = algFormCoeff 1 t (chain₂ (D.liftKernel ϑ) (evaluatedDatum ϑ y) (i + 1) φ) (R.embX g) := bylemma
Data.lines 62–67argumentevaluatedDatum_out For admissible data D, a tame character \vartheta and a tuple y:evaluatedDatum(\vartheta, k \mapsto rep(y_k\cdotlevelY(\vartheta, k))) =evaluatedDatum(\vartheta, y): replacing each y_k by the chosen representative of its coset modulolevelY(\vartheta, k) does not change the evaluated datum.Structured proof, 3 steps Lemma 5.1, p. 20 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/UnfoldingStages.lean · lines 62–63 lemma evaluatedDatum_out : evaluatedDatum ϑ (fun k ↦ (y k : _ ⧸ levelY ϑ k).out) = evaluatedDatum ϑ y := bylemma
Data.lines 72–112argumenthasNearLines_of_unfoldStage_ne_zero For admissible data D, a tame character \vartheta, real points \xi, a tuple y with y_{0} \inchosenLevel(y_{0}), a ramified column \varphi, k \le 2\varrho + 1 (hk) and a point g of U(Y_k) withunfoldStage(\vartheta, \varphi, \xi, y, k)(g) \ne 0 ongradingY(k) (e):HasNearLines(gradingY(k),D., Q(\vartheta), \lfloor (m - k + 1)/2\rfloor, k, g_f): the lines of the lattice of g_f move at most k steps above Q and not elsewhere.ideleA Structured proof, 14 steps Proposition 6.8, p. 26 of The seesaw identity for the chain of theta lifts
The Lean statement
New/Seesaw/UnfoldingStages.lean · lines 72–74 lemma hasNearLines_of_unfoldStage_ne_zero (φ : D.ramifiedColumns) (y₀ : y 0 ∈ chosenLevel) k hk g (e : unfoldStage ϑ φ ξ y k hk.step (gradingY k hk) g ≠ 0) : (D.gradingY k).HasNearLines D.ideleA ϑ.Q ((D.m - k + 1) / 2) k g.2 := byinstance
(anonymous)line 203one-stepInstance. For admissible data D: a twist coerces to its tame character.The Lean statement
New/Seesaw/IndexTypes.lean · line 203 instance : Coe D.Twist D.TameChar := ⟨Twist.toTameChar⟩lemma
residueOverN_applylines 37–38computationFor a field E with a CM type, a finite set P of places, a natural number N, y \in (\mathbb{Z}/N)^{P} and a finite place w:residueOverN(y)_{w} = \widetilde{y}_w/N if w \in P and 0 otherwise, \widetilde{y}_w = (y_w).val (for N = 0 the value is 0, division by 0 giving 0).Definition 2.1, p. 4 of Chains of definite theta lifts and the Gauss-sum operator at the level prime
The Lean statement
New/Seesaw/NamesAtSplitLevel.lean · lines 37–38 @[simp] lemma residueOverN_apply w : residueOverN y w = if h : w ∈ P then ((y ⟨w, h⟩).val / N : LocField w) else 0 := rfl
What it takes for granted
Unit 1 · Factorization of the unitary Bessel subgroup and its simple-root character, Unit 10 · Lattice fundamental domains and holomorphic parameter integrals, Unit 18 · Casimir bounds and lowest compact types in the discrete series, Unit 19 · Integral branching maps for general linear groups, Unit 20 · Bases of minors and the Weyl character formula for Schur modules, Unit 24 · Green cuspidal characters and their orthogonality, Unit 25 · Adjoint theta lifts and matching of discrete-series types, Unit 26 · Doubling integrals and sharp data for the Rallis inner product, Unit 27 · Branching periods and the Rallis inner product for definite theta lifts, Unit 28 · Unfolding Bessel periods of theta kernels, Unit 29 · Group-algebra projectors and averaging in unitary representations, Unit 35 · Matrix coefficients and reproducing formulas in the Fock model, Unit 36 · Joint harmonics in the local theta correspondence, Unit 37 · The adelic Heisenberg action, Weil representation and theta functional, Unit 38 · The mixed Schrödinger model and its parabolic zero term, Unit 43 · Theta kernels, lifts and adjoint descents for unitary dual pairs, Unit 44 · Spherical Hecke operators and transfer through theta lifts, Unit 54 · Period lattices and complex uniformization of polarized abelian varieties, Unit 56 · The Weierstrass sigma function and theta addition on CM elliptic curves, Unit 57 · Fitting ideal bounds and multivariate Hensel lifting, Unit 63 · Almost acyclicity and descent for perfect test algebras, Unit 92 · Local Frobenius, tame inertia and decomposition groups, Unit 96 · Real-analytic continuation of Hecke Euler products at one, Unit 99 · Short bases of Hermitian lattices and the unitary mass, Unit 101 · Dual Weyl modules and integral Cartan components, Unit 102 · Adelic cusp forms, algebraic modular forms and the Petersson pairing, Unit 103 · Matrix Gauss sums and shear invariance of local Weil data, Unit 104 · Unitary Hecke characters and splitting characters of CM fields, Unit 105 · Schwartz–Bruhat functions and tame characters on local fields, Unit 106 · Class numbers and adelic fundamental domains of number fields, Unit 111 · Hecke operators on fixed vectors and estimates for class sums, Unit 112 · Matrix determinant estimates and simultaneous eigenvectors, Unit 113 · Haar moduli and integration over subgroups, Unit 114 · Iwasawa integration and means on compact quotients, Unit 115 · Haar measure on unitary groups in Cayley coordinates, Unit 116 · Casimir eigenvalues and decay of Flensted–Jensen coefficients, Unit 118 · Unipotent coordinates and invariant norms of Bessel functions, Unit 119 · Flag stabilizers and the open Bruhat cell of a unitary group, Unit 120 · Witt extension for Hermitian frames over fields and integral adeles, Unit 121 · Minkowski bounds and adelic reduction of Hermitian forms, Unit 122 · Adelic Hermitian spaces and principal congruence subgroups, Unit 123 · Adelic self-duality and a one-sided Poisson summation bound, Unit 133 · Discrete series coefficients near 1, Laplace's method, and explicitly large Bessel functions, Unit 140 · Good idempotents, labels and the transfer of traces between unitary groups, Unit 143 · The rows: target forms on an indefinite U(r), the volume of the chain of lifts as a product of lift volumes, and the height of each lift volume, Unit 145 · Columns and the chain of theta lifts: levels and branching on the spaces X_j, short ramified columns, divisibility of the chain at each prime (marked primes and scaled Hecke operators), and size bounds, Unit 147 · The exchange identity: theta integrals of complementary rank agree up to a constant, and cruder forms complete a family to a basis in the lower bound, Unit 148 · Translates of Poincaré series fill the rows: a Petersson-type second moment along a Bessel subgroup, Unit 149 · A crude bound for the class number of the standard definite hermitian genus, and divisibility of indices of submodules, Unit 150 · Theta functions of the CM curve: periods and scales, tight frames, the integral vacuum, Galois conjugates of jets, and divisibility of jets at non-split primes, Unit 152 · The data of the proof: the parameters N₀ and d, the CM field E = K(ζ) and its places, the scales x, x₁, b, the ranks m, k, r, t, the order a, the comparison of sizes on the logarithmic scale, and the existence of admissible data at every large x
Unit 145 · Columns and the chain of theta lifts: levels and branching on the spaces X_j, short ramified columns, divisibility of the chain at each prime (marked primes and scaled Hecke operators), and size bounds · 6 declarations
An integer matrix from weight κ on X_m to weight D.columnsY on Y_m, chosen with the branching properties (GL_{n+1} to GL_n) of exists_branching_matrix: equivariance up to a power of the determinant and a size bound.
Data.unit 145exists_eq_sub_centralGen For each prime w dividing π, every ramified column φ has the form ψ − z_w·ψ for some column ψ, z_w the right translation by the scalar matrix of the central unit D.centralGen(w).
Data.unit 145isSplitLevel_piPlaces The set D.piPlaces of the places dividing π is a split level for N (
IsSplitLevel).k ∈ D.columnLevel(j) iff k ∈ chosenLevel and, at every w dividing π, every entry of the last row of k_w − 1 has valuation ≤ exp(−1).
Data.unit 145mem_integralAfter For x admissible away from q and an integer δ of K: δx_j is integral on any set S of places w prime to q such that δ = π_g or the conjugate of w is not chosen.
Data.unit 145projOn_translateDatum If the entries of x_j are integral after the places of S ∪ S̄ (integralAfter 1), then the projection P^S fixes translateDatum(x, j).
Unit 147 · The exchange identity: theta integrals of complementary rank agree up to a constant, and cruder forms complete a family to a basis in the lower bound · 1 declaration
For j ≤ m, |Y_j| ≤ n_m.
Unit 148 · Translates of Poincaré series fill the rows: a Petersson-type second moment along a Bessel subgroup · 3 declarations
Data.unit 148columnLevel_zero_eq_comap D.columnLevel(0) is the preimage of the principal congruence subgroup K(g) under the embedding of U(X₀)(𝔸_f) into U(Y₀)(𝔸_f).
Data.unit 148exists_last_stage_map There is a linear map R on forms of stage M (restriction to Y_m) such that liftChainY(ϑ, M)(y) = R(chainComb(ϑ, Ψ, translateDatum, M)(φ)) implies ι_ϑ(y) = B^Ψ_ϑ(φ), and for every functional t there is C with: if F(inclX k) is the coefficient t of ψ at the block embedding of (k, 1) for all k, then the period of F·x̄ over the rational Bessel points of the last grading is C·⟨x, Rψ⟩.
Filling.unit 148Fits. integral_poincare Unfolding, under Filling.IsAdmissible: for a form y on V (V.IsForm(q, y)) and Δ ≤ Γ, the function F = y·poincare(X, φ, Δ) (the statement's
let) is integrable on Δ\G and ∫_{Δ\G} F = ∑_a φ_a ∫_G y·cutBessel(X, a).
Unit 140 · Good idempotents, labels and the transfer of traces between unitary groups · 2 declarations
There is a space with the signs of Y_j that has J = 1 and x = 1 if j ≥ m, and for j < m has Gram matrix gradedGram and finite frame gradedLatticeBasis·k, with k integral and ≡ 1 at the chosen places above g.
Data.unit 140levelNorm_mem_and_notMem_of_mem_Q If w ∈ Q(ϑ) or w̄ ∈ Q(ϑ), then w divides levelNorm(ϑ), and w divides neither π̄_g nor N.
Unit 28 · Unfolding Bessel periods of theta kernels · 6 declarations
Grading.unit 28IsGeneric. unipotent_mul_constTerm For P generic for Y and u in the unipotent radical with the stated degree conditions, P(u·g) times the constant term is a character value times the same expression at g.
Grading.unit 28constTermAtT_rat_mul constTermAtT(γg, δh) = constTermAtT(g, h) for rational points γ, δ of the Bessel groups of Y and Y′.
Grading.unit 28exists_splitting_constTerm There is a splitting D of Hom(V, V′) along the maps of positive degree, with D.k the inclusion matrix, an explicit projection formula, and constTerm(f, w) = θ(D.zeroTerm(homHeisOp(w)f)) for all f, w.
Grading.unit 28integral_besselGroup_unfold One unfolding step (s = s′ + 1): for P generic and y rapid continuous on [G′] (the section's hypotheses), write F = unfoldStep(Y, Y′, α, Φ, P, x)·y = P′_x·y (the statement's
let). Then F is integrable on B′(E⁺)\G′(𝔸), and ∫_{[B]} P(r·x)·∫_{[U(V′)]} θ(twistedPairWeil(α)(r·x, h)Φ)·y(h) dh dr = ∫_{B′(E⁺)\G′(𝔸)} F: the [B]-period at x of P times the theta integral of y equals ∫ P′_x·y over B′(E⁺)\G′(𝔸), which converges absolutely.Grading.unit 28integral_besselMeasure_eq_of_mean For distinct grade-1 indices v, one κ gives ∫_{[B]} φ = κ∫_{[U(X)]} M whenever φ is continuous, left invariant under the rational points of B, and φ(na) = f_a(c·(n − 1)_{v,X}) for unipotent n with f_a continuous periodic of mean M(a), M continuous on [U(X)].
Grading.unit 28isGeneric_unfoldStep Let s′ = s − 1 and let Y, Y′ have the same constant c. If P is generic for Y, then the unfolded function unfoldStep(P, x) is generic for Y′.
Unit 25 · Adjoint theta lifts and matching of discrete-series types · 1 declaration
IsArrow.unit 25integral_mul_formLift_swap Lift and descent are transposes: if φ is an arrow e → e′ and, for the swapped pair, an arrow ε′ → ε, then ∫_{[T]} z·L_φ y = ∫_{[S]} y·D_φ z for forms y of type e and z of type ε′.
Unit 120 · Witt extension for Hermitian frames over fields and integral adeles · 2 declarations
IsValuationPair.unit 120exists_isPrimitiveMatrix_mul If (A, R) is a valuation pair and X ∈ M_{n×k}(A) has a left inverse, there is an invertible b, block upper triangular for given weights, such that X·b has entries in R and a left inverse with entries in R.
Witt's theorem over Ô, for stably unramified CM E: two n × k matrices X, Y over Ô with left inverses over Ô and XᴴX = YᴴY satisfy gX = Y for some g ∈ GL_n(Ô) with gᴴg = 1.
Unit 27 · Branching periods and the Rallis inner product for definite theta lifts · 3 declarations
Kernel.unit 27lift_equivariant lift_k(ω(a, b)Φ)(a·φ) = b·lift_k(Φ)(φ): the theta lift with a moved datum sends a translated form to the translated lift.
integral_algFormCoeff_blockEmbunit 27For V standard (instance), σ with hσ, A satisfying SpansBranchingMaps(σ, e₀, e, A) (hA), and t, c, write j = blockEmb(hσ) (the statement's
let, the block embedding (h, 1, u) ↦ diag(h, u)). There is C such that for every algebraic form ψ of weight (κ, e), every automorphic Φ on [U(V)] with Φ(x, g) = L_g(conjWeylRep(κ₀, e₀)(x)c) for all x, g (L a family of linear forms), every u and every level K: ∫_{[U(V)]} Φ(h)·algFormCoeff(1, t, ψ)(j(h, 1, u)) dh = C/[K₀ : K]·classIntegral over K of h ↦ L_h(A·ψ(j((1, h), 1, u))).isThetaLift_thetaKernelunit 27For ranks 0 < |n| < |n′|, weights as in IsLiftWeight, a level K, a scale c ≠ 0 and characters of the right weights, the lifts by the kernels thetaKernel are theta lifts in the sense of Space.IsThetaLift.
Unit 57 · Fitting ideal bounds and multivariate Hensel lifting · 1 declaration
Nat.unit 57Coprime. norm_natCast_eq_one If p is coprime to n, then |n| = 1 in every normed field F that is a p-adic field (PadicField F p).
Unit 38 · The mixed Schrödinger model and its parabolic zero term · 10 declarations
Space.unit 38Splitting. IsAdapted. exists_real_zeroTerm If g is adapted to t and T obeys the mixed law, a bounded linear L between the Fock spaces of V and V₀ has T(0)ω(g)(v ⊗ f) = Lv ⊗ T(0)ω(g)P^∞f for all v, f, P^∞ the real vacuum projection.
Space.unit 38Splitting. IsAdapted. mixedTerm_omega_vacElem If g is adapted to t in the splitting D, there is c ≠ 0 with (ω(g)vac)[x] = c·|e(t*x)|²·vac₀ for all x ∈ 𝔸^p, f[x] the mixed model.
Space.unit 38Splitting. adjoint_mulVec_finFrameVector The adjoint of the finite frame applied to finFrameVector(g, t, a, w, b) gives the coordinates (b, a, w).
Space.unit 38Splitting. exists_eq_finFrameVector Every finite adelic vector y of V is finFrameVector(g, t, a, w, b) for some a, w, b (the frame is invertible).
Space.unit 38Splitting. exists_isAdapted_and_frame_eq For a splitting of V with adelic frames l, k, ι and t ∈ GL_p(𝔸), some g in the adelic unitary group adapted to t equals (l t*⁻¹, k t, ι)(x ⊕ 1) after a sign-matching reordering of its columns.
Space.unit 38Splitting. zeroTerm_rho_iAdelic zeroTerm_D(ϱ(ι·x)f) = ϱ₀(x)(zeroTerm_D f) for the embedding ι of V₀.
Space.unit 38name_boxIndicator For a set S of finite places disjoint from its conjugate, the indicator of the vectors integral at all places of S names the operator P^S = projOn S.
Space.unit 38name_schrodingerAct_boxIndicator The name of the Schrödinger translate of a box indicator is the corresponding Heisenberg translate of the projection.
For S disjoint from its conjugate, Ψ Schwartz–Bruhat on S and a finite unitary g supported on S ∪ S̄: ω(g)(Ψ ⊗ f) = υ(det g_S)⁻¹|det g_S|^{−1/2}·Ψ(g⁻¹·) ⊗ f.
The splitting of hypSum p V (p hyperbolic planes plus V) over V that removes the planes.
Unit 37 · The adelic Heisenberg action, Weil representation and theta functional · 11 declarations
Space.unit 37exists_rho_integrated_eq For an adelic vector y and a real datum v there is a real datum w with ϱ(y)(v ⊗ f) = w ⊗ ϱ_f(finCoord y)f for all f.
Space.unit 37finHeisOp_finHeisOp ϱ_f(x)ϱ_f(y)f = ψ₀(conj(t)·ȳ·x)·ϱ_f(x + y)f: finite Heisenberg operators compose up to a value of the additive character.
Space.unit 37finHeisOp_mem_finitePart ϱ_f(x) maps the finite part 𝒲_f into itself.
Space.unit 37finHeisOp_vacElem ϱ_f(y)vac = vac for every y ∈ Ô^n.
ω(g)ϱ_f(x)f = ϱ_f(g_f x)ω(g)f.
Space.unit 37omega_integrated ω(g)(v ⊗ f) = (ω(g_∞)v) ⊗ ω(g_f)f for g = (g_∞, g_f) in the adelic unitary group.
Space.unit 37omega_vacElem_sum For g ∈ G_f, ω(g)vac = Δ_f(g)|Δ_f(g)|⁻²·∑_y ϱ_f(gy)vac, the sum over coset representatives y of Ô^n ∩ g⁻¹Ô^n in Ô^n.
Space.unit 37projOn_finHeisOp If f is fixed by P^S (P^S f = f), then P^S(ϱ_f(y)f) = box(y)·ϱ_f(y)f, box the indicator of the vectors y that are integral at every place of S ∪ S̄.
Space.unit 37exists_eq_smul_omega_vacElem If f lies in the finite part 𝒲_f and ϱ_f(g y)f = f for all y ∈ Ô^n, then f = c·ω(1, g)vac for some c ∈ ℂ.
stdLattice.unit 37mem_stdLattice_iff_psi₀ A finite adelic vector u lies in Ô^n if and only if ψ₀(⟨x, u⟩) = 1 for every x ∈ Ô^n (ψ₀ the standard finite additive character; self-duality).
For g in the finite adelic unitary group, |Δ_f(g)|² equals the index of Ô^ι ∩ g⁻¹Ô^ι in Ô^ι.
Unit 102 · Adelic cusp forms, algebraic modular forms and the Petersson pairing · 1 declaration
Space.unit 102isAutomorphic_algFormCoeff For a standard V, an algebraic form φ with open stabiliser and a linear functional L, the function g ↦ L(ḡ_∞⁻¹φ(g_f)) (algFormCoeff) is automorphic.
Unit 96 · Real-analytic continuation of Hecke Euler products at one · 1 declaration
WeilData.unit 96charUnramifiedAt_upsilon The finite part of the splitting character υ is unramified at every finite place v.
Unit 43 · Theta kernels, lifts and adjoint descents for unitary dual pairs · 12 declarations
arrowProduct_twistedPairWeilunit 43The arrow product of twisted pair Weil translates is tripleWeil(a, b)(g, g′, g″) of the arrow product.
arrowTensor_map_liftWeilFinunit 43arrowTensor((ω_a(p, q) ⊗ ω_b(q, r))t) = tripleWeil(a, b)((1, p), (1, q), 1, r)·arrowTensor(t).
finHeisOp_arrowProductunit 43ϱ_f(y)(f ⊠ f′) = (semicharacter)²·(ϱ_f(ε·ȳ restricted)f ⊠ ϱ_f(y restricted)f′): Heisenberg translation of an arrow product.
homHeisOp_arrowProductunit 43Heisenberg translation by fromRows(formAdjoint w, w′) of an arrow product is the arrow product of the two translations.
Space.unit 43Splitting. homTarget_zeroTerm_pairWeil Let D be a splitting of V over V₀ along p (p hyperbolic planes), T a hermitian space of rank n′, a, b ∈ AutChar(E), g ∈ U(V)(𝔸), g₀ ∈ U(V₀)(𝔸) and m ∈ GL_p(𝔸) with hk: g·k = k·m on the frame k of the planes (D.ActsOnFrame g m) and hi: iCoord·g·iAdelic = g₀ (g·ι = ι·g₀ + k·c). Then for every h ∈ U(T)(𝔸) and f ∈ 𝒮(Hom(T, V)): zeroTerm_{homTarget}(pairWeil(T, V, a, b·υ^{|p|})(h, g) f) = (a.spaceChar(n′)(det m)·|det m|^{n′/2})·pairWeil(T, V₀, a, b)(h, g₀)(zeroTerm_{homTarget} f), where a.spaceChar(n′)(x) = a(x/x̄)·υ(x)^{−n′} and pairWeil(S, T′, a, b)(g₁, g₂) = a(det g₂)·b(det g₁)⁻¹·ω(x ↦ g₂·x·g₁⁻¹). The second character changes from b·υ^{|p|} to b and is evaluated at det h: for a fixed character on both sides this is a further factor υ(det h)^{|p|}.
leftInverse_arrowTensorunit 43leftInverse(arrowTensor(t)) = t: arrowTensor is injective with this left inverse.
Pair Weil operators move a Heisenberg translation by a matrix w to the translation by the transformed matrix.
For elements supported on P ∪ P̄, the pair Weil operator sends the operator named by a function F at P to the one named by the transformed function, times characters of the determinants at P.
The range of arrowTensor is the finite part 𝒲_f(Hom(V′, V⁻ ⊕ V″)).
There is z ≠ 0 with θ(f ⊠ f′) = z·θ_{Hom(V,V′)}(f)·θ_{Hom(V′,V″)}(f′) for all data f, f′ (⊠ = arrowProduct).
theta_tripleWeil_rat_mulunit 43For a datum f, write F(x) = θ_{Hom(V′, V ⊕ V″)}(tripleWeil(a, b)(x)f) for x = (g, g′, k) (the statement's
let). Then F(γg, δg′, k) = F(g, g′, k) for all γ ∈ Γ_V, δ ∈ Γ_{V′} (the rational points) and all g, g′, k: F is invariant under left multiplication of its first two arguments by rational points.zeroTerm_omega_of_inclMatrixunit 43For a splitting D given by inclusion matrices of a grading by weights, if the coordinate matrix of g is block triangular up to a matrix C of determinant u (degree conditions) and g intertwines the embedding of V₀ with g₀, then D.zeroTerm(ω(g)f) = υ(u)⁻¹·ω(g₀)(D.zeroTerm f).
Unit 111 · Hecke operators on fixed vectors and estimates for class sums · 2 declarations
classIntegral_mem_nsmulunit 111If all stabilisers of points gK in Γ are trivial and f is right K-invariant with values in A, the integral of f over Γ\G is a sum of elements of A, one for each double coset in Γ\G/K.
If F(g) = ∑_{i∈s} L_i(f_i(g a_i)) for all g, with L_i additive and f_i smooth and left Γ-invariant, then the class integral of F is ∑_{i∈s} L_i(class integral of f_i).
Unit 35 · Matrix coefficients and reproducing formulas in the Fock model · 1 declaration
The vectors v_P = P(ζ)·exp(−|x|²/2), P a complex polynomial, are dense in the Fock space.
Unit 19 · Integral branching maps for general linear groups · 1 declaration
exists_branching_matrixunit 19Branching from rank n + 1 to n: some integer matrix br satisfies SpansBranchingMaps, intertwines ρ_{κ,e}(diag(g, s)) with a power of s times ρ_{κ₀,e₀}(g), and ‖br‖ ≤ L^{3L} in Gram norms.
Unit 101 · Dual Weyl modules and integral Cartan components · 1 declaration
exists_dual_pairing_of_isHCParamunit 101For weights with parameters l and −l there is an invariant integer bilinear pairing A with F_η(x, g) = A(η(g), ρ(x)v⁺) for algebraic forms η of the second weight, and each A(·, v) = ⟨v′, ·⟩ with ‖v′‖ = ‖v‖.
Unit 104 · Unitary Hecke characters and splitting characters of CM fields · 1 declaration
AutChar.unit 104exists_hasWeight_of_prod_eq_one Let E be a field with a CM type (a complex embedding Φ_v fixed at each infinite place v), S a finite set of finite places, ψ = (ψ_w) multiplicative characters of the residue fields with ψ_w = 1 for w ∉ S (hS), and e an integer exponent at each infinite place. If (h) for every u ∈ E with u·ū = 1 that is integral at every finite place (a), ∏_v Φ_v(u)^{e(v)}·∏_{w∈S} ψ_w(u mod w) = 1, then there is μ ∈ AutChar(E), a continuous character of U(1)(𝔸) with values of modulus 1, trivial on U(1)(E), with HasWeight(μ, e, ψ): {w : ψ_w ≠ 1} is finite and μ(u) = ∏_v u_v^{e(v)}·∏_w ψ_w(u mod w) for every u ∈ U(1)(𝔸) with integral finite part. The authors' doc comment calls it a known result (algebraic Hecke characters of type A₀); the relation to the literature is the second reader's (literature): unresolved — the cited existence results (Weil; Raghuram §3.1 Prop. 13, §4.3 Prop. 25) concern the full idèle class group with a different compatibility condition, not the norm-one torus with this unit criterion.
Unit 143 · The rows: target forms on an indefinite U(r), the volume of the chain of lifts as a product of lift volumes, and the height of each lift volume · 1 declaration
exists_isHCParam_of_hasGapunit 143If every l_w satisfies HasGap (in particular has distinct entries ≡ n − 1 mod 2), then l is twice the Harish-Chandra parameter of some weight (κ, e).
Unit 114 · Iwasawa integration and means on compact quotients · 2 declarations
integral_quotMeasure_stagesunit 114Unfolding in stages: for i : H → G injective with Λ and Γ = i(Λ) discrete, ν Haar on H, m s-finite and (z, h) ↦ i(h)T(z) carrying m × ν to μ: for measurable, Γ-invariant F integrable on Γ\G, the function f(z) = ∫_{Λ\H} F(i(h)T(z)) dh (the statement's
let) is m-integrable and ∫_{Γ\G} F = ∫ f dm.For continuous homomorphisms φ : A → B, φ′ : A′ → B sending lattices into B₀ with φ(A) + φ′(A′) = B and compact quotients: the iterated mean of F(φa + φ′a′) is the mean of F over B/B₀.
Unit 150 · Theta functions of the CM curve: periods and scales, tight frames, the integral vacuum, Galois conjugates of jets, and divisibility of jets at non-split primes · 1 declaration
isAdmissibleComb_nameunit 150Let g·q ∈ 𝔪, d·q ≡ 0 mod 𝔪, Ψ a function of residue matrices mod 𝔪 with values integral away from q and, under p, ∑|σΨ| ≤ B, and v = P^𝔪 u. Then the named datum Ψ ⊗ u is an admissible combination of the ϱ_f(x)v, x ∈ translations(n, q, d̄), with denominator N((g))^{|n|} and size B.
Unit 123 · Adelic self-duality and a one-sided Poisson summation bound · 1 declaration
Every value ψ_f(x) of the standard finite additive character of 𝔸_f is a root of unity.
Unit 112 · Matrix determinant estimates and simultaneous eigenvectors · 2 declarations
If the images of p : κ → ι and q : κ′ → ι cover ι, every complex polynomial in the variables ι is a sum of products of a polynomial in the variables p(κ) with one in the variables q(κ′).
tensor_eq_zero_of_separatingunit 112Over a principal ideal domain R, with V torsion-free: if linear forms f_i on U have common kernel 0, so do the maps f_i ⊗ 1 : U ⊗ V → V.
Unit 122 · Adelic Hermitian spaces and principal congruence subgroups · 1 declaration
relIndex_principalLevel_leunit 122For a non-zero integer a of the CM field E, [K₀ : K(a)] ≤ N(a)^{n²}, n the rank.
From Lean's own library · 9 facts
Finset.sum_comm Finite double sums may be summed in either order.
Submodule.map_span_le The image of the span of a set under a linear map lies in a submodule N if and only if the image of every element of the set lies in N.
Submodule.smul_mem A submodule over a ring R is closed under multiplication by elements of R.
Submodule.sum_mem A submodule contains every finite sum of its elements.
isPGroup_iff_card_dvd_powA finite group is a p-group (every element has p-power order) iff its cardinality divides a power of p.
natCast_memA subring contains the image of every natural number.
normUnitnormUnit(w) = w⁻¹ for w ≠ 0 and 1 for w = 0, in a commutative group with zero such as ℂ.
norm_sum_leTriangle inequality for finite sums in a normed group: ‖∑ f_i‖ ≤ ∑ ‖f_i‖.
normalizeIn a commutative group with zero (here ℂ), normalize(w) = w·normUnit(w), with normUnit(w) = w⁻¹ for w ≠ 0 and 1 for w = 0; so normalize(w) is 1 for w ≠ 0 and 0 for w = 0.
Where it is used
Unit 138 · The choice of the twists: Galois representations of lifts, Selmer groups made short by one anticyclotomic twist, and congruence bounds by Ribet's method, Unit 139 · At most one primitive label per Hecke eigensystem at a chosen place (via Galois representations of lifts), Unit 140 · Good idempotents, labels and the transfer of traces between unitary groups, Unit 143 · The rows: target forms on an indefinite U(r), the volume of the chain of lifts as a product of lift volumes, and the height of each lift volume, Unit 145 · Columns and the chain of theta lifts: levels and branching on the spaces X_j, short ramified columns, divisibility of the chain at each prime (marked primes and scaled Hecke operators), and size bounds, Unit 147 · The exchange identity: theta integrals of complementary rank agree up to a constant, and cruder forms complete a family to a basis in the lower bound, Unit 148 · Translates of Poincaré series fill the rows: a Petersson-type second moment along a Bessel subgroup, Unit 150 · Theta functions of the CM curve: periods and scales, tight frames, the integral vacuum, Galois conjugates of jets, and divisibility of jets at non-split primes, Unit 151 · The endgame: the weighted prime sum and its remainder, the one-sided criterion (Landau), the choice of the second scale, and the statements and assembly of Theorems A, B and C, Unit 152 · The data of the proof: the parameters N₀ and d, the CM field E = K(ζ) and its places, the scales x, x₁, b, the ranks m, k, r, t, the order a, the comparison of sizes on the logarithmic scale, and the existence of admissible data at every large x, Unit 154 · The inequality (⋆), the one-sided bound for the remainder of the weighted prime sum, the generalised Riemann hypothesis, and the passage to the critical line
Its files
21 modules
New.Seesaw. AdmissibleComb New.Seesaw. AdmissibleEvaluation New.Seesaw. BesselGeneric New.Seesaw. DoubleLiftValue New.Seesaw. EdgePair New.Seesaw. EqualLinesOrbit New.Seesaw. FramesForY New.Seesaw. GoodDatumExists New.Seesaw. GradingsOfY New.Seesaw. IndexTypes New.Seesaw. IntegralAsCosetSum New.Seesaw. IntegralAway New.Seesaw. LatticeAndTorsionDefs New.Seesaw. LiftCharacters New.Seesaw. LinesStep New.Seesaw. MovedVacuumComb New.Seesaw. NamesAtSplitLevel New.Seesaw. PairTensorData New.Seesaw. SeesawTheorem New.Seesaw. StandardLatticeLevel New.Seesaw. UnfoldingStages
The program check
312 of 312 statements stand at the lines the dossier gives; 83 structured proofs with 550 steps, 503 of them leaves, the longest of 8 lines; 550 steps quote exactly their lines. Checked 2026-11-26T19:35Z.
The check shows that the dossier describes the lines it cites. Whether the English is right is read when a note is written.