Structured proof · Unit 141
lemma Grading.IsAdaptedAt.exists_mem_besselFin
Grading.besselFin ).Let \gamma_a = \beta_a for a \le s - 1 - a and \gamma_a = \beta'_{a} otherwise.
x' has an adapted basis with string diagonal \gamma: rescale b' by the diagonal matrix (1 on X, \beta'^{-1}\gamma on the string), which is integral invertible because \gamma and \beta' have the same valuations (l, and equality on the second half).
Lean states
∃ b', Y.IsAdaptedAt x' b' γLet f send the first-half string indices a \le s - 1 - a to basis indices.
For g \in \mathrm{GL}_{\iota}(\hat{O}), the columns f of g^{-1} form a primitive matrix (they have an integral left inverse).
The Gram matrices of these columns for x and for x' agree (
gram_string_entryfor both, with the same diagonal \gamma on the first half), so Witt's theorem over \hat{O} (\mathrm{witt}_{\hat{O}}; E stably unramified) gives g \in K_{0} carrying the first-half string columns of one onto those of the other (e).Uses
witt_Ôunit 120,Grading.unit 141IsAdaptedAt. gram_string_entry To show x'gx^{-1} \in B_f it suffices (
mem_besselGroup_iff_sub_one) that the entries (i, k) ofratCoord(x'gx^{-1}) - 1 vanish for string indices k of grade \ge 0 and \operatorname{grade}(i) \le \operatorname{grade}(k); fix such indices.ratCoord(x'gx^{-1})\cdot b and b' agree on the first-half string columns (from e).Lean states
(V.ratCoordMatrixFin (x' * g * x⁻¹) * b) i (f c) = b' i (f c)Rewrite the entry of
ratCoord(x'gx^{-1}) - 1 through b\cdot b^{-1}.Split according to the cases of the two indices.
Each case follows from step 7, the triangularity of b^{-1} and the grades (grind).