Structured proof · Unit 147
lemma Data.stdLevelIndex_lastResLevel_eq
triangleOrder(D, false, \vartheta, n): stdLevelIndex(levelOf(lastResLevel(D, \vartheta))) = C\cdot \#(O_E/\mathfrak{m}(D, \vartheta, 0))^{k}\cdotgramFactor(auxPair(D, \vartheta, 1))^{m}\cdot w(m)/(w(0)\cdot w(1)^{m}), where lastResLevel is the level J_m of the last space of the chain and gramFactor that of the first auxiliary pair.Not a step of the proof: lines 20–21 are the rest of the statement, which ends before the
:=on line 21 (a second-reader message). The line census takes the:=oflet w :=on line 20 for the start of the value, so the check requires these lines to be owned here. They state: with w =triangleOrder(D, false, \vartheta):stdLevelIndex(levelOf(lastResLevel(D, \vartheta))) = C\cdot \#(O_E/\mathfrak{m}(D, \vartheta, 0))^{k}\cdotgramFactor(auxPair(D, \vartheta, 1))^{m}\cdot w(m)/(w(0)\cdot w(1)^{m}).The orders of the parabolic subgroups of block numbers over finite fields (
card_parabolic_blockNumber): exponents k(n) and the identities K(n, R).Take C = w_{1}(0)\cdot(w_{1}(1)/
gramFactor(auxPair(D, 1, 1)))^{m} for the trivial twist and k =(k(1) - t\cdot |RowIndex|)\cdot m - k(m).Usesstep 2
Use the order on propositions for the block numbers.
At each twist place w: \#\mathrm{GL}(
GridIndex(false, 0, n), k_w) = the index of the parabolic times its order (f).Lean states
_ = Nat.card (GL (D.GridIndex false 0 n) _)Usesstep 2
Unfold all indices and cardinalities (
gramFactor,auxPair,rankDiff,triangleOrder,triangleModulus,lastResLevel, the parabolic of block numbers asrangeParabolic, the residue ringsLevelPlaces.,card_levelModulus_resRing LevelPlaces., the relative index of the levelcard_GL_levelModulus relIndex_levelOf) into products of powers of the norms of the places.Clearing the non-zero denominators, a ring identity.