Structured proof · Unit 148
lemma form_tailVector
What it saysLemma. Let A be a commutative ring with involution, \pi a unit, N\in A with \pi\cdot\overline{\pi}=N,J=
splitGram(\mathtt{latMiddleGram}(\mathfrak{s},N)) and e= tailVector(\pi,t,x) for t\in A,x\in A^{\kappa}. Then \overline{e}\cdot J\cdot e=\overline{x}\cdot x-(\pi\overline{\pi})^{-1}\cdot t\cdot\overline{t} and (J\cdot e)_z=t. (The shape \mathfrak{s} and t,x are arguments in Lean as well; the text-based reading below misses them because it reads the let J := of the statement as the start of the value.)The argument in briefCompute in the lattice basis: the Gram matrix of the lattice basis is the standard one, and the vector is 0\oplus(x,-(\pi\overline{\pi})^{-1}t)\oplus0.
Use
gram_besselLatticeBasis(\pi\overline{\pi}=N) to move the form back to the standard basis, where e becomes (0,(x,-(\pi\overline{\pi})^{-1}t),0).Expand: \overline{e}\cdot J\cdot e=\overline{x}x-N\cdot|(\pi\overline{\pi})^{-1}t|^{2}=\overline{x}x-(\pi\overline{\pi})^{-1}tt̄ (as N=\pi\overline{\pi} and (\pi\overline{\pi})^{-1} is self-conjugate), and the z-coordinate of J\cdot e is t.