Structured proof · Unit 147
lemma AuxPair.levelIndicator_support_and_normSq
AuxPair E r n an auxiliary pair; let R = O_E/\mathfrak{m} be the residue ring of the modulus \mathfrak{m} = levelModulus(O, 1), the product of the places of M and Q, and let F = \#TwistGL(O, r)\cdotlevelIndicator(O), a function on n \times r matrices over R (\gamma = \#TwistGL(O, r) = \prod_{w\in Q} \#\mathrm{GL}_r(k_w)). Then (1) for every matrix y with F(y) \ne 0 the rows of y indexed by incl(O) form the identity: inclMatrix(R, incl(O))^{\mathsf{T}}\cdot y = 1; and (2) \sum_{y} |F(y)|^{2} (the product star F \cdot F) equals \gamma^{2}\cdot(\prod_{i} q(twistPlace(O, i)))^{\text{rankDiff}(O)\cdot |r|}, where q(w) is the norm of the place w and rankDiff(O) = |n| - |r|. (No Weil data is assumed.)levelIndicator(O) is the indicator of a product set, which is counted.Not a step of the proof: lines 63–65 are the rest of the statement, which ends before the
:=on line 65 (a second-reader message). The line census takes the:=oflet F :=on line 62 for the start of the value, so the check requires these lines to be owned here. They state: F = \#TwistGL(O, r)\cdotlevelIndicator(O); (1) F(y) \ne 0 impliesinclMatrix(R,incl(O))^{\mathsf{T}}\cdot y = 1 (R = O_E/levelModulus(O, 1)), and (2) \sum_{y} |F(y)|^{2} = \#TwistGL(O, r)^{2}\cdot(\prod_{i} q(twistPlace(O, i)))^{\text{rankDiff}(O)\cdot |r|}.The map e sending an n \times r matrix y over R = O_E/\mathfrak{m} to the family of its reductions y mod w at the places w of M and Q is a bijection onto the families of n \times r matrices over the residue fields k_w: it is injective because matrices over R are determined by their residues at the pairwise apart places (
Modulus.), and both sides have the same number of elements (matrix_ext_modulusResidue LevelPlaces.,card_levelModulus_resRing card_ResField).Uses
Modulus.unit 104,matrix_ext_modulusResidue LevelPlaces.unit 141,card_levelModulus_resRing card_ResFieldunit 123,Equiv.,ofBijective Function.Injective. bijective_of_nat_card_le Through e,
levelIndicator(O)(y) is 1 exactly when e(y) lies in the product set whose factor at a place w and row a is all of k_w^{r} if w is a place of Q and a is not in the image ofincl(O), and is the single row a of the inclusion matrix otherwise; it is 0 elsewhere. Summing |F|^{2} through the bijection e therefore counts this product set: \sum |F|^{2} = \gamma^{2}\cdot \prod_{w\in Q}(q_w^{|r|})^{|n|-|r|}, which is the asserted value. The description oflevelIndicator(O) used here is the goal left open.Usesstep 2,
Equiv.,sum_comp Fintype.card_piFinset The two remaining goals, the support property (1) and the description of
levelIndicator(O) through e used in step 3, follow by unfoldinglevelIndicator(O) and comparing matrices over R through their residues at the places of M and Q (Modulus.).matrix_ext_modulusResidue