Chapter V · Unit 144
Elementary divisors of a Frobenius-twisted Hecke operator: twisting data, Frobenius inequalities for least terms, interlacing-cone volumes, flag counts and an approximate projector
letterRep, polyAction). The unit proves hasType_twisted_hecke: a Frobenius-twisted Hecke operator has small elementary divisors (HasType at p^m with an explicit bound), from (i) the root lemma (a term least in all Levi frames obeys Frobenius inequalities, via Stepanov's count of roots and Gauss filtrations), (ii) dimension bounds mod p: forms whose exponents nearly obey those inequalities fill about one part in the Hecke degree (flag count against the volume of a cyclic interlacing cone), and forms deep in every frame are rare, (iii) an approximate projector from Levi-invariant means on polynomials in a generic matrix, and (iv) Smith/Hermite normal forms over the valuation ring.Notes
What it holds · 78 declarations
def
ClassMean.lines 23–24conjSubst For a commutative ring W, a commutative ring O, a ring homomorphism \iota : W \to O, k \in \mathbb{N} and a \in \mathrm{GL}_k(W):conjSubst\iota a is the O-algebra endomorphism of O[x_{\mathit{ij}} : i, j \inFink] (polynomials in the entries of a generic k\times k matrix x) that substitutes \iota(a^{-1})\cdot x\cdot \iota(a) for x: x_{i'j'} \mapsto \sum_{i,j} \iota((a^{-1})_{i'i})\cdot \iota(a_{\mathit{jj}'})\cdot x_{\mathit{ij}} (linSubstof the Kronecker product of (a^{-1})^{\mathsf{T}} and a, mapped by \iota).Definition 2.10, p. 9 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/ClassMeans.lean · line 23 noncomputable def ClassMean.conjSubst (a : GL (Fin k) W) :=lemma
ClassMean.lines 26–28automationmap_C_mul_mul_C For a commutative ring O, a finite type \sigma, a type \nu, matrices A, B \in Mat_{\sigma}(O), a matrix X \in Mat_{\sigma}(O[x_{\nu}]) and an O-linear form l : O[x_{\nu}] \to O: l applied entrywise to C(A)\cdot X\cdot C(B) (A and B as matrices of constant polynomials) equals A\cdot l(X)\cdot B.Theorem 4, p. 4 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/ClassMeans.lean · lines 26–27 lemma ClassMean.map_C_mul_mul_C {ν} (A B : Matrix σ σ O) (X : Matrix σ σ (MvPolynomial ν O)) (l : Dual O _) : (A.map C * X * B.map C).map l = A * X.map l * B := extlemma
ClassMean.lines 36–50argumenteq_top_of_eval_monomial Zariski density. Let W be a commutative local ring, O a commutative ring, \iota : W \to O a ring homomorphism, \sigma a finite type, n, e natural numbers, d \in W[x_{\sigma}] homogeneous of degree e (hd) with n + e \leNat.of the residue field of W (card hW;Nat.is 0 for an infinite field), and b_{0} \in W^{\sigma} with d(b_{0}) a unit (hb). If an O-submodule p of O^{\text{Monomials} \sigma n} contains the vector (\iota(b^{\gamma}))_{\gamma \in \text{Monomials} \sigma n} for every b \in W^{\sigma} with d(b) a unit (hp), then p = O^{\text{Monomials} \sigma n}.card Structured proof, 8 steps Lemma 7.1, p. 23 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/ClassMeans.lean · lines 36–38 lemma ClassMean.eq_top_of_eval_monomial n {e d} (hd : d.IsHomogeneous e) (hW : n + e ≤ .card (ResidueField W)) {b} (hb : IsUnit (eval b d)) {p : Submodule O (Monomials σ n → O)} (hp : ∀ b, IsUnit (eval b d) → (ι <| eval b <| monomial ·.1 1) ∈ p) : p = ⊤ := bylemma
ClassMean.lines 57–71argumentexists_invariant_diagonal_form Let O be a valuation domain of characteristic zero, \sigma a finite type, k a prime number (named k here) whose image in O is not a unit (hp), and f \in \mathbb{N}. There is q : (\sigma \to_{0} \mathbb{N}) \to O such that (i) for every exponent vector \gamma of total degree |\gamma | < k^{f}: k^{|\sigma |\cdot f} =multinomial(\gamma)\cdot q(\gamma) in O,multinomial(\gamma) = |\gamma |!/\Pi_{b} \gamma_{b}!; and (ii) for every square matrix A \in Mat_{\sigma}(O) and all exponent vectors \alpha, \beta: (coefficient of x^{\alpha} inlinSubstA (x^{\beta}))\cdot q(\alpha) = q(\beta)\cdot(coefficient of x^{\beta} inlinSubstA^{\mathsf{T}} (x^{\alpha})).Structured proof, 8 steps Lemma 7.2, p. 24 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/ClassMeans.lean · lines 57–59 lemma ClassMean.exists_invariant_diagonal_form (pp : k.Prime) (hp : ¬IsUnit (k : O)) f : ∃ q : _ → O, (∀ γ : σ →₀ ℕ, γ.degree < k ^ f → k ^ (Fintype.card σ * f) = γ.multinomial * q γ) ∧ ∀ A α β, (linSubst A (monomial β 1)).coeff α * q α = q β * (linSubst Aᵀ (monomial α 1)).coeff β := bylemma
ClassMean.lines 80–136argumentexists_mean An approximate projector from Levi-invariant means. Let W be a commutative local ring, O a valuation domain of characteristic zero, k, D \in \mathbb{N}, \tau :Fink \to \mathbb{N} a labelling, \iota : W \to O a ring homomorphism, p a prime number whose image in O is not a unit (\mathit{pp}, \mathit{hp}), f \in \mathbb{N} with D < p^{f} (hD) and D + k <Nat.of the residue field of W (card hW), x :Fink \to \mathbb{R} (weights of the indices) and P a property of real numbers. For an exponent \alpha on the entries (i, j) of a generic k\times k matrix, let its row weight be \sum_{(i,j)} \alpha_{\mathit{ij}}x(i) and its column weight \sum_{(i,j)} \alpha_{\mathit{ij}}x(j). Then there is an O-linear form \kappa : O[x_{\mathit{ij}}] \to O such that (a) \kappa(conjSubst\iota a g) = \kappa(g) for every a in the Levi subgroup levi W \tau and every polynomial g; (b) \kappa(x^{\alpha}) = 0 whenever the row weight of \alpha differs from its column weight; (c) for \alpha whose row weight satisfies P: \kappa(x^{\alpha}) = p^{k^{2}f}\cdot(x^{\alpha} evaluated at the identity matrix) if \deg \alpha \le D, and \kappa(x^{\alpha}) = 0 otherwise; (d) \kappa lies in the O-span of the forms l \circconjSubst\iota u with u \in levi W \tau and l an O-linear form vanishing on every x^{\alpha} whose row weight does not satisfy P.Structured proof, 23 steps Proposition 7.3, p. 24 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/ClassMeans.lean · lines 80–85 lemma ClassMean.exists_mean {p : ℕ} (pp : p.Prime) (hp : ¬IsUnit (p : O)) f (hD : D < p ^ f) (hW : D + k < .card (ResidueField W)) (x : _ → ℝ) (P : ℝ → _) : ∃ κ : Dual O _, (∀ a ∈ levi W τ, ∀ g, κ (conjSubst ι a g) = κ g) ∧ (∀ α, weight (x ·.1) α ≠ weight (x ·.2) α → κ (monomial α 1) = 0) ∧ (∀ α, P (weight (x ·.1) α) → κ (monomial α 1) = if degree α ≤ D then p ^ (k ^ 2 * f) • eval (vec 1) (monomial α 1) else 0) ∧ κ ∈ span O {l ∘ₗ (conjSubst ι u).toLinearMap | (u ∈ levi W τ) (l : Dual O _) (_ : ∀ α, ¬P (weight (x ·.1) α) → l (monomial α 1) = 0)} := byinstance
(anonymous)lines 24–25one-stepFor a commutative local ring W with finite residue field, k \in \mathbb{N} and a labelling \tau ofFink (an instance): the parahoric subgroup parahoric W \tau has finite index in \mathrm{GL}_k(W), as it contains the kernel of the reduction map \mathrm{GL}_k(W) \to \mathrm{GL}_k(residue field), whose image is finite.The Lean statement
New/TwistedHecke/Counting.lean · lines 24–25 instance [Finite (IsLocalRing.ResidueField W)] (τ) : (@parahoric k W _ _ τ).FiniteIndex := finiteIndex_of_le (ker_le_comap ..)lemma
index_borel_lelines 29–38argumentFor a finite field K with q =Nat.K elements and k \in \mathbb{N}: the index in \mathrm{GL}_k(K) of the subgroup of lower triangular matrices (the parabolic subgroup for the labelling b \mapsto b in the order dual: g_{\mathit{ij}} = 0 whenever i < j) is at most \Pi_{l=1}^{k}(q^{l} - 1)/(q - 1) (in \mathbb{R}), the number of full flags of K^{k}.card Structured proof, 2 steps Lemma 6.1, p. 18 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/Counting.lean · lines 29–30 lemma index_borel_le [Finite K] : (parabolic (R := K) (OrderDual.toDual ∘ @Fin.val k)).index ≤ ∏ l : Fin k, ((Nat.card K : ℝ) ^ (l.1 + 1) - 1) / (Nat.card K - 1) := bydef
TwistingData.lines 43–44excessCone Let N \ne 0, W a commutative local ring, K a field and T :TwistingDataN W K (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to K, parityisEven), k \in \mathbb{N}, an index a \inFink and h \in \mathbb{R}:excessConeT a h is the set of \beta \in \mathbb{R}^{Fin k \times \mathbb{Z}/N} such that for every letter i and consecutive indices b, b' = b + 1 inFink: \sum_{x}excessWeightT i b b' x\cdot \beta(x) \le h if b' = a, and \le 0 otherwise. (The text reading lists a twice: as the implicit section variable and as the explicit argument made byvariable (a) in; Lean takes it once, explicitly — expected.)Definition 2.8, p. 8 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/Counting.lean · line 43 def TwistingData.excessCone (h : ℝ) :=lemma
TwistingData.lines 49–115argumentfinrank_excessCond_le_volume Let N \ne 0, W a commutative local ring, K a field and T :TwistingDataN W K (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to K, parityisEven), K of characteristic p, k \in \mathbb{N}, indices a, a' \inFink with a + 1 = a' (ha), n \in \mathbb{N} and h \in \mathbb{R}: \dim_KexcessCondT n a a' \perp h \le [L : L \cap \mathcal{I}]\cdot \operatorname{vol}(excessConeT a' (h + N(k+1)) \cap slab k (fun \_ \mapsto n + k + 1)), where L = levi W (twoBlockk a') (block diagonal for the blocks \{b < a'\}, \{b \ge a'\}), \mathcal{I} = parahoric W (\uparrow) the parahoric subgroup for the labelling b \mapsto b (the lower Iwahori subgroup), [L : L \cap \mathcal{I}] =relIndexof \mathcal{I} in L, and the slab asks \sum_{b} \beta(b, s) \in [n + k, n + k + 1] for every letter s (volume as a real number).Structured proof, 20 steps Proposition 6.5, p. 19 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/Counting.lean · lines 49–51 lemma TwistingData.finrank_excessCond_le_volume [CharP K T.p] (ha : a.1 + 1 = a') n h : finrank K (T.excessCond n a a' ⊥ h) ≤ (parahoric W (↑)).relIndex (levi W (twoBlock k a')) * volume.real (T.excessCone a' (h + N * (k + 1)) ∩ slab k fun _ ↦ n + k + 1) := bylemma
TwistingData.lines 120–127argumentexcessWeight_dotProduct_permStep Let N \ne 0, W a commutative local ring, K a field and T :TwistingDataN W K (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to K, parityisEven), k \in \mathbb{N}, indices a, a' \inFink, a letter i and \nu \in \mathbb{R}^{Fin k \times \mathbb{Z}/N}: with \beta =permStepT.isEven P 1 \nu (signs by parity, trivial permutations, P = T.P as a real number) and u_i =rootVarT a a' i: \sum_{x}excessWeightT i a a' x\cdot \beta(x) =(1 - 1/q)\cdot(\beta(u_i) -(\nu(a, i) - \nu(a', i))).Structured proof, 2 steps Lemma 6.2, p. 18 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/Counting.lean · lines 120–122 lemma TwistingData.excessWeight_dotProduct_permStep i ν : T.excessWeight i a a' ⬝ᵥ permStep T.isEven T.P 1 ν = (1 - 1 / T.q) * (permStep T.isEven T.P 1 ν (T.rootVar a a' i) - (ν (a, i) - ν (a', i))) := bylemma
TwistingData.lines 131–145argumentexists_mem_excessCone_mem_Icc Let N \ne 0, W a commutative local ring, K a field and T :TwistingDataN W K (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to K, parityisEven), k \in \mathbb{N} and indices a, a' \inFink with a + 1 = a' (ha): there is \sigma \inexcessConeT a' (-1) with 0 \le \sigma(x) \le P^{3a'} for every coordinate x.Structured proof, 12 steps Lemma 6.3, p. 19 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/Counting.lean · lines 131–132 lemma TwistingData.exists_mem_excessCone_mem_Icc (ha : a.1 + 1 = a') : ∃ σ ∈ T.excessCone a' (-1), σ ∈ Set.Icc 0 fun _ ↦ (T.P ^ (3 * a'.1) : ℝ) := bylemma
volume_sum_mem_Icc_lelines 149–159argumentFor n \in \mathbb{N} and reals d \le D (hd), D of either sign: the Lebesgue measure of \{y \in \mathbb{R}^{n+1} : y \ge 0 and \sum_{b} y(b) \in [d - 1, d]\} is at most \lVert D^{n}/n!\rVert_{e} = |D^{n}/n!| (as an extended nonnegative real). (When d \le D < 0 the set is empty, since \sum_{b} y(b) \ge 0 > d.)Structured proof, 3 steps Lemma 6.4, p. 19 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/Counting.lean · lines 149–150 lemma volume_sum_mem_Icc_le {n} {d D : ℝ} (hd : d ≤ D) : volume {y : Fin n.succ → ℝ | (∀ b, 0 ≤ y b) ∧ univ.sum y ∈ Set.Icc (d - 1) d} ≤ ‖D ^ n / n !‖ₑ := bydef
HeckeSizeslines 163–166For natural numbers P, d, N, k, n, r, \ell and reals \kappa, y, z:HeckeSizesP d N k n r \ell \kappa y z is the conjunction of the size conditions 0 < r; 2r \le k; \kappa \le 1; 1 \le y; \ell + \ell = N; N\cdot n\cdot k\cdot(\ell +2) + n + k < P^{\ell} (in \mathbb{N}); 6\cdot(2\cdot(k + k^{2})\cdot d\cdot N\cdot N + 2) + 2 \le y; 2(N + 2)k/y \le \kappa; (y + N(k+1))\cdot k\cdot P^{3r} + k + 2 \le n/y; and N\cdot n\cdot(1/P^{2r} + r^{2}/(k\cdot P)) \le z (the last five in \mathbb{R}; with c = 2(k+k^{2})dN^{2} + 2 the third reads 6c + 2 \le y).Definition 2.9, p. 9 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/Counting.lean · line 163 def HeckeSizes (P d N k n r ℓ : ℕ) (κ y z : ℝ) := 0 < r ∧ 2 * r ≤ k ∧ κ ≤ 1 ∧ 1 ≤ y ∧ ℓ + ℓ = N ∧lemma
TwistingData.lines 173–203argumentindex_mul_finrank_excessCond_le Let N \ne 0, W a commutative local ring, K a field and T :TwistingDataN W K (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to K, parityisEven), K of characteristic p, k \in \mathbb{N}, indices a, a' \inFink with a + 1 = a' (ha), natural numbers n, \ell and reals h, \kappa, z withHeckeSizesP o_{0} N k n a' \ell \kappa h z (big; r = a' and y = h). Then [\mathrm{GL}_k(W) : \mathcal{P}]\cdot \dim_KexcessCondT n a a' \perp h \le(1 + \kappa)\cdot m^{N} (in \mathbb{R}), where \mathcal{P} = parahoric W (twoBlockk a') and m = \#Monomials (Fink) n is the number of monomials of degree n in k variables.Structured proof, 13 steps Theorem 3, p. 3 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/Counting.lean · lines 173–175 lemma TwistingData.index_mul_finrank_excessCond_le [CharP K T.p] (ha : a.1 + 1 = a') {n ℓ h κ z} (big : HeckeSizes T.P T.o₀ N k n a' ℓ κ h z) : (parahoric W (twoBlock k a')).index * finrank K (T.excessCond n a a' ⊥ h) ≤ (1 + κ) * Fintype.card (Monomials (Fin k) n) ^ N := bylemma
TwistingData.lines 210–233argumentsum_finrank_deepForms_le Let N \ne 0, W a commutative local ring, K a field and T :TwistingDataN W K (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to K, parityisEven), K of characteristic p, k \in \mathbb{N}, natural numbers n, r, \ell and reals \kappa, h, z withHeckeSizesP o_{0} N k n r \ell \kappa h z (big), and M \in \mathbb{N}: \sum_{d<M} \dim_KdeepFormsT k n r d \le(1 + z)\cdot m^{N} (in \mathbb{R}), m = \#Monomials (Fink) n: forms deep in every frame are rare.Structured proof, 9 steps Theorem 3, p. 3 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/Counting.lean · lines 210–212 lemma TwistingData.sum_finrank_deepForms_le [CharP K T.p] {n r ℓ κ h z} (big : HeckeSizes T.P T.o₀ N k n r ℓ κ h z) M : (∑ d ∈ range M, finrank K (T.deepForms k n r d) : ℝ) ≤ (1 + z) * Fintype.card (Monomials (Fin k) n) ^ N := bylemma
TwistingData.lines 13–16argumentsum_deepIndicator Let N be a natural number, W a commutative local ring, K a field and T twisting data over them (T :TwistingDataN W K, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to K for s \in \mathbb{Z}/N, parityisEvenand w \in K), N \ne 0, k \in \mathbb{N}, r \in \mathbb{N} and an index b \inFink: \sum_{s\in \mathbb{Z}/N}deepIndicatorT r (b, s) = N/2 (natural division): the variable (b, s) is deep for exactly half of the letters, as the parity alternates.Structured proof, 2 steps Lemma 3.4, p. 13 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/DeepFormCost.lean · line 13 lemma TwistingData.sum_deepIndicator r (b : Fin k) : ∑ s, T.deepIndicator r (b, s) = N / 2 :=lemma
TwistingData.lines 21–92argumentexists_le_weight_of_mem_deepForms Let N be a natural number, W a commutative local ring, K a field and T twisting data over them (T :TwistingDataN W K, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to K for s \in \mathbb{Z}/N, parityisEvenand w \in K), N \ne 0, K of characteristic p, natural numbers k, n, r, \tau and a coefficient vector F : (\mathbb{Z}/N \to Monomials (Fink) n) \to K with 2r \le k (hk), 2r < N (hN), F \indeepFormsT k n r \tau (hF: every translate \rho(g)F, g \in \mathrm{GL}_k(W), has only monomials of depth \ge \tau) and F \ne 0 (F0). Then some \beta has F(\beta) \ne 0 and \tau \le \sum_{(b,s)} \beta_{s}(b)\cdotdeepIndicatorT r (b, s)/P^{e(b)} (in \mathbb{R}), with e(b) = 2r if b \ge 2r and e(b) = 1 if b < 2r: a nonzero form all of whose translates are deep has a monomial of weight at least \tau when deep variables weigh P^{-2r} (b \ge 2r) or 1/P (b < 2r) and the others 0. (Here \tau is a natural number, the depth bound, not a labelling.)Structured proof, 32 steps Proposition 6.6, p. 21 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/DeepFormCost.lean · lines 21–23 lemma TwistingData.exists_le_weight_of_mem_deepForms [CharP K T.p] {n r τ F} (hk : 2 * r ≤ k) (hN : 2 * r < N) (hF : F ∈ T.deepForms k n r τ) (F0 : F ≠ 0) : ∃ β, F β ≠ 0 ∧ τ ≤ (exponentOf β).weight fun x ↦ (T.deepIndicator r x / T.P ^ ite (2 * r ≤ x.1) (2 * r) 1 : ℝ) := bylemma
TwistingData.lines 34–40argumentcard_le_finrank_translatesIn Let N \ne 0, W a commutative local ring, O a valuation domain (a commutative integral domain whose ideals are totally ordered), T :TwistingDataN W O (prime p, P = p^{o_{0}}, letters \iota_{s} : W \to O, w \in O with w^{2} = p), and write Fam for the families \mathbb{Z}/N \to Monomials (Fink) n, \mathfrak{m} for the maximal ideal of O, \kappa_{O} = O/\mathfrak{m} and T mod \mathfrak{m} = map (residue O) T, k, n \in \mathbb{N}, X finite, E a type, Q \in Mat_{(X\times Fam)\times E}(O), R \in Mat_{E\times(X\times Fam)}(O), a finite set s of column indices j \in E, a labelling G ofFink and a set B of families. If (R\cdot Q)_{\mathit{ij}} = \delta_{\mathit{ij}} for every j \in s and every i (h), and for every j \in s and x \in X the part of column j at the block x, Q_{(x,\cdot),j}, lies intranslatesInT n G \mathfrak{m} B (hs), then |s| \le \dim_{\kappa_{O}} (X \totranslatesIn(T mod \mathfrak{m}) n G \perp B).Structured proof, 2 steps Lemma 9.1, p. 30 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/ElementaryDivisors.lean · lines 34–36 lemma card_le_finrank_translatesIn {s G B} (h : ∀ j ∈ s, ∀ i, (R * Q) i j = ite (i = j) 1 0) (hs : ∀ j ∈ s, ∀ x, Q.col j ∘ (x, ·) ∈ T.translatesIn n G (maximalIdeal O) B) : #s ≤ finrank (ResidueField O) (X → (map (residue O) T).translatesIn n G ⊥ B) :=lemma
TwistingData.lines 45–69argumentof_pairing Let N \ne 0, W a commutative local ring, O a valuation domain (a commutative integral domain whose ideals are totally ordered), T :TwistingDataN W O (prime p, P = p^{o_{0}}, letters \iota_{s} : W \to O, w \in O with w^{2} = p), and write Fam for the families \mathbb{Z}/N \to Monomials (Fink) n, \mathfrak{m} for the maximal ideal of O, \kappa_{O} = O/\mathfrak{m} and T mod \mathfrak{m} = map (residue O) T, k, n \in \mathbb{N}, X and E finite, Q, M \in Mat_{(X\times Fam)\times E}(O), R, \beta \in Mat_{E\times(X\times Fam)}(O), a, z, w \in O, a labelling G ofFink and a set B of families. Assume R\cdot Q = 1 (hR), w is not a unit (hw), a\cdot w divides every entry of \beta \cdot M - a\cdot 1 (h), and whenever Q\cdot u - M\cdot v =(a\cdot w)\cdot F for vectors u, v \in O^{E} and F \in O^{X\times Fam}, every block F(x, \cdot) lies intranslatesInT n G \mathfrak{m} B (hn). Then there is l \in \mathbb{N} with |E| + l \le \dim_{\kappa_{O}} (X \totranslatesIn(T mod \mathfrak{m}) n G \perp B) andIndexDvdO^{E} (image of \beta \cdot Q + z\cdot O^{E}) (a^{|E|}\cdot z^{l}).Structured proof, 13 steps Proposition 9.2, p. 30 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/ElementaryDivisors.lean · lines 45–49 lemma of_pairing a z {w G B} (hR : R * Q = 1) (hw : ¬IsUnit w) (h : ∀ i j, a * w ∣ (β * M - a • 1 :) i j) (hn : ∀ u v F, Q *ᵥ u - M *ᵥ v = (a * w) • F → ∀ x, F ∘ (x, ·) ∈ T.translatesIn n G (maximalIdeal O) B) : ∃ l, card E + l ≤ finrank (ResidueField O) (X → (map (residue O) T).translatesIn n G ⊥ B) ∧ IndexDvd ⊤ (.map (β * Q).mulVecLin ⊤ ⊔ z • ⊤) (a ^ card E * z ^ l) := bylemma
TwistingData.lines 77–137argumentexists_depth_factorization Let N \ne 0, W a commutative local ring, O a valuation domain (a commutative integral domain whose ideals are totally ordered), T :TwistingDataN W O (prime p, P = p^{o_{0}}, letters \iota_{s} : W \to O, w \in O with w^{2} = p), and write Fam for the families \mathbb{Z}/N \to Monomials (Fink) n, \mathfrak{m} for the maximal ideal of O, \kappa_{O} = O/\mathfrak{m} and T mod \mathfrak{m} = map (residue O) T, O of characteristic 0, k, n, c \in \mathbb{N}, a, r \inFink with a < r (ha), x \in \mathbb{N} with depth T k n r \beta \le x for every family \beta (hm), X, E finite, s : E \to X and g : E \to \mathrm{GL}_k(W) such that e \mapsto(s(e), g(e)^{-1}\cdot \mathcal{P}) is surjective onto X \times \mathrm{GL}_k(W)/\mathcal{P}, \mathcal{P} = parahoric W (twoBlockk r) (hs). Then there are matrices Q, d and R over O — Q with rows E \times Fam and columns X \times Fam, d square with rows and columns X \times Fam (only d is square: E and X may differ), and R with rows X \times Fam and columns E \times Fam (the type of Q^{\mathsf{T}}) — with: (i) Q\cdot d = J, where J_{(e,\alpha),(x,\beta)} = [s(e) = x]\cdot(\operatorname{diag}(w^{\text{depth} T k n r \cdot})\cdot \rho(g(e)))_{\alpha \beta}, \rho =letterRepT n; (ii) \det d divides w^{\sum_{\tau <x} \dim_{\kappa_{O}}(X \to \text{deepForms}(T \text{mod} \mathfrak{m}) k n r \tau)}; (iii) R\cdot Q = 1; and (iv) for every vector j, every e \in E and every real h \ge 2c, the block (Q\cdot j)(e, \cdot) lies inexcessCondT n a r (w^{c}\cdot O) h. (The text reading also lists the section variables Q, R, \beta, which the statement binds itself.)Structured proof, 33 steps Proposition 9.3, p. 31 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/ElementaryDivisors.lean · lines 77–82 lemma exists_depth_factorization (ha : a < r) {x} (hm : ∀ β, T.depth k n r β ≤ x) (s : E → X) (g : E → _) (hs : Surjective fun e ↦ ((s e, ⟦(g e)⁻¹⟧) : X × _ ⧸ parahoric W (twoBlock k r))) : ∃ (Q d : Matrix _ _ O) (R : type_of% Qᵀ), (Q * d = of fun (e, α) (x, β) ↦ ite (s e = x) ((diagonal (T.w ^ T.depth k n r ·) * T.letterRep n (g e) :) α β) 0) ∧ d.det ∣ T.w ^ ∑ τ ∈ range x, finrank (ResidueField O) (X → (map (residue O) T).deepForms k n r τ) ∧ R * Q = 1 ∧ ∀ j e {h : ℝ}, 2 * c ≤ h → (Q *ᵥ j) ∘ (e, ·) ∈ T.excessCond n a r (span {T.w ^ c}) h := bylemma
exists_tensor_duallines 142–146one-stepFor a finite type \iota, a type \sigma and a commutative ring R: there is an R-multilinear map S from \iota-tuples of R-linear forms on R[x_{\sigma}] to R-linear forms on R[x_{\iota \times \sigma}] with S(l)(\Pi_{j} f_j(x_{(j,\cdot)})) = \Pi_{j} l_j(f_j) for every tuple l of linear forms and every tuple f of polynomials (f_j renamed into the variables (j, v)). Declared in the root namespace.Structured proof, 2 steps Lemma 8.6, p. 28 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/ElementaryDivisors.lean · lines 142–144 lemma _root_.exists_tensor_dual ι σ R [Fintype ι] [CommRing R] : ∃ S : MultilinearMap R (fun _ : ι ↦ Dual R (MvPolynomial σ R)) (Dual R (MvPolynomial _ R)), ∀ l (f : _ → _), S l (∏ j, rename (j, ·) (f j)) = ∏ j, l j (f j) := ⟨((aeval fun (i, v) ↦lemma
TwistingData.lines 153–208argumentexists_projector Let N \ne 0, W a commutative local ring, O a valuation domain (a commutative integral domain whose ideals are totally ordered), T :TwistingDataN W O (prime p, P = p^{o_{0}}, letters \iota_{s} : W \to O, w \in O with w^{2} = p), and write Fam for the families \mathbb{Z}/N \to Monomials (Fink) n, \mathfrak{m} for the maximal ideal of O, \kappa_{O} = O/\mathfrak{m} and T mod \mathfrak{m} = map (residue O) T, O of characteristic 0, p not a unit in O (hp), k, n, c \in \mathbb{N}, a, r \inFink with a + 1 = r (ha), \ell \in \mathbb{N} with \ell + \ell = N (e) and N\cdot n\cdot k\cdot(\ell +2) + n + k < P^{\ell} (h), and \theta \in \mathbb{R}. There are b : Fam \to O and a square matrix Z over O indexed by Fam such that: (i) Z\cdot F \inexcessCondT n a r (w^{c}\cdot O) \theta for every F; (ii) for every y \inexcessCondT n a r (w^{c}\cdot O) (\theta -(4c + 2)) and every F, w^{c} divides y\cdot(\operatorname{diag}(b)\cdot Z\cdot F) - p^{(k+k^{2})\cdot o_{0}N\cdot N}\cdot(y\cdot F) (b \ast Z is the row scaling \operatorname{diag}(b)\cdot Z); and (iii) b(\beta)\cdot \rho(\gamma^{\mathsf{T}})_{\beta \alpha} = b(\alpha)\cdot \rho(\gamma)_{\alpha \beta} for every \gamma \in \mathrm{GL}_k(W) and all families \alpha, \beta (\rho =letterRepT n). (The text reading also lists the section variable \beta, which the statement binds in \forall \gamma \alpha \beta.)Structured proof, 27 steps Theorem 4, p. 4 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/ElementaryDivisors.lean · lines 153–157 lemma exists_projector (hp : ¬IsUnit (T.p : O)) (ha : a + 1 = r.1) {ℓ} θ (e : ℓ + ℓ = N) (h : N * (n * (k * (ℓ + 2))) + n + k < T.P ^ ℓ) : ∃ b Z, (∀ F, Z *ᵥ F ∈ T.excessCond n a r (span {T.w ^ c}) θ) ∧ (∀ y ∈ T.excessCond n a r (span {T.w ^ c}) (θ - (4 * c + 2)), ∀ F, T.w ^ c ∣ y ⬝ᵥ (b * Z *ᵥ F) - T.p ^ ((k + k ^ 2) * (T.o₀ * N) * N) * y ⬝ᵥ F) ∧ ∀ γ α β, b β * T.letterRep n (transposeGL γ) β α = b α * T.letterRep n γ α β := bylemma
TwistingData.lines 217–261argumenthasType_twisted_hecke Elementary divisors of a Frobenius-twisted Hecke operator. Let N \ne 0, W a commutative local ring, O a valuation domain (a commutative integral domain whose ideals are totally ordered), T :TwistingDataN W O (prime p, P = p^{o_{0}}, letters \iota_{s} : W \to O, w \in O with w^{2} = p), and write Fam for the families \mathbb{Z}/N \to Monomials (Fink) n, \mathfrak{m} for the maximal ideal of O, \kappa_{O} = O/\mathfrak{m} and T mod \mathfrak{m} = map (residue O) T, O of characteristic 0, p not a unit in O (hp), k, n \in \mathbb{N}, r, \ell \in \mathbb{N} and \kappa, y, z \in \mathbb{R} withHeckeSizesP o_{0} N k n r \ell \kappa y z (big); X, H, I finite types, \mathrm{GL}_k(W)/\mathcal{P} finite for \mathcal{P} = parahoric W (twoBlockk r); M an O-module; f : (X \to I \to O) \to M O-linear; Y an O-linear endomorphism of M; src : X \times \mathrm{GL}_k(W)/\mathcal{P} \to X; g : X \times \mathrm{GL}_k(W)/\mathcal{P} \to \mathrm{GL}_k(W); u : X \times \mathrm{GL}_k(W)/\mathcal{P} \to \mathrm{GL}_H(O); J : I \simeq Fam \times H; such that e \mapsto (src(e), (g(e)^{\mathsf{T}})^{-1}\cdot \mathcal{P}) is injective (hs) and, for every F, Y(f(F)) = f(F') with F'(c, i) = \sum_{b \in \mathrm{GL}_k(W)/\mathcal{P}} \sum_{j\in I} u(c, b)_{J(i).2, J(j).2}\cdot(\rho(g(c, b))\cdot \operatorname{diag}(p^{\text{depth} T k n r \cdot})\cdot \rho(\tilde{b}^{-1}))_{J(j).1, J(i).1}\cdot F(src(c, b), j), \tilde{b} the chosen representative of b (hY). Then for every m \in \mathbb{N}:HasTypep (range f) m Y ((z + \kappa \cdot m + y)\cdot(Nat.X\cdotcard Nat.I)), i.e., with L = range f: Y(L) \subseteq L, and there is a natural number l \le(z + \kappa m + y)\cdot |X|\cdot |I| withcard IndexDvdL (Y(L) + p^{m}\cdot L) (p^{l}): every finite family \Phi_{1}, \ldots, \Phi_{n} of elements of L admits a square n\times n matrix A over O with \det A dividing p^{l} and \sum_{k} A_{\mathit{ik}}\cdot \Phi_{k} \in Y(L) + p^{m}\cdot L for every i (New/Core/ModuleIndex.:20, 55–56). This is a determinant condition on finite families, not a statement about the cardinality of a quotient; it is meaningful also when L has torsion or L/(Y(L) + p^{m}\cdot L) is infinite. (The text reading also lists the section variable c, whichlean hYbinds infun c i ↦.)Structured proof, 21 steps Theorem 5, p. 4 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/ElementaryDivisors.lean · lines 217–224 lemma hasType_twisted_hecke (hp : ¬IsUnit (T.p : O)) {r ℓ κ y z} (big : HeckeSizes T.P T.o₀ N k n r ℓ κ y z) {I M : Type} [Fintype H] [Fintype (_ ⧸ parahoric W (twoBlock k r))] [Fintype I] [AddCommGroup M] [Module O M] (f : (X → I → O) →ₗ[O] M) {Y : End O M} (src : X × _ ⧸ parahoric W (twoBlock k r) → X) (g : _ → GL (Fin k) W) (u : _ → GL H O) (J : I ≃ _ × H) (hs : Injective fun e ↦ ((src e, ↑(transposeGL (g e))⁻¹) : X × _ ⧸ parahoric W (twoBlock k r))) (hY : ∀ F, Y (f F) = f fun c i ↦ ∑ b, ∑ j, u (c, b) (J i).2 (J j).2 * (T.letterRep n (g (c, b)) * diagonal ((T.p : O) ^ T.depth k n r ·) * T.letterRep n b.out⁻¹ :) (J j).1 (J i).1 * F (src (c, b)) j) m : HasType ↑T.p f.range m Y ((z + κ * m + y) * (Nat.card X * Nat.card I)) := byabbrev
TwistingData.line 20frobGenericMatrix Let N be a natural number, W a commutative local ring, O a commutative ring and T :TwistingDataN W O (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to O, parityisEven, w \in O with w^{2} = p), k \in \mathbb{N}, a letter s and d \in \mathbb{N}:frobGenericMatrixT s d is the k\times k matrix over O[x_{(j,b,c)} : j \in \mathbb{Z}/N, b, c \inFink] whose (b, c) entry is x_{(s-d, b, c)}^{P^{d}} (the generic matrix of letter s - d, raised entrywise to the power P^{d}).Definition 2.10, p. 9 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/FrobeniusFactors.lean · line 20 abbrev frobGenericMatrix := of fun b c : Fin k ↦ @X O _ _ (s - d, b, c) ^ T.P ^ ddef
TwistingData.lines 25–26frobOperator Let N be a natural number, W a commutative local ring, O a commutative ring and T :TwistingDataN W O (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to O, parityisEven, w \in O with w^{2} = p), N \ne 0, R a commutative ring, natural numbers k, r, \ell, n and matrices \psi(s, d) \in Mat_k(R) (s \in \mathbb{Z}/N, d \in \mathbb{N}):frobOperatorT r \ell n \psi = \otimes_{s\in \mathbb{Z}/N} Sym^{n}(B_s) (the Kronecker product over the letters of the n-th symmetric powers), where row b of the k\times k matrix B_s is row b of \Pi_{s}^{(m)} = \psi(s, m-1)\cdot \psi(s, m-2)\cdots \psi(s, 0) if s is even and of its transposed adjugate if s is odd, with m = \ell +deepIndicatorT r (b, s) depending on the row. (Lean's explicit arguments are expected to be T, r, \ell, n, \psi.)Definition 2.10, p. 9 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/FrobeniusFactors.lean · line 25 def frobOperator := kroneckerPi fun s ↦ symPowMatrix n (of fun b c ↦ ite (T.isEven s) iddef
TwistingData.lines 30–31letterConj Let N be a natural number, W a commutative local ring, O a commutative ring and T :TwistingDataN W O (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to O, parityisEven, w \in O with w^{2} = p), k \in \mathbb{N}, h \in \mathrm{GL}_k(W) and a letter s:letterConjT h s : Mat_k(O) \to Mat_k(O) is the monoid homomorphism A \mapsto \iota_{s}(h)\cdot A\cdot \iota_{s}(h^{-1}), conjugation by \iota_{s}(h).Definition 2.10, p. 9 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/FrobeniusFactors.lean · line 30 def letterConj := MonoidHom.mk ⟨(h.1.map (T.ι s) * · * h⁻¹.1.map (T.ι s)), by simp⟩def
TwistingData.line 35indexWeight Let N be a natural number, W a commutative local ring, O a commutative ring and T :TwistingDataN W O (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to O, parityisEven, w \in O with w^{2} = p), k, \ell \in \mathbb{N} and indices a, a', b \inFink:indexWeightT \ell a a' b =([b = a'] - [b = a])/P^{\ell} \in \mathbb{R}.Definition 2.10, p. 9 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/FrobeniusFactors.lean · line 35 def indexWeight b := (ite (b = a') 1 0 - ite (b = a) 1 0) / (T.P ^ ℓ : ℝ)lemma
TwistingData.lines 44–56argumentfrobOperator_map Let N be a natural number, W a commutative local ring, O a commutative ring and T :TwistingDataN W O (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to O, parityisEven, w \in O with w^{2} = p), N \ne 0, R a commutative ring, natural numbers k, r, \ell, n, matrices \psi(s, d) \in Mat_k(R), a ring homomorphism \chi : R \to O and h in the Levi subgroup oftwoBlockk r (block diagonal for the blocks b < r, b \ge r) (hh). Then \chi applied entrywise tofrobOperatorT r \ell n \psi equals \rho(h^{-1})\cdotfrobOperatorT r \ell n \psi '\cdot \rho(h), where \psi '(s, d) =letterConjT h s (\chi(\psi(s, d))) = \iota_{s}(h)\cdot \chi(\psi(s, d))\cdot \iota_{s}(h^{-1}) and \rho =letterRepT n. (The text reading also lists the section variables s and d, which the statement binds infun s d ↦.)Structured proof, 7 steps Lemma 8.1, p. 26 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/FrobeniusFactors.lean · lines 44–46 lemma frobOperator_map (χ : R →+* O) (hh : h ∈ levi W (twoBlock k r)) : (T.frobOperator r ℓ n ψ).map χ = T.letterRep n h⁻¹ * T.frobOperator r ℓ n (fun s d ↦ T.letterConj h s ((ψ s d).map χ)) * T.letterRep n h := bylemma
TwistingData.lines 62–83argumentfrobOperator_mem Let N be a natural number, W a commutative local ring, O a commutative ring and T :TwistingDataN W O (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to O, parityisEven, w \in O with w^{2} = p), N \ne 0, R a commutative ring, natural numbers k, r, \ell, n, matrices \psi(s, d) \in Mat_k(R), families \beta, \gamma (indices offrobOperator), a decreasing multiplicative real filtration G of R, reals \alpha(s, d, b) (s \in \mathbb{Z}/N, d \in \mathbb{N}, b \inFink), x :Fink \times \mathbb{Z}/N \to \mathbb{R} and u \in \mathbb{R}, such that |\alpha(s, 0, b)| \le u and \sum_{b} \alpha(s, d, b) = 0 for all s, d, b (e); x(b, s) = \pm \alpha(s, \ell +deepIndicatorT r (b, s), b), with + for even s (hx); \psi(s, d)_{\mathit{bc}} \in G_{\alpha(s,d+1,b) - \alpha(s,d,c) - u} for all s, d \le \ell and b, c (H); and u \ge 0 (o, by default positivity). Then the (\beta, \gamma) entry offrobOperatorT r \ell n \psi lies in G_{x\cdot \text{exponentOf}(\beta) - N\cdot n\cdot k\cdot(\ell +2)\cdot u}, x\cdotexponentOf(\beta) = \sum_{(b,s)} \beta_{s}(b)\cdot x(b, s). (The text reading also lists the section variables s and d, which the statement binds in \forall s, \forall s d.)Structured proof, 12 steps Lemma 8.2, p. 26 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/FrobeniusFactors.lean · lines 62–66 lemma frobOperator_mem G [IsRealFiltration G] (α : _ → _ → Fin k → ℝ) x u (e : (∀ s b, |α s 0 b| ≤ u) ∧ ∀ s d, ∑ b, α s d b = 0) (hx : ∀ b s, x (b, s) = ite (T.isEven s) 1 (-1) * α s (ℓ + T.deepIndicator r (b, s)) b) (H : ∀ s, ∀ d ≤ ℓ, ∀ b c, ψ s d b c ∈ G (α s (d + 1) b - α s d c - u)) (o : 0 ≤ u := by positivity) : T.frobOperator r ℓ n ψ β γ ∈ G (weight x (exponentOf β) - N * (n * (k * ((ℓ + 2) * u)))) :=lemma
TwistingData.lines 85–86automationX_mem_gaussFiltration For a commutative ring O, w \in O, weights \omega : \sigma \to \mathbb{R} and a variable v \in \sigma: x_v \ingaussFiltration(adicFiltrationw) \omega (\omega(v)) (its coefficient 1 sits at level \omega(v) - \omega(v) = 0).Lemma 4.2, p. 13 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/FrobeniusFactors.lean · line 85 lemma X_mem_gaussFiltration {σ w ω v} : @X O σ _ v ∈ gaussFiltration (adicFiltration w) ω (ω v) :=lemma
TwistingData.lines 89–96argumentp_dvd_cj_frobenius_sub Let N be a natural number, W a commutative local ring, O a commutative ring and T :TwistingDataN W O (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to O, parityisEven, w \in O with w^{2} = p), k \in \mathbb{N}, h \in \mathrm{GL}_k(W), a letter s, d \in \mathbb{N}, a matrix Y \in Mat_k(O) and b, c \inFink: p divides (\iota_{s}(h)\cdot(\iota_{s-d}(h^{-1})\cdot Y\cdot \iota_{s-d}(h))^{(P^{d})}\cdot \iota_{s}(h^{-1}))_{\mathit{bc}} -(Y_{\mathit{bc}})^{P^{d}} in O, where M^{(P^{d})} is the entrywise P^{d}-th power; i.e.letterConjT h s ((letterConjT h^{-1} (s - d) Y)^{(P^{d})}) \equiv Y^{(P^{d})} mod p entrywise.Structured proof, 5 steps Lemma 8.3, p. 27 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/FrobeniusFactors.lean · lines 89–90 lemma p_dvd_cj_frobenius_sub {Y b c} : ↑T.p ∣ T.letterConj h s ((T.letterConj h⁻¹ (s - d) Y).map (· ^ T.P ^ d)) b c - Y b c ^ T.P ^ d := let π := Ideal.Quotient.mk (.span {(_ : O)})lemma
TwistingData.lines 102–131argumentpow_dvd_coeff_conj_frobOperator Let N be a natural number, W a commutative local ring, O a commutative ring and T :TwistingDataN W O (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to O, parityisEven, w \in O with w^{2} = p), N \ne 0, natural numbers k, \ell, n, c, indices a, a' \inFink with a + 1 = a' (ha), a letter i, families \beta, \gamma and an exponent \nu on the generic variables x_{(j,b,c)} (j \in \mathbb{Z}/N, b, c \inFink), with N\cdot n\cdot k\cdot(\ell +2) \le P^{\ell} (hn) and \ell \le N (hl), h \in \mathrm{GL}_k(W), and \psi(s, d) =letterConjT' h s ((letterConjT' h^{-1} (s - d) X_{s-d})^{(P^{d})}) (h\psi), where T' = map C T is T over the polynomial ring and X_j =(x_{(j,b,c)})_{b,c} the generic matrix of letter j. Assume that for every letter j \ne i the row and column index-weights of \nu_{j} = \nu.curry j agree, \sum_{(b,c)} \nu_{j}(b,c)\cdotindexWeightT \ell a a' b = \sum_{(b,c)} \nu_{j}(b,c)\cdotindexWeightT \ell a a' c (e), and that 2c + 1 < |excess of \beta at the letter i + \ell - row index-weight of \nu_{i}|, the excess being \sum \beta \cdotexcessWeightT (i + \ell) a a' overexponentOf\beta (g). Then w^{c} divides the coefficient of x^{\nu} in the (\beta, \gamma) entry offrobOperatorT a' \ell n \psi. (The text reading also lists the section variables s and d, which h\psi binds infun s (d : ℕ) ↦.)Structured proof, 13 steps Proposition 8.4, p. 27 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/FrobeniusFactors.lean · lines 102–107 lemma pow_dvd_coeff_conj_frobOperator (ha : a + 1 = a'.1) i (hn : N * n * k * (ℓ + 2) ≤ T.P ^ ℓ) (hl : ℓ ≤ N) h {ψ} (hψ : ψ = fun s (d : ℕ) ↦ (map C T).letterConj h s (((map C T).letterConj h⁻¹ (s - d) (of fun b c ↦ X (s - d, b, c))).map (· ^ T.P ^ d))) {c : ℕ} (e : ∀ j ≠ i, weight (T.indexWeight ℓ a a' ·.1) (ν.curry j) = weight (T.indexWeight ℓ a a' ·.2) (ν.curry j)) (g : 2 * c + 1 < |weight (T.excessWeight (i + ℓ) a a') (exponentOf β) - weight (T.indexWeight ℓ a a' ·.1) (ν.curry i)|) : T.w ^ c ∣ (T.frobOperator a' ℓ n ψ β γ).coeff ν := bylemma
TwistingData.lines 133–138one-stepdegree_le_of_coeff_frobOperator Let N be a natural number, W a commutative local ring, O a commutative ring and T :TwistingDataN W O (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to O, parityisEven, w \in O with w^{2} = p), N \ne 0, natural numbers k, r, \ell, n, families \beta, \gamma and an exponent \nu on the generic variables: if the coefficient of x^{\nu} in the (\beta, \gamma) entry offrobOperatorT r \ell n (frobGenericMatrixT) is nonzero (e), then for every letter j the letter-j part of \nu has degree at most N\cdot n\cdot k\cdot(\ell +2)\cdot P^{\ell}.Structured proof, 1 step Lemma 8.5, p. 28 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/FrobeniusFactors.lean · lines 133–135 lemma degree_le_of_coeff_frobOperator (e : (T.frobOperator (k := k) r ℓ n T.frobGenericMatrix β γ).coeff ν ≠ 0) j : degree (ν.curry j) ≤ N * (n * (k * ((ℓ + 2) * T.P ^ ℓ))) := bydef
permSteplines 14–15For k \in \mathbb{N}, a type T with an addition and a one (letters j, with next letter j + 1), v : T \to Bool, P \in \mathbb{R} and permutations \sigma_{j} ofFink (j \in T):permStepv P \sigma is the \mathbb{R}-linear endomorphism of \mathbb{R}^{Fin k \times T} sending \nu to \beta with \beta(b, j) = \pm(P\cdot \nu(b, j + 1) - \nu(\sigma_{j}(b), j)), the sign + if v(j) is true and - otherwise. (simps lemmas.)Definition 2.8, p. 8 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/InterlacingCone.lean · line 14 @[simps!] def permStep (σ : T → Perm (Fin k)) : Module.End ℝ (Fin k × T → ℝ) := .pi fun x ↦def
slabline 18For a type T, k' \in \mathbb{N} and D : T \to \mathbb{R}: slab k' D = \{\beta \in \mathbb{R}^{Fin k' \times T} : \beta \ge 0 and \sum_{b} \beta(b, j) \in [D(j) - 1, D(j)] for every j \in T\}.Definition 2.8, p. 8 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/InterlacingCone.lean · line 18 def slab (D : T → ℝ) := {β : Fin k' × T → ℝ | 0 ≤ β ∧ ∀ j, ∑ b, β (b, j) ∈ Icc (D j - 1) (D j)}def
pieriConelines 22–23For k \in \mathbb{N}, a type T with an addition and a one, v : T \to Bool and P \in \mathbb{R}:pieriConev P is the set of \nu \in \mathbb{R}^{Fin k \times T} such that for every j \in T and consecutive indices b, b' = b + 1 inFink:permStepv P 1 \nu at (b' if v(j) else b, j) is at most \nu(b, j) - \nu(b', j); with the trivial permutations this reads P\cdot \nu(b+1, j+1) \le \nu(b, j) if v(j) is true and \nu(b+1, j) \le P\cdot \nu(b, j+1) otherwise.Definition 2.8, p. 8 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/InterlacingCone.lean · line 22 def pieriCone := {ν | ∀ j (b b' : Fin k), b.1 + 1 = b' → permStep v P 1 ν (ite (v j) b' b, j) ≤lemma
det_interlacing_indicatorlines 27–36argumentFor k \in \mathbb{N} and weakly decreasing x, y :Fink \to \mathbb{R} (\mathit{hx}, \mathit{hy}): the determinant of the k\times k matrix whose (b, c) entry is 1 if y(c) < x(b) and 0 otherwise equals 1 if y(b) < x(b) for every b and x(c) \le y(b) whenever c = b + 1 (x_{1} > y_{1} \ge x_{2} > y_{2} \ge \cdots \ge x_k > y_k, interlacing), and 0 otherwise.Structured proof, 5 steps Lemma 5.1, p. 16 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/InterlacingCone.lean · lines 27–29 lemma det_interlacing_indicator {x y : Fin k → ℝ} (hx : Antitone x) (hy : Antitone y) : det (of fun b c ↦ ite (y c < x b) (1 : ℝ) 0) = ite ((∀ b, y b < x b) ∧ ∀ b c, b.1 + 1 = c.1 → x c ≤ y b) 1 0 := bylemma
isBounded_inter_slablines 40–42one-stepFor k \in \mathbb{N}, a finite type T, D : T \to \mathbb{R} and any set Y \subseteq \mathbb{R}^{Fin k \times T}: Y \cap slab k D is bounded (its points satisfy 0 \le \beta(b, j) \le D(j)).Proposition 5.2, p. 16 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/InterlacingCone.lean · lines 40–41 lemma isBounded_inter_slab [Fintype T] (D : T → ℝ) Y : Bornology.IsBounded (Y ∩ slab k D) := (Metric.isBounded_Icc ..).subset fun _ ⟨_, h, g⟩ ↦lemma
volume_inter_slab_eq_signed_sumlines 47–106argumentLet k, m \in \mathbb{N}, P > 1 real (hP), v :Fin(m+1) \to Bool (letters inFin(m+1) with its cyclic addition), D :Fin(m+1) \to \mathbb{R}, and \Omega \subseteq \mathbb{R}^{Fin k \times Fin(m+1)} withpermStepv P 1 \nu \in \Omega iff \nu \inpieriConev P, for every \nu (h\Omega). For \tau \in S_k let \Delta(\tau) = |\det(1 - q^{-1}\cdot \tau \ast)|, where q = P^{m+1} and \tau \ast =funLeft\mathbb{R} \mathbb{R} \tau is the linear map f \mapsto f\circ \tau of \mathbb{R}^{Fin k}. Then \operatorname{vol}(\Omega \cap slab k D) = \Delta(id)/k!\cdot(\sum_{\tau \in S_k} \operatorname{sgn}(\tau)/\Delta(\tau))\cdot \operatorname{vol}(slab k D), volumes being real numbers (Lebesgue measure). The arguments, in Lean's order: \{k\} \{m\} (P) \{v\} (hP) (D) \{\Omega \} (h\Omega) — the implicit section variable k : \mathbb{N} comes first (the statement mentions k only afterlet Δ τ := …, where the census's text reading of the signature stops); the use@volume_inter_slab_eq_signed_sum k 0 P ⊤ q 1 (pieriCone ⊤ P) …inprod_mul_volume_inter_slab(line 130) passes all eight in this order.Structured proof, 30 steps Proposition 5.2, p. 16 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/InterlacingCone.lean · lines 47–50 lemma volume_inter_slab_eq_signed_sum {v : Fin (m + 1) → _} (hP : 1 < P) D {Ω : Set _} (hΩ : ∀ ν, permStep v P 1 ν ∈ Ω ↔ ν ∈ pieriCone v P) : let Δ τ := |(1 - (P ^ (m + 1))⁻¹ • funLeft ℝ ℝ τ).det| volume.real (Ω ∩ slab k D) = Δ id / k.factorial * (∑ τ : Perm (Fin k), τ.sign / Δ τ) * volume.real (slab k D)lemma
prod_mul_volume_inter_slablines 111–138argumentLet N \ne 0, k \in \mathbb{N}, v : \mathbb{Z}/N \to Bool, P > 1 real (hP), D : \mathbb{Z}/N \to \mathbb{R} and \Omega \subseteq \mathbb{R}^{Fin k \times \mathbb{Z}/N} withpermStepv P 1 \nu \in \Omega iff \nu \inpieriConev P, for every \nu (h\Omega). Then (\Pi_{l=1}^{k}(q^{l} - 1)/(q - 1))\cdot \operatorname{vol}(\Omega \cap slab k D) = \operatorname{vol}(slab k D), q = P^{N} (volumes as real numbers). This is an identity of volumes for every real P > 1 and every D, and it is written multiplicatively: it also holds when the slab has volume zero. Only when q = P^{N} is a prime power, as in the application (P = p^{o_{0}}), is the factor \Pi_{l=1}^{k}(q^{l} - 1)/(q - 1) the number of full flags in a k-dimensional space over a field with q elements, so that the cyclic interlacing cone fills the share 1/(that number) of a slab of positive volume; for other P it need not be an integer (N = 1, P = 3/2, k = 2 give 5/2).Structured proof, 14 steps Theorem 2, p. 3 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/InterlacingCone.lean · lines 111–113 lemma prod_mul_volume_inter_slab {N} [NeZero N] {v P} (hP : 1 < P) (D : ZMod N → ℝ) {Ω} (hΩ : ∀ ν, permStep v P 1 ν ∈ Ω ↔ ν ∈ pieriCone v P) : (∏ l : Fin k, ((P ^ N) ^ (l.1 + 1) - 1) / (P ^ N - 1)) * volume.real (Ω ∩ slab k D) = volume.real (slab k D) := bylemma
stepanov_countlines 27–34argumentStepanov's count. Let W be a commutative local ring, R a commutative ring, \iota : W \to R a ring homomorphism, \Phi \in R[X] a nonzero polynomial (h_{0}) and E \in \mathbb{N} such that X^{E} divides the Taylor shift \Phi(X + \iota(x)) for every x \in W (h), i.e. (X - \iota(x))^{E} divides \Phi. Then E\cdotNat.(residue field of W) \le \deg \Phi (card natDegree). (Nat.is 0 for an infinite residue field, where the claim is trivial.)card Structured proof, 2 steps Lemma 4.1, p. 13 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/RootLemma.lean · lines 27–28 lemma stepanov_count (ι : W →+* R) {Φ} E (h0 : Φ ≠ 0) (h : ∀ x, X ^ E ∣ taylor (ι x) Φ) : E * .card (ResidueField W) ≤ Φ.natDegree := byclass
IsRealFiltrationline 38For a commutative ring R and a family F =(F_t)_{t\in \mathbb{R}} of additive subgroups of R: the classIsRealFiltrationF says that F is a decreasing multiplicative filtration indexed by \mathbb{R}: it is a graded monoid (1 \in F_0 and F_s\cdot F_t \subseteq F_{s+t}) and antitone (F_t \subseteq F_s for s \le t).Definition 2.7, p. 8 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/RootLemma.lean · line 38 class IsRealFiltration extends SetLike.GradedMonoid F where antitone : Antitone Fdef
adicFiltrationline 44For a commutative ring R, w \in R and t \in \mathbb{R}:adicFiltrationw t is the additive subgroup \{x \in R : w^{\lceil t\rceil_{+}} divides x\}, \lceil t\rceil_{+} = \max(\lceil t\rceil, 0) (Nat.); the w-adic filtration. A simp lemma.ceil Definition 2.7, p. 8 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/RootLemma.lean · line 44 @[simp] def adicFiltration := mk ⟨⟨{x | w ^ ⌈t⌉₊ ∣ x}, .add⟩, by simp⟩ .neg_rightinstance
(anonymous)lines 46–49automationFor a commutative ring R and w \in R: the w-adic filtration t \mapstoadicFiltrationw t is a decreasing multiplicative real filtration (an instance ofIsRealFiltration): 1 \in F_0 (w^{0} divides 1); if w^{\lceil s\rceil_{+}} \mid x and w^{\lceil t\rceil_{+}} \mid y then w^{\lceil s+t\rceil_{+}} \mid \mathit{xy}, as \lceil s + t\rceil_{+} \le \lceil s\rceil_{+} + \lceil t\rceil_{+}; and F_t \subseteq F_s for s \le t.The Lean statement
New/TwistedHecke/RootLemma.lean · line 46 instance : IsRealFiltration (adicFiltration w) wheredef
gaussFiltrationlines 53–54For a commutative ring R, a family F =(F_t)_{t\in \mathbb{R}} of additive subgroups of R, weights c : \sigma \to \mathbb{R} of the variables and t \in \mathbb{R}:gaussFiltrationF c t is the additive subgroup of polynomials f \in R[x_{\sigma}] whose coefficient at every monomial x^{\alpha} lies in F_{t - c\cdot \alpha}, c\cdot \alpha = \sum_{v} \alpha_{v}\cdot c(v) (Finsupp.c \alpha).weight Definition 2.7, p. 8 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/RootLemma.lean · line 53 def gaussFiltration := mk ⟨⟨{f : MvPolynomial σ R | ∀ α, f.coeff α ∈ F (t - weight c α)},lemma
mem_adicFiltration_of_nonposlines 58–59automationFor a commutative ring R, w, x \in R and t \in \mathbb{R}: if x \ne 0 implies t \le 0 (h), then x \inadicFiltrationw t (x = 0 lies in every subgroup; for t \le 0, \lceil t\rceil_{+} = 0).Lemma 4.2, p. 13 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/RootLemma.lean · line 58 lemma mem_adicFiltration_of_nonpos {x} (h : x ≠ 0 → t ≤ 0) : x ∈ adicFiltration w t := bylemma
monomial_mem_gaussFiltrationlines 61–62automationFor a commutative ring R, a family F of additive subgroups of R indexed by \mathbb{R}, weights c : \sigma \to \mathbb{R}, t \in \mathbb{R}, an exponent \alpha and x \in R: if x \in F_{t - c\cdot \alpha}, then the monomial x\cdot x^{\alpha} lies ingaussFiltrationF c t.Lemma 4.2, p. 13 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/RootLemma.lean · lines 61–62 lemma monomial_mem_gaussFiltration {α x} : x ∈ F (t - weight c α) → monomial α x ∈ gaussFiltration F c t := fun _ _ ↦ by aesopinstance
(anonymous)lines 64–68automationFor a commutative ring R, weights c : \sigma \to \mathbb{R} and a decreasing multiplicative real filtration F of R (IsRealFiltrationF): the Gauss filtration t \mapstogaussFiltrationF c t of R[x_{\sigma}] is again one (an instance): 1 = x^{0} has coefficient 1 \in F_0; the coefficient of x^{\gamma} in f\cdot g is \sum_{\alpha +\beta =\gamma} f_{\alpha} g_{\beta} \in F_{s+t-c\cdot \gamma}; and it is antitone because F is. (The text reading also lists the section variables k and a :Fink, which the body binds infun (a, b).)The Lean statement
New/TwistedHecke/RootLemma.lean · line 64 instance [IsRealFiltration F] : IsRealFiltration (gaussFiltration F c) wherelemma
aeval_sub_mem_of_gaussFiltrationlines 70–81argumentLet R be a commutative ring, A an R-algebra, F =(F_t) a family of additive subgroups of R indexed by \mathbb{R}, c : \sigma \to \mathbb{R} weights, t \in \mathbb{R}, \chi, \psi : R[x_{\sigma}] \to A homomorphisms of R-algebras (\psi an optional argument, by default \chi), G a decreasing multiplicative real filtration of A, and f \in R[x_{\sigma}]. Assume f \ingaussFiltrationF c t (h); \chi(x_i) \in G_{c(i)} for every variable i (u); \psi(x_i) - \chi(x_i) \in G_{c(i) + 1/20} for every i (v; proved by simp by default, e.g. when \psi = \chi); and the image of every x \in F_s in A lies in G_s, for all s \in \mathbb{R} and x \in R (y; proved by default when the target is again a Gauss filtration). Then \psi(f) \in G_t and \psi(f) - \chi(f) \in G_{t + 1/20}.Structured proof, 4 steps Lemma 4.2, p. 13 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/RootLemma.lean · lines 70–74 lemma aeval_sub_mem_of_gaussFiltration G [IsRealFiltration G] {f} (h : f ∈ gaussFiltration F c t) (u : ∀ i, χ (X i) ∈ G (c i)) (ψ := χ) (v : ∀ i, ψ (X i) - χ (X i) ∈ G (c i + 20⁻¹) := by simp) (y : ∀ {t x}, x ∈ F t → algebraMap R A x ∈ G t := by intros; (repeat apply monomial_mem_gaussFiltration); simpa) : ψ f ∈ G t ∧ ψ f - χ f ∈ G (t + 20⁻¹) := bylemma
TwistingData.lines 88–154argumentroot_lemma Root lemma: a term least in all frames obeys Frobenius inequalities. Let R be a commutative ring, N \ne 0, W a commutative local ring, T :TwistingDataN W R (with w \in R, w^{2} = p), k \in \mathbb{N}, a \ne a' inFink (ha), a letter i, a labelling \tau ofFink with \tau(a) = \tau(a') (h\tau), weights c :Fink \times \mathbb{Z}/N \to \mathbb{R} with c(u_s) - c(\overline{u}_{s}) \in [0.4, 1.6] for every letter s, where u_s =rootVarT a a' s and \overline{u}_{s} =rootVarT a' a s (hc), a polynomial f \in R[x_{b,s}], an exponent \alpha and l \in \mathbb{N}. Assume that for every g in the Levi subgroup of \tau,polyActionT g^{-1} f lies ingaussFiltration(adicFiltrationw) c (l + c\cdot \alpha), i.e. the coefficient of every Levi translate of f at x^{\beta} is divisible by w^{\lceil l + c\cdot \alpha - c\cdot \beta \rceil_{+}} (h), and that w^{l+1} does not divide the coefficient of x^{\alpha} in f (h_{0}). Then the excess of \alpha at the letter i is \le 0: \sum_{(b,s)} \alpha_{(b,s)}\cdotexcessWeightT i a a' (b, s) \le 0. (The text reading also lists the section variable w : R; the statement only mentions the field T.w.)Structured proof, 27 steps Theorem 1, p. 3 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/RootLemma.lean · lines 88–91 lemma TwistingData.root_lemma i (ha : a ≠ a') τ c {f α} (l : ℕ) (h : ∀ g ∈ levi W τ, T.polyAction g⁻¹ f ∈ gaussFiltration (adicFiltration T.w) c (l + weight c α)) (h0 : ¬T.w ^ (l + 1) ∣ f.coeff α) (hτ : τ a = τ a') (hc : ∀ s, c (T.rootVar a a' s) - c (T.rootVar a' a s) ∈ Set.Icc 0.4 1.6) : weight (T.excessWeight i a a') α ≤ 0 := bydef
twoBlockline 21For natural numbers k and r and an index b \inFink = \{0, \ldots, k-1\}:twoBlockk r b = 0 if b < r and 1 otherwise (a natural number). Used as the labelling \tau of Levi and parahoric subgroups with the two blocks \{b < r\} and \{b \ge r\}.Definition 2.3, p. 6 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 21 def twoBlock r (b : Fin k) := ite (b.1 < r) 0 1structure
TwistingDatalines 25–34For a natural number N, a commutative local ring W and a commutative ring R, twisting data T :TwistingDataN W R consist of natural numbers p and o_{0}, ring homomorphisms \iota_{s} : W \to R for s \in \mathbb{Z}/N (the letters), a labellingisEven: \mathbb{Z}/N \to Bool and an element w \in R, such that: p is prime; 5 \le P \coloneqq p^{o_{0}}; w^{2} = p in R; p divides \iota_{s+1}(x) - \iota_{s}(x)^{P} in R for every s \in \mathbb{Z}/N and x \in W (consecutive letters differ by the P-power Frobenius modulo p);isEven(s + 1) = notisEven(s) for every s (the letters alternate between even and odd; for N > 0 this forces N to be even); and the residue field of W hasNat.equal to P^{N} (so it is finite with q = P^{N} elements).card Definition 2.1, p. 6 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 25 structure TwistingData whereabbrev
TwistingData.line 42P Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R): T.P = p^{o_{0}}, a natural number (\ge 5 byfive_le_P).Definition 2.1, p. 6 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 42 abbrev P := T.p ^ T.o₀abbrev
TwistingData.line 45q Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R): T.q = P^{N} = p^{o_{0}N}, a natural number, the number of elements of the residue field of W.Definition 2.1, p. 6 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 45 abbrev q := T.P ^ Ndef
TwistingData.lines 49–51map For a natural number N, a commutative local ring W, commutative rings R and R', a ring homomorphism \varphi : R \to R' and twisting data T :TwistingDataN W R: map \varphi T (written T.map \varphi) is the twisting data over R' with the same p, o_{0} andisEven, letters \varphi \circ \iota_{s} and element \varphi(w); the conditions w'^{2} = p and p \mid \iota '_{s+1}(x) - \iota '_{s}(x)^{P} follow by applying \varphi.Definition 2.1, p. 6 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 49 def map := {T withdef
TwistingData.lines 55–56letterMatrix Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), k a natural number and s \in \mathbb{Z}/N a letter:letterMatrixT s : \mathrm{GL}_k(W) \to Mat_k(R) is the monoid homomorphism g \mapsto g_s, where g_s = \iota_{s}(g) (\iota_{s} applied to each entry) if s is even and g_s = \iota_{s}((g^{-1})^{\mathsf{T}}) if s is odd. (Lean's explicit arguments are expected to be T and s; the text reading also lists the section variable g, see binders.)Definition 2.3, p. 6 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 55 @[simps -isSimp] def letterMatrix := MonoidHom.mk ⟨fun g : GL (Fin k) W ↦def
TwistingData.lines 60–61polyAction Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), N \ne 0 and k a natural number:polyActionT : \mathrm{GL}_k(W) \to \operatorname{End}_{R-\text{alg}}(R[x_{b,s} : b \inFink, s \in \mathbb{Z}/N]) is the monoid homomorphism sending g to the R-algebra endomorphismlinSubstof the block diagonal matrix with blocks g_s =letterMatrixT s g; it sends the variable x_{c,s} to \sum_{b}(g_s)_{\mathit{bc}}\cdot x_{b,s} (\text{polyAction}_X), so g acts on the variables of letter s through g_s. (Lean's explicit argument is expected to be T alone.)Definition 2.3, p. 6 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 60 def polyAction := MonoidHom.mk ⟨fun g ↦ linSubst (blockDiagonal (T.letterMatrix (k := k) · g)),def
TwistingData.lines 65–66letterRep Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), N \ne 0 and k, n natural numbers:letterRepT n : \mathrm{GL}_k(W) \toMat(R) is the monoid homomorphism g \mapsto \rho(g) = \otimes_{s\in \mathbb{Z}/N} Sym^{n}(g_s), the Kronecker product over the letters of the n-th symmetric power matrices (symPowMatrixn, in the monomial basis) of g_s =letterMatrixT s g; its rows and columns are indexed by families \beta =(\beta_{s})_{s\in \mathbb{Z}/N} of exponent vectors of degree n onFink (\beta_{s} \in Monomials (Fink) n), and \rho(g)_{\beta,\alpha} = \Pi_{s} Sym^{n}(g_s)_{\beta_{s},\alpha_{s}}. (Lean's explicit arguments are expected to be T and n.)Definition 2.3, p. 6 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 65 @[simps -isSimp] def letterRep := MonoidHom.mk ⟨fun g ↦def
TwistingData.line 70deepIndicator Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), k, r natural numbers and a variable x =(b, s) \inFink \times \mathbb{Z}/N:deepIndicatorT r x = 1 if [s is even] \leftrightarrow [r \le b] holds (s even and b \ge r, or s odd and b < r: x is deep for r), and 0 otherwise (a natural number).Definition 2.4, p. 7 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 70 def deepIndicator := if T.isEven x.2 ↔ r ≤ x.1 then 1 else 0def
TwistingData.line 74depth Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), N \ne 0, natural numbers k, n, r and a family \beta =(\beta_{s})_{s\in \mathbb{Z}/N} of exponent vectors of degree n onFink: depth T k n r \beta = \sum_{(b,s)} \beta_{s}(b)\cdotdeepIndicatorT r (b, s), the total degree of the monomial x^{\beta} in the variables that are deep for r. (k is an explicit argument here.)Definition 2.4, p. 7 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 74 def depth k n r β := (exponentOf (a := n) β).weight (T.deepIndicator (k := k) r)def
TwistingData.line 77rootVar Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), k a natural number, indices a, a' \inFink and a letter s:rootVarT a a' s =(a', s) if s is even and (a, s) if s is odd, a variable inFink \times \mathbb{Z}/N. (simps lemmas for its two components.)Definition 2.5, p. 7 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 77 @[simps] def rootVar := (ite (T.isEven s) a' a, s)def
TwistingData.lines 81–82excessWeight Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), k a natural number, a letter i, indices a, a' \inFink and a variable x =(b, s):excessWeightT i a a' x =([x = u_s]\cdot P^{1 +((s - 1 - i) \text{mod} N)} - [x = \overline{u}_{s}]\cdot P^{(s - i) \text{mod} N}) / q \in \mathbb{R}, where u_s =rootVarT a a' s, \overline{u}_{s} =rootVarT a' a s, [\cdot] is 1 or 0 and (\cdot) mod N isZMod.. For N > 0, 1 +((s - 1 - i) mod N) is N for s = i and (s - i) mod N otherwise (val one_add_val_sub_one_sub). Hence, when a \ne a' (so that u_s \ne \overline{u}_{s}): u_s weighs P^{(s-i) \text{mod} N}/q (and P^{N}/q = 1 for s = i), \overline{u}_{s} weighs -P^{(s-i) \text{mod} N}/q (-1/q for s = i), and every other variable 0. The definition also allows a = a': then u_s = \overline{u}_{s} =(a, s) for every s and the two terms add, so (a, i) weighs 1 - 1/q, (a, s) weighs 0 for s \ne i, and every other variable 0.Definition 2.5, p. 7 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 81 def excessWeight := (ite (x = T.rootVar a a' x.2) (T.P ^ (1 + (x.2 - 1 - i).val)) 0 -def
TwistingData.lines 86–87translatesIn Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), N \ne 0, natural numbers k and n, a labelling \tau :Fink \to \mathbb{N} (the definition does not write the codomain; its call@levi k W _ τfixes it, as levi takes \tau :Fink \to \mathbb{N}, Lib/General/LinearAlgebra/ExtendColumns.:112), an ideal I \subseteq R and a set B of families \beta =(\beta_{s}) of degree-n exponent vectors:lean translatesInT n \tau I B is the R-submodule of coefficient vectors F : (\mathbb{Z}/N \to Monomials (Fink) n) \to R such that (\rho(g)F)_{\beta} \in I for every g in the Levi subgroup levi W \tau (matrices with g_{\mathit{ij}} = 0 whenever \tau(i) \ne \tau(j)) and every \beta \in B, \rho =letterRepT n. (Lean's explicit arguments are expected to be T, n, \tau, I, B.)Definition 2.6, p. 7 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 86 def translatesIn τ (I : Ideal R) (B : Set _) := (⟨⟨⟨{F | ∀ g ∈ @levi k W _ τ, ∀ β ∈ B,abbrev
TwistingData.lines 91–92excessCond Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), N \ne 0, natural numbers k, n, indices a, a' \inFink, an ideal I \subseteq R and a real number h:excessCondT n a a' I h =translatesInT n (twoBlockk a') I \{\beta : some letter i has \sum_{(b,s)} \beta_{s}(b)\cdotexcessWeightT i a a' (b, s) > h\}: the coefficient vectors F with (\rho(g)F)_{\beta} \in I for every g \in \mathrm{GL}_k(W) block diagonal for the blocks \{b < a'\}, \{b \ge a'\} and every \beta whose excess at some letter exceeds h. (Lean's explicit arguments are expected to be T, n, a, a', I, h.)Definition 2.6, p. 7 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 91 abbrev excessCond I h :=abbrev
TwistingData.line 96deepForms Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), N \ne 0 and natural numbers k, n, r, d:deepFormsT k n r d =translatesInT n 0 \perp \{\beta : depth T k n r \beta < d\}: the coefficient vectors F such that (\rho(g)F)_{\beta} = 0 for every g \in \mathrm{GL}_k(W) (the Levi subgroup of the constant labelling 0 is all of \mathrm{GL}_k(W)) and every \beta of depth < d; i.e. every translate \rho(g)F has only monomials of depth at least d (the space V_d).Definition 2.6, p. 7 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 96 abbrev deepForms k n r d := T.translatesIn n 0 ⊥ {β | T.depth k n r β < d}lemma
TwistingData.line 103automationone_lt_P Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R): 1 < P, as real numbers (from 5 \le P).Lemma 3.1, p. 12 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 103 lemma one_lt_P : (1 : ℝ) < T.P := mod_cast by lialemma
TwistingData.line 105automationone_lt_q Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R) and N \ne 0: 1 < q = P^{N}, as real numbers.Lemma 3.1, p. 12 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 105 lemma one_lt_q : (1 : ℝ) < T.q := mod_cast by grindlemma
TwistingData.lines 108–109one-stepfrobenius_pow_congr Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), n \in \mathbb{N}, a letter s and x \in W: p divides \iota_{s+n}(x) - \iota_{s}(x)^{P^{n}} in R (induction on n from the Frobenius congruence of T).Lemma 3.1, p. 12 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 108 lemma frobenius_pow_congr x : ↑T.p ∣ T.ι (s + n) x - T.ι s x ^ T.P ^ n := have := T.frobenius_congrlemma
TwistingData.line 114automationw_ne_zero Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R): if R has characteristic zero, then w \ne 0 (w^{2} = p \ne 0).Lemma 3.1, p. 12 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 114 lemma w_ne_zero [CharZero R] : T.w ≠ 0 := by grind [Nat.cast_inj, T.prime.pos]lemma
TwistingData.line 117automationfinite_residueField Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R): the residue field of W is finite (itsNat.is P^{N} > 0). T is included explicitly (include T).card Lemma 3.1, p. 12 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 117 include T in lemma finite_residueField : Finite (ResidueField W) := by grind [Nat.card_pos_iff]lemma
TwistingData.lines 119–124argumentp_dvd_letterMatrix_of_mem_parahoric Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), N \ne 0, k \in \mathbb{N}, a labelling \tau ofFink, g \in \mathrm{GL}_k(W) in the parahoric subgroup of \tau (\mathit{hg}: the reduction of g modulo the maximal ideal has (i, j) entry 0 whenever \tau(i) < \tau(j)), a letter s and indices i, j \inFink with \tau(i) < \tau(j) if s is even and \tau(j) < \tau(i) if s is odd (h): p divides the (i, j) entry of g_s =letterMatrixT s g in R.Structured proof, 2 steps Lemma 3.2, p. 12 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · lines 119–120 lemma p_dvd_letterMatrix_of_mem_parahoric (hg : g ∈ parahoric W τ) i j (h : ite (T.isEven s) (τ i < τ j) (τ j < τ i)) : ↑T.p ∣ T.letterMatrix s g i j := ((isUnit_one_sub_self_of_mem_nonunitslemma
TwistingData.lines 128–129automationpolyAction_X Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), N \ne 0, k \in \mathbb{N}, g \in \mathrm{GL}_k(W) and a variable x =(c, s):polyActionT g (x_{(c,s)}) = \sum_{b\in Fin k} C((g_s)_{\mathit{bc}})\cdot x_{(b,s)}, g_s =letterMatrixT s g.Lemma 3.1, p. 12 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · lines 128–129 lemma polyAction_X : T.polyAction g (X x) = ∑ b, C (T.letterMatrix x.2 g b x.1) * X (b, x.2) := by simplemma
TwistingData.lines 131–133automationdiagonal_pow_depth Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), N \ne 0, natural numbers k, n, r and an element x \in R: the diagonal matrix indexed by families \beta with entries x^{\text{depth} T k n r \beta} equals the Kronecker product over the letters s of Sym^{n} of the k\times k diagonal matrix \operatorname{diag}(x^{\text{deepIndicator} T r(b, s)})_{b\in Fin k}. (The text reading also lists the section variable s, which the statement binds infun s ↦.)Lemma 3.1, p. 12 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · lines 131–132 lemma diagonal_pow_depth (x : R) : diagonal (x ^ T.depth k n r ·) = kroneckerPi fun s ↦ symPowMatrix n (diagonal (n := Fin k) (x ^ T.deepIndicator r ⟨·, s⟩)) := by ext; simp [apply_ite,lemma
TwistingData.lines 137–140one-steppolyAction_polyOfCoeffs Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), N \ne 0, natural numbers k, n, g \in \mathrm{GL}_k(W) and a coefficient vector F : (\mathbb{Z}/N \to Monomials (Fink) n) \to R:polyActionT g (polyOfCoeffsF) =polyOfCoeffs(\rho(g)\cdot F), wherepolyOfCoeffsF = \sum_{\beta} F(\beta)\cdot x^{\beta} and \rho =letterRepT n; i.e. \rho(g) is the matrix of g acting on forms of degree n in each letter.Structured proof, 1 step Lemma 3.1, p. 12 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · lines 137–138 lemma polyAction_polyOfCoeffs F : T.polyAction g (polyOfCoeffs F) = polyOfCoeffs (T.letterRep n g *ᵥ F) := bylemma
TwistingData.line 142automationletterRep_map Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), N \ne 0, a commutative ring R', a ring homomorphism \varphi : R \to R', natural numbers k, n and g \in \mathrm{GL}_k(W):letterRep(T.map \varphi) n g = \varphi applied entrywise toletterRepT n g.Lemma 3.1, p. 12 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 142 lemma letterRep_map : (T.map φ).letterRep n g = (T.letterRep n g).map φ := by aesoplemma
TwistingData.lines 144–145automationone_add_val_sub_one_sub For a natural number N \ne 0 and letters s, i \in \mathbb{Z}/N: 1 +((s - 1 - i) mod N) = N if s = i and (s - i) mod N otherwise ((\cdot) mod N isZMod., the representative in \{0, \ldots, N-1\}). A simp lemma.val Lemma 3.3, p. 13 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 144 @[simp] lemma one_add_val_sub_one_sub : 1 + (s - 1 - i).val = ite (s = i) N (s - i).val := bylemma
TwistingData.lines 147–148automationfive_mul_P_pow_le_q Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), N \ne 0 and a letter s: 5\cdot P^{s \text{mod} N} \le q, as natural numbers (s mod N \le N - 1 and 5 \le P).Lemma 3.3, p. 13 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · lines 147–148 lemma five_mul_P_pow_le_q : 5 * T.P ^ s.val ≤ T.q := by grw [T.five_le_P, ← pow_succ', q]; gcongr <;> grindlemma
TwistingData.lines 150–152argumentexcessWeight_mem_Icc Let N be a natural number, W a commutative local ring, R a commutative ring and T twisting data over them (T :TwistingDataN W R, with prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to R for s \in \mathbb{Z}/N, parityisEvenand w \in R), N \ne 0, k \in \mathbb{N}, a letter i, indices a, a' \inFink and a variable x:excessWeightT i a a' x \in [-1/5, 1].Structured proof, 2 steps Lemma 3.3, p. 13 of Elementary divisors of a Frobenius-twisted Hecke operator
The Lean statement
New/TwistedHecke/TwistingData.lean · line 150 lemma excessWeight_mem_Icc : T.excessWeight i a a' x ∈ Set.Icc (-5⁻¹) 1 :=
What it takes for granted
Unit 24 · Green cuspidal characters and their orthogonality, Unit 29 · Group-algebra projectors and averaging in unitary representations, Unit 57 · Fitting ideal bounds and multivariate Hensel lifting, Unit 112 · Matrix determinant estimates and simultaneous eigenvectors, Unit 120 · Witt extension for Hermitian frames over fields and integral adeles, Unit 149 · A crude bound for the class number of the standard definite hermitian genus, and divisibility of indices of submodules
Unit 57 · Fitting ideal bounds and multivariate Hensel lifting · 13 declarations
For an m×σ matrix z over R: the R-algebra map R[x_b : b ∈ σ] → R[x_t : t ∈ m] sending x_b to Σ_t z_{tb}·x_t.
Monomials σ a: the exponent vectors α : σ →₀ ℕ of total degree a (σ finite).
symPowMatrix a : Mat_σ(R) → Mat_{Monomials σ a}(R), the monoid homomorphism sending A to the matrix (β, α) ↦ coefficient of x^β in linSubst A (x^α), the a-th symmetric power in the monomial basis.
For a family β : S → Monomials σ a (S finite): the exponent vector on σ × S taking the value β_s(b) at (b, s) (an embedding).
For a coefficient function F on families β : S → Monomials σ a: the polynomial Σ_β F(β)·x^{exponentOf β} in the variables (b, s) (a linear map).
sum_monomials_eq_of_isHomogeneousunit 57If f is homogeneous of degree a, then Σ_{β ∈ Monomials σ a} (coefficient of β in f)·x^β = f.
Monomials.unit 57isHomogeneous_linSubst For a square matrix A and α ∈ Monomials σ a: linSubst A (x^α) is homogeneous of degree a.
exists_le_cost_of_vanishingunit 57Over a field K, give the variable u the cost 1/κ_u (κ_u > 0). Let z : S → K^ι be injective with Π κ_u ≤ |S|, and suppose for every u there is a polynomial g_u all of whose monomials cost < 1 with g_u(z_t) = (z_t)_u^{κ_u} for all t. Then every f ≠ 0 lying in the d-th power of the vanishing ideal of each point z_t has a monomial α in its support with d ≤ Σ_u α_u/κ_u.
The bilinear form on polynomials ⟨P, Q⟩ = P(∂)Q(0), for which monomials are orthogonal and ⟨x^d, x^d⟩ = d! (d! = Π d_i!).
For a matrix z and polynomials f, g: ⟨f, linSubst z g⟩ = ⟨linSubst zᵀ f, g⟩ for the Fock pairing.
jet R f F = Σ_{m ∈ support f} f_m·m!·F_m (the pairing of a polynomial with a power series).
Every α ∈ Monomials σ a has total degree a.
symPowMatrix a (A mapped by ψ) = (symPowMatrix a A) mapped by ψ.
Unit 112 · Matrix determinant estimates and simultaneous eigenvectors · 8 declarations
For a finite family of matrices A_s (s ∈ S): the matrix indexed by families with entry Π_s (A_s)_{β_s, α_s} at (β, α).
For a labelling τ of the indices: the subgroup of GL_k(W) of matrices whose (i, j) entry vanishes whenever τ(i) ≠ τ(j).
For a labelling τ and W local: the matrices in GL_k(W) whose reduction modulo the maximal ideal lies in the parabolic subgroup for the order dual of τ, i.e. has (i, j) entry 0 whenever τ(i) < τ(j).
For finite families of matrices A_s, B_s: kroneckerPi (A_s·B_s) = kroneckerPi A · kroneckerPi B.
kroneckerPi (φ ∘ A_s) = φ applied entrywise to kroneckerPi A.
For a labelling lev of the indices with values in a linear order: the subgroup of GL_n(R) of matrices g with g_{ij} = 0 whenever lev(j) < lev(i) (block upper triangular for lev).
measurePreserving_curryunit 112The currying equivalence (ι × Y → α) ≃ (ι → Y → α) of finite products preserves the product (Lebesgue) measure.
IsValuationPair.unit 112smith_normal_form If the subring R of a commutative ring A satisfies IsValuationPair, every square matrix y over A is k·diag(d)·k' with k, k' ∈ GL_n(R) (integral with integral inverse) and d with entries in A.
Unit 29 · Group-algebra projectors and averaging in unitary representations · 2 declarations
For distinct indices i ≠ j and a ∈ R: the element 1 + a·E_{ij} of GL_n(R), with inverse 1 − a·E_{ij}.
For g ∈ GL_n(R) (R a commutative ring, n finite): the transpose gᵀ as an element of GL_n(R), with inverse (g⁻¹)ᵀ.
Unit 24 · Green cuspidal characters and their orthogonality · 1 declaration
For a finite field k with q elements and a finite index type n: |GL_n(k)| = Π_{i<|n|} q^i(q^{i+1} − 1), as an identity in any field.
Unit 120 · Witt extension for Hermitian frames over fields and integral adeles · 2 declarations
If A is an integral domain and a valuation ring, the pair (A, ⊤) satisfies IsValuationPair.
IsValuationPair.unit 120hermite If (A, R) satisfies IsValuationPair, ι : k ↪ n, y an n×k matrix over A and wt : k → ℕ: y = U_{·,ι}·D and (U⁻¹)_{ι,·}·y = D for some U ∈ GL_n(R) and D block triangular for wt.
Unit 149 · A crude bound for the class number of the standard definite hermitian genus, and divisibility of indices of submodules · 6 declarations
Over a valuation domain O: if det A divides z and N contains A(O^ι), then IndexDvd O^ι N z.
IndexDvd M N z and IndexDvd N P a give IndexDvd M P (z·a).
IndexDvd M N z, f linear, M' ⊆ f(M) + N' and f(N) ⊆ N' give IndexDvd M' N' z.
For an endomorphism f with f(M) ⊆ M: IndexDvd M (f(M) + aM) z and IndexDvd M (N + aM) z' give IndexDvd M (f(N) + aM) (z·z').
HasType p M n y c (y an O-linear endomorphism of V, M ⊆ V a submodule, n ∈ ℕ, c ∈ ℝ): y(M) ⊆ M and there is a natural number l ≤ c with IndexDvd M (y(M) + pⁿ·M) (p^l), IndexDvd as defined in New/Core/ModuleIndex.lean:20 (the determinant condition on finite families, see the import IndexDvd).
IndexDvd M N z, for submodules M, N of a module V over a commutative ring O and z ∈ O: every finite family Φ_1, …, Φ_n of elements of M admits a square n×n matrix m over O with det m dividing z and Σ_k m_{ik}·Φ_k ∈ N for every i. A condition on finite families and determinants: it is defined, and meaningful, also when M has torsion or M/N is infinite; it is not a statement about the cardinality of M/N.
From Lean's own library · 20 facts
sum_pow_char_pow, CharP.cast_eq_zero In characteristic p, (Σ a_i)^{p^n} = Σ a_i^{p^n}; p = 0 in a ring of characteristic p.
isUnit_one_sub_self_of_mem_nonunits, IsLocalRing.residue_eq_zero_iff In a local ring 1 − x is a unit for x in the maximal ideal; the residue of x is 0 iff x lies in the maximal ideal.
Matrix.vecMul_surjective_iff_isUnit, Matrix. det_of_isUpperTriangular v ↦ v·M is surjective iff M is invertible; the determinant of an upper triangular matrix is the product of its diagonal.
Finset.sum_translate A sum over an additive group is invariant under translation of the summation variable.
IsLocalRing.subsingleton_tensorProduct Nakayama's lemma in the form used: over a commutative local ring R with residue field k, a finitely generated R-module M (Module.Finite R M) is zero iff k ⊗_R M is zero (both stated as Subsingleton). ClassMeans.lean opens IsLocalRing and applies it (line 41) to the quotient of the finite free W-module W^{Monomials σ n} by q, which is finitely generated.
LinearMap.liftBaseChangeEquiv For a W-algebra κ (here the residue field of W): κ-linear maps κ ⊗_W M → V into a κ-module V correspond to W-linear maps M → V.
MvPolynomial.IsHomogeneous. eq_zero_of_forall_eval_eq_zero_of_le_card Let R be an integral domain (a commutative ring with IsDomain R), σ a type and F ∈ R[x_σ] homogeneous of degree n. If F vanishes at every point r : σ → R and n ≤ #R (the cardinal of R; equality allowed, so the degree may equal the number of elements of a finite field), then F = 0. Used at ClassMeans.lean 44–50 over the residue field κ of W, with n + e ≤ Nat.card κ ≤ #κ.
Module.free_of_flat_of_isLocalRing Over a commutative local ring R, a finitely generated (Module.Finite R P; finite presentation is not assumed) flat R-module P is free (Stacks 00NZ).
Module.Flat. flat_iff_torsion_eq_bot_of_isBezout Over a Bézout integral domain R (every finitely generated ideal is principal; for instance a valuation domain), an R-module M is flat iff its torsion submodule is 0 (Stacks 0539). The proof of exists_mean uses the direction torsion-free ⇒ flat (
., ClassMeans.lean 107–108) for a submodule N of a finite free module over the valuation domain O; free_of_flat_of_isLocalRing then makes N free.2 Polynomial.Monic. not_dvd_of_natDegree_lt, Fintype. prod_dvd_of_coprime A nonzero polynomial is not divisible by a monic polynomial of larger degree; a product of pairwise coprime divisors divides.
MvPolynomial.induction_on'', MvPolynomial. induction_on' Induction principles for multivariate polynomials (constants, sums with a new monomial, products with a variable; resp. monomials and sums).
SetLike.mul_mem_graded, SetLike. prod_mem_graded, SetLike. pow_mem_graded In a graded monoid of subgroups: products, finite products and powers of elements land in the sum of the degrees.
add_pow_prime_pow_eq(x + y)^{p^n} = x^{p^n} + y^{p^n} + p·(an explicit sum) in a commutative ring, for a prime p.
MeasureTheory.Measure. addHaar_preimage_linearMap For an additive Haar measure μ and an invertible linear map f: μ(f⁻¹(X)) = |det f|⁻¹·μ(X).
Matrix.det_one_sub_mul_comm (Sylvester) det(1 − AB) = det(1 − BA) for rectangular matrices A, B of compatible sizes.
tendsto_card_div_pow_atTop_volumeLet ι be a finite type and s ⊆ ℝ^ι a set that is bounded (hs₁), measurable (hs₂) and whose frontier has volume 0 (hs₃). Then #(s ∩ (1/m)·ℤ^ι)/m^{|ι|} tends to the volume of s (as a real number) as the natural number m tends to ∞. finrank_excessCond_le_volume supplies the three hypotheses: boundedness by isBounded_inter_slab, measurability by
measurability, and a null frontier because the set is convex (Convex.addHaar_frontier).MeasureTheory.volume_preserving_piFinSuccAbove, Measure. prod_apply_le ℝ^{n+1} ≅ ℝ × ℝ^n preserves volume; the product measure of a set is bounded by the integral of the measures of its slices.
ValuationRing.cond In a valuation ring, for all a, b: a·c = b or b·c = a for some c (one divides the other).
MultilinearMap.map_add_univ A multilinear map at a sum of two tuples is the sum over subsets s of its values at the tuples equal to the first on s and to the second off s.
Nat.exists_not_and_succ_of_not_zero_of_exists For a predicate p on ℕ: if p(0) fails (H') and p(n) holds for some n (H), then there is n with ¬p(n) and p(n + 1). (It gives an order at which p switches on; through
choosethe proof of exists_depth_factorization sees only this, not that n + 1 is the least n with p(n).)
Where it is used
Its files
The program check
78 of 78 statements stand at the lines the dossier gives; 32 structured proofs with 357 steps, 320 of them leaves, the longest of 8 lines; 357 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.