Structured proof · Unit 135
lemma card_mul_sum_det_le
hY). Assume (h): for b \in \{true, false\} and every nonzero v \in k^{m}, \sum \Theta(s) over the s \in G with g_b(\pi(s))\cdot(A(b)v) = A(b)v is at most Y, where g_{\mathrm{true}}(\gamma) =(\gamma^{\mathsf{T}})^{-1} (invTransposeGL, the contragredient) and g_{\mathrm{false}}(\gamma) = \gamma, and \mathrm{GL}_n(k) acts on k^{n} by matrix–vector multiplication. Then q\cdot \sum_{s \in G : \det(A(\text{true})^{\mathsf{T}}\cdot \pi(s)\cdot A(\text{false})) = 0} \Theta(s) \le 2\cdot \sum_{s\in G} \Theta(s) + q^{|m|}\cdot \sqrt{q^{|n|}}\cdot Y. (The text reading of the signature also lists the section variables b (an orthonormal basis) and v : G \to H; the statement's b and v are bound variables of h and \mathit{hu}, so Lean is expected not to take them.)Let r = \sqrt{q^{|n|}} (q = |k|).
Choose a primitive additive character \psi : k \to \mathbb{C} (p: \psi is primitive).
Lean states
∃ _, _Uses
FiniteField.primitiveChar_to_Complex_isPrimitive Claim N: for an orthonormal family c : k^{n} \to
EuclideanSpace\mathbb{C} (k^{n}), an automorphism \sigma of the group \mathrm{GL}_n(k) and a vector x \in k^{n}: \sum_{s \in G : \sigma(\pi(s))\cdot x = x} \Theta(s) = \lVert \sum_{a\in G} c(\sigma(\pi(a))\cdot x) \otimes u(a)\rVert^{2} / |G|.Lean states
∑ s with x = σ (π s) • x, Θ s = ‖∑ a, c (σ (π a) • x) ⊗ₜ[ℂ] u a‖ ^ 2 / card GWrite the squared norm as \operatorname{Re}\langle w, w\rangle and expand it with
inner_sum_sum_eq_card_mul: the inner product of the terms at a and b depends only on a^{-1}b, so \lVert w\rVert^{2} = |G|\cdot \sum_{g} f(g) with f(a^{-1}b) = \langle c(\sigma \pi(a)x), c(\sigma \pi(b)x)\rangle \cdot \Theta(a^{-1}b) (a side condition, that the inner product of the terms has this form, remains).Uses
inner_sum_sum_eq_card_mulunit 135,norm_sq_eq_re_innerBy orthonormality \langle c(\sigma \pi(a)x), c(\sigma \pi(b)x)\rangle is 1 or 0 according as \sigma \pi(a)x = \sigma \pi(b)x; so |G|\cdot \sum_{g} f(g) is |G| times the sum of \Theta(s) over s with \sigma \pi(s)x = x, which is the claimed equation (a filtered sum).
Uses
Finset.sum_filter The side condition: \langle c(\sigma \pi(a)x) \otimes u(a), c(\sigma \pi(b)x) \otimes u(b)\rangle = [\sigma \pi(a)x = \sigma \pi(b)x]\cdot \langle u(a), u(b)\rangle = [x = \sigma \pi(a^{-1}b)x]\cdot \Theta(a^{-1}b), by orthonormality of c, \mathit{hu} and the group law of \sigma \circ \pi.
Uses
orthonormal_iff_ite,eq_inv_smul_iff
Let W(y, v, s) = \psi(y\cdot A(true)^{\mathsf{T}}\cdot \pi(s)\cdot A(false)\cdot v)\cdot \Theta(s) for y, v \in k^{m} (y as a row vector).
Reduce the claim to three inequalities: (i) the left side is at most \sum_{y\in k^{m}} E_{v\in k^{m}} \operatorname{Re} \sum_{s} W(y, v, s) (E the average); (ii) for all y, v: \operatorname{Re} \sum_{s} W(y, v, s) \le [y = 0]\cdot \sum \Theta + [v = 0]\cdot \sum \Theta + r\cdot Y; (iii) \sum_{y} E_v of the right side of (ii) is at most the right side of the claim.
In (i), sum the characters: \sum_{y} E_v \psi(y\cdot M_s\cdot v) (M_s = A(true)^{\mathsf{T}}\pi(s)A(false)) is the number of y with y\cdot M_s = 0, by orthogonality of characters (
sum_addChar_dotProduct); so (i) becomes q\cdot \sum_{s : \det M_s = 0} \Theta(s) \le \sum_{s} \Theta(s)\cdot \#\{y : y\cdot M_s = 0\}.Usesstep 4,
sum_addChar_dotProductunit 103,Finset.,sum_comm Finset.,mul_sum Finset.sum_filter Compare termwise (\Theta \ge 0), and split every if-then-else in the open goals into its two cases (in (i): \det M_s = 0 or not; in (ii): y = 0 or not, v = 0 or not).
If \det M_s = 0, there is a nonzero row vector y_{0} with y_{0}\cdot M_s = 0.
Uses
Matrix.exists_vecMul_eq_zero_iff The case y \ne 0, v \ne 0 of (ii): by h for true at y and for false at v, Y + Y bounds the two \Theta-masses of stabilisers; by N with the orthonormal family of normalised characters x \mapsto(\zeta \mapsto \psi(-x\cdot \zeta)/r) (for the contragredient action on A(true)y) and with the standard basis (for the action on A(false)v), these masses are the squared norms of two tensors divided by |G|; by 2\operatorname{Re}\langle X, Z\rangle \le \lVert X\rVert^{2} + \lVert Z\rVert^{2} (
two_mul_le_add_sq, Cauchy–Schwarz) andinner_sum_sum_eq_card_mulwith f = W(y, v, \cdot)/r, |G|\cdot \operatorname{Re} \sum_{s} W(y,v,s)/r is at most |G|\cdot Y, i.e. \operatorname{Re} \sum_{s} W(y, v, s) \lerY.Usesstep 3, step 4,
inner_sum_sum_eq_card_mulunit 135,invTransposeGLunit 112,EuclideanSpace.,orthonormal_single two_mul_le_add_sq,re_inner_le_normThe remaining goals by computation: the normalised characters are orthonormal (orthogonality of characters,
sum_addChar_dotProduct) and the inner products of step 10 are the W(y, v, s)/r; the cases of (ii) with y = 0 or v = 0 (|\psi | = 1 and \Theta \ge 0 bound \operatorname{Re} \sum_{s} W by \sum \Theta); and (iii): \sum_{y} E_v([y=0]\sum \Theta + [v=0]\sum \Theta +rY) = \sum \Theta + \sum \Theta + q^{|m|}\cdot r\cdot Y.Usesstep 3, step 4,
sum_addChar_dotProductunit 103,invTransposeGLunit 112,transposeGLunit 29,Finset.,expect_add_distrib Matrix.,dotProduct_mulVec AddChar.,map_neg_eq_conj AddChar.map_add_eq_mul