\documentclass[11pt,a4paper]{amsart} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage[textwidth=138mm,textheight=215mm]{geometry} \usepackage{enumitem} \usepackage{booktabs} \usepackage{xcolor} \usepackage[colorlinks=true,linkcolor=blue!55!black,citecolor=blue!55!black,urlcolor=blue!55!black]{hyperref} \setlist[enumerate]{leftmargin=2.2em} \emergencystretch=2em \theoremstyle{plain} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{fact}[theorem]{Fact} \newtheorem{introthm}{Theorem} \renewcommand{\theintrothm}{\Alph{introthm}} \newtheorem*{introcor}{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{setting}[theorem]{Setting} \newtheorem{example}[theorem]{Example} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \numberwithin{equation}{section} \newcommand{\Z}{\mathbb{Z}} \newcommand{\Q}{\mathbb{Q}} \newcommand{\N}{\mathbb{N}} \newcommand{\F}{\mathbb{F}} \newcommand{\C}{\mathbb{C}} \newcommand{\CP}{\mathbb{CP}} \newcommand{\RP}{\mathbb{RP}} \newcommand{\cA}{\mathcal{A}} \newcommand{\cE}{\mathcal{E}} \newcommand{\cZ}{\mathcal{Z}} \newcommand{\cO}{\mathcal{O}} \newcommand{\p}{\mathfrak{p}} \newcommand{\q}{\mathfrak{q}} \newcommand{\BL}{\mathrm{BL}} \newcommand{\HTP}{\mathrm{H10}} \newcommand{\QBLIN}{\mathrm{Q\text{-}BLIN}} \newcommand{\EXT}{\mathrm{EXT}} \newcommand{\FW}{\mathrm{FW}} \newcommand{\Ev}{\mathrm{Ev}} \DeclareMathOperator{\End}{End} \DeclareMathOperator{\Ann}{Ann} \DeclareMathOperator{\Supp}{Supp} \DeclareMathOperator{\Frac}{Frac} \DeclareMathOperator{\pw}{pw} \DeclareMathOperator{\rank}{rank} \DeclareMathOperator{\Imm}{Im} \DeclareMathOperator{\spn}{span} \DeclareMathOperator{\Hom}{Hom} \DeclareMathOperator{\Aut}{Aut} \DeclareMathOperator{\cd}{cd} \DeclareMathOperator{\tors}{tors} \DeclareMathOperator{\Sym}{Sym} \DeclareMathOperator{\Ex}{Ex} \DeclareMathOperator{\im}{im} \DeclareMathOperator{\coker}{coker} \DeclareMathOperator{\colim}{colim} \DeclareMathOperator{\cosk}{cosk} \DeclareMathOperator{\sk}{sk} \DeclareMathOperator{\hAut}{hAut} \title[Manin's bilinear conjecture and map extension]{Manin's bilinear conjecture and the decidability of map extension} \hypersetup{pdftitle={Manin's bilinear conjecture and the decidability of map extension},pdfauthor={David Ganz}} \author{David Ganz} \date{December 2026} \subjclass[2020]{Primary 55P62; Secondary 11U05, 55P05} \keywords{extension problem, rational homotopy theory, Diophantine equations, bilinear maps, computable enumerability, obstruction theory} \begin{document} \begin{abstract} For every nonzero bilinear map $B: \Z^m\times\Z^n\to\Z^p$, deciding whether a system of integer linear combinations of values $B(u_i,v_j)$ attains specified output vectors is complete among computably enumerable problems under many-one reductions. This proves Manin's Conjecture~7.2. Two terms per equation, coefficients $\pm1$, a fixed finite set of output values and bounded pathwidth suffice. Frames make the arithmetic of the adjoint centre expressible without named input vectors. Over a finitely generated commutative ring, finiteness of the subgroup generated by the image gives the exact decidability criterion. For scalar-valued integer forms of sufficiently large rank $k$, exactly $k+1$ pairs of unknowns are needed for undecidability. For a simply connected finite target, the first undecidable dimension of the extension problem is the degree of the first relation in its rational cohomology algebra, presented on indecomposable generators. If there is no relation, extension is decidable in every dimension. At a finite cutoff, one fixed source pair realizes every computably enumerable set as a family of extendable boundary maps, even though every member extends after inverting $2$ and after inverting $3$. Below the cutoff every failure of extension can be witnessed by a target with finitely many nonzero homotopy groups, each finite. We also give threshold theorems for nilpotent targets, finite fundamental groups and free finite-group actions. \end{abstract} \maketitle \setcounter{tocdepth}{1} \tableofcontents \enlargethispage{3pt} \section{Introduction}\label{intro:sec} Let $Y$ be a finite simplicial complex. The \emph{extension problem} $\EXT(Y)$ asks, for a finite simplicial pair $(X,A)$ and a simplicial map $f\colon A\to Y$, whether $f$ extends to a continuous map $X\to Y$. \v{C}adek, Kr\v{c}\'al, Matou\v{s}ek, Vok\v{r}\'{\i}nek and Wagner showed that $\EXT(S^2)$ is undecidable, already for four-dimensional $X$, and more generally that $\EXT(S^{2k})$ is undecidable \cite{CKMVW-undec}; by contrast, extension into odd-dimensional spheres is decidable \cite{Vok-odd}. Manin \cite{Man23} explained this contrast by rational homotopy theory. For simply connected $Y$ he proved that $\EXT(Y)$ is decidable when $Y$ is a rational H-space, that is, when $Y$ is rationally a product of Eilenberg--MacLane spaces, and he showed that the converse would follow from a conjecture on integral bilinear equations \cite[Conjecture~7.2 and \S8]{Man23}. For a bilinear map $B\colon\Z^m\times\Z^n\to\Z^p$ let $\QBLIN(B)$ be the problem of deciding whether a system \begin{equation}\label{intro:eq:qblin} \sum_{i,j=1}^ra^{(q)}_{ij}B(u_i,v_j)=c_q\qquad(1\le q\le s),\qquad a^{(q)}_{ij}\in\Z,\ c_q\in\Z^p, \end{equation} has a solution $u_1,\dots,u_r\in\Z^m$, $v_1,\dots,v_r\in\Z^n$. Manin conjectured that $\QBLIN(B)$ is undecidable for every nonzero $B$. The special case of the multiplication $\Z\times\Z\to\Z$ follows from the negative solution of Hilbert's tenth problem by the argument of \cite[Lemma~2.1]{CKMVW-undec} (see \cite[Lemma~7.4]{Man23}), and it is the source of the undecidability for $S^2$. Throughout, $\Sigma^0_1$-complete means computably enumerable and many-one hard for computably enumerable sets. \subsection{Bilinear equations}\label{intro:ssec:bilinear} Our first result proves Manin's conjecture in a strong form. The \emph{shape} of a system is described in Definitions~\ref{bil:def:raw} and~\ref{bil:def:shape}. \begin{introthm}[Theorem~\ref{bil:thm:A}]\label{intro:thmA} For every nonzero bilinear map $B\colon\Z^m\times\Z^n\to\Z^p$ the problem $\QBLIN(B)$ is $\Sigma^0_1$-complete. More precisely, there is a finite set $F_B\subset\Z^p$ such that $\QBLIN(B)$ remains $\Sigma^0_1$-complete when restricted to systems in which every equation has at most two terms $\pm B(u_i,v_j)$ and right-hand side in $F_B$, every unknown occurs in a bounded number of equations, and the primal graph has bounded pathwidth; a $\Sigma^0_1$-complete set $K$ reduces to these systems with $O(\log n)$ unknowns for the input $n$. \end{introthm} The proof has three ingredients. The first is a normal form for \emph{frames}, unknown tuples that reproduce the values of $B$ on fixed generators (Proposition~\ref{bil:prop:rigid}); frames are what allow the language~\eqref{intro:eq:qblin}, which has no constants in $\Z^m$ or $\Z^n$, to name fixed vectors. The second is the centre $\cZ(B)$ of the ring of adjoint pairs $(P,Q)$, $B(Pu,v)=B(u,Qv)$, which is a commutative ring whose arithmetic we compile into two-term equations (Theorem~\ref{bil:thm:compile}). The third is the theorem of Koymans and Pagano \cite{KP} that $\Z$ is Diophantine over the ring of integers of every number field. The same method gives a dichotomy over arbitrary finitely generated commutative rings. For an $R$-bilinear map $B\colon U\times V\to W$ let $I_B\subseteq W$ be the subgroup generated by its values, and let $\BL_R(B)$ be the set of solvable systems $\sum_ka_kB(x_{\alpha(k)},y_{\beta(k)})=c$ with $a_k\in R$ and $c\in W$. \begin{introthm}[Theorem~\ref{bil:thm:B}]\label{intro:thmB} Let $R$ be a finitely generated commutative ring and $B\colon U\times V\to W$ an $R$-bilinear map of finitely generated $R$-modules. Then $\BL_R(B)$ is decidable if and only if $I_B$ is finite. If $I_B$ is infinite, $\BL_R(B)$ is undecidable already for systems with at most two terms per equation, coefficients $\pm1$ and right-hand sides in a fixed finite subset of $W$. In fact these systems are $\Sigma^0_1$-complete with bounded occurrences and bounded primal pathwidth, using a number of unknowns and rows linear in the bit length of the natural-number input. \end{introthm} With constants in $U$, $V$ and $W$ and linear equations in each sort, this dichotomy follows from the interpretation theorems of Garreta, Miasnikov and Ovchinnikov \cite{GMO-rings} together with \cite{KP}; the content of Theorem~\ref{intro:thmB} is the constant-free language with coefficients $\pm1$, in which the frames have to be controlled locally at a minimal prime of the support of $I_B$ (Remark~\ref{bil:rem:Bnew}). \subsection{The arithmetic profile}\label{intro:ssec:arith} Which arithmetic does $\QBLIN(B)$ need? Let $\cZ(B)_\Q=\cZ(B)\otimes\Q$; it is a finite product of local Artinian $\Q$-algebras, whose residue fields are number fields. For a number field $K$ let $B_K$ be the multiplication of its ring of integers $\cO_K$ in a $\Z$-basis, and let $\HTP_\Z(\cO_K)$ denote Hilbert's tenth problem over $\cO_K$ for polynomials with integer coefficients. \begin{introthm}[Theorem~\ref{thm:C}]\label{intro:thmC} Let $B\colon\Z^m\times\Z^n\to\Z^p$ be nonzero. \begin{enumerate} \item For every residue field $F$ of $\cZ(B)_\Q$, $\HTP_\Z(\cO_F)$ reduces to $\QBLIN(B)$, and the sum of the degrees of the residue fields is at most $\min(m,n)$. \item For every number field $K$ one has $\cZ(B_K)=\cO_K$, and the problem $\QBLIN(B_K)$ is many-one equivalent to $\HTP_\Z(\cO_K)$. Hence Manin's conjecture is equivalent, by reductions that do not use \cite{KP,ABHS}, to the undecidability of $\HTP_\Z(\cO_K)$ for every number field $K$. \item The theorem of Matiyasevich, Davis, Putnam and Robinson alone shows that $\QBLIN(B)$ is $\Sigma^0_1$-complete whenever there is a ring homomorphism $\cZ(B)\to\Z$, a condition decidable from $B$; otherwise every residue field has degree at least $2$. \item If $\min(m,n)\le3$, then $\QBLIN(B)$ is $\Sigma^0_1$-complete by results on Hilbert's tenth problem published by 1989; the same holds for $\min(m,n)=4$ unless every residue field of $\cZ(B)_\Q$ is a totally imaginary quartic field without a quadratic subfield. \end{enumerate} \end{introthm} Part~(2) shows that Theorem~\ref{intro:thmA} contains the undecidability of Hilbert's tenth problem over every ring of integers, which was established only recently, through the solution of the Denef--Lipshitz problem by Koymans and Pagano \cite{KP} and, independently, by Alp\"oge, Bhargava, Ho and Shnidman \cite{ABHS}; see also \cite{Zyw25,Poo25}. Part~(3) bears on \cite[Remark~7.11]{Man23}, which suggests that maps with full rank in every direction, a class containing the $B_K$, may be the most difficult case: the multiplication maps of a quaternion order and of the ring of integers of a quartic field have the same shape and full rank in every direction, but the first admits the scalar-retraction proof from MRDP, and the second is many-one equivalent to Hilbert's tenth problem over $\cO_K$ (Example~\ref{ex:quaternion} and Remark~\ref{rem:711}). We also measure how many unknowns are needed. Let $\rho(B)$ be the least $r$ for which the restriction of $\QBLIN(B)$ to systems~\eqref{intro:eq:qblin} with $r$ pairs of unknowns is undecidable, and let $I_k$ be the dot product on $\Z^k$. \begin{introthm}[Theorem~\ref{thm:D}]\label{intro:thmD} Let $B\colon\Z^m\times\Z^n\to\Z^p$ be nonzero. \begin{enumerate} \item There is one system~\eqref{intro:eq:qblin} whose right-hand sides depend affinely on an integer parameter $t$ such that the set of $t$ for which it is solvable is $\Sigma^0_1$-complete. In particular $\rho(B)<\infty$. \item $\rho(B)=1$ if and only if the image of $B$ is not recursive; this happens for some $B$, but not when $p=1$ or $\min(m,n)\le2$. \item If $p=1$ and $B$ has rank $k$, then $\max(3,k+1)\le\rho(B)\le k+\rho(I_1)-1$, and $\rho(B)=k+1$ for every such form of sufficiently large rank. \item For $k\ge s$ the restriction of $\QBLIN(I_k)$ to $s$ equations is decidable. \item If $\QBLIN(I_4)$ restricted to $5$ pairs of unknowns were decidable, there would be an algorithm deciding which integers are sums of three cubes. \end{enumerate} \end{introthm} \subsection{Extension problems}\label{intro:ssec:ext} Let $(\Lambda V,\partial)$ be the minimal Sullivan model of a simply connected finite complex $Y$ and let $d_0(Y)$ be the least $n$ with $\partial|_{V^n}\neq0$, so that $d_0(Y)=\infty$ exactly when $Y$ is a rational H-space. Write $\cd(X,A)$ for the cohomological dimension of a pair. \begin{introthm}[Theorem~\ref{top:thm:E}]\label{intro:thmE} Let $Y$ be a simply connected finite simplicial complex. Then $\EXT(Y)$ is decidable if and only if $Y$ is a rational H-space. If $Y$ is not a rational H-space, then $3\le d_0(Y)<\infty$, $\EXT(Y)$ is decidable on pairs with $\cd(X,A)\le d_0(Y)$, and there are a finite wedge of spheres $A_Y$ and a map $f_Y\colon A_Y\to Y$ such that extendability of $f_Y$ to simply connected complexes $X\supseteq A_Y$ with $\dim X=\cd(X,A_Y)=d_0(Y)+1$ is $\Sigma^0_1$-complete. Whether $Y$ is a rational H-space, and $d_0(Y)$, are computable from $Y$. \end{introthm} The decidable half is Manin's decision theorem \cite[Theorem~A]{Man23}. The hard half follows the construction of \cite[Theorem~8.1]{Man23}, with a uniform scaling lemma (Lemma~\ref{top:lem:uniform}) and a self-contained formula for the obstruction on the top cell of a fat wedge (Proposition~\ref{top:prop:R0}), combined with Theorem~\ref{intro:thmA}. In every degree the threshold can be read from the rational cohomology ring, without computing the homotopy groups. Present that ring on a basis of its indecomposables. The first relation occurs precisely in degree $d_0(Y)+1$; checking through twice the top nonzero cohomology degree suffices (Proposition~\ref{top:prop:firstrelation}). At that degree, Theorem~\ref{top:thm:local} fixes the source pair as well as the target and varies the boundary map. Every prime-local extension test then succeeds on every input, although integral extension is $\Sigma^0_1$-complete. \begin{introcor}[Corollary~\ref{top:cor:four}]\label{intro:cor:four} For a simply connected finite complex $Y$, the extension problem on pairs with $\dim X=\cd(X,A)=4$ is $\Sigma^0_1$-complete, with a fixed boundary map, if the cup-product map $\Sym^2H^2(Y;\Q)\to H^4(Y;\Q)$ is not injective, and $\EXT(Y)$ is decidable on pairs with $\cd(X,A)\le4$ if it is injective. \end{introcor} Thus $S^2$, $S^2\vee S^2$ and $S^2\times S^2$ have threshold four, while $\CP^2$ has threshold six (Example~\ref{top:ex:spheres}). Beyond simply connected targets, the minimal model of a nilpotent space defines $d_0(Y)$ in the same way. \begin{introthm}[Theorem~\ref{bey:thm:F}]\label{intro:thmF} Let $Y$ be a connected finite simplicial complex. \begin{enumerate} \item If $Y$ is nilpotent and $d_0(Y)<\infty$, extension is decidable for $\cd(X,A)\le d_0(Y)$ and is $\Sigma^0_1$-complete with a fixed boundary map at $\dim X=\cd(X,A)=d_0(Y)+1$. If $d_0(Y)=\infty$, one algorithm decides extension in all dimensions. \item If $\pi_1(Y)$ is finite, the same dimension cutoff is given by the universal cover, with the decidable side measured using local coefficients. \item For a free simplicial action of a finite group $G$ on a simply connected finite target $\tilde Y$, equivariant extension has the cutoff of $\tilde Y$. On the decidable side the bound is on the cohomological dimension of $(X/G,A/G)$ with local coefficients; at a finite cutoff there is a fixed equivariant boundary map. \end{enumerate} \end{introthm} The decidable side of Theorem~\ref{intro:thmF} rests on a finite congruence model (Theorem~\ref{bey:thm:fcm}) and does not use effective homology. The theorem does not extend to all targets with virtually abelian fundamental group: in dimension three, extension problems into suitable targets contain the Diophantine problem of $\cO^+\rtimes\cO^\times$ for real quadratic $\cO$, asked about by Garreta, Miasnikov and Ovchinnikov \cite[Problem~1.11]{GMO-solv}, and equations in a Sol lattice, a case left open by Gray and Levine \cite{GL25} (\S\ref{bey:ssec:remarks}). \subsection{History of Conjecture 7.2}\label{intro:ssec:history} In the first two arXiv versions of \cite{Man23} the statement of Conjecture~7.2 appeared as Lemma~7.2, with a proof that normalises unknown frames $Z,W$ satisfying $Z^{T}BW=B$ and then embeds Manin's problem (Q-DIFF), which is $\QBLIN$ of the multiplication $\Z\times\Z\to\Z$, along a fixed basis line.\footnote{With the frames normalised, the line embedding $u_i=x_ie_1$, $v_j=y_je_1$ requires the first row and the first column of $B$ to vanish off the corner entry, and for a map with $p>1$ coordinates it requires a common rank-one corner for all of them (compare \cite[Remark~7.10(2)]{Man23}). This fails, for instance, for the multiplication map of $\Z[i]$, for which $B(\ell,\cdot)$ is injective for every $\ell\ne0$; see Remark~\ref{bil:rem:line}.} The comment on the third arXiv version, which is the published one, states: ``The former Lemma 7.2 had been proven incorrectly and is now a conjecture''. There the frame device is kept for the case $p=1$ \cite[(7.15) and Theorem~7.9]{Man23}. We keep Manin's frame idea, extend the normalisation of frames to arbitrary nonzero $B$ (Proposition~\ref{bil:prop:rigid}), which requires passing to the quotient by the radicals (Remark~\ref{bil:rem:radical}), and replace the line embedding by an interpretation of the centre $\cZ(B)$ of the adjoint ring. A solution over $\cZ(B)$ is encoded by the action of its elements on all fixed generators, so no condition on the rows or columns of $B$ arises. The arithmetic then enters through $\cZ(B)$, and by Theorem~\ref{intro:thmC}(2) the number-field dependence is exact: Conjecture~7.2 for the map $B_K$ is the undecidability of $\HTP_\Z(\cO_K)$. Denef and Lipshitz conjectured the stronger Diophantine definability of the embedded $\Z$. We use \cite[Theorem~1.2]{KP} for this assertion; see also the rank-stability approaches in \cite{ABHS,Zyw25,Poo25}. Lemma~\ref{top:lem:uniform} gives explicit integral scalings for the higher Whitehead products in \cite[\S8]{Man23}. Their independence from the input classes is what allows a single choice of attaching spaces. Remark~\ref{top:rem:34} checks the power-map hypothesis in the cases needed for the decision theorem. \subsection{Related work}\label{intro:ssec:prior} The interpretation of a ring of scalars in a bilinear map goes back to Myasnikov \cite{Mya90}. Garreta, Miasnikov and Ovchinnikov developed it into a general method for the Diophantine problem in finitely generated rings and algebras \cite{GMO-rings} and in solvable groups \cite{GMO-solv}; combined with \cite{KP}, this gives undecidability of equations with constants for bilinear maps with infinite image, as noted for nilpotent groups by Catli and Myasnikov \cite{CM}. Our centre $\cZ(B)$ is the ring interpreted in \cite{GMO-rings} (Remark~\ref{bil:rem:GMO}); the new point is the language without constants. Duchin, Liang and Shapiro \cite{DLS} studied equations in free nilpotent groups and used frame-like equations with group constants. On the topological side, \v{C}adek, Kr\v{c}\'al, Matou\v{s}ek, Vok\v{r}\'{\i}nek and Wagner proved undecidability of extension into even spheres \cite{CKMVW-undec} and computed homotopy groups and Postnikov systems of simply connected complexes in polynomial time in fixed dimension \cite{CKMVW-poly}. \v{C}adek, Kr\v{c}\'al and Vok\v{r}\'{\i}nek solved the lifting-extension problem in the stable range \cite{CKV}, Vok\v{r}\'{\i}nek proved decidability of extension into odd-dimensional spheres \cite{Vok-odd}, and Filakovsk\'y and Vok\v{r}\'{\i}nek gave algorithms deciding whether two maps into a simply connected complex are homotopic \cite{FV}. Earlier project manuscripts give the integral bilinear reduction and threshold calculations \cite{ProjectManin}, finite probes for extension \cite{ProjectProbes} and particular fixed targets admitting two local extensions \cite{ProjectLocal}. Theorem~\ref{top:thm:local} applies at the individual cutoff of every simply connected finite target with a finite cutoff. In the other direction Theorem~\ref{top:thm:finitewitness} extracts a single finite-target search from the comparison theorem. Theorem~\ref{top:thm:hopfcell} illustrates the distinction between decidability and polynomial time on targets with the same rational ring. \subsection{Organisation}\label{intro:ssec:org} Section~\ref{bil:sec} introduces frames, the adjoint ring and its centre, and the compiler of central arithmetic into two-term systems, and proves Theorems~\ref{intro:thmA} and~\ref{intro:thmB}. Section~\ref{sec:arith} determines the residue fields that enter, proves Theorem~\ref{intro:thmC}, and studies the number of unknowns and equations (Theorem~\ref{intro:thmD}). Section~\ref{top:sec} treats simply connected targets: rational homotopy preliminaries, fat wedges, the top-cell formula, uniform scaling, and the reduction with a fixed pair, which prove Theorem~\ref{intro:thmE}. Section~\ref{bey:sec} proves Theorem~\ref{intro:thmF} and discusses the virtually abelian case. Section~\ref{top:sec:finitewitness} constructs finite witnesses to nonextension and distinguishes polynomial time from $\mathrm{NP}$-completeness for targets with the same rational cohomology. \section{Bilinear systems: Theorems A and B}\label{bil:sec} This section proves Manin's Conjecture~7.2 (Theorem~A) and the finite-image dichotomy over finitely generated commutative rings (Theorem~B). The proofs have three ingredients. The first is a normal form for \emph{frames}, that is, for unknown tuples that reproduce the values of $B$ on fixed generators (Proposition~\ref{bil:prop:rigid}); it is what allows the coefficient-only language of Manin to name constants. The second is the interpretation of the centre $\cZ(B)$ of the adjoint ring of $B$, which is due to Myasnikov and to Garreta, Miasnikov and Ovchinnikov; we recompile it into rows with two terms and coefficients $\pm1$ (Theorem~\ref{bil:thm:compile}). The third is interpreted arithmetic, using Koymans--Pagano and DPRM in characteristic zero and Demeyer's theorem for polynomial rings over finite fields in positive characteristic. \subsection{Conventions}\label{bil:ssec:conv} Base rings and scalar rings are commutative with $1$. Adjoint rings, defined below, may be noncommutative. A ring is \emph{of finite type} if it is finitely generated as a $\Z$-algebra; such rings are Noetherian. A ring of finite type is given by a presentation $\Z[t_1,\dots,t_k]/J$, and a finitely generated module over it by a presentation $R^\ell/N$; elements are represented by (tuples of) integer polynomials. Equality of represented elements is decidable, because membership in a finitely generated submodule of a free module over $\Z[t_1,\dots,t_k]$ is decidable by Gr\"obner bases over $\Z$ \cite[Chapter~4]{AL94}. In every problem below the bilinear map is fixed, so finitely many data depending only on it may be built into an algorithm; ``computable'' refers to the dependence on the varying input. \begin{definition}[Raw systems]\label{bil:def:raw} Let $B\colon U\times V\to W$ be an $R$-bilinear map of finitely generated $R$-modules. A \emph{raw system} for $B$ is a finite list of \emph{rows} \begin{equation}\label{bil:eq:raw} \sum_{k=1}^{t_q}a_{q,k}\,B\bigl(x_{\alpha(q,k)},y_{\beta(q,k)}\bigr)=c_q \qquad(1\le q\le s), \end{equation} with coefficients $a_{q,k}\in R$, right-hand sides $c_q\in W$, left unknowns $x_1,\dots,x_N\in U$ and right unknowns $y_1,\dots,y_{N'}\in V$. The summands are the \emph{terms} of the row. We write $\BL_R(B)$ for the set of solvable raw systems. For $B\colon\Z^m\times\Z^n\to\Z^p$ we write $\QBLIN(B)=\BL_\Z(B)$; collecting terms, its instances are exactly the systems $\sum_{i,j}a^{(q)}_{ij}B(u_i,v_j)=c_q$, $a^{(q)}_{ij}\in\Z$, $c_q\in\Z^p$, of \cite[Conjecture~7.2]{Man23}. If needed, add unused unknowns to make the two tuple lengths equal. Each row is an equation in $W$; for $W=\Z^p$ it consists of $p$ integer equations. \end{definition} \begin{definition}[Shape]\label{bil:def:shape} A raw system has \emph{shape $(2,\pm1)$} if every row has at most two terms and every coefficient is $1$ or $-1$. For a finite set $F\subset W$ we write $\BL_R^{2}(B;F)\subseteq\BL_R(B)$ for the solvable systems of shape $(2,\pm1)$ whose right-hand sides lie in $F$. The \emph{primal graph} of a raw system has the unknowns as vertices, two unknowns being adjacent when they occur in a common row. A \emph{path decomposition} of a graph is a sequence of vertex sets (bags) $\beta_1,\dots,\beta_H$ such that every vertex and edge lies in some bag and the bags containing any given vertex are consecutive; its width is $\max_h|\beta_h|-1$, and the \emph{pathwidth} $\pw$ of the graph is the least width of a path decomposition \cite{RS83}. \end{definition} For $B$ as above put \[ I_B=\Bigl\{\textstyle\sum_kB(x_k,y_k)\Bigr\}\subseteq W, \] the subgroup generated by the values of $B$. It is an $R$-submodule, since $rB(x,y)=B(rx,y)$. A set of integers is \emph{$\Sigma^0_1$-complete} if it is computably enumerable and every computably enumerable subset of $\N$ is many-one reducible to it. For every $B$ the set $\BL_R(B)$ is computably enumerable: enumerate assignments of the unknowns and test the rows, which is possible because equality in $W$ is decidable. \subsubsection*{Hilbert's tenth problem and gate systems} Let $C$ be a ring of finite type and $G\subset C$ a finite set generating $C$ as a ring, with $1\in G$. An instance of $\HTP(C;G)$ is a finite set of polynomials in $\Z[T_g:g\in G][X_1,\dots,X_n]$; it is a yes-instance if, after substituting $T_g\mapsto g$, the polynomials have a common zero in $C^n$. Polynomial systems with coefficients in $C$, in any of the usual encodings, translate effectively into instances of $\HTP(C;G)$ with the same solutions. \begin{theorem}[{Koymans--Pagano \cite[Theorems~1.1 and~1.2]{KP}}]\label{bil:thm:KP} \textup{(1)} If $C$ is an infinite ring of finite type, then Hilbert's tenth problem over $C$, with coefficients in $C$, is undecidable; in particular $\HTP(C;G)$ is undecidable for every $G$. \textup{(2)} If $K$ is a number field, then $\Z$ is Diophantine over $\cO_K$: there are polynomials $\varphi_1,\dots,\varphi_t\in\cO_K[x,z_1,\dots,z_\ell]$ such that $x\in\cO_K$ lies in $\Z$ if and only if $\varphi_1(x,z)=\dots=\varphi_t(x,z)=0$ for some $z\in\cO_K^\ell$. \end{theorem} Part~(2) is the conjecture of Denef and Lipshitz; part~(1) follows from it by work of Eisentr\"ager, as explained in \cite[\S1.2]{KP}. We also use the theorem of Matiyasevich, Davis, Putnam and Robinson \cite{Mat70,Dav73}: every computably enumerable set $K\subseteq\N$ has the form $\{n: \exists y\in\N^k,\ P_0(n,y)=0\}$ for a polynomial $P_0$ with integer coefficients. \begin{definition}[Basic gate systems]\label{bil:def:gates} A \emph{basic gate system} over $(C,G)$ is a finite list of \emph{gates} in variables $X_1,\dots,X_N$, each of one of the forms \[ X_c=X_aX_b,\qquad X_c=X_a+1,\qquad X_a=X_b,\qquad X_a=0,\qquad X_a=g\ (g\in G). \] A \emph{layering} of such a system is a map $\lambda\colon\{1,\dots,N\}\to\{1,\dots,H\}$ such that the variables of every gate lie in a single layer $\lambda^{-1}(h)$, except that the two variables of an equality gate $X_a=X_b$ may lie in consecutive layers, $|\lambda(a)-\lambda(b)|=1$. The \emph{width} of a layered system is the least $w$ such that every layer contains at most $w$ variables and every variable occurs in at most $w$ gates. Every system has the trivial layering with $H=1$. \end{definition} \begin{lemma}[Addition from products and successors]\label{bil:lem:add} For $x,y,z$ in a commutative ring put $x'=x+1$, $z'=z+1$, and let $\Delta(x,y,z)=(zx+1)(zy+1)-\bigl(z^2(xy+1)+1\bigr)$. Then $\Delta(x,y,z)=z(x+y-z)$, and \[ x+y=z\iff\Delta(x,y,z)=0\ \text{and}\ \Delta(x',y,z')=0. \] Consequently there is a fixed basic gate system $\mathrm{Add}(X,Y,Z)$, using only product, successor and equality gates and twenty-two auxiliary variables, such that for $x,y,z$ in any commutative ring the system $\mathrm{Add}(x,y,z)$ is solvable if and only if $x+y=z$, and then its auxiliary variables are uniquely determined. \end{lemma} \begin{proof} Expanding, $(zx+1)(zy+1)-z^2xy-z^2-1=zx+zy-z^2$. Since $x'+y-z'=x+y-z$, the two conditions say $z(x+y-z)=0$ and $(z+1)(x+y-z)=0$, and their difference is $x+y-z$. For the gate system, introduce wires $p_1=zx$, $p_2=p_1+1$, $p_3=zy$, $p_4=p_3+1$, $p_5=p_2p_4$, $p_6=xy$, $p_7=p_6+1$, $p_8=zz$, $p_9=p_8p_7$, $p_{10}=p_9+1$ and the equality gate $p_5=p_{10}$, which expresses $\Delta(x,y,z)=0$; add $x'=x+1$, $z'=z+1$ and the same ten wires and one equality for $(x',y,z')$. \end{proof} \begin{lemma}\label{bil:lem:gates} There is a computable map sending each instance of $\HTP(C;G)$ to a basic gate system over $(C,G)$ with the same answer. \end{lemma} \begin{proof} Introduce a variable $O$ with the gate $O=0$ and a variable $M$ with the gate $O=M+1$, so that $M=-1$. Write each polynomial as an arithmetic circuit built from the $X_k$, the $T_g$ and $-1$ by binary sums and products. Introduce a variable for each node and impose $Y=g$ for a node $T_g$, $Y=M$ for a node $-1$, a product gate for each product node, and the system $\mathrm{Add}$ of Lemma~\ref{bil:lem:add} for each sum node. For the output $Y_\ell$ of each polynomial impose $Y_\ell=O$. Common zeros extend uniquely to solutions, and solutions restrict to common zeros. \end{proof} \subsection{Statements}\label{bil:ssec:statements} \begin{theorem}[Theorem~A; Manin's Conjecture~7.2]\label{bil:thm:A} Let $B\colon\Z^m\times\Z^n\to\Z^p$ be a nonzero bilinear map. Then $\QBLIN(B)$ is $\Sigma^0_1$-complete. More precisely, let $K\subseteq\N$ be a $\Sigma^0_1$-complete set. There are a finite set $F_B\subset\Z^p$, a constant $c_{B,K}$, and a computable map $n\mapsto S_n$ from $\N$ to raw systems for $B$ such that: \begin{enumerate} \item $n\in K$ if and only if $S_n$ has an integral solution; \item every $S_n$ has shape $(2,\pm1)$ and right-hand sides in $F_B$; \item in every $S_n$ each unknown occurs in at most $c_{B,K}$ rows, and the primal graph has pathwidth at most $c_{B,K}$; \item $S_n$ has at most $c_B(1+\log_2(n+1))$ unknowns and rows, and is computed in time polynomial in $1+\log_2(n+1)$. \end{enumerate} \end{theorem} Over $\Z$ the restriction to coefficients $\pm1$ is by itself harmless, since $aB(x,y)$ is a sum of $|a|$ copies of $\pm B(x,y)$; the content of items~(2)--(3) is the simultaneous bound on the number of terms per row, the number of occurrences of each unknown, and the pathwidth. Two terms cannot be replaced by one for every $B$ (Remark~\ref{bil:rem:oneterm}). \begin{theorem}[Theorem~B; the finite-image dichotomy]\label{bil:thm:B} Let $R$ be a ring of finite type, $U,V,W$ finitely generated $R$-modules and $B\colon U\times V\to W$ an $R$-bilinear map. \begin{enumerate} \item If $I_B$ is finite, then $\BL_R(B)$ is decidable. \item If $I_B$ is infinite, there are an infinite ring $\cZ$ of finite type, a finite generating set $G\ni1$ of $\cZ$, a finite set $F\subset I_B$ and a computable many-one reduction from $\HTP(\cZ;G)$ to $\BL^2_R(B;F)$. \item If $I_B$ is infinite, $\BL^2_R(B;F)$ and $\BL_R(B)$ are $\Sigma^0_1$-complete. For every computably enumerable $K\subseteq\N$ there is a reduction $n\mapsto S_n$ from $K$ to $\BL^2_R(B;F)$ whose outputs have bounded occurrences per unknown and bounded primal pathwidth, and $O(1+\log_2(n+1))$ unknowns and rows. The reduction runs in time polynomial in $1+\log_2(n+1)$. The bounds may depend on the fixed map $B$ and on $K$. \end{enumerate} Thus solvability of raw systems for $B$ is decidable if and only if $I_B$ is finite, and this remains true when the coefficients are restricted to $\{0,\pm1\}$, the right-hand sides still ranging over $W$. \end{theorem} \begin{remark}[Attribution]\label{bil:rem:credit} The interpretation of a ring of scalars in a bilinear map goes back to Myasnikov \cite{Mya90}. Garreta, Miasnikov and Ovchinnikov \cite[Theorems~3.6 and~3.10, Lemma~4.1]{GMO-rings} show that for every bilinear map $f$ of finitely generated modules over a Noetherian ring the commutant within the set of symmetric endomorphisms of an associated map is a ring existentially interpretable in the multi-sorted structure of $f$ \emph{with constants}. It is infinite exactly when $\langle f(A,B)\rangle$ and the product of the radical quotients are infinite \cite[Theorem~3.10(2)]{GMO-rings}. Combined with Theorem~\ref{bil:thm:KP} this gives undecidability of the Diophantine problem, with constants and with linear equations in each sort, for every bilinear map with infinite image; this corollary is stated for nilpotent groups by Catli and Myasnikov \cite{CM}. The centre used below is the ring obtained from the doubled map (Remark~\ref{bil:rem:GMO}). What is new here is the language: in $\QBLIN(B)$ and in $\BL_R(B)$ there are no constants in $U$ or $V$ and no linear equations, only combinations of values of $B$, which is the form in which such systems arise from extension problems \cite[\S8]{Man23}. The device that recovers constants is the frame. For square nonsingular integral $B$ it is the system $Z^{T}BW=B$ in Manin's proof of the case $p=1$ \cite[(7.15) and Theorem~7.9]{Man23}; frame-like equations with group constants occur in the work of Duchin, Liang and Shapiro on equations in free nilpotent groups \cite[Theorem~4]{DLS}. The case of the multiplication map $\Z\times\Z\to\Z$ is a consequence of the negative solution of Hilbert's tenth problem by the reduction of \cite[Lemma~2.1]{CKMVW-undec}, see \cite[Lemma~7.4]{Man23}. \end{remark} \subsection{Radicals}\label{bil:ssec:radicals} For an $R$-bilinear map $B\colon U\times V\to W$ put $U_0=\{u:B(u,v)=0\ \forall v\}$ and $V_0=\{v:B(u,v)=0\ \forall u\}$. Then $B$ induces $\bar B\colon\bar U\times\bar V\to W$, $\bar U=U/U_0$, $\bar V=V/V_0$, with zero left and right radicals, and $I_{\bar B}=I_B$. \begin{lemma}\label{bil:lem:radical} A raw system is solvable for $B$ if and only if it is solvable for $\bar B$. \end{lemma} \begin{proof} The left-hand side of a row at $(x,y)$ for $B$ equals the left-hand side at the classes $(\bar x,\bar y)$ for $\bar B$. Solutions project, and solutions for $\bar B$ lift by choosing representatives. \end{proof} \begin{lemma}\label{bil:lem:freequot} If $R$ is a domain and $W$ is torsion-free, then $\bar U$ and $\bar V$ are torsion-free. If $R=\Z$, the modules $U,V,W$ are free of finite rank and $B\neq0$, then $\bar U$ and $\bar V$ are free of finite positive rank. \end{lemma} \begin{proof} If $r\neq0$ and $ru\in U_0$, then $rB(u,v)=0$, hence $B(u,v)=0$, for all $v$; so $u\in U_0$. A finitely generated torsion-free abelian group is free, and $\bar U=0$ would force $B=0$. \end{proof} \begin{remark}[The radical quotient is needed]\label{bil:rem:radical} Frames (Definition~\ref{bil:def:frame}) are only rigid after passing to $\bar B$. For $B\colon\Z\times\Z^2\to\Z$, $B(u,v)=uv_1$, with standard bases the frame equations read $ab_{1,1}=1$, $ab_{2,1}=0$, and $b_2=(0,1)$, $b_2=0$ are both allowed; the second frame does not generate $\Z^2$. Here $V_0=0\times\Z\neq0$. \end{remark} \subsection{Frames}\label{bil:ssec:frames} \begin{setting}\label{bil:set:basic} $R$ is a Noetherian ring, $U,V,W$ are finitely generated $R$-modules, and $B\colon U\times V\to W$ is $R$-bilinear with zero radicals. We fix generating tuples $e=(e_1,\dots,e_r)$ of $U$ and $f=(f_1,\dots,f_s)$ of $V$ (relations among them are allowed) and put $c_{ij}=B(e_i,f_j)$. \end{setting} Zero radicals give \begin{equation}\label{bil:eq:nondeg} \bigl(B(u,f_j)=0\ \forall j\bigr)\Rightarrow u=0,\qquad \bigl(B(e_i,v)=0\ \forall i\bigr)\Rightarrow v=0. \end{equation} \begin{definition}\label{bil:def:frame} A \emph{frame} is a pair of tuples $a\in U^r$, $b\in V^s$ with \begin{equation}\label{bil:eq:frame} B(a_i,b_j)=c_{ij}\qquad(1\le i\le r,\ 1\le j\le s). \end{equation} \end{definition} \begin{proposition}[Frame rigidity]\label{bil:prop:rigid} In Setting~\ref{bil:set:basic} assume that $R$ is a domain and $W$ is torsion-free. For every frame $(a,b)$ there are automorphisms $A$ of $U$ and $D$ of $V$ with $Ae_i=a_i$, $Df_j=b_j$ and $B(Au,Dv)=B(u,v)$ for all $u,v$. In particular $a$ generates $U$ and $b$ generates $V$. \end{proposition} \begin{proof} Let $K=\Frac(R)$ and $M_K=M\otimes_RK$. By Lemma~\ref{bil:lem:freequot} (with zero radicals) $U$ and $V$ are torsion-free, so $U\subseteq U_K$, $V\subseteq V_K$, $W\subseteq W_K$, and $B$ extends to a $K$-bilinear map $B_K$. \emph{Step 1: $B_K$ has zero radicals.} If $B_K(x,y)=0$ for all $y$, write $x=u/d$ with $u\in U$, $0\neq d\in R$; then $B(u,v)=0$ for all $v\in V$, so $u=0$. Symmetrically on the right. \emph{Step 2: the $a_i$ span $U_K$ and the $b_j$ span $V_K$.} Let $\Psi_f,\Psi_b\colon U_K\to W_K^s$ be $x\mapsto(B_K(x,f_j))_j$ and $x\mapsto(B_K(x,b_j))_j$. Since the $f_j$ span $V_K$, Step~1 shows that $\Psi_f$ is injective, so the vectors $\Psi_f(e_i)$ span a space of dimension $\dim_KU_K$. By \eqref{bil:eq:frame}, $\Psi_b(a_i)=\Psi_f(e_i)$, so the span of the $a_i$ has dimension at least $\dim_KU_K$. Symmetrically for the $b_j$. \emph{Step 3: a $B$-preserving endomorphism.} If $\sum_i\lambda_ie_i=0$ with $\lambda_i\in R$, then $B(\sum_i\lambda_ia_i,b_j)=\sum_i\lambda_ic_{ij}=B(\sum_i\lambda_ie_i,f_j)=0$ for all $j$, so $\sum_i\lambda_ia_i=0$ by Steps~1 and~2. Hence there is an $R$-linear $A\colon U\to U$ with $Ae_i=a_i$, and likewise $D\colon V\to V$ with $Df_j=b_j$. By bilinearity $B(Au,Dv)=B(u,v)$. By Step~2, $A_K$ and $D_K$ are surjective, hence invertible, and $B_K(A_K^kx,D_K^ky)=B_K(x,y)$ for all $k\in\Z$. \emph{Step 4: $AU=U$.} The map $\Psi\colon U\to W^s$, $u\mapsto(B(u,f_j))_j$, is injective and $\Psi_K=\Psi_f$. Choose a $K$-linear $L\colon W_K^s\to U_K$ with $L\circ\Psi_K=\mathrm{id}$; since $W^s$ is finitely generated there is $0\neq c\in R$ with $cL(W^s)\subseteq U$. For $u\in U$ and $k\ge0$, \[ \Psi_K(A_K^{-k}u)=\bigl(B_K(A_K^{-k}u,f_j)\bigr)_j =\bigl(B(u,D^kf_j)\bigr)_j\in W^s, \] so $A_K^{-k}U\subseteq L(W^s)\subseteq c^{-1}U$. Since $AU\subseteq U$, the modules $A_K^{-k}U$ form an ascending chain in $c^{-1}U\cong U$, which is Noetherian; so $A_K^{-k}U=A_K^{-k-1}U$ for some $k$, and applying $A_K^{k+1}$ gives $AU=U$. As $A_K$ is injective, $A$ is an automorphism. Symmetrically $D$ is an automorphism of $V$. \end{proof} \begin{remark}\label{bil:rem:rigidZ} For $R=\Z$ and bases $e,f$, Step~4 is the statement that the integral matrices $cA^{-k}$ force $|\det A|=1$, which is the determinant argument of \cite[proof of Theorem~7.9]{Man23} for square nonsingular $B$. The proof above uses no determinant, no squareness and no assumption on the image of $B$; only the zero radicals of Lemma~\ref{bil:lem:radical} are needed, and they are needed (Remark~\ref{bil:rem:radical}). \end{remark} \subsection{The adjoint ring and its centre}\label{bil:ssec:adjoint} \begin{definition}\label{bil:def:adjoint} In Setting~\ref{bil:set:basic} the \emph{adjoint ring} of $B$ is \[ \cA(B)=\bigl\{(P,Q)\in\End_R(U)\times\End_R(V):\ B(Pu,v)=B(u,Qv)\ \forall u,v\bigr\}, \] with componentwise addition and product $(P,Q)(P',Q')=(PP',Q'Q)$. Its centre is denoted $\cZ(B)$. For an arbitrary bilinear map $B$ we put $\cA(B)=\cA(\bar B)$ and $\cZ(B)=\cZ(\bar B)$. \end{definition} \begin{lemma}\label{bil:lem:adjoint} In Setting~\ref{bil:set:basic}: \begin{enumerate} \item $\cA(B)$ is an associative $R$-algebra with identity $(1,1)$, and both projections $(P,Q)\mapsto P$ and $(P,Q)\mapsto Q$ are injective. \item $\cA(B)$ and $\cZ(B)$ are finitely generated $R$-modules; $\cZ(B)$ is a commutative $R$-algebra, of finite type if $R$ is. \item The kernel of $R\to\cZ(B)$, $\rho\mapsto(\rho,\rho)$, is $\Ann_R(U)$. If $R$ is a domain and $U\neq0$ is torsion-free, $R\to\cZ(B)$ is injective. \end{enumerate} \end{lemma} \begin{proof} (1) $B(PP'u,v)=B(P'u,Qv)=B(u,Q'Qv)$. If $P=0$ then $B(u,Qv)=0$ for all $u$, so $Q=0$; symmetrically. (2) $\End_R(U)$ embeds in $U^r$ by $P\mapsto(Pe_i)_i$, and similarly for $V$, so $\cA(B)$ and $\cZ(B)$ are submodules of a finitely generated module over a Noetherian ring; $\cZ(B)$ is generated as a ring by ring generators of the image of $R$ and finitely many module generators. (3) If $\rho U=0$ then $B(u,\rho v)=B(\rho u,v)=0$ for all $u$, so $\rho V=0$; the rest is clear. \end{proof} \begin{remark}[Relation to \cite{GMO-rings}]\label{bil:rem:GMO} After quotienting by the radicals, let $f_2\colon(U\times V)\times(U\times V)\to I_B\times I_B$ be $f_2((u,v),(u',v'))=(B(u,v'),B(u',v))$, let $\operatorname{Sym}(f_2)$ be the set of endomorphisms $\alpha$ of $U\times V$ with $f_2(\alpha x,y)=f_2(x,\alpha y)$, and let $Z(\operatorname{Sym}f_2)$ be the set of $\alpha\in\operatorname{Sym}(f_2)$ commuting with every element of $\operatorname{Sym}(f_2)$ \cite[Definition~3.3]{GMO-rings}. Zero radicals force such $\alpha$ to be diagonal, $\alpha=\mathrm{diag}(P,Q)$ with $(P,Q)\in\cA(B)$, and $\mathrm{diag}(P,Q)$ commutes with all of $\operatorname{Sym}(f_2)$ exactly when $(P,Q)$ is central in $\cA(B)$. Hence $\cZ(B)\cong Z(\operatorname{Sym}f_2)$: the opposite multiplication on the second factor of $\cA(B)$ agrees with ordinary multiplication on the centre. This is the ring obtained by applying \cite[Theorem~3.6]{GMO-rings} to the doubled map in the proof of \cite[Theorem~3.10]{GMO-rings}; see also \cite[Lemma~3.11]{GMO-rings} (numbering of the second arXiv version). \end{remark} \begin{lemma}[Encoding adjoint pairs]\label{bil:lem:encode} In Setting~\ref{bil:set:basic} let $l\in U^r$ and $\rho\in V^s$ satisfy $B(l_i,f_j)=B(e_i,\rho_j)$ for all $i,j$. Then there is a unique $(P,Q)\in\cA(B)$ with $Pe_i=l_i$ and $Qf_j=\rho_j$. Conversely every $(P,Q)\in\cA(B)$ gives such tuples. \end{lemma} \begin{proof} If $\sum_i\lambda_ie_i=0$ then $B(\sum_i\lambda_il_i,f_j)=B(\sum_i\lambda_ie_i,\rho_j)=0$ for all $j$, so $\sum_i\lambda_il_i=0$ by \eqref{bil:eq:nondeg}; hence $P$ exists, and likewise $Q$. The hypothesis says $B(Pe_i,f_j)=B(e_i,Qf_j)$, and bilinearity gives $(P,Q)\in\cA(B)$. Uniqueness holds because $e$ and $f$ generate. \end{proof} \subsection{The compiler}\label{bil:ssec:compiler} In this subsection we are in Setting~\ref{bil:set:basic} with $R$ a domain of finite type and $W$ torsion-free, and we write $\cA=\cA(B)$, $\cZ=\cZ(B)$; for $X\in\cA$ we write $X=(P_X,Q_X)$. We fix a finite set $\cE\subset\cA$ generating $\cA$ as an $R$-module and a finite set $G\subset\cZ$ generating $\cZ$ as a ring, with $1\in G$. Put \[ N_U=\{P_Ee_i:E\in\cE,\ 1\le i\le r\}\subset U,\qquad N_V=\{Q_Ef_j:E\in\cE,\ 1\le j\le s\}\subset V, \] and let $F\subset W$ be the finite set consisting of $0$, the $c_{ij}$, the elements $B(x,f_j)$ for $x\in N_U$, the elements $B(e_i,y)$ for $y\in N_V$, and the elements $B(P_ge_i,f_j)$ for $g\in G$. \begin{definition}[The compiled system]\label{bil:def:compiled} Let $(\Gamma,\lambda)$ be a layered basic gate system over $(\cZ,G)$ with variables $X_1,\dots,X_N$ and layers $1,\dots,H$. The raw system $\Gamma^\flat$ has the following unknowns: for each layer $h$, a \emph{frame} $a^h\in U^r$, $b^h\in V^s$ and \emph{named vectors} $\hat x^h\in U$ $(x\in N_U)$ and $\hat y^h\in V$ $(y\in N_V)$; for each variable $X_k$, \emph{columns} $l^k\in U^r$ and $\rho^k\in V^s$. Its rows are the following, for all $i\le r$, $j\le s$, where $h$ denotes the layer of the variable or gate concerned: \begin{enumerate} \item[(F)] $B(a^h_i,b^h_j)=c_{ij}$ for every layer $h$; \item[(L)] $B(a^h_i,b^{h+1}_j)=c_{ij}$ for $1\le h0}$ with $h:=M\varepsilon\in\cZ$. We claim \[ \ker\pi=\{x\in\cZ: \ hx^\nu=0\}. \] The image of $x$ in $A_s$ is $\varepsilon x$, and it lies in $\mathfrak m_s$ if and only if it is nilpotent, since $A_s$ is local Artinian. An element $y$ of the $\nu$-dimensional commutative algebra $\cZ_\Q$ is nilpotent if and only if $y^\nu=0$: multiplication by a nilpotent $y$ is a nilpotent endomorphism of a $\nu$-dimensional space, so its $\nu$-th power vanishes, and applying it to $1$ gives $y^\nu=0$. Since $\varepsilon$ is idempotent, $(\varepsilon x)^\nu=\varepsilon x^\nu$, and since $\cZ$ is torsion-free, $\varepsilon x^\nu=0$ if and only if $hx^\nu=0$. \emph{The order.} $O:=\pi(\cZ)$ is a subring of $F$ that is finitely generated as an abelian group and spans $F$ over $\Q$, because $\cZ_\Q\to F$ is onto; so $O$ is an order of $F$, and $O\cong\cZ/\ker\pi$. Let $f=[\cO_F:O]$. Then $f\cO_F\subseteq O$. If $\omega_1,\dots,\omega_d$ is a $\Z$-basis of $\cO_F$ and $g_i=f\omega_i\in O$, then $f\cO_F=\sum_iOg_i$: the right side contains $\sum_i\Z g_i=f\cO_F$ and is contained in $f\cO_F$, as $f\cO_F$ is an $O$-submodule of $F$. Choose $\tilde g_i\in\cZ$ with $\pi(\tilde g_i)=g_i$. \emph{The translation.} For each variable $X_k$ of $\Gamma$ introduce variables $x_k$ and $y_{k,1},\dots,y_{k,d}$ in $\cZ$, intended to satisfy $\pi(x_k)=fX_k$. Let $\Gamma^\sharp$ consist of \begin{enumerate} \item[(i)] $h\bigl(x_k-\sum_iy_{k,i}\tilde g_i\bigr)^\nu=0$ for every $k$; \item[(ii)] $h(x_a+x_b-x_c)^\nu=0$ for every gate $X_a+X_b=X_c$; \item[(iii)] $h(x_ax_b-fx_c)^\nu=0$ for every gate $X_aX_b=X_c$; \item[(iv)] $h(x_a-f)^\nu=0$ for every gate $X_a=1$; \item[(v)] $w=t\cdot1$ and $h(x_a-fw)^\nu=0$, with a fresh variable $w$, for every gate $X_a=t$. \end{enumerate} By the claim, (i) says $\pi(x_k)\in\sum_iOg_i=f\cO_F$, and (ii)--(v) say $\pi(x_a)+\pi(x_b)=\pi(x_c)$, $\pi(x_a)\pi(x_b)=f\pi(x_c)$, $\pi(x_a)=f$ and $\pi(x_a)=ft$. Given a solution of $\Gamma^\sharp$, put $X_k=\pi(x_k)/f\in\cO_F$; then $fX_afX_b=f\cdot fX_c$ gives $X_aX_b=X_c$, and the other gates follow likewise. Given a solution $(X_k)$ of $\Gamma$, write $fX_k=\sum_i\lambda_{k,i}g_i$ with $\lambda_{k,i}\in O$, lift $\lambda_{k,i}$ to $y_{k,i}\in\cZ$, and put $x_k=\sum_iy_{k,i}\tilde g_i$ and $w=t$. All data ($\nu$, $h$, $f$, $\tilde g_i$) are computable from a multiplication table of $\cZ$ by linear algebra over $\Q$ and $\Z$, factorisation of polynomials over $\Q$, and the computation of $\cO_F$. \end{proof} \begin{proposition}[Theorem~\ref{thm:C}(1)]\label{prop:residue} For every residue field $F$ of $\cZ(B)_\Q$ we have $\HTP_\Z(\cO_F)\le_m\HTP(\cZ(B))$ and $\HTP(\cZ(B))\le_m\QBLIN(B)$. If $\Z$ is Diophantine over $\cO_F$, then $\QBLIN(B)$ is $\Sigma^0_1$-complete. \end{proposition} \begin{proof} Convert an instance of $\HTP_\Z(\cO_F)$ to a gate system, apply Lemma~\ref{lem:interp} and then (F3) and (F1). Suppose $\Z=\{x\in\cO_F: \exists y\ D(x,y)=0\}$ with $D$ a polynomial over $\cO_F$. We may assume $D$ has coefficients in $\Z$. Indeed, fix $\theta\in\cO_F$ with $F=\Q(\theta)$, its minimal polynomial $\mu\in\Z[T]$, and $N\in\Z_{>0}$ with $N\cO_F\subseteq\Z[\theta]$, and write $ND(x,y)=D'(\theta,x,y)$ with $D'$ over $\Z$. If $T\in\cO_F$ satisfies $\mu(T)=0$, then $\theta\mapsto T$ defines an automorphism $\sigma$ of $F$, as in the proof of Proposition~\ref{prop:OK}, and $\{x: \exists y\ D'(T,x,y)=0\}=\sigma(\Z)=\Z$. Hence $\Z=\{x\in\cO_F: \exists y,T\ D'(T,x,y)=0,\ \mu(T)=0\}$, a definition by a system with integer coefficients, which we write again as $D(x,y)=0$. Now a system over $\Z$ is solvable in $\Z$ if and only if the system obtained by adding $D(x_k,y_k)=0$ for every variable $x_k$ is solvable in $\cO_F$; so $\HTP_\Z(\Z)\le_m\HTP_\Z(\cO_F)$, and $\HTP_\Z(\Z)$ is $\Sigma^0_1$-complete by the MRDP theorem \cite{DPR61,Mat70}. Finally $\QBLIN(B)$ is computably enumerable. \end{proof} The ingredients of Lemma~\ref{lem:interp} are standard in the theory of existential interpretations: Garreta, Miasnikov and Ovchinnikov show that every infinite finitely generated ring of characteristic zero and finite rank $n$ existentially interprets some ring of algebraic integers of degree at most $n$ \cite[Theorem~2.17(3)]{GMO-rings}, building on Eisentr\"ager's thesis \cite{Eis03}. What Lemma~\ref{lem:interp} adds is that \emph{every} residue field can be reached, with explicit formulas; together with Proposition~\ref{prop:degree} this replaces the bound ``degree at most $\operatorname{rank}\cZ$'' by ``degree at most $\min(m,n)$''. \subsubsection{The degree bound} \begin{proposition}[Theorem~\ref{thm:C}(2)]\label{prop:degree} $\sum_s[F_s: \Q]\le\min(\bar m,\bar n)$. \end{proposition} \begin{proof} By (F2), $\cZ\to\End\bar U$ is injective, and so is $\cZ_\Q\to\End(\bar U_\Q)$, since $\Q$ is flat over $\Z$. Thus $\bar U_\Q$ is a faithful $\cZ_\Q$-module and $\bar U_\Q=\bigoplus_s\varepsilon_s\bar U_\Q$ with $\varepsilon_s\bar U_\Q\ne0$ for every $s$. Each $\varepsilon_s\bar U_\Q$ is a nonzero finitely generated module over the local ring $A_s$, so by Nakayama's lemma $\varepsilon_s\bar U_\Q/\mathfrak m_s\varepsilon_s\bar U_\Q$ is a nonzero $F_s$-vector space, of $\Q$-dimension at least $[F_s: \Q]$. Hence $\bar m=\dim_\Q\bar U_\Q\ge\sum_s[F_s: \Q]$. The same argument with $\bar V$ gives the bound by $\bar n$. \end{proof} The bound is attained by $B_K$, for which $\bar m=\bar n=[K: \Q]$ and the only residue field is $K$ (Proposition~\ref{prop:OK}). If equality holds with either $\bar m$ or $\bar n$, then $\cZ_\Q$ is reduced. Indeed, on that side every nonzero local summand and its residue-field quotient have the same dimension $[F_s: \Q]$. Thus $\mathfrak m_s$ annihilates its summand and all the other summands. By faithfulness $\mathfrak m_s=0$ for every $s$. \begin{proposition}[Realization of residue-field and quotient-rank profiles] \label{prop:profile-realization} Fix a nonempty finite list $F_1,\ldots,F_h$ of number fields, allowing repetitions. A pair $(M,N)$ is realized as the two nondegenerate quotient ranks of a bilinear map whose rational adjoint centre has this list of residue fields if and only if there exist positive integers $a_s,b_s$ with \[ M=\sum_{s=1}^h a_s[F_s: \Q], \qquad N=\sum_{s=1}^h b_s[F_s: \Q]. \] The existence assertion allows the output rank to vary. Any ambient ranks $m\ge M$, $n\ge N$ are possible, with corresponding radical ranks $m-M$ and $n-N$. \end{proposition} \begin{proof} For necessity, let $A_s$ be the corresponding Artinian local factor with nilpotent maximal ideal $\mathfrak m_s$. It contains a copy of $F_s$ over $\Q$. Indeed, choose a primitive element $\theta$ of $F_s$, write $\mu$ for its minimal polynomial, and take a lift $a\in A_s$ of $\theta$. Then $\mu(a)\in\mathfrak m_s$ and $\mu'(a)$ is a unit by separability. Replacing $a$ by $a-\mu(a)/\mu'(a)$ leaves its residue unchanged and squares the ideal power containing the error, by Taylor expansion. Nilpotence gives an exact root after finitely many corrections, and $\Q[T]/(\mu)$ embeds by evaluation at that root. Faithfulness on each side guarantees that $\varepsilon_s\bar U_\Q$ and $\varepsilon_s\bar V_\Q$ are nonzero. Their dimensions over this coefficient field are the desired $a_s,b_s$. Conversely write $O_s=\cO_{F_s}$ and define $\beta_s\colon O_s^{a_s}\times O_s^{b_s}\to O_s^{a_sb_s}$ by $\beta_s(u,v)=(u_iv_j)_{i,j}$. In the direct sum of the $\beta_s$ with independent output summands, an adjoint pair preserves the summands: comparing the adjoint equation on vectors supported in two distinct summands puts its two sides in disjoint output summands, and nondegeneracy then forces the off-diagonal blocks to vanish. In a single summand, take $u=te_i$ and $v=e_j$ in the adjoint equation. One side is supported in column $j$, the other in row $i$. Reading the $(i,j)$ entry gives $(P(te_i))_i=t(Qe_j)_j$. It follows that $P$ is coordinatewise multiplication by one $c\in O_s$ common to all $i,j$. This comparison also applies when $a_s=1$ or $b_s=1$, since the corresponding single row or column is still available. Taking $u=e_i$ and arbitrary $v$ gives $Q(v)=cv$. Every such pair is adjoint, so the adjoint ring and its centre are both $\prod_s O_s$. Each block is nondegenerate because a nonzero input coordinate gives a nonzero output coordinate against a standard basis vector on the other side. Therefore the direct sum is nondegenerate and has the asserted ranks. Appending ignored integral variables produces exactly the stated radicals and leaves the quotient map and its adjoint centre unchanged. \end{proof} \subsubsection{Rings of integers} \begin{proposition}[Theorem~\ref{thm:C}(3)]\label{prop:OK} For every number field $K$, $\cZ(B_K)\cong\cO_K$ and $\QBLIN(B_K)\equiv_m\HTP_\Z(\cO_K)$. \end{proposition} \begin{proof} Identify $\Z^d$ with $\cO_K$, so $B_K(u,v)=uv$. Both radicals vanish because $\cO_K$ is a domain. If $(P,Q)$ is adjoint, $P(u)v=uQ(v)$ for all $u,v$; with $u=1$ we get $Q(v)=av$ for $a=P(1)$, and with $v=1$ we get $P(u)=uQ(1)=ua$. Conversely every pair of multiplications by the same $a\in\cO_K$ is adjoint. So $\cA(B_K)\cong\cO_K$, which is commutative, and $\cZ(B_K)\cong\cO_K$; its only residue field is $K$. Proposition~\ref{prop:residue} gives $\HTP_\Z(\cO_K)\le_m\QBLIN(B_K)$. Conversely, an instance $\sum_{i,j}a^{(q)}_{ij}u_iv_j=c_q$ of $\QBLIN(B_K)$ is a polynomial system over $\cO_K$ with integer coefficients and constants $c_q\in\cO_K$. Following \cite[Proposition~7.3]{Man23}, fix $\theta\in\cO_K$ with $K=\Q(\theta)$, its minimal polynomial $\mu\in\Z[T]$, and $D\in\Z_{>0}$ with $D\cO_K\subseteq\Z[\theta]$, and compute $g_q\in\Z[T]$ with $Dc_q=g_q(\theta)$. Replace the instance by the system $D\sum_{i,j}a^{(q)}_{ij}u_iv_j-g_q(T)=0$ ($1\le q\le s$), $\mu(T)=0$, with a new unknown $T$. A solution of the instance gives a solution with $T=\theta$. Conversely, if $T=\theta'$ in a solution, then $\theta\mapsto\theta'$ defines a field embedding $K\to K$, which is an automorphism $\sigma$ because $K$ is finite-dimensional over $\Q$; $\sigma$ preserves $\cO_K$, and applying $\sigma^{-1}$ gives a solution with $T=\theta$, hence a solution of the instance. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:C}(3)] If $\QBLIN(B)$ is undecidable for every $B$, then so is $\QBLIN(B_K)$, hence $\HTP_\Z(\cO_K)$ by Proposition~\ref{prop:OK}. If $\HTP_\Z(\cO_K)$ is undecidable for every $K$, then for a given $B$ pick any residue field $F$ of $\cZ(B)_\Q$; Proposition~\ref{prop:residue} shows that $\QBLIN(B)$ is undecidable. If $\Z$ is Diophantine over every $\cO_K$, the last assertion of Proposition~\ref{prop:residue} applies. None of these steps uses \cite{KP,ABHS}. \end{proof} By \cite[Theorem~1.2]{KP} (see also \cite{ABHS} and \cite[\S1.2]{Poo25}) $\Z$ is Diophantine over $\cO_K$ for every number field $K$, which proves Theorem~\ref{bil:thm:A} once more and shows that every $\QBLIN(B)$ is $\Sigma^0_1$-complete. \subsubsection{When the MRDP theorem suffices} \begin{proposition}[Theorem~\ref{thm:C}(4)]\label{prop:MRDP} For a nonzero $B$ the following are equivalent: \textup{(i)} there is a ring homomorphism $\varphi\colon\cZ(B)\to\Z$; \textup{(ii)} $\Q$ is a residue field of $\cZ(B)_\Q$. Both are decidable from $B$. Under them, a system with integer coefficients is solvable in $\Z$ if and only if it is solvable in $\cZ(B)$, so $\HTP_\Z(\Z)\le_m\HTP(\cZ(B))\le_m\QBLIN(B)$ via the identity on systems. \end{proposition} \begin{proof} (i)$\Rightarrow$(ii): $\varphi\otimes\Q\colon\cZ_\Q\to\Q$ is onto, its kernel is a maximal ideal, and the corresponding local factor $A_s$ has residue field $\Q$. (ii)$\Rightarrow$(i): if $F_s=\Q$, the order $\pi_s(\cZ)\subseteq\Q$ of Lemma~\ref{lem:interp} is a finitely generated subring of $\Q$ containing $1$, hence equal to $\Z$, and $\pi_s\colon\cZ\to\Z$ is a ring homomorphism. \emph{Decidability.} Let $b_1,\dots,b_\nu$ be a $\Z$-basis of $\cZ$ and $\chi_i$ the characteristic polynomial of multiplication by $b_i$. By Cayley--Hamilton $\chi_i(b_i)=0$, so $\varphi(b_i)$ is an integer root of $\chi_i$. There are finitely many candidate tuples $(\varphi(b_i))_i$, and for each one checks $\varphi(1)=1$ and multiplicativity on the structure constants. \emph{Retraction.} $\Z\cdot1\subseteq\cZ$ and $\varphi$ restricts to the identity on $\Z\cdot1$. A solution in $\Z$ is a solution in $\cZ$; applying $\varphi$ to a solution in $\cZ$ gives one in $\Z$. The second reduction is (F3), (F1). \end{proof} Condition (i) holds, for instance, in the following cases. (a) Some simple factor of the semisimple algebra $\cA(B)_\Q/\operatorname{rad}\cA(B)_\Q$ has centre $\Q$: the image of $\cZ_\Q$ in that centre is a unital subalgebra of $\Q$. (b) $p=1$: then $\bar B(u,v)=u^{\mathsf T}Dv$ with $D$ square and invertible over $\Q$, the adjoint pairs are $(P,D^{-1}P^{\mathsf T}D)$, and $\cA(B)_\Q$ is a full matrix algebra over $\Q$. (c) $B$ is the multiplication of an order in a central simple $\Q$-algebra (as in Example~\ref{ex:quaternion}). \begin{example}[Quaternion orders]\label{ex:quaternion} Let $\Lambda=\Z\langle1,i,j,k\rangle$ be the Lipschitz order in the rational quaternions $\mathbb H_\Q$ and $B_\Lambda\colon\Z^4\times\Z^4\to\Z^4$ its multiplication. For every nonzero linear $L\colon\Z^4\to\Z$ the form $L\circ B_\Lambda$ is nondegenerate: for $u\ne0$, $u\mathbb H_\Q=\mathbb H_\Q$, so $L(u\,\cdot)\ne0$. Thus $B_\Lambda$ has full rank in every direction, the class of \cite[Remark~7.11]{Man23}; Proposition~7.7 of \cite{Man23} needs a direction of rank one, Theorem~7.9 needs $p=1$, and Remark~7.10(2) needs a line $\Q u$ and a complement $S'$ of a line in $\Q^4$ with $uS'=0$, which is impossible in a division algebra. On the other hand, if $(P,Q)$ is adjoint then $P(u)v=uQ(v)$; $u=1$ gives $Q(v)=av$ with $a=P(1)$, and $v=1$ gives $P(u)=ua$. So $\cA(B_\Lambda)\cong\Lambda^{\mathrm{op}}$ and $\cZ(B_\Lambda)$ is the centre of $\Lambda$, which is $\Z$. By Proposition~\ref{prop:MRDP}, $\QBLIN(B_\Lambda)$ is $\Sigma^0_1$-complete by the MRDP theorem alone. The same holds for the Hurwitz order. By contrast, for a quartic field $K$ the map $B_K$ has the same shape and also full rank in every direction, but $\QBLIN(B_K)\equiv_m\HTP_\Z(\cO_K)$ by Proposition~\ref{prop:OK}. \end{example} \begin{remark}[Answer to {\cite[Remark~7.11]{Man23}}]\label{rem:711} Remark~7.11 of \cite{Man23} suggests that the difficulty of $\QBLIN(B)$ is governed by how many independent coordinates $B$ has and how low the rank of $L\circ B$ can be. Theorem~\ref{thm:C} and Example~\ref{ex:quaternion} show that how the centre $\cZ(B)$ of the adjoint ring distinguishes two maps with identical shape and full rank in every direction. For $B_\Lambda$ the scalar-retraction argument uses the MRDP theorem. For $B_K$ the precise many-one equivalence is with Hilbert's tenth problem over $\cO_K$. Theorem~\ref{thm:C}(2) gives a dimension bound on the residue fields. \end{remark} \subsubsection{Small dimension} \begin{corollary}[Theorem~\ref{thm:C}(5)]\label{cor:classical} Suppose some residue field $F$ of $\cZ(B)_\Q$ has $[F: \Q]\le3$, or has $[F: \Q]=4$ and either a real place or a quadratic subfield; in particular this holds if $\min(m,n)\le3$. Then $\Z$ is Diophantine over $\cO_F$ by \cite{Den75,DL78,Den80,Phe88,Shl89}, and $\QBLIN(B)$ is $\Sigma^0_1$-complete. \end{corollary} \begin{proof} By Proposition~\ref{prop:degree} the hypothesis holds when $\min(m,n)\le3$. A number field of degree at most $3$ is $\Q$, a quadratic field, a totally real cubic field, or a cubic field with exactly one complex place. A quartic field with a real place is totally real or has exactly one complex place (signature $(2,1)$). That $\Z$ is Diophantine over the ring of integers is due to Denef and Lipshitz \cite{DL78} and Denef \cite{Den80} for totally real fields and quadratic extensions of totally real fields (this includes every quadratic field), to Denef and Lipshitz \cite{DL78} for quartic fields with a quadratic subfield, and to Pheidas \cite{Phe88} and Shlapentokh \cite{Shl89} for fields with exactly one complex place; see also \cite{Den75} for quadratic fields and \cite{Vid89} for one complex place, and the account in \cite[\S3.1]{GFP20}. Conclude by Proposition~\ref{prop:residue}. \end{proof} \begin{remark} The remaining quartic fields are the totally imaginary ones without a quadratic subfield, for example $\Q[x]/(x^4-x+1)$, of discriminant $229$ and Galois group $S_4$. These fields are outside the classical cases listed in Corollary~\ref{cor:classical}. In particular that corollary does not cover every $B$ with $\min(m,n)=4$. \end{remark} Theorem~\ref{thm:C}(3) identifies $\QBLIN(B_K)$ with $\HTP_\Z(\cO_K)$ in every degree. For instance $K=\Q(2^{1/5})$ has signature $(1,2)$; it is not totally real, not a quadratic extension of any field (its degree is odd), and has two complex places, so it lies outside the first three classes listed in \cite[\S1.1]{KP}. For this particular $K$, $\Z$ is nevertheless Diophantine over $\cO_K$ without \cite{KP,ABHS}, by the elliptic-curve criterion of Poonen \cite{Poo02} applied to a curve of rank one over $\Q$ that keeps its rank over $K$ \cite[\S3.1]{GFP20}. For a different derivation of the general result, see \cite{Zyw25,Poo25}. \begin{remark}[Uniformity in $B$]\label{rem:uniform} All data in Lemma~\ref{lem:interp}, Proposition~\ref{prop:MRDP} and (F3) are computable from the matrix of $B$. Hence the reductions of Theorem~\ref{thm:C} are uniform in $B$ on the decidable class of maps satisfying Theorem~\ref{thm:C}(4), which contains all forms ($p=1$) and all orders in central simple algebras. Across the full families, a single algorithm producing a halting reduction from each nonzero $B$ exists if and only if a single algorithm produces a halting reduction to $\HTP_\Z(\cO_F)$ from each number field $F$. Given the latter, compute one residue field of $\cZ(B)_\Q$ and use Lemma~\ref{lem:interp} and (F3). Given the former, apply it to the computable multiplication map $B_F$ and use Proposition~\ref{prop:OK}. \end{remark} \subsection{Theorem D: quantitative forms} Let $\QBLIN_r(B)$ be the restriction of $\QBLIN(B)$ to instances with $r$ left and $r$ right unknowns (any number of rows), and \[ \rho(B)=\min\{r: \QBLIN_r(B)\text{ is undecidable}\}\in\Z_{\ge1}\cup\{\infty\}. \] Write $\Imm B=\{B(u,v)\}\subseteq\Z^p$, let $I_k$ be the dot product on $\Z^k$, and $\rho_k=\rho(I_k)$; note $\QBLIN(I_1)$ is Manin's problem (Q-DIFF) \cite[Lemma~7.4]{Man23}. Since a unimodular change of coordinates in $\Z^m$ or $\Z^n$ is a bijection on unknowns, $\rho$ is invariant under it, and by (F1) $\rho(B)=\rho(\bar B)$. For a coefficient array, the \emph{Gram matrix} of a candidate solution is $X=(B(u_i,v_j))_{i,j}\in(\Z^p)^{r\times r}$; an instance is solvable if and only if the affine set of $X$ satisfying its rows meets the set $S_r(B)$ of Gram matrices of $r$ pairs. \begin{theorem}[Quantitative profile]\label{thm:D} \begin{enumerate} \item \emph{(One fixed system, one parameter.)} For every nonzero $B$ there are $r_B,s_B\in\N$, integers $a^{(q)}_{ij}$ and vectors $c^0_q,c^1_q\in\Z^p$ such that \[ \Bigl\{t\in\N: \ \sum_{i,j\le r_B}a^{(q)}_{ij}B(u_i,v_j)=c^0_q+t\,c^1_q\ (q\le s_B)\text{ is solvable}\Bigr\} \] is $\Sigma^0_1$-complete. In particular $\rho(B)\le r_B<\infty$. \item \emph{(One pair.)} $\rho(B)=1$ if and only if $\Imm B$ is not recursive. There are $B$ with $\rho(B)=1$. If $p=1$ or $\min(m,n)\le2$, then $\Imm B$ is recursive, so $\rho(B)\ge2$. \item \emph{(Forms.)} Let $p=1$ and $k=\rank B$. Then $\max(3,k+1)\le\rho(B)\le k+\rho_1-1$. There is an absolute $k_0$ such that $\rho(B)=k+1$ for every scalar-valued form of rank $k\ge k_0$. \item \emph{(Rows.)} If $k\ge s$, the restriction of $\QBLIN(I_k)$ to $s$ rows is decidable. Hence no fixed number of rows makes $\QBLIN(B)$ undecidable for every $B$, although by (1) a fixed number $s_B$ suffices for each $B$. \item \emph{(Sums of three cubes.)} If $\QBLIN_{k+1}(I_k)$ is decidable for some $k\ge4$, or $\QBLIN_5(I_1)$ is decidable, or the image of the map $\beta_3\colon\Z^5\times\Z^4\to\Z^6$ of Proposition~\ref{prop:barrier} is recursive, then there is an algorithm deciding which integers are sums of three integer cubes. \end{enumerate} \end{theorem} No algorithm for sums of three cubes is known, so proving $\rho_k\ge k+2$ for any $k\ge4$, or $\rho_1\ge6$, would solve that decision problem. The rest of this section proves Theorem~\ref{thm:D}. \subsubsection{Elementary reductions} \begin{lemma}\label{lem:basic} \begin{enumerate} \item $\QBLIN_1(B)$ is decidable if and only if membership in $\Imm B$ is decidable, by uniform reductions. The reduction to membership uses at most one query. \item Every instance of $\QBLIN_r(B)$ is computably equivalent to one with at most $r^2$ rows. \item Membership in images of bilinear maps $\Z^{m}\times\Z^{n}\to\Z^p$ is decidable uniformly in the map if and only if the restriction of $\QBLIN(I_1)$ to $p$ rows is decidable. \end{enumerate} \end{lemma} \begin{proof} (1) The rows read $a_qB(u,v)=c_q$ with $a_q\in\Z$. If all $a_q=0$ the instance is solvable if and only if all $c_q=0$. Otherwise fix $a_{q_0}\ne0$; the instance is unsolvable unless $w=c_{q_0}/a_{q_0}\in\Z^p$ and $a_qw=c_q$ for all $q$, and then it is solvable if and only if $w\in\Imm B$. Conversely $w\in\Imm B$ is the instance $B(u,v)=w$. (2) The rows say $A\tilde X=C$, where $\tilde X\in\Z^{r^2\times p}$ lists the entries of the Gram matrix, $A\in\Z^{s\times r^2}$ and $C\in\Z^{s\times p}$. Let $G\in GL_s(\Z)$ with $GA=H$ in Hermite normal form. If a zero row of $H$ meets a nonzero row of $GC$, output a fixed unsolvable instance; otherwise keep the at most $r^2$ nonzero rows of $H\tilde X=GC$. (3) A $p$-row instance of $\QBLIN(I_1)$ with $N$ pairs of unknowns asks whether $c\in\Imm\beta$, where $\beta(x,y)=(\sum_{i,j}a^{(q)}_{ij}x_iy_j)_{q\le p}$ on $\Z^N\times\Z^N$; and every map $\Z^m\times\Z^n\to\Z^p$ is of this form after padding to $N=\max(m,n)$. \end{proof} \begin{lemma}[After {\cite[Lemma~7.4]{Man23}} and {\cite[Lemma~2.1]{CKMVW-undec}}]\label{lem:qdiff} There are $r_1,s\in\N$, $a^{(q)}_{ij}\in\Z$ and $c^0,c^1\in\Z^s$ such that $\{t\in\N: \ \sum_{i,j\le r_1}a^{(q)}_{ij}x_iy_j=c^0_q+tc^1_q\ (q\le s)\text{ is solvable in }\Z\}$ is $\Sigma^0_1$-complete. Consequently $\rho_1<\infty$, and the map $\beta_{\mathrm{univ}}(x,y)=(\sum_{i,j}a^{(q)}_{ij}x_iy_j)_q$ on $\Z^{r_1}\times\Z^{r_1}$ has non-recursive image, so $\rho(\beta_{\mathrm{univ}})=1$. \end{lemma} \begin{proof} By the MRDP theorem \cite{DPR61,Mat70} (with unknowns in $\Z$, by Lagrange's four-square theorem) there is $P\in\Z[z_0,z_1,\dots,z_\ell]$ such that $\mathcal K=\{t\in\N: \exists z\in\Z^\ell\ P(t,z)=0\}$ is $\Sigma^0_1$-complete. Introducing a variable for each subterm of $P$, the condition becomes a fixed system of equations, each a polynomial of degree at most $2$ with integer coefficients equal to an integer constant, together with $z_0=t$. Renumber the variables of this system, $z_0$ included, as $z_1,\dots,z_N$, so that the index $0$ is free. Introduce unknowns $x_0,\dots,x_N$, $y_0,\dots,y_N$, the rows $x_0y_0=1$ and $x_iy_0-x_0y_i=0$, and replace $z_iz_j$ by $x_iy_j$ and $z_i$ by $x_iy_0$. The row $x_0y_0=1$ forces $x_0=y_0=\epsilon\in\{\pm1\}$, the next rows force $y_i=x_i$, and $z_i=\epsilon x_i$ then satisfies $z_iz_j=x_iy_j$ and $z_i=x_iy_0$; conversely take $\epsilon=1$, $x_i=y_i=z_i$. Only the row coming from $z_0=t$ has a right-hand side depending on $t$. For the last assertion, $t\mapsto c^0+tc^1$ reduces $\mathcal K$ to $\Imm\beta_{\mathrm{univ}}$. \end{proof} \begin{remark} Roman'kov \cite{Rom16} constructs finitely generated nilpotent groups of class two in which the equation $[x,y]=g$, with $g$ the input, is undecidable; this is a group-theoretic form of $\rho=1$ for the commutator map. \end{remark} \subsubsection{Recursive images} \begin{proposition}\label{prop:images} \begin{enumerate} \item If $p=1$ and $B(u,v)=u^{\mathsf T}Dv$ with first invariant factor $d_1$, then $\Imm B=d_1\Z$. \item If $\min(m,n)\le2$, then $\Imm B$ is recursive, uniformly in $B$. \end{enumerate} \end{proposition} Part (1) is immediate from the Smith form $\sum_ld_lu_lv_l$: every value is a multiple of $d_1$, and $u=e_1$, $v=ce_1$ gives $d_1c$. For (2), by symmetry ($\Imm B=\Imm B^{\mathsf T}$ with $B^{\mathsf T}(v,u)=B(u,v)$) we may assume $m\le2$. If $m=1$ then $B(x,y)=xM_1y$ and $\Imm B=M_1\Z^n$, a lattice. Let $m=2$ and $M(x)=x_1M_1+x_2M_2\in\Z^{p\times n}$, so $B(x,y)=M(x)y$ and $\Imm B=\bigcup_{x}M(x)\Z^n$. Since $M(gx)=gM(x)$, a vector $c\ne0$ lies in $\Imm B$ if and only if for one of the finitely many $g\ge1$ dividing all coordinates of $c$ there is a primitive $x\in\Z^2$ with $c/g\in M(x)\Z^n$. So it suffices to decide, for given $c$, whether $c\in M(x)\Z^n$ for some primitive $x$. We use four lemmas. For a matrix $N$ let $D_j(N)$ be the gcd of its $j\times j$ minors. \begin{lemma}[Heger's criterion]\label{lem:heger} For $N\in\Z^{p\times n}$ of rank $\rho$ and $c\in\Z^p$, $Ny=c$ has an integral solution if and only if $\rank[N|c]=\rho$ and $D_\rho([N|c])=D_\rho(N)$. \end{lemma} \begin{proof} Write $N=P\,\mathrm{diag}(e_1,\dots,e_\rho,0)\,Q$ with $P,Q$ unimodular, and $c'=P^{-1}c$. Then $Ny=c$ is solvable if and only if $c'_i=0$ for $i>\rho$ and $e_i\mid c'_i$ for $i\le\rho$. The first condition is $\rank[N|c]=\rho$. By Cauchy--Binet, $D_\rho$ is unchanged by unimodular row and column operations, so $D_\rho([N|c])=D_\rho([\mathrm{diag}(e,0)|c'])$. When $c'_i=0$ for $i>\rho$, the nonzero $\rho\times\rho$ minors of the latter are $E=e_1\cdots e_\rho$ and $\pm c'_iE/e_i$, and $\gcd(E,\{c'_iE/e_i\})=E$ if and only if $e_i\mid c'_i$ for all $i$. \end{proof} \begin{lemma}\label{lem:nullst} Let $h_1,\dots,h_N\in\Z[x_1,x_2]$ be binary forms, not all zero, with no common factor of positive degree in $\Q[x_1,x_2]$. There is a computable $R\in\Z_{>0}$ such that $\gcd_ih_i(x)$ divides $R$ for every primitive $x\in\Z^2$; in particular $\gcd_ih_i(x)=\gcd(R,h_1(x),\dots,h_N(x))$ depends only on $x$ modulo $R$. \end{lemma} \begin{proof} A common factor $q(t)$ of positive degree of the $h_i(t,1)$ in $\Q[t]$ homogenises to a common factor of the $h_i$, so the $h_i(t,1)$ (not all zero, since a form vanishing on $x_2=1$ is zero) have gcd $1$, and the extended Euclidean algorithm gives $\sum_ia_i(t)h_i(t,1)=1$. Homogenising, $\sum_i A_ih_i=x_2^{D}$ with forms $A_i\in\Q[x_1,x_2]$; likewise $\sum_iA'_ih_i=x_1^{D'}$. Clearing denominators, $Rx_2^D$ and $Rx_1^{D'}$ lie in $\sum_i\Z[x]h_i$, so $\gcd_ih_i(x)$ divides $R\gcd(x_1^{D'},x_2^D)=R$ for primitive $x$. \end{proof} \begin{lemma}[Pell equations with congruences]\label{lem:pell} Let $P=ax_1^2+bx_1x_2+cx_2^2\in\Z[x]$ be irreducible over $\Q$, $h\in\Z$, $T\ge1$, $\alpha\in\Z^2$, and $E\subset\Z^2$ finite. It is decidable whether there is a primitive $x\notin E$ with $x\equiv\alpha\pmod T$ and $P(x)=h$. \end{lemma} \begin{proof} Irreducibility gives $a\ne0$ and $\Delta=b^2-4ac$ not a square; if $h=0$ there is no solution. Put $X=2ax_1+bx_2$, $Y=x_2$, so $X^2-\Delta Y^2=4ah=:N\ne0$, and $x_1=(X-bY)/2a$. If $\Delta<0$ then $|X|,|Y|\le2\sqrt{|ah|}$ and we enumerate. Let $\Delta>0$ and $\phi(x)=X+Y\sqrt\Delta\in\Z[\sqrt\Delta]\subset\mathbb R$. By Lagrange's theorem the Pell equation $u^2-\Delta v^2=1$ has a solution with $v\ge1$; find one by search, put $\varepsilon=u+v\sqrt\Delta>1$, and let $L\ge1$ be the order of $\varepsilon$ in the finite group $(\Z[\sqrt\Delta]/2aT)^\times$. Then $\eta=\varepsilon^L>1$ satisfies $\eta\equiv1$ and $\eta^{-1}=\bar\eta\equiv1\pmod{2aT\Z[\sqrt\Delta]}$. If $\phi(x)=X+Y\sqrt\Delta$ and $\eta\phi(x)=X'+Y'\sqrt\Delta$, then $X'\equiv X$ and $Y'\equiv Y\pmod{2aT}$, so $x'_2=Y'\equiv x_2$ and $x'_1=x_1+((X'-X)-b(Y'-Y))/2a\equiv x_1\pmod T$ are integers. Thus $x\mapsto x'=\phi^{-1}(\eta\phi(x))$ is a linear map with integral matrix, as is its inverse (use $\bar\eta$); it lies in $GL_2(\Z)$, preserves primitivity, the residue class modulo $T$, and the value of $P$. Given a solution $x$, choose $k\in\Z$ with $\sqrt{|N|}\le|\eta^k\phi(x)|<\eta\sqrt{|N|}$; the conjugate then has absolute value in $(\sqrt{|N|}/\eta,\sqrt{|N|}]$, so the corresponding solution has $|X|\le(\eta+1)\sqrt{|N|}/2$ and $|Y|\le(\eta+1)\sqrt{|N|}/2\sqrt\Delta$. Hence a solution in the class exists if and only if a bounded one does, and then infinitely many do (the $\eta^k\phi(x)$ are distinct), so $E$ can be avoided. \end{proof} \begin{lemma}[Binary form equations]\label{lem:binary} Let $H\in\Z[x_1,x_2]$ be a nonzero binary form, $h\in\Z\setminus\{0\}$, $T\ge1$, $\alpha\in\Z^2$ and $E\subset\Z^2$ finite. It is decidable whether some primitive $x\notin E$ satisfies $x\equiv\alpha\pmod T$ and $H(x)=h$. \end{lemma} \begin{proof} We first record: \emph{a class $\alpha\bmod T$ contains a primitive vector if and only if $\gcd(\alpha_1,\alpha_2,T)=1$, and then it contains infinitely many.} Necessity is clear. Conversely, adjust $\alpha_2$ by a multiple of $T$ to make it nonzero and let $\sigma$ be the product of the primes dividing $\alpha_2$ but not $\alpha_1$; then $\gcd(\alpha_1+T\sigma,\alpha_2)=1$ (a prime dividing $\alpha_2$ and $\alpha_1$ does not divide $T\sigma$; one dividing $\alpha_2$ but not $\alpha_1$ divides $\sigma$). If $x$ is primitive, choose $y$ with $\det[x,y]=1$; the vectors $x+jTy$, $j\in\Z$, are primitive and distinct. If $\deg H=0$ the question is $H=h$ and the record above. Otherwise factor $H=\kappa\prod_jP_j^{e_j}$ with $\kappa\in\Z$ and pairwise non-associate primitive irreducible $P_j\in\Z[x]$ (Gauss's lemma). Then $H(x)=h$ forces each $P_j(x)$ to divide $h$, so it suffices to decide, for each of the finitely many tuples $(h_j)$ of divisors of $h$ with $\kappa\prod_jh_j^{e_j}=h$, whether some admissible $x$ has $P_j(x)=h_j$ for all $j$. \emph{Some $P_j$ has degree $\ge3$.} By Baker's theorem \cite{Bak68}, all integral solutions of $P_j(x)=h_j$ are bounded explicitly in terms of $\deg P_j$, the height of $P_j$ and $|h_j|$; enumerate them. \emph{Some $P_j$ is linear}, $P_j=\lambda_1x_1+\lambda_2x_2$ with $\gcd(\lambda_1,\lambda_2)=1$. The solutions of $P_j(x)=h_j$ are $x=x^*+\tau w$, $\tau\in\Z$, with $w=(-\lambda_2,\lambda_1)$. If some other $P_i(x^*+\tau w)$ is a nonconstant polynomial in $\tau$, only finitely many $\tau$ remain, and we test them. Otherwise the conditions are $P_i(x^*)=h_i$, a linear congruence for $\tau$ modulo $T$, and primitivity: completing $w$ to a basis $(w,w')$ of $\Z^2$ and writing $x^*=\mu w+\nu' w'$, the vector $x^*+\tau w$ is primitive if and only if $\gcd(\mu+\tau,\nu')=1$, a condition periodic modulo $\nu'$ if $\nu'\ne0$ and satisfied by at most two $\tau$ if $\nu'=0$. Periodic conditions are decided on one period, and if they hold they hold for infinitely many $\tau$, so $E$ can be avoided. \emph{All $P_j$ are irreducible quadratic.} If there are two, then $h_2P_1-h_1P_2$ is a nonzero form (as $P_1,P_2$ are not proportional) of degree $2$ vanishing at $x$, so $x$ lies on one of at most two rational lines through $0$; on such a line $x=\tau w$ we need $\tau^2P_1(w)=h_1$, finitely many $\tau$. If there is one, apply Lemma~\ref{lem:pell}. \end{proof} \begin{proof}[Proof of Proposition~\ref{prop:images}(2)] We decide whether $c\in M(x)\Z^n$ for some primitive $x$. Let $\rho$ be the rank of $M$ over $\Q(x_1,x_2)$; if $\rho=0$ then $M=0$ and the answer is $c=0$. The $\rho\times\rho$ minors $f_1,\dots,f_N$ of $M(x)$ are forms of degree $\rho$, not all zero. A primitive $x$ is \emph{exceptional} if all $f_i(x)=0$, i.e.\ $\rank M(x)<\rho$; exceptional $x$ lie on the rational lines through $0$ along which a fixed nonzero $f_i$ vanishes, so they form a computable finite set $E$, and we test each of them by integer linear algebra. For $x\notin E$ we use Lemma~\ref{lem:heger} with $N=M(x)$. The $(\rho+1)\times(\rho+1)$ minors of $[M(x)|c]$ that use the column $c$ are forms of degree $\rho$ (the others vanish identically). If one of them is a nonzero form, the rank condition holds only for $x$ on finitely many computable lines, and only finitely many primitive $x$ remain, which we test. Otherwise the rank condition holds for all $x\notin E$. Let $g_1,\dots,g_K$ be the $\rho\times\rho$ minors of $[M(x)|c]$ that use the column $c$. By Lemma~\ref{lem:heger}, for $x\notin E$, \[ c\in M(x)\Z^n\iff\gcd_if_i(x)\ \text{divides}\ g_k(x)\ \text{for all }k. \] Let $G\in\Z[x]$ be a primitive gcd of all the $f_i,g_k$ in $\Q[x]$, so $f_i=Gf'_i$ and $g_k=Gg'_k$ in $\Z[x]$ (Gauss's lemma); let $H$ be a primitive gcd of the $f'_i$, with $f'_i=Hf''_i$. The $f''_i$ have no common factor of positive degree, nor do $H,g'_1,\dots,g'_K$ (a common factor would divide all $f'_i$ and $g'_k$). Let $R_1,R_2$ be given by Lemma~\ref{lem:nullst} for these two families and $\delta(x)=\gcd_if''_i(x)$, a divisor of $R_1$ depending only on $x\bmod R_1$. For $x\notin E$ we have $G(x)H(x)\ne0$, and the condition becomes $H(x)\delta(x)\mid g'_k(x)$ for all $k$. It implies that $H(x)$ divides $\gcd(H(x),g'_1(x),\dots,g'_K(x))$, hence $R_2$. Given $H(x)=\eta$ with $\eta\mid R_2$, the condition $\eta\delta(x)\mid g'_k(x)$ depends only on $x$ modulo $T=R_1R_2$, since $\eta\delta(x)\mid\eta R_1$. Hence $c\in M(x)\Z^n$ for some primitive $x\notin E$ if and only if there are a divisor $\eta\ne0$ of $R_2$ and a class $\alpha\bmod T$ satisfying the (computable) divisibility condition, and a primitive $x\notin E$ with $x\equiv\alpha\pmod T$ and $H(x)=\eta$. The last question is decidable by Lemma~\ref{lem:binary}. \end{proof} \subsubsection{Bilinear forms} Let $p=1$ and let $D\in\Z^{m\times n}$ have Smith form \[ \mathrm{diag}(d_1,\dots,d_k,0),\qquad d_1\mid\dots\mid d_k,\qquad k=\rank D\ge1. \] For $X\in\Z^{r\times r}$ let $e_1(X)\mid e_2(X)\mid\cdots\mid e_r(X)$ be its invariant factors ($e_j=0$ beyond the rank). For a prime $\ell$ write $\delta_j=v_\ell(d_j)$ and $\varepsilon_j=v_\ell(e_j(X))\in\Z_{\ge0}\cup\{\infty\}$. \begin{lemma}[Realisable Gram matrices]\label{lem:gram} \[ S_r(D)=\{X\in\Z^{r\times r}:\ \rank X\le k\text{ and }d_j\mid e_j(X)\text{ for all }j\le\min(r,k)\}. \] If $r\le k$, membership of $X$ in $S_r(D)$ depends only on $X$ modulo $d_k$. \end{lemma} \begin{proof} After Smith reduction of $D$, $S_r(D)=\{A\,\mathrm{diag}(d_1,\dots,d_k)B^{\mathsf T}: A,B\in\Z^{r\times k}\}$, since $U^{\mathsf T}$ times a unimodular matrix ranges over all of $\Z^{r\times m}$. ($\supseteq$) Write $X=P\,\mathrm{diag}(e_1,\dots,e_r)Q$ with $P,Q$ unimodular and $e_j=0$ for $j>\rank X$. Let $A\in\Z^{r\times k}$ have the first $\min(r,k)$ columns of $P$ and zeros elsewhere, and let $B^{\mathsf T}\in\Z^{k\times r}$ have $j$-th row $(e_j/d_j)$ times the $j$-th row of $Q$ for $j\le\min(r,k)$ and zero rows otherwise. Then $A\,\mathrm{diag}(d)B^{\mathsf T}=\sum_{j\le\min(r,k)}e_j P_{\ast j}Q_{j\ast}=X$, because $e_j=0$ for $j>\rank X$ and $\rank X\le\min(r,k)$. ($\subseteq$) For a finite abelian $\ell$-group $M\cong\bigoplus_i\Z/\ell^{\lambda_i}$ and $s\ge1$ let $n_s(M)=\#\{i: \lambda_i\ge s\}$. Then $n_s(M)=\dim_{\F_\ell}\ell^{s-1}M/\ell^sM=\dim_{\F_\ell}(\ell^{s-1}M)[\ell]$. The first expression shows $n_s(Q)\le n_s(M)$ for a quotient $Q$ of $M$, the second shows $n_s(N)\le n_s(M)$ for a subgroup $N$. Let $X=A\,\mathrm{diag}(d)B^{\mathsf T}$ and $t\ge1$. The image of $X$ modulo $\ell^t$ is a subgroup of the image under $A$ of $M_0=\mathrm{diag}(d)(\Z/\ell^t)^k\cong\bigoplus_{j\le k}\Z/\ell^{(t-\delta_j)^+}$, and is isomorphic to $\bigoplus_{i\le r}\Z/\ell^{(t-\varepsilon_i)^+}$ by the Smith form of $X$. Hence \[ \#\{i\le r: \ t-\varepsilon_i\ge s\}\le\#\{j\le k: \ t-\delta_j\ge s\}\qquad(s,t\ge1). \] If $\varepsilon_i<\delta_i$ for some $i\le\min(r,k)$, take $t>\delta_k$ and $s=t-\varepsilon_i$: the left side is at least $i$ and the right side at most $i-1$, since $\delta_j\ge\delta_i>\varepsilon_i$ for $j\ge i$. If $e_{k+1}(X)\ne0$, take $t>\max(\varepsilon_{k+1},\delta_k)$ and $s=t-\varepsilon_{k+1}$: the left side is at least $k+1$. So $d_j\mid e_j(X)$ and $\rank X\le k$. For the last assertion, let $r\le k$, so the rank condition is vacuous, and fix $\ell\mid d_k$ with $t=v_\ell(d_k)$. For $i\le r$ we have $\delta_i\le t$, so $\varepsilon_i\ge\delta_i$ if and only if $\min(\varepsilon_i,t)\ge\delta_i$, and the numbers $\min(\varepsilon_i,t)$ are determined by the isomorphism type of the image of $X$ modulo $\ell^t$, which depends only on $X$ modulo $\ell^t$. Primes $\ell\nmid d_k$ impose no condition. \end{proof} In particular $S_r(I_k)=\{X: \rank X\le k\}$. \begin{proposition}\label{prop:formbounds} Let $p=1$ and $k=\rank B$. \begin{enumerate} \item $\rho(B)\ge k+1$. \item If at least $s\ge1$ invariant factors of $B$ equal $d_1$, then $\rho(B)\le\rho_s+k-s$. In particular $\rho(B)\le\rho_1+k-1$. \item $\rho_{k+1}\le\rho_k+1$ for all $k\ge1$. \end{enumerate} \end{proposition} \begin{proof} We may take $B(u,v)=u^{\mathsf T}Dv$ with $D$ as above. (1) For $r\le k$, by Lemma~\ref{lem:gram} an instance asks whether an affine lattice $X_0+\Lambda\subseteq\Z^{r\times r}$ (computed from the rows by integer linear algebra; possibly empty) meets a union of residue classes modulo $d_k$ that is decidable class by class. This holds if and only if one of the finitely many classes of $X_0+\Lambda$ modulo $d_k$ is in $S_r(D)$. (2) Since $S_r(D)=d_1S_r(D/d_1)$, an instance with right-hand sides $c_q$ is solvable for $D$ if and only if $d_1\mid c_q$ for all $q$ and the instance with right-hand sides $c_q/d_1$ is solvable for $D/d_1$; so we may assume $d_1=\dots= d_s=1$. Given an instance of $\QBLIN_r(I_s)$ with rows on $Z\in\Z^{r\times r}$, form the instance of $\QBLIN_{r+k-s}(D)$ on $Y=\begin{pmatrix}Z&\ast\\\ast&\ast\end{pmatrix}$ with the same rows on the top left block and the rows forcing the off-diagonal blocks to be $0$ and the bottom right block to be $d_kI_{k-s}$. We claim $Y\in S(D)$ if and only if $\rank Z\le s$, i.e.\ $Z\in S(I_s)$. Indeed $\rank Y=\rank Z+k-s$, which gives necessity. Conversely, if $\rank Z\le s$, then at every prime $\ell$ the valuations of the invariant factors of the block-diagonal $Y$ are the sorted union of those of $Z$ (at most $s$ finite) and $k-s$ copies of $\delta_k$, so at most $s$ of them are below $\delta_k$; as $\delta_1=\dots=\delta_s=0$ and $\delta_j\le\delta_k$, the $j$-th smallest is at least $\delta_j$ for all $j\le k$, and Lemma~\ref{lem:gram} gives $Y\in S(D)$. Taking $r=\rho_s$ yields an undecidable restriction of $\QBLIN_{\rho_s+k-s}(B)$. (3) Map rows on $Z\in\Z^{r\times r}$ to the same rows on the top left block of $Y\in\Z^{(r+1)\times(r+1)}$ together with rows forcing $Y=\mathrm{diag}(Z,1)$; then $\rank Y\le k+1$ if and only if $\rank Z\le k$. \end{proof} \begin{proposition}[Exactness for large rank]\label{prop:det} There is an integer $k_0$ such that every scalar-valued bilinear form $B$ of rank $k\ge k_0$ satisfies $\rho(B)=k+1$. \end{proposition} \begin{proof} Take the fixed polynomial $P(t,z)$ and $\Sigma^0_1$-complete set $\mathcal K$ from Lemma~\ref{lem:qdiff}. For each nonconstant monomial $\gamma z_{i_1}\cdots z_{i_e}$, where the variables include $z_0=t$, make a path from a common source to a common sink through $e$ private internal vertices. Give its first edge weight $\gamma$ and the remaining edges weights $z_{i_1},\ldots,z_{i_e}$. Add a direct edge whose weight is the constant term of $P$. The path sum is then $P$, and every edge leaving the source has constant weight. Let $k_0$ be the number of internal vertices. For $k\ge k_0$, add isolated internal vertices to obtain exactly $k$, and order them so that edges among internal vertices only go forward. Write $A$ for the weighted adjacency matrix on the internal vertices, $u$ for the row of weights from the source to them, $v$ for the column of weights from them to the sink, and $w$ for the direct weight. Here $u$ and $w$ are constant. Put $T=I-A$, which is unit upper triangular. The unscaled matrix \[ M(t,z)=\begin{pmatrix}T&-v\\-u&-w\end{pmatrix} \] has determinant $-w-uT^{-1}v=-P(t,z)$, since $T^{-1}$ is the finite path expansion on the internal vertices. Let $D=\operatorname{diag}(d_1,\ldots,d_k)$ be the nonzero Smith block of $B$, with all $d_i>0$ and $d_i\mid d_{i+1}$. On a Gram matrix $Y$ of size $k+1$, impose the affine row conditions expressing the constant entries of $\operatorname{diag}(d_1,\ldots,d_k,d_k)M$, including its constant last row. Every variable entry lies in a row $i\le k$ and a column $j>i$. Link occurrences of the same variable in rows $i,i'$ by the linear equation $d_{i'}Y_{ij}=d_iY_{i'j'}$, and set a slot for $z_0$ in row $i$ to $-d_i t$. These are ordinary $\QBLIN_{k+1}(B)$ rows. Suppose the resulting instance has a solution. Its Gram matrix has rank at most $k$, and by Lemma~\ref{lem:gram} its first $k$ Smith invariant factors are divisible by $d_1,\ldots,d_k$, respectively. The upper left $k\times k$ block is upper triangular with diagonal $d_1,\ldots,d_k$, so the rank is exactly $k$. For $i\le k$ and any $j>i$, take the minor on rows $1,\ldots,i$ and columns $1,\ldots,i-1,j$. Its determinant is $(d_1\cdots d_{i-1})Y_{ij}$ because row $i$ vanishes in the first $i-1$ columns. The $i$-th determinantal divisor is divisible by $d_1\cdots d_i$, so $d_i\mid Y_{ij}$. Thus each variable slot $-Y_{ij}/d_i$ is an integer, the linking conditions give a consistent assignment $z$, and $Y=\operatorname{diag}(d_1,\ldots,d_k,d_k)M(t,z)$. The rank condition forces $P(t,z)=0$. Conversely, given $P(t,z)=0$, take this scaled matrix $Y$. Its first $k$ rows are $D[T\mid -v]$ and its last row is $-d_k[u\mid w]$. Since $T^{-1}$ has integer entries and every $d_i$ divides $d_k$, the row $R=-d_k uT^{-1}D^{-1}$ is integral. The vanishing determinant means that the last row is a linear combination of the first $k$ rows, and its first $k$ entries show that the coefficient row is precisely $R$. Hence \[ Y=\begin{pmatrix}I_k\\R\end{pmatrix}D[T\mid -v], \] which realizes $Y$ as the Gram matrix of $k+1$ left and $k+1$ right vectors. The rows are therefore solvable exactly for $t\in\mathcal K$. This gives $\rho(B)\le k+1$, and Proposition~\ref{prop:formbounds}(1) gives the reverse inequality. \end{proof} The threshold $k_0$ is explicit once the universal polynomial is fixed. In particular $\rho(I_k)=k+1$ for $k\ge k_0$ and $\rho(J_g)=2g+1$ for the standard symplectic form when $2g\ge k_0$. \begin{proposition}\label{prop:two-pair} The problem $\QBLIN_2(I_1)$ is decidable. In particular $\rho_1\ge3$, and $\rho(B)\ge3$ for scalar-valued $B$ of rank one. \end{proposition} \begin{proof} By Lemma~\ref{lem:gram}, the admissible Gram matrices are the singular integer $2\times2$ matrices. The input rows give either an empty affine set of integer solutions or a computable parametrization of it by an affine lattice. Substitute this parametrization into the determinant. The resulting single polynomial equation has degree at most two, so its integer solvability is decidable by the algorithms for quadratic equations \cite{Sie72,GS04}. By Smith reduction and division of all right-hand sides by the first invariant factor, the same conclusion holds for every rank-one scalar-valued $B$. \end{proof} \subsubsection{Rows} For $\beta\colon\Z^a\times\Z^b\to\Z^s$ and $N\ge1$ let $\beta^{\oplus N}((x_i)_i,(y_i)_i)=\sum_{i\le N}\beta(x_i,y_i)$. \begin{theorem}\label{thm:R} Let $\beta\colon\Z^a\times\Z^b\to\Z^s$ be bilinear and $L=\spn_\Z\Imm\beta$, of rank $s'$. There exist $x_1,\dots,x_{s'}\in\Z^a$ with \[ L=\sum_{j=1}^{s'}\beta(x_j,\Z^b). \] In particular $\Imm\beta^{\oplus s'}=L$, with the empty sum understood as $\{0\}$. \end{theorem} \begin{proof} Work in a lattice basis of $L$. If $s'=0$ there is nothing to prove. For $s'>0$, form the integer linear map sending $x$ to the list of all entries of the matrix of $\beta(x,\cdot)$ in the chosen basis of $L$ and the standard basis of $\Z^b$. Its matrix has first Smith invariant factor $1$. Indeed its entries are precisely the coordinates of the vectors $\beta(e_i,f_j)$, which generate $L$. The Smith form therefore gives $x_1$ for which this list of entries is primitive. Applying Smith form again, now to the matrix of $\beta(x_1,\cdot)$ itself, gives $y_1$ for which $c=\beta(x_1,y_1)$ is primitive in $L$. Apply induction to the composite of $\beta$ with $L\to L/\Z c$, whose values span this free lattice of rank $s'-1$. It gives $x_2,\dots,x_{s'}$ whose images span the quotient as a sum of the corresponding one-sided lattices. Since $\Z c\subseteq\beta(x_1,\Z^b)$, the asserted equality follows. Each $\beta(x_j,\Z^b)$ is a subgroup, so every element of the sum uses a single value from each summand. \end{proof} The estimate can be sharp already when $s'=2$. For \[ \beta((a,b),(c,d))=(ac+bd,\,2ad-2bc+bd), \] the values span $\Z^2$, but $(0,1)$ is not a value. If $(a,b)\ne(0,0)$, write $(a,b)=g(A,B)$ with $g>0$ and $(A,B)$ primitive. The first coordinate is zero only when $(c,d)=\ell(-B,A)$ for an integer $\ell$. The second coordinate is then $g\ell(2A^2+AB+2B^2)$, whose absolute value is either zero or at least two. \begin{corollary}\label{cor:rows} Let $p=1$ with invariant factors $d_1,\dots,d_k$. If some value $d$ occurs at least $s$ times among them, then the restriction of $\QBLIN(B)$ to $s$ rows is decidable. In particular the restriction of $\QBLIN(I_k)$ to $s$ rows is decidable when $k\ge s$, and the least number of rows making $\QBLIN(I_k)$ undecidable is at least $k+1$. \end{corollary} \begin{proof} Take $B(u,v)=\sum_ld_lu_lv_l$. An $s$-row instance with $r$ pairs asks whether $c\in\Imm\beta_a$, where $\beta_a(u,v)=(\sum_{i,j}a^{(q)}_{ij}B(u_i,v_j))_q$. Writing $x^{(l)}=(u_{il})_i$, $y^{(l)}=(v_{jl})_j\in\Z^r$ and $\gamma(x,y)=(\sum_{i,j}a^{(q)}_{ij}x_iy_j)_q$, we get $\beta_a(u,v)=\sum_ld_l\gamma(x^{(l)},y^{(l)})$ with the $x^{(l)},y^{(l)}$ independent and arbitrary, so $\Imm\beta_a=\sum_ld_l\Imm\gamma$. Let $L=\spn\Imm\gamma$, of rank at most $s$. By Theorem~\ref{thm:R} the $s$ copies with value $d$ contribute $dL$, so $\Imm\beta_a=dL+\sum_{l\in J}d_l\Imm\gamma$, where $J$ indexes the remaining factors. Thus $c\in\Imm\beta_a$ if and only if $c\in L$ and $c\bmod dL$ lies in $\sum_{l\in J}d_l(\Imm\gamma\bmod dL)$. Since $\gamma(x,y)\bmod dL$ depends only on $x,y$ modulo $d$, this finite set is computable. For $I_k$ all $d_l=1$, and $\Imm\beta_a=L$ is a lattice spanned by the vectors $(a^{(q)}_{ij})_q$. \end{proof} \subsubsection{The one-parameter theorem and the sums-of-cubes reductions} \begin{theorem}[Theorem~\ref{thm:D}(1)]\label{thm:oneparam} For every nonzero $B$ there are $r_B$, $s_B$, $a^{(q)}_{ij}$, $c^0_q$, $c^1_q$ as in Theorem~\ref{thm:D}(1). One can take $r_B=(V+1)\max(\bar m,\bar n)$, where $V$ is the number of variables of a fixed gate system over $\cZ(B)$, and $c^1_q\in\{0\}\cup\{\bar B(\bar e_i,\bar f_j)\}$. \end{theorem} \begin{proof} Let $\mathcal K=\{t: \exists z\ P(t,z)=0\}$ be $\Sigma^0_1$-complete and let $F$ be a residue field of $\cZ(B)_\Q$. By \cite[Theorem~1.2]{KP} (or by Proposition~\ref{prop:MRDP} if $F=\Q$, or Corollary~\ref{cor:classical} if it applies), $\Z=\{x\in\cO_F: \exists y\ D(x,y)=0\}$, where by the proof of Proposition~\ref{prop:residue} we may take $D$ to be a system with integer coefficients. Let $\Gamma_t$ be the gate system over $\cO_F$ expressing $P(z_0,z)=0$, $D(z_i,y_i)=0$ for every $i$, and $z_0=t$; all gates except $z_0=t$ are independent of $t$, and $\Gamma_t$ is solvable if and only if $t\in\mathcal K$. Apply Lemma~\ref{lem:interp}: all of $\Gamma_t^\sharp$ is fixed except one gate $w=t\cdot1$. Convert the fixed polynomial equations to gates and compile with (F3): the gate $w=t\cdot1$ yields the rows $\bar B(x_{w,i},b_j)=t\,\bar B(\bar e_i,\bar f_j)$ and all other rows are fixed. By (F1) the same instance serves for $B$. Pad left and right unknowns to the same number. \end{proof} \begin{proposition}[Theorem~\ref{thm:D}(5)]\label{prop:barrier} \begin{enumerate} \item There is a bilinear map $\beta_3\colon\Z^5\times\Z^4\to\Z^6$ for which $(1,0,0,0,0,\kappa)\in\Imm\beta_3$ if and only if $\kappa$ is a sum of three integer cubes. This is also a five-pair instance of $\QBLIN(I_1)$. \item There is a $5\times5$ matrix of affine-linear forms in $u,v,w,\kappa$ whose determinant is $\kappa-(u-v-w)^3-v^3-w^3$. Consequently, for every $k\ge4$, deciding $\QBLIN_{k+1}(I_k)$ decides sums of three cubes. \end{enumerate} \end{proposition} \begin{proof} Write $S=v+w$ and $f(u,v,w)=(u-v-w)^3+v^3+w^3$. Expanding gives \[ f=u^3-3u^2S+3uS^2-3vwS =u(u^2-3uS+3S^2)+w(-3vS). \] The transformation $(u,v,w)\mapsto(u-v-w,v,w)$ is unimodular over $\Z$. For (1), index the inputs by $0,\ldots,4$ and $0,\ldots,3$. Define the six coordinates of $\beta_3$ by \[ \begin{pmatrix} x_0y_0\\ x_1y_0-x_0y_1\\ (x_2+x_3)y_0-x_0y_2\\ x_4y_0-\bigl(x_1y_1-3x_1y_2+3(x_2+x_3)y_2\bigr)\\ x_0y_3+3x_2y_2\\ x_4y_1+x_3y_3 \end{pmatrix}. \] The first row forces $x_0=y_0=\epsilon\in\{1,-1\}$. Set $(u,v,w)=(x_1,x_2,x_3)$; the next two rows give $y_1=u$, $y_2=S$. The two auxiliary rows give $x_4=\epsilon(u^2-3uS+3S^2)$ and $y_3=-3\epsilon vS$. The last row is $\epsilon f(u,v,w)=\kappa$. Because $f$ is homogeneous of degree three, this is equivalent to $\kappa$ being a sum of three cubes. The converse uses $\epsilon=1$. For (2), use \[ M(u,v,w;\kappa)= \begin{pmatrix} -u&-w&0&0&\kappa\\ 1&0&-(u-3S)&-3S&0\\ 0&1&-3S&3S&0\\ 0&0&1&0&-u\\ 0&0&0&1&-v \end{pmatrix}. \] Put $C=\left(\begin{smallmatrix}u-3S&3S\\3S&-3S\end{smallmatrix}\right)$. The bottom four rows have unit upper triangular left block. Adding $u$ times row two and $w$ times row three to row one, then using rows four and five to clear entries three and four of row one, leaves its last entry equal to $\kappa-(u,w)C(u,v)^{\mathsf T}=\kappa-f$. Expansion along row one gives $\det M=\kappa-f$ with positive cofactor sign. In an instance of $\QBLIN_5(I_4)$ the entries $M_{11},M_{12},M_{55}$ carry the free variables $-u,-w,-v$. All other entries are prescribed affine-linear functions of these three entries and the input $\kappa$, so ordinary rows enforce the displayed affine matrix family. By Lemma~\ref{lem:gram} the matrix is realizable precisely when it is singular. For $k>4$ use $\operatorname{diag}(M,I_{k-4})$. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:D}] Part (1) follows from Theorem~\ref{thm:oneparam}. For (2), the first assertion is Lemma~\ref{lem:basic}(1), the existence statement is Lemma~\ref{lem:qdiff}, the last is Proposition~\ref{prop:images}. (3) is Propositions~\ref{prop:formbounds} and~\ref{prop:det}, with the rank-one lower bound from Proposition~\ref{prop:two-pair} and $\rho_1<\infty$ from Lemma~\ref{lem:qdiff}. (4) is Corollary~\ref{cor:rows} together with (1). (5) is Proposition~\ref{prop:barrier}, with Proposition~\ref{prop:formbounds}(3) for $k>4$ (or directly the block-diagonal matrix). \end{proof} \begin{remark}[What remains open]\label{rem:sketches} The following are not proved here. \begin{enumerate} \item Whether every image of a bilinear map with $p=2$ is recursive; by Lemma~\ref{lem:basic}(3) this is the decidability of two-row $\QBLIN(I_1)$, and it is a related two-coordinate case beyond the rank-one commutator theorem of Duchin, Liang and Shapiro \cite{DLS}. \item The exact value of $\rho_1$ and the small-rank values of $\rho_k$ below the range of Proposition~\ref{prop:det}. Proposition~\ref{prop:two-pair} gives $\rho_1\ge3$, while a proof of $\rho_1\ge6$ would give an algorithm for sums of three cubes by Proposition~\ref{prop:barrier}. \item For $B_K$ the image is $\cO_K$, so $\rho(B_K)\ge2$; whether $\rho(B_K)\ge3$ depends on the decidability of single quadratic equations over $\cO_K$ with an additional class-group condition, which we have not checked. \end{enumerate} \end{remark} \section{Simply connected targets: Theorem E}\label{top:sec} Let $Y$ be a finite simplicial complex. An instance of the \emph{extension problem} $\EXT(Y)$ is a triple $(X,A,f)$, where $X$ is a finite simplicial complex, $A\subseteq X$ a subcomplex and $f\colon A\to Y$ a simplicial map; it is a yes-instance if $f$ extends to a continuous map $X\to Y$. For a fixed finite complex $A_0$ and a fixed simplicial map $f_0\colon A_0\to Y$ we write $\EXT(Y;A_0,f_0)$ for the set of finite complexes $X\supseteq A_0$ (given together with the inclusion) to which $f_0$ extends. The \emph{cohomological dimension} $\cd(X,A)$ of a pair is the least $c$ such that $H^k(X,A;\pi)=0$ for all $k>c$ and all abelian groups $\pi$. By the universal coefficient theorem, $H^k(X,A;\pi)=0$ for all $\pi$ if and only if $H_k(X,A;\Z)=0$ and $H_{k-1}(X,A;\Z)$ is free, so $\cd(X,A)$ is computable from a finite pair, and $\cd(X,A)\le\dim X$. Throughout this section $Y$ is a \emph{simply connected} finite simplicial complex. We prove that the decidability threshold of $\EXT(Y)$ is exactly one more than the first degree in which the minimal model of $Y$ has a nonzero differential, and that hardness at the threshold is attained with a fixed pair $(A_Y,f_Y)$ (Theorem~\ref{top:thm:E}). The decidable half is Manin's \cite[Theorem~A]{Man23}. The hard half is a version of \cite[Theorem~8.1]{Man23}, made self-contained and uniform (Lemma~\ref{top:lem:uniform} and Proposition~\ref{top:prop:R0}), combined with Theorem~A. \subsection{Rational homotopy}\label{top:ssec:RHT} Let $(\Lambda V,\partial)$ be the minimal Sullivan model of $Y$ \cite{Sul77,FHT}. Since $Y$ is simply connected of finite type, $V=\bigoplus_{k\ge2}V^k$ with $V^k\cong\Hom(\pi_k(Y),\Q)$; for $\eta\in V^k$ and $w\in\pi_k(Y)$ we write $\langle\eta,w\rangle=\eta(w\otimes1)$. We write $Y_k$ for the Postnikov sections of $Y$ and $(\cdot)_{(0)}$ for rationalisation. Since $\partial$ is decomposable and generators have degree at least $2$, a decomposable element of degree $k$ involves only generators of degree at most $k-2$. Put \[ d_0(Y)=\min\{n: \partial|_{V^n}\neq0\}\in\{3,4,\dots\}\cup\{\infty\}. \] We say that $Y$ is a \emph{rational H-space through degree $n$} if some map from $Y$ to a product of Eilenberg--MacLane spaces induces isomorphisms on $\pi_k\otimes\Q$ for $k\le n$. \begin{lemma}\label{top:lem:R1} For $n\ge2$ the following are equivalent: \textup{(a)} $\partial=0$ on $V^{\le n}$; \textup{(b)} $Y_{n(0)}$ is a product of rational Eilenberg--MacLane spaces; \textup{(c)} $Y$ is a rational H-space through degree $n$. Moreover $\partial=0$ on $V^2$, so $d_0(Y)\ge3$, and $Y$ is a rational H-space through degree $n$ if and only if $n0}H^i$, and $W=H^+/(H^+)^2$. Choose homogeneous representatives for a basis of $W$. They define a surjection $p\colon\Lambda W\to H$, where $\Lambda$ denotes the free graded-commutative algebra (polynomial in even degrees and exterior in odd degrees). Write $r=\inf\{j:(\ker p)^j\ne0\}$, with $\inf\varnothing=\infty$. Then \[ r=d_0(Y)+1 . \] In particular $r$ is independent of the representatives. If $N=\max\{i:H^i\ne0\}$ and $r$ is finite, then $r\le 2N$. The bound is attained by every even-dimensional sphere. \end{proposition} \begin{proof} Surjectivity follows by induction on degree. Thus $r$ is the first degree in which $\dim(\Lambda W)^j>\dim H^j$, a criterion independent of the chosen lifts. Suppose first that $d=d_0(Y)$ is finite. In the minimal model all generators below degree $d$ are closed, and there are no boundaries through degree $d$. In degrees below $d$, take the generators themselves as representatives of $W$. In degree $d$, take a basis of $\ker(\partial:V^d\to(\Lambda V)^{d+1})$: every decomposable in degree $d$ already belongs to the algebra on the lower generators. These choices exhibit no relation through degree $d$. In degree $d+1$, each nonzero element of $\partial V^d$ is a nonzero polynomial in the generators of degree at most $d-1$ (here $V^1=0$). Its cohomology class is zero, so it gives a relation. If $d_0=\infty$, the minimal model has zero differential and its cohomology is free. Finally, each generator of $\Lambda W$ has degree at most $N$. If a nonzero monomial has degree above $N$, take a shortest initial subproduct of degree above $N$. Its degree is at most $2N$, and it maps to zero. If there is no such monomial, every relation already lies in degrees at most $N$. For $S^{2k}$ the first relation is $x^2=0$ in degree $4k$. \end{proof} The proposition gives a finite calculation from the cup-product table. Compute $q_i=\dim W^i$ by linear algebra on products of positive-degree classes, and compare the coefficients through $2N$ in \[ \prod_{i\ {\rm odd}}(1+z^i)^{q_i} \prod_{i\ {\rm even}}(1-z^i)^{-q_i} \quad\text{and}\quad \sum_i (\dim H^i)z^i. \] The first discrepancy gives $r$. Agreement gives $r=\infty$. This calculation uses no formality hypothesis on $Y$. \subsection{Manin's decision theorem}\label{top:ssec:manin} \begin{theorem}[{Manin \cite[Theorem~A]{Man23}}]\label{top:thm:Manin} Let $Y$ be a simply connected simplicial complex of finite type and $d\ge2$, and suppose that $Y$ is a rational H-space through degree $d$. \begin{enumerate} \item[(i)] For simplicial pairs $(X,A)$ of finite complexes with $\cd(X,A)=d+1$ and simplicial maps $f\colon A\to Y$, the existence of a continuous extension of $f$ to $X$ is decidable. \item[(ii)] There is an algorithm which, given a simply connected simplicial complex $Y$ of finite type, $d$, a finite simplicial pair $(X,A)$ of cohomological dimension $d$ and a simplicial map $f\colon A\to Y$, (1) determines whether $Y$ is a rational H-space through degree $d$, and (2) if it is, outputs the set $[X,Y]^f$ of homotopy classes rel $A$ of extensions of $f$, in a finite format from which its emptiness can be read off. \end{enumerate} \end{theorem} \begin{corollary}\label{top:cor:dec} If $d_0(Y)=\infty$, then $\EXT(Y)$ is decidable. If $3\le d_0(Y)<\infty$, then $\EXT(Y)$ restricted to instances with $\cd(X,A)\le d_0(Y)$ is decidable. \end{corollary} \begin{proof} Given $(X,A,f)$ and a target value $c\ge\cd(X,A)$, let $X^+=X\sqcup\Sigma$ with $\Sigma$ the boundary of a $(c+1)$-simplex. Then $\cd(X^+,A)=c$ exactly, and $f$ extends over $X^+$ if and only if it extends over $X$ (map $\Sigma$ to a point). If $d_0(Y)<\infty$, apply Theorem~\ref{top:thm:Manin}(i) with $d=d_0(Y)-1\ge2$ and $c=d+1$; the hypothesis holds by Lemma~\ref{top:lem:R1}. If $d_0(Y)=\infty$, apply Theorem~\ref{top:thm:Manin}(ii) with $d=c=\max(\cd(X,A),2)$, which is uniform in $d$. \end{proof} \begin{lemma}\label{top:lem:ce} For every finite simplicial complex $Y$ (not necessarily simply connected), $\EXT(Y)$ is computably enumerable. \end{lemma} \begin{proof} Take barycentric subdivisions of source and target. Ordering a simplex of the subdivision by inclusion of its faces makes every induced simplicial map order preserving (repetitions are allowed). We can therefore work with finite simplicial sets without changing the extension problem. Let $\Ex^\infty Y=\operatorname{colim}_r\Ex^rY$ be Kan's functor \cite{Kan57}, \cite[\S III.4]{GJ}; it is a Kan complex, $Y\to\Ex^\infty Y$ is a weak equivalence, and each $\Ex^rY$ is a simplicial set with finitely many simplices in each degree, computable from $Y$. Since $\Ex^\infty Y$ is Kan and $A\subseteq X$ is a cofibration, $f$ extends continuously over $X$ if and only if the composite $A\to\Ex^\infty Y$ extends to a simplicial map $X\to\Ex^\infty Y$ \cite[\S\S I.11, III.4]{GJ}; as $X$ is finite, such a map factors through some $\Ex^rY$. Enumerate $r$ and the finitely many simplicial maps $X\to\Ex^rY$ extending $A\to Y\to\Ex^rY$. \end{proof} \subsection{Fat wedges}\label{top:ssec:fw} Let $n_1,\dots,n_\kappa\ge2$, $\kappa\ge2$, with $\sum_an_a=n+1$, and let $P=\prod_aS^{n_a}$ with the product of the cell structures $S^{n_a}=e^0\cup e^{n_a}$. Its cells are $e_S$, $S\subseteq\{1,\dots,\kappa\}$, of dimension $n_S=\sum_{a\in S}n_a$. For $S\neq\emptyset$ let $P_S=\prod_{a\in S}S^{n_a}\subseteq P$ be the closed sub-product, $\FW_S$ its \emph{fat wedge} $P_S\smallsetminus e_S$, and $\chi_S\colon(D^{n_S},S^{n_S-1})\to(P_S,\FW_S)$ a characteristic map of $e_S$, with attaching map $\tau_S=\chi_S|_{S^{n_S-1}}$. Write $\FW=\FW_{\{1,\dots,\kappa\}}$ and $\tau=\tau_{\{1,\dots,\kappa\}}\colon S^n\to\FW$. For $a$ and $r\ge1$ let $\psi_{a,r}\colon P\to P$ be the identity on the factors other than $a$ and, on the factor $a$, a fixed based cellular map of degree $r$. It is cellular and maps every $P_S$, every $\FW_S$, and every union of closed sub-products into itself. Let $s_a\in H^{n_a}(P;\Q)$ be the pull-back of the generator of $H^{n_a}(S^{n_a};\Q)$, and $s_S=\prod_{a\in S}s_a$ in increasing order of indices. \begin{lemma}\label{top:lem:fw} Let $S\subseteq\{1,\dots,\kappa\}$ with $|S|\ge2$. \begin{enumerate} \item[(a)] All cellular boundary maps of $P_S$ vanish, and $H^*(P_S;\Q)$ has basis $\{s_{S'}:S'\subseteq S\}$, with $s_a^2=0$ and $s_{S'}s_{S''}=\pm s_{S'\cup S''}$ if $S'\cap S''=\emptyset$, $0$ otherwise. \item[(b)] Every cell of $\FW_S$ has dimension at most $n_S-2$. For every abelian group $\pi$ the restriction $H^j(P_S;\pi)\to H^j(\FW_S;\pi)$ is an isomorphism for $j1=\dim H^4$), while for $\CP^2$ the map $\Sym^2H^2\to H^4$, $x^2\mapsto x^2$, is injective and the threshold is six (Example~\ref{top:ex:spheres}). The case of $S^2$ and the decidability for $\dim X\le3$ are due to \v{C}adek, Kr\v{c}\'al, Matou\v{s}ek, Vok\v{r}\'{\i}nek and Wagner \cite{CKMVW-undec,CKMVW-poly}. \subsection{Remarks}\label{top:ssec:remarks} \begin{remark}[Uniformity in $Y$]\label{top:rem:uniformY} The numerical cutoff is uniform in the input triangulation of $Y$: Proposition~\ref{top:prop:firstrelation} needs only its rational cup-product table. In Proposition~\ref{top:prop:reduction} the target and the sphere representatives are fixed before processing any bilinear instance. The existential number-ring definition in Theorem~\ref{bil:thm:KP} suffices for this fixed-target conclusion. Neither the calculation of the cutoff nor the algorithm below it requires finding such a definition. \end{remark} \begin{remark}[On {\cite[\S\S3--4]{Man23}}]\label{top:rem:34} The decidable half of Theorem~\ref{top:thm:E} is quoted from \cite[Theorem~A]{Man23}. Two of the general lemmas of \cite[\S3]{Man23} on power maps of H-spaces, Lemmas~3.4 and~3.6(ii), are stated for arbitrary simply connected H-spaces of finite type, and in that generality they fail for even power maps: on $BU$, with the Whitney-sum structure, $\chi_2^*c_2=2c_2+c_1^2$, which is not divisible by $2$ in $H^4(BU;\Z)$. In the proof of \cite[Theorem~A]{Man23} these lemmas are applied only to finite products $H=\prod_iK(\pi_i,i)$ of Eilenberg--MacLane spaces of finitely generated groups and to $H\times H$, and there they hold. Indeed such an $H$ is, as an H-space, a product of factors $K(\Z,i)$ and $K(\pi,i)$ with $\pi$ finite; by the Künneth and universal coefficient theorems $H^*(H;\Z)/\tors$ is the tensor product of the lattices $H^*(K(\Z,i);\Z)/\tors$, each of rank at most one in every degree, on which $\chi_r$ acts by $r^k$ in degree $ki$; so $H^*(H;\Z)/\tors$ has a basis of eigenvectors of $\chi_r^*$ with eigenvalues divisible by $r$ in positive degrees. Theorem~A of \cite{Man23} is therefore unaffected. \end{remark} \section{Beyond simply connected targets: Theorem F}\label{bey:sec} We extend the threshold of Theorem~\ref{top:thm:E} to finite nilpotent targets, to targets with finite fundamental group, and to equivariant extension into simply connected complexes with free actions of finite groups. The decidable side is a finite congruence model (Theorem~\ref{bey:thm:fcm}): below the threshold, every extension problem is equivalent to a finite simplicial labelling problem together with an integral linear system. It avoids effective homology and Manin's H-space machinery altogether, and it works with local coefficients. The hard side combines Theorem~A with fat wedges that may have circle factors. All spaces are compactly generated; simplicial sets are regarded as spaces via geometric realisation when convenient. For a connected space $Z$ and a local coefficient system $M$ on $Z$ we write $H^*(Z;M)$ for cohomology with local coefficients. For a finite simplicial pair $(X,A)$, the \emph{local cohomological dimension} $\cd_{\mathrm{loc}}(X,A)$ is the least $c$ such that $H^k(X,A;M)=0$ for all $k>c$ and all local coefficient systems $M$ on $X$. Thus $\cd(X,A)\le\cd_{\mathrm{loc}}(X,A)\le\dim X$. \subsection{Nilpotent targets and the statement}\label{bey:ssec:statement} Let $Y$ be a connected finite complex with $G=\pi_1(Y)$, and let $I\subset\Z[G]$ be the augmentation ideal. $Y$ is \emph{nilpotent} if $G$ is nilpotent and, for every $n\ge2$, $I^k\pi_n(Y)=0$ for some $k$. Then every $\pi_n(Y)$ is finitely generated \cite[Ch.~II]{HMR}, and $Y$ has a minimal Sullivan model $(\Lambda V,\partial)$ with $V=\bigoplus_{n\ge1}V^n$, $V^1$ dual to the Malcev Lie algebra of $G$ and $V^n\cong\Hom(\pi_n(Y),\Q)$ for $n\ge2$ \cite{Sul77,BG76}, \cite{FHT2}. Put \[ d_0(Y)=\min\{n\ge1:\partial|_{V^n}\neq0\}\in\{1,2,\dots\}\cup\{\infty\}. \] For simply connected $Y$ this is the number of Section~\ref{top:sec}. \begin{fact}[{\cite[\S\S2, 8, 10]{Sul77}, \cite{BG76}, \cite[Ch.~II]{HMR}}]\label{bey:fact:nil} Let $Y$ be a connected nilpotent finite complex with minimal model $(\Lambda V,\partial)$. \begin{enumerate} \item[(a)] $\partial|_{V^1}=0$ if and only if the Malcev completion of $G$ is abelian, if and only if $[G,G]$ is finite. \item[(b)] Suppose $\partial|_{V^1}=0$ and $n\ge2$. For $\eta\in V^n$, the component of $\partial\eta$ outside $\Lambda V^{D$. \end{lemma} \begin{proof} $\pi_1(C)=\pi_0\hAut(F)$ and $\pi_j(C)=\pi_{j-1}(\hAut(F),\mathrm{id})$ for $j\ge2$, and $\hAut(F)$ is a union of components of the mapping space $\mathrm{Map}(F,F)$. Let $Z,W$ be connected $\pi$-finite spaces. A connected $\pi$-finite space has finite cohomology in each degree with every local system of finite abelian groups: its universal cover has finitely many nonzero homotopy groups, all finite, hence finite homology in positive degrees \cite{Ser53}, and the Cartan--Leray spectral sequence of the finite group $\pi_1$ finishes the argument. Maps to the first Postnikov stage of $W$ have components indexed by conjugacy classes of homomorphisms of finite fundamental groups. The components are aspherical with fundamental groups the centralisers of the images. Induction over the higher stages, whose fibres $K(\pi_n(W),n)$ are classified by $k$-invariants in cohomology with local coefficients \cite[Ch.~IX]{Whi78}, shows that $[Z,W]$ is finite and that every component of $\mathrm{Map}(Z,W)$ has finite homotopy groups, vanishing above the top degree of $W$: at each stage the set of lifts of a map up to vertical homotopy is a quotient of a finite cohomology group $H^n(Z;\pi_n(W))$, and the fibres of $\mathrm{Map}(Z,W_n)\to\mathrm{Map}(Z,W_{n-1})$ are spaces of sections with homotopy groups $H^{n-i}(Z;\pi_n(W))$. Applying this to the finitely many pairs of components of $F$ gives the claim, with $\pi_{j-1}(\hAut(F))=0$ for $j-1\ge D$. \end{proof} \begin{lemma}[Descent]\label{bey:lem:descent} Let $C$ be a connected $\pi$-finite space. Every map $\varphi\colon B\to C$ is homotopic to $\psi\circ r_m$ for some $m\ge1$ and some map $\psi\colon B_m\to C$. \end{lemma} \begin{proof} Let $C\to\dots\to C_n\to C_{n-1}\to\dots\to C_1=K(\pi_1(C),1)$ be the Postnikov tower of $C$; $C\to C_N$ is an equivalence for $N$ large, and $C_n\to C_{n-1}$ is a fibration with fibre $K(\pi_n(C),n)$ classified by a $k$-invariant $k_n\in H^{n+1}(C_{n-1};\pi_n(C))$ with local coefficients \cite[Ch.~IX]{Whi78}, \cite[\S VI.5]{GJ}. Let $\varphi_n$ be the composite $B\to C\to C_n$. We show by induction on $n$ that $\varphi_n\simeq\psi_n r_m$ for some $m$ and $\psi_n\colon B_m\to C_n$. \emph{$n=1$.} $\varphi_1$ is determined up to homotopy by a homomorphism $h\colon\pi_1(B)\to\pi_1(C)$ (up to conjugation). Since $\pi_1(C)$ is finite, $h|_{L_1}$ has kernel of finite index, which contains $mL_1$ for some $m$; by Lemma~\ref{bey:lem:Bm}(c), $h$ factors through $\pi_1(B_m)=\pi_1(B)/mL_1$, and the factorisation is realised by a map $\psi_1\colon B_m\to K(\pi_1(C),1)$. \emph{Inductive step.} Suppose $\varphi_{n-1}\simeq\psi_{n-1}r_m$. The obstruction to lifting $\psi_{n-1}$ to $C_n$ is $o=\psi_{n-1}^*k_n\in H^{n+1}(B_m;M)$ with $M=\psi_{n-1}^*\pi_n(C)$, a local system of finite groups on $B_m$. Since $r_m^*o=\varphi_{n-1}^*k_n=0$ ($\varphi_{n-1}$ lifts to $\varphi_n$), Lemma~\ref{bey:lem:colim} (with $m_0=m$) gives $m'$, a multiple of $m$, with $r_{m',m}^*o=0$; so $\psi_{n-1}r_{m',m}$ lifts to $\psi'\colon B_{m'}\to C_n$. By the homotopy lifting property, $\varphi_n$ is homotopic to a map $\varphi'_n$ over $\psi_{n-1}r_m$. Then $\varphi'_n$ and $\psi'r_{m'}$ are two lifts of the same map $B\to C_{n-1}$, so they differ, up to vertical homotopy, by the action of a class $\delta\in H^n(B;r_m^*M)$ \cite[Ch.~VI]{Whi78}; this action is natural in the source. By Lemma~\ref{bey:lem:colim}, $\delta=r_{m''}^*\delta''$ for a multiple $m''$ of $m'$ and some $\delta''\in H^n(B_{m''};M)$. Put $\psi_n=\delta''\cdot(\psi'r_{m'',m'})$. By naturality, $\psi_nr_{m''}\simeq\delta\cdot(\psi'r_{m'})\simeq\varphi'_n\simeq\varphi_n$. \end{proof} \begin{theorem}[Finite congruence model]\label{bey:thm:fcm} Let $Y$ be a connected finite simplicial complex, regarded as a simplicial set by an ordering of its vertices, and let $q\colon Y\to B$ be a simplicial map whose homotopy fibre $F_0$ is such that $\pi_0(F_0)$ is finite and $\pi_j(F_0,x)$ is finite for $1\le j\le D-1$ and every $x$. Then there are an integer $m\ge1$, a Kan complex $E$ with finitely many simplices in each degree that is $(D+1)$-coskeletal, a simplicial map $p\colon E\to B_m$, and a simplicial map $e=(e_B,e_E)\colon Y\to P':=B\times_{B_m}E$, such that for every finite simplicial pair $(X,A)$ with $\cd_{\mathrm{loc}}(X,A)\le D$ and every simplicial $f\colon A\to Y$ the following are equivalent: \begin{enumerate} \item[(i)] $f$ extends to a continuous map $X\to Y$; \item[(ii)] there are a simplicial map $a\colon X\to E$ with $a|_A=e_Ef$ and a simplicial map $\beta\colon X\to B$ with $\beta|_A=e_Bf$ and $r_m\beta=pa$. \end{enumerate} Consequently $\EXT(Y)$ restricted to $\cd_{\mathrm{loc}}(X,A)\le D$ is decidable. If $Y$ is nilpotent, the equivalence and algorithm also hold for $\cd(X,A)\le D$. \end{theorem} \begin{proof} \emph{Step 1: truncation.} Let $e_0\colon Y\to P_{D-1}Y$ be the Postnikov section. Since $B$ is $(D-1)$-truncated, $q$ factors up to homotopy through $P_{D-1}Y$. Replace the resulting map to $B$ by a fibration $P\to B$, with fibre $F$ \cite[Theorem~4.71]{Hatcher}. The homotopy sequences identify $\pi_0(F)$ with the cosets of $\im(\pi_1(Y)\to\pi_1(B))$ and, at each corresponding base point, $\pi_j(F)$ with $\pi_j(F_0)$ for $1\le jD$. Since $X$ is finite-dimensional, finitely many lifting stages suffice. The relative lift through the mapping-path fibration extends the canonical lift on $A$ given by $f$ and constant paths. Its projection to $Y$ is an extension of $f$. \emph{Step 5: the finite test.} All of $m$, $E$ up to degree $D+1$, $p$ on those simplices, and the values of $e$ on the nondegenerate simplices of the fixed finite complex $Y$ are finite data. Since $E$ is $(D+1)$-coskeletal, a simplicial map $X\to E$ is the same as a simplicial map $\sk_{D+1}X\to E$, and there are finitely many with prescribed restriction to $\sk_{D+1}A$; enumerate them, keeping those $a$ that agree with $e_Ef$ on $A$. For each $a$, put $\psi=pa\colon X\to B_m$, and let $\hat X\to X$ be the pull-back of the $G$-covering $EG\times K_m\to B_m$ along $\psi$; it is a finite free $G$-simplicial set, computable from $\psi$, with an equivariant map $\hat\psi=(\hat\psi_{EG},\hat\psi_K)\colon\hat X\to EG\times K_m$. By the pull-back square of Lemma~\ref{bey:lem:Bm}(a), simplicial maps $\beta\colon X\to B$ with $r_m\beta=\psi$ correspond to $G$-equivariant maps $\hat X\to K$ lifting $\hat\psi_K$, that is, to tuples of $G$-equivariant normalised cocycles $z_j\in Z^j(\hat X;L_j)$ with $z_j\equiv\hat\psi_{K,j}\pmod m$. Only the covering and labels through dimension $D$ are needed for those cocycles and their coboundaries. The condition $\beta|_A=e_Bf$ prescribes the $z_j$ on the preimage $\hat A$ of $A$. Writing $z_j=u_j+mw_j$ with $u_j$ any integral lift of $\hat\psi_{K,j}$ that agrees with the prescribed values on $\hat A$ (they are congruent to $\hat\psi_{K,j}$ there), the conditions on $w_j$ (cocycle, equivariance, vanishing on $\hat A$) form a finite system of linear equations over $\Z$, whose solvability is decided by the Smith normal form \cite{KB79}. Answer yes if and only if some $a$ passes. Step~4 proves correctness under the stated dimension promises. \end{proof} \begin{proposition}\label{bey:prop:covers} Let $Y$ be a connected finite simplicial complex with a finite regular covering $\hat Y\to Y$ with deck group $G$, such that $\hat Y$ is nilpotent and its minimal model satisfies $\partial=0$ on $V^{k$; \item[(R2)] for $k1$. Reduce Boolean circuit satisfiability with AND and NOT gates to extension. Start with a wedge of $2$-spheres, one per wire and one pinned sphere whose boundary map is the generator of $\pi_2(Y_m)$. An extension over the wedge chooses integer wire values $x_i$, with the pinned value $1$. Write the constraints $x_i^2=x_i$, $z=xy$, $z=1-x$, and $x_{\rm out}=1$ as quadratic polynomials using the pinned variable to homogenize. For each such polynomial $F$, attach a $4$-cell by replacing $x_i x_j$ with the Whitehead product of the two sphere inclusions and adding with the specified coefficients. Evaluation gives $2F(x)\eta\in\Z/m$, since $[\iota_2,\iota_2]=\pm2\eta$ with one common sign. Thus the cell extends exactly when $F(x)=0\pmod q$. A satisfying Boolean assignment lifts using $0$ and $1$. Conversely reduction modulo any prime dividing $q$ makes every idempotent $0$ or $1$ and preserves every gate. For the simplicial implementation, use the mapping cylinders and cones of Section \ref{top:sec}. Each row meets at most four spheres and has bounded coefficients, so only finitely many attaching templates are needed, including all patterns of repeated wire indices. Glue copies along the triangulated wire spheres, with fresh interior vertices. The resulting pair has dimension at most four and a number of simplices linear in the number of wires and gates. This proves hardness. \end{proof} \section*{Declarations} \subsection*{Authorship and the use of AI} Anthropic Claude and OpenAI Codex were used to develop and revise the arguments, check references and draft the text. The results are presented with written proofs. \providecommand{\bysame}{\leavevmode\hbox to3em{\hrulefill}\thinspace} \providecommand{\MR}{\relax\ifhmode\unskip\space\fi MR } \providecommand{\MRhref}[2]{% \href{http://www.ams.org/mathscinet-getitem?mr=#1}{#2} } \providecommand{\href}[2]{#2} \begin{thebibliography}{10} \bibitem{AL94} W.~W. Adams and P.~Loustaunau, \emph{An introduction to {G}r\"obner bases}, Graduate Studies in Mathematics, vol.~3, American Mathematical Society, Providence, RI, 1994. \bibitem{ABHS} L.~Alp\"oge, M.~Bhargava, W.~Ho, and A.~Shnidman, \emph{Rank stability in quadratic extensions and {H}ilbert's tenth problem for the ring of integers of a number field}, Invent. Math. \textbf{243} (2026), no.~3, 1129--1139, doi:10.1007/s00222-025-01392-3; arXiv:2501.18774. \bibitem{AA} P.~Andrews and M.~Arkowitz, \emph{Sullivan's minimal models and higher order {W}hitehead products}, Canad. J. Math. \textbf{30} (1978), 961--982. \bibitem{Bak68} A.~Baker, \emph{Contributions to the theory of {D}iophantine equations. {I}. {O}n the representation of integers by binary forms}, Philos. Trans. Roy. Soc. London Ser. A \textbf{263} (1968), 173--191. \bibitem{BH-pro} I.~Barnea, Y.~Harpaz, and G.~Horel, \emph{Pro-categories in homotopy theory}, Algebr. Geom. Topol. \textbf{17} (2017), no.~1, 567--643. \bibitem{BG76} A.~K. Bousfield and V.~K. A.~M. Gugenheim, \emph{On {PL} de {R}ham theory and rational homotopy type}, Mem. Amer. Math. Soc. \textbf{8} (1976), no.~179, ix+94. \bibitem{CM} M.~Catli and A.~Myasnikov, \emph{The {D}iophantine problem in wreath products of groups}, 2026, Preprint, arXiv:2610.22719. \bibitem{Dav73} M.~Davis, \emph{Hilbert's tenth problem is unsolvable}, Amer. Math. Monthly \textbf{80} (1973), 233--269. \bibitem{DPR61} M.~Davis, H.~Putnam, and J.~Robinson, \emph{The decision problem for exponential {D}iophantine equations}, Ann. of Math. (2) \textbf{74} (1961), 425--436. \bibitem{Dem07} Jeroen Demeyer, \emph{Recursively enumerable sets of polynomials over a finite field are {Diophantine}}, Invent. Math. \textbf{170} (2007), no.~3, 655--670, doi:10.1007/s00222-007-0078-6. \bibitem{Den75} J.~Denef, \emph{Hilbert's tenth problem for quadratic rings}, Proc. Amer. Math. Soc. \textbf{48} (1975), 214--220. \bibitem{Den80} \bysame, \emph{Diophantine sets over algebraic integer rings. {II}}, Trans. Amer. Math. Soc. \textbf{257} (1980), no.~1, 227--236. \bibitem{DL78} J.~Denef and L.~Lipshitz, \emph{Diophantine sets over some rings of algebraic integers}, J. London Math. Soc. (2) \textbf{18} (1978), no.~3, 385--391. \bibitem{DLS} M.~Duchin, H.~Liang, and M.~Shapiro, \emph{Equations in nilpotent groups}, Proc. Amer. Math. Soc. \textbf{143} (2015), no.~11, 4723--4731, doi:10.1090/proc/12630; arXiv:1401.2471. \bibitem{ProjectManin} \emph{Bilinear Diophantine undecidability and extensions of Manin's theorem}, project manuscript, 2026. \bibitem{ProjectProbes} \emph{Extension for virtually nilpotent targets: finite probes}, project manuscript, 2026. \bibitem{ProjectLocal} \emph{Local extension witnesses and integral extension}, project manuscript, 2026. \bibitem{Eis03} K.~Eisentr\"ager, \emph{Hilbert's tenth problem and arithmetic geometry}, Ph.D. thesis, University of California, Berkeley, 2003. \bibitem{FHT} Y.~F\'elix, S.~Halperin, and J.-C. Thomas, \emph{Rational homotopy theory}, Graduate Texts in Mathematics, vol. 205, Springer, New York, 2001. \bibitem{FHT2} \bysame, \emph{Rational homotopy theory {II}}, World Scientific, Hackensack, NJ, 2015. \bibitem{FV} M.~Filakovsk\'y and L.~Vok\v{r}\'{\i}nek, \emph{Are two given maps homotopic? {A}n algorithmic viewpoint}, Found. Comput. Math. \textbf{20} (2020), no.~2, 311--330, arXiv:1312.2337. \bibitem{GFP20} N.~Garcia-Fritz and H.~Pasten, \emph{Towards {H}ilbert's tenth problem for rings of integers through {I}wasawa theory and {H}eegner points}, Math. Ann. \textbf{377} (2020), no.~3-4, 989--1013, arXiv:1909.01434. \bibitem{GMO-rings} A.~Garreta, A.~Miasnikov, and D.~Ovchinnikov, \emph{Studying the {D}iophantine problem in finitely generated rings and algebras via bilinear maps}, 2018, Preprint, arXiv:1805.02573v2 (2022); v1 had the title ``Diophantine problems in rings and algebras: undecidability and reductions to rings of algebraic integers''. \bibitem{GMO-solv} \bysame, \emph{Diophantine problems in solvable groups}, Bull. Math. Sci. \textbf{10} (2020), no.~1, 2050005, arXiv:1805.04085. \bibitem{GJ} P.~G. Goerss and J.~F. Jardine, \emph{Simplicial homotopy theory}, Progress in Mathematics, vol. 174, Birkh\"auser, 1999. \bibitem{GL25} R.~D. Gray and A.~Levine, \emph{Decidability of equations and first-order theory in {S}eifert 3-manifold groups}, 2025, arXiv:2512.07690. \bibitem{GM} P.~Griffiths and J.~Morgan, \emph{Rational homotopy theory and differential forms}, 2 ed., Progress in Mathematics, vol.~16, Birkh\"auser, 2013. \bibitem{GS04} F.~Grunewald and D.~Segal, \emph{On the integer solutions of quadratic equations}, J. Reine Angew. Math. \textbf{569} (2004), 13--45. \bibitem{Hatcher} A.~Hatcher, \emph{Algebraic topology}, Cambridge University Press, Cambridge, 2002. \bibitem{HMR} P.~Hilton, G.~Mislin, and J.~Roitberg, \emph{Localization of nilpotent groups and spaces}, North-Holland Mathematics Studies, vol.~15, North-Holland, 1975. \bibitem{Hopf} H.~Hopf, \emph{\"uber die {T}opologie der {G}ruppen-{M}annigfaltigkeiten und ihre {V}erallgemeinerungen}, Ann. of Math. (2) \textbf{42} (1941), 22--52. \bibitem{Kan57} D.~M. Kan, \emph{On c.s.s. complexes}, Amer. J. Math. \textbf{79} (1957), 449--476. \bibitem{KB79} R.~Kannan and A.~Bachem, \emph{Polynomial algorithms for computing the {S}mith and {H}ermite normal forms of an integer matrix}, SIAM J. Comput. \textbf{8} (1979), no.~4, 499--507. \bibitem{KP} P.~Koymans and C.~Pagano, \emph{Hilbert's tenth problem via additive combinatorics}, J. Amer. Math. Soc. \textbf{40} (2027), no.~1, 195--234, Published online 2026; doi:10.1090/jams/1081; arXiv:2412.01768 (theorem numbers as in arXiv v3). \bibitem{Man23} F.~Manin, \emph{Rational homotopy type and computability}, Found. Comput. Math. \textbf{23} (2023), no.~5, 1817--1849, doi:10.1007/s10208-022-09582-8; arXiv:2007.10632. \bibitem{Mat70} Ju.~V. Matijasevi\v{c}, \emph{Enumerable sets are {D}iophantine}, Dokl. Akad. Nauk SSSR \textbf{191} (1970), 279--282. \bibitem{Mat86} H.~Matsumura, \emph{Commutative ring theory}, Cambridge Studies in Advanced Mathematics, vol.~8, Cambridge University Press, Cambridge, 1986. \bibitem{May-SO} J.~P. May, \emph{Simplicial objects in algebraic topology}, Van Nostrand Mathematical Studies, vol.~11, Van Nostrand, Princeton, 1967. \bibitem{May75} \bysame, \emph{Classifying spaces and fibrations}, Mem. Amer. Math. Soc. \textbf{1} (1975), no.~155, xiii+98. \bibitem{MM} J.~W. Milnor and J.~C. Moore, \emph{On the structure of {H}opf algebras}, Ann. of Math. (2) \textbf{81} (1965), 211--264. \bibitem{Mya90} A.~G. Myasnikov, \emph{Definable invariants of bilinear mappings}, Siberian Math. J. \textbf{31} (1990), no.~1, 89--99. \bibitem{Phe88} T.~Pheidas, \emph{Hilbert's tenth problem for a class of rings of algebraic integers}, Proc. Amer. Math. Soc. \textbf{104} (1988), no.~2, 611--620. \bibitem{Poo02} B.~Poonen, \emph{Using elliptic curves of rank one towards the undecidability of {H}ilbert's tenth problem over rings of algebraic integers}, Algorithmic Number Theory ({S}ydney, 2002), Lecture Notes in Comput. Sci., vol. 2369, Springer, Berlin, 2002, pp.~33--42. \bibitem{Poo25} \bysame, \emph{Rank stability makes rings of integers diophantine}, 2025, Preprint, arXiv:2510.19553. \bibitem{RS83} N.~Robertson and P.~D. Seymour, \emph{Graph minors. {I}. {E}xcluding a forest}, J. Combin. Theory Ser. B \textbf{35} (1983), no.~1, 39--61. \bibitem{Rom16} V.~A. Roman'kov, \emph{Diophantine questions in the class of finitely generated nilpotent groups}, J. Group Theory \textbf{19} (2016), no.~3, 497--514, doi:10.1515/jgth-2016-0504. \bibitem{Ser51} J.-P. Serre, \emph{Homologie singuli{\`e}re des espaces fibr{\'e}s. {A}pplications}, Ann. of Math. (2) \textbf{54} (1951), 425--505. \bibitem{Ser53} \bysame, \emph{Groupes d'homotopie et classes de groupes ab{\'e}liens}, Ann. of Math. (2) \textbf{58} (1953), 258--294. \bibitem{Shl89} A.~Shlapentokh, \emph{Extension of {H}ilbert's tenth problem to some algebraic number fields}, Comm. Pure Appl. Math. \textbf{42} (1989), no.~7, 939--962. \bibitem{Sie72} C.~L. Siegel, \emph{Zur {T}heorie der quadratischen {F}ormen}, Nachr. Akad. Wiss. G\"ottingen Math.-Phys. Kl. II (1972), 21--46. \bibitem{Sta63b} J.~Stasheff, \emph{A classification theorem for fibre spaces}, Topology \textbf{2} (1963), 239--246. \bibitem{Sul77} D.~Sullivan, \emph{Infinitesimal computations in topology}, Inst. Hautes \'Etudes Sci. Publ. Math. \textbf{47} (1977), 269--331. \bibitem{CKMVW-undec} M.~\v{C}adek, M.~Kr\v{c}\'al, J.~Matou\v{s}ek, L.~Vok\v{r}\'{\i}nek, and U.~Wagner, \emph{Extendability of continuous maps is undecidable}, Discrete Comput. Geom. \textbf{51} (2014), 24--66, doi:10.1007/s00454-013-9551-8; arXiv:1302.2370. \bibitem{CKMVW-poly} \bysame, \emph{Polynomial-time computation of homotopy groups and {P}ostnikov systems in fixed dimension}, SIAM J. Comput. \textbf{43} (2014), 1728--1780, doi:10.1137/120899029; arXiv:1211.3093. \bibitem{CKV} M.~\v{C}adek, M.~Kr\v{c}\'al, and L.~Vok\v{r}\'{\i}nek, \emph{Algorithmic solvability of the lifting-extension problem}, Discrete Comput. Geom. \textbf{57} (2017), 915--965, doi:10.1007/s00454-016-9855-6; arXiv:1307.6444. \bibitem{Vid89} C.~Videla, \emph{Sobre el d\'ecimo problema de {H}ilbert}, Atas da {X}a {E}scola de {\'A}lgebra, {V}it\'oria, {ES}, {B}rasil, Cole\c{c}\~ao Atas, vol.~16, Sociedade Brasileira de Matem\'atica, 1989, pp.~95--108. \bibitem{Vok-odd} L.~Vok\v{r}\'{\i}nek, \emph{Decidability of the extension problem for maps into odd-dimensional spheres}, Discrete Comput. Geom. \textbf{57} (2017), 1--11, doi:10.1007/s00454-016-9835-x; arXiv:1401.3758. \bibitem{Whi78} G.~W. Whitehead, \emph{Elements of homotopy theory}, Graduate Texts in Mathematics, vol.~61, Springer, New York, 1978. \bibitem{Zyw25} David Zywina, \emph{Rank one elliptic curves and rank stability}, 2025, arXiv:2505.16960. \end{thebibliography} \end{document}