Structured proof · Unit 144
lemma TwistingData.frobOperator_mem
TwistingData N W O (prime p, P = p^{o_{0}}, q = P^{N}, letters \iota_{s} : W \to O, parity isEven, 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 of frobOperator), a decreasing multiplicative real filtration G of R, reals \alpha(s, d, b) (s \in \mathbb{Z}/N, d \in \mathbb{N}, b \in Fin k), x : Fin k \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 + deepIndicator T 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 of frobOperator T 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.)linSubst(B_s) applied to a monomial, which lies in a Gauss filtration once each entry (B_s)_{\mathit{bc}} lies in G_{x(b,s) - k(\ell +2)u}. For even letters this is the product bound (\psi(s,m-1)\cdots \psi(s,0))_{\mathit{bc}} \in G_{\alpha(s,m,b) -(m+1)u} (induction on m); for odd letters the adjugate entry is a signed sum of products of k - 1 such entries, and \sum_{b} \alpha(s, m, b) = 0 turns the levels into -\alpha(s, m, b).Lower the level (antitone: x\cdot
exponentOf(\beta) - N\cdot n\cdot k(\ell +2)u is at most the sum over the letters s of \sum_{b} \beta_{s}(b)\cdot(x(b, s) - k(\ell +2)u), as |\beta_{s}| = n) and use multiplicativity over the letters (prod_mem_graded): it suffices that each factor, the (\beta_{s}, \gamma_{s}) entry of Sym^{n}(B_s), lies in G at the level \sum_{b} \beta_{s}(b)(x(b,s) - k(\ell +2)u).Uses
Monomials.unit 57,degree_eq exponentOfunit 57,kroneckerPiunit 112,SetLike.prod_mem_graded For each letter s:
linSubst(B_s) applied to x^{\gamma_{s}} lies in the Gauss filtration over G with weights k(\ell +2)u - x(\cdot, s) at level 0 (so its coefficient at x^{\beta_{s}}, the entry of Sym^{n}(B_s), is at the level above). AslinSubst(B_s)(x^{\gamma_{s}}) = \Pi_{c}(\sum_{b}(B_s)_{\mathit{bc}} x_b)^{\gamma_{s}(c)}, it suffices that each (B_s)_{\mathit{bc}} \in G_{x(b,s) - k(\ell +2)u}.Lean states
_ ∈ gaussFiltration G (k * ((ℓ + 2) * u) - x ⟨·, s⟩Uses
gaussFiltrationunit 144,monomial_mem_gaussFiltrationunit 144,linSubstunit 57,SetLike.prod_pow_mem_graded By \mathit{hx} the goal is (B_s)_{\mathit{bc}} \in G_{\pm \alpha(s, m, b) - k(\ell +2)u} with m = \ell +
deepIndicatorT r (b, s).Name m = \ell +
deepIndicatorT r (b, s).m \le \ell + 1 (the indicator is 0 or 1).
Claim h: for all b, c, (\psi(s, m-1)\cdots \psi(s, 0))_{\mathit{bc}} \in G_{\alpha(s,m,b) -(m+1)u}.
Lean states
((range m).map (ψ s)).reverse.prod b c ∈ G (α s m b - (m + 1) * u)Induction on m (for all rows b); write the product for m + 1 as \psi(s, m) times the product for m.
m = 0: the empty product is the identity; its entries 0 and 1 lie in G_{\alpha(s,0,b) - u}, as 1 \in G_0 and \alpha(s,0,b) - u \le 0 (e).
Uses
SetLike.GradedOne. one_mem Step: (\psi(s,m)\cdot \Pi)_{\mathit{bc}} = \sum_{x} \psi(s,m)_{\mathit{bx}}\Pi_{\mathit{xc}}, and each term lies in G_{\alpha(s,m+1,b) - \alpha(s,m,x) - u + \alpha(s,m,x) -(m+1)u} = G_{\alpha(s,m+1,b) -(m+2)u} (H for d = m \le \ell, multiplicativity, induction hypothesis I).
Uses
SetLike.mul_mem_graded
Split on the parity of s; for odd s expand the transposed adjugate entry as a cofactor, a signed sum over permutations of products of entries (Cramer's rule).
Even s: by h, as (m + 1)u \le k(\ell + 2)u (m + 1 \le \ell + 2 and k \ge 1, the index b exists).
Usesstep 1.1.3, step 1.1.4
Odd s: each term of the cofactor is \pm a product of k - 1 entries of \Pi, one from each row b' \ne b, lying at the level \sum_{b'\ne b}(\alpha(s,m,b') -(m+1)u) = -\alpha(s,m,b) -(k-1)(m+1)u (as \sum_{b'} \alpha(s,m,b') = 0), which is at least -\alpha(s,m,b) - k(\ell +2)u.
Usesstep 1.1.3, step 1.1.4,
Finset.,sum_update_of_mem Matrix.updateCol_apply