1 version of the statement of Local matrix models for kernel comparisons, newest first, as written in TeX. Only the paragraphs that changed are shown; words added since the version before are marked like this and words removed like this. Times are those of the commits, in your local time.
Version 1 , first version
Construction (local kernel matrices). Use Decorated lattices and auxiliary kernel characters and Arithmetic field models for kernel comparisons. Write $E,K$ for the model fields. The sizes and indices $k,r,t,r_0,n,c,n',c',j$ in the formulas below are natural numbers; in the family applications $k,r,t$ are the prescribed ranks and $r_0=\lfloor m/2\rfloor-1$. Fix a prime $P$ of $E$, put $q=NP$, and write $O=\mathcal O_{E,P}$ and $\operatorname{red}=\operatorname{red}_P$. All matrix entries outside their indicated sizes are zero; coordinate vectors with indices outside the size are zero. Natural subtraction is truncated at zero and division of natural numbers is integer division.
On $E^{n+c}$ let $U_i$ be the subspace supported in coordinates $l<n+i$, and let $\iota:E^n\to E^{n+c}$ append zeros. Define $R_{n,c}$ to consist of the automorphisms $r$ for which both $r$ and $r^{-1}$ preserve every $U_i$, fix $e_n$, and satisfy $re_{n+i}-e_{n+i}\in U_i$ for every natural $i$. Let $N_{n,c}\subset R_{n,c}$ fix $\iota(E^n)$ pointwise. For a subgroup $J\subset\mathrm{GL}_{n+c}(E)$ and $h\in\mathrm{GL}_{n+c}(E)$ put
$$C(J,h)=R_{n,c}\cap hJh^{-1},\qquad P(J,h)=\{g\in\mathrm{GL}_n(E):r\iota=\iota g\text{ for some }r\in C(J,h)\},$$
$$a(r)=\sum_{i<c-1}(re_{n+i+1})_{n+i},\quad V(C,N^0)=\frac{[N^0:N^0\cap C\cap N_{n,c}]}{[C\cap N_{n,c}:N^0\cap C\cap N_{n,c}]}.$$
An infinite group index has natural-number value zero in this formula.
For an integer sequence $e_l$, put $L(e)=\{x:q^{-e_l}x_l\in O\ \forall l\}$. Define
$$f_{k,c,n}(s)=\begin{cases}s&s<k,\\n+s-k&k\le s<k+c,\\s-c&s\ge k+c,\end{cases}\quad p_{k,c,n}(l)=\begin{cases}l&l<k,\\l+c&k\le l<n,\\k+l-n&l\ge n,\end{cases}$$
and $e^\epsilon_n(l)=0$ for $l<n$, $e^\epsilon_n(l)=\epsilon(l-n)$ otherwise. Write $Y_{n,c}^\epsilon=L(e^\epsilon_n)$. For $x:E^{n'+c'}\to E^{n+c}$ define its reordered scaled entries
$$M_x^{\epsilon',\epsilon}(s,s')=x_{f_{k,c,n}(s),f_{k,c',n'}(s')}q^{e^{\epsilon'}_{n'}(f_{k,c',n'}(s'))-e^\epsilon_n(f_{k,c,n}(s))}.$$
At an auxiliary prime set $J^Q_{k,n,c}=\operatorname{Stab}(O^{n+c})\cap\operatorname{Stab}(L(1_{k\le l<n}))$. For a residue character $\xi:k_P^\times\to K^\times$, extend it by $\xi^0(a)=\xi(\operatorname{red}a)$ when the reduction is a unit and zero otherwise. Define
$$\lambda^Q_{k,n}(h)=\xi^0(\det(h_{k+s,k+t})_{s,t<n-k})^{-1}.$$
The auxiliary test function $\Phi^Q_{k,r,c',n',c,n}(x)$ is $\xi^0(\det(M_{st})_{s,t<r})$ if all entries of $M=M_x^{0,0}$ are integral and $q^{-1}M_{st}$ is integral for $r\le s<n+c$, $t<r$; it is zero otherwise.
Here are the generator-prime groups. Put $e(l)=e^{i\mapsto i+1}_n(l)$ and
$$L_s=L(e(l)+1_{s\le p_{k,c,n}(l)}),\qquad v_s=q^{e(f_{k,c,n}(s))}e_{f_{k,c,n}(s)}.$$
For any modules $M_s$, vectors $v_s$, integer $r$ and index set $A$, let $\mathcal J(M,v;r,A)$ consist of automorphisms preserving $M_s$ for every $s\in A$ and, for every $s<r$, preserving $M_s$ and satisfying $gv_s-v_s\in M_s$. Thus
$$J^G_{k,r,t,n,c}=\operatorname{Stab}(Y_{n,c}^{i\mapsto i+1})\cap\mathcal J(L,v;r,\{r+it:i\ge0\}).$$
For the symmetric variant define
$$s_{k,r_0}(l)=\begin{cases}l+r_0&l<k,\\l-k&k\le l<k+r_0,\\l&l\ge k+r_0,\end{cases}\quad s^{-1}_{k,r_0}(l)=\begin{cases}l+k&l<r_0,\\l-r_0&r_0\le l<r_0+k,\\l&l\ge r_0+k,\end{cases}$$
$$b(s)=\begin{cases}r_0&s=r_0+k,\\s&\text{otherwise},\end{cases}\quad L_s^S=L(e(l)+1_{b(s)\le s_{k,r_0}(p_{k,c,n}(l))}),\quad v_s^S=v_{s^{-1}_{k,r_0}(s)}.$$
The group used at a generator prime is $J^{G,S}=\operatorname{Stab}(Y_{n,c}^{i\mapsto i+1})\cap\mathcal J(L^S,v^S;r,\{r+it:i\ge0\})$ when the chosen Boolean is true, and $J^G$ when it is false.
Fix an additive residue character $\psi_0$ and multiplicative characters $\chi_i$, extended by the trivial character beyond their recorded range. For any infinite matrix $M$ define
$$\lambda_j^G(M)=\psi_0\!\left(\operatorname{red}\sum_{i<r-1}M_{i,i+1}\right)\prod_{i<j}\chi_i^0\!\left(\det(M_{r+it+s,r+it+s'})_{s,s'<t}\right).$$
Define $\lambda_j^S(M)$ by replacing the additive sum by
$$\sum_{i<k-1}M_{i,i+1}+\sum_{i<r-k-1}M_{k+i,k+i+1}.$$
The functions on square automorphisms are obtained by substituting $M_h^{i\mapsto i+1,i\mapsto i+1}$.
For the generator test at step $j$, let $M=M_x^{i\mapsto i+1,i\mapsto i+1}$ and $a=r+(j-1)t$. First require $M_{pp'}\in O$ for $p<n+c$, $p'<a$, and $q^{-1}M_{pp'}\in O$ for $a\le p<n+c$, $p'<a$. Require also $\operatorname{red}M_{p'p'}=1$ for $p'<r$, and
$$\operatorname{red}M_{pp'}=0\quad(r\le p'<a,\ p<a,\ \lfloor(p'-r)/t\rfloor<\lfloor(p-r)/t\rfloor).$$
In the ordinary variant require $\operatorname{red}M_{pp'}=0$ whenever $p'<r$ and $p'<p<a$. In the symmetric variant replace this by the requirement for $p'<r$, $p<a$, $p\ne p'$ and
$$r\le p\quad\text{or}\quad s_{k,r_0}(p')<s_{k,r_0}(p)\quad\text{or}\quad(p'=k+r_0\text{ and }p<k).$$
When all requirements hold, the ordinary test is
$$\Phi^G_j(x)=\lambda^G_{j-1}(M)\,\chi_{j-1}^0(\det(M_{ss'})_{s,s'<a})^{-1};$$
the symmetric test uses $\lambda^S_{j-1}$ in this formula. Both functions are zero when a requirement fails. These explicit tests, groups and characters are the local matrix models used below.