Structured proof · Unit 148
lemma Filling.HasLevel.abs_norm_bordered_det
HasLevel(S,j,\gamma) — \gamma is in normal form of index j,D_j(\gamma)\ne0, and \varrho<j\iff\mathsf{g}(\gamma)\ne0). Let r split the indices a\in\{0,\ldots,\varrho-1\} of the isotropic frame vectors e_a=f_a (a<\varrho) into a<j and a\ge j, and let P be the matrix with the columns e_a (all a<\varrho), \gamma e_a (a<j),e_a^{*} (j\le a<\varrho),z=f_{\mathrm{top}}=f_{\varrho} and \gamma z — the isotropic frame vectors, their images under \gamma below j, the dual basis vectors from j on, and z,\gamma z, each of these two once (m= isotropicFramePair(\gamma)=(e_a|\gamma e_a)_{a<\varrho},s the columns e_a^{*},p the pair (z,\gamma z), as in the lets). Put M=P^{*}\cdot J\cdot P+\operatorname{diag}(0,N(S)\cdot1),N(S) added on the diagonal of the last block (the columns e_a^{*},z,\gamma z). Then [\det M]=(N(S)^{2f}\cdot\mathtt{minorNorm}(S,j,\gamma))^{2}. (Notation: T= ratMiddle(S) is the Gram matrix of the rational middle form X_0\oplus Ez with z of square h(z,z)=-N(S) (T= middleGram(N(S)): 1 on X_0 and -N(S) at z), J= ratGram(S) its split Gram matrix on BesselIndex(\mathfrak{s}); Z(\gamma)= frameProducts(S,\gamma); D_j(\gamma)= leadingMinor(Z(\gamma),j); \mathsf{g}(\gamma)= termDisc(S,\gamma); \operatorname{link}(\gamma)\subseteq(X_0\oplus Ez)^{2} is the image under linkMatrix(\gamma) of the J-orthogonal of the isotropic frame pair (f_a,\gamma f_a); zFormPair(T)=\operatorname{diag}(T_z,T_z) takes the z-pairing in both halves; linkMetric(S)=\tfrac{1}{2}\cdot\operatorname{diag}(T,T)+N(S)^{-1}\cdotzFormPair(T)^{*}zFormPair(T), the diagonal matrix with 1/2 at the X_0-coordinates and -N(S)/2+N(S)=N(S)/2 at the two z-coordinates; linkDiscSq(S,v,e)=|N_{E/\mathbb{Q}}(\det(v^{*}\cdot\mathtt{linkMetric}(S)\cdot v))|\cdot[\det e]^{2},[\cdot] the generalised index of a finite adele; minorNorm(S,j,\gamma)=|N_{E/\mathbb{Q}}(D_j(\gamma))|/N(S)^{2(j-\varrho)_+f}; termDiscNorm(S,\gamma)=\prod_v|\Phi_v(\mathsf{g}(\gamma))|; HasIntegralLifts(S,c,\gamma,m): m= linkMatrix(\gamma)\cdot t\cdot w for a rational t with (isotropic frame pair of \gamma)*\cdot J\cdot t=0 and adelic w with classCoord(S,c)\cdot t\cdot w integral; f=f(E) the number of infinite places.) paddedLeading(j,Z(\gamma^{-1})) with its top row replaced by that of Z(\gamma^{-1}); then [\det M]=|N(\det A)|^{2}. For j=\varrho+1,A=Z(\gamma^{-1}) and |N(\det A)|=N^{2f}minorNorm by definition; for j\le\varrho, Cramer's rule with the shared frame vector of \gamma^{-1} at the top gives \det A= (unit)\cdot N\cdot D_j, so again |N(\det A)|=N^{2f}\cdotminorNorm(S,j,\gamma).Introduce the lets; A=
paddedLeading(j,Z(\gamma^{-1})) (rows a<j of Z(\gamma^{-1}), identity rows elsewhere) with the top row replaced by the top row of Z(\gamma^{-1}).[\det M]=|N_{E/\mathbb{Q}}(\det M)| (\det M is rational), and it suffices that |N(\det A)|=N^{2f}\cdot
minorNorm(S,j,\gamma) (a side goal, steps 3–9) together with |N(\det M)|=|N(\det A)|^{2}:g: the reindexing of the frame indices (
finSuccEquivLast, r, Option \simeq Sum) used for A;d: \det M equals the determinant of M with its index sum reassociated and the two halves swapped (
det_reindex_self,det_permute);that reindexed matrix is
fromBlocks(A', *, 0,A'^{*}) with A'=A reindexed by g (checked entrywise),so |N(\det M)|=|N(\det A)\cdot N(\operatorname{conj}\det A)|=|N(\det A)|^{2};
the entrywise identities: the Gram entries of the columns e_a (a<\varrho),\gamma e_a (a<j),e_a^{*} (j\le a<\varrho),z,\gamma z under the split Gram matrix (
splitGram,middleGram,frameGram;grind).
Cases j=\varrho+1 and j=j'\le\varrho (
Fin.):lastCases j=\varrho+1: A=Z(\gamma^{-1}) (step 3.1.1) and the identity is the definition of
minorNormwith (j-\varrho)_+=1 (field_simp).A=Z(\gamma^{-1}): at j= last,
paddedLeadingkeeps all rows below the top, and the top row is replaced by itself.Lean states
A = S.frameProducts γ⁻¹
j\le\varrho: the shared frame vector of \gamma^{-1} (level j by
HasLevel.):inv frameImage(1)\cdot w=frameImage(\gamma^{-1})\cdot(top column ofpaddedLeading(j,Z(\gamma^{-1}))^{-1}).Uses
Filling.unit 148,HasLevel. exists_shared_frame_vector Filling.unit 148HasLevel. inv Cramer's rule: \det A times the top column of A^{-1} is the top column of the adjugate, and Z(\gamma^{-1}) applied to that column is -N\cdot w_{\mathrm{top}}\cdot e_{\mathrm{top}} (
frameProducts_mulVec_of_frameImage_eq), with detpaddedLeading=D_j(\gamma^{-1})\ne0;|w_{\mathrm{top}}| equals the modulus of the top coordinate of the column (
star_mul_last_eq_of_frameImage_eq), and the top diagonal entry ofpaddedLeading\cdotinverse is 1;combining, |N(\det A)|=N^{2f}\cdot|N(D_j(\gamma))| (the conjugate transpose has the same minors) =N^{2f}\cdot
minorNorm(S,j,\gamma) as (j-\varrho)_+=0 (simp_all; ring).