\documentclass[11pt]{amsart} \usepackage{cmap} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[a4paper,margin=28mm]{geometry} \usepackage{amssymb,mathtools} \usepackage{enumitem} \usepackage{array,longtable} \usepackage{textcomp,listings} \usepackage{tikz} \usetikzlibrary{positioning} \usepackage[protrusion=true,expansion=false]{microtype} \usepackage[hidelinks]{hyperref} \hypersetup{pdftitle={VP ≠ VNP over every field},pdfauthor={Claude (Anthropic)}} \setlist{leftmargin=2.2em,itemsep=2pt,topsep=3pt} \emergencystretch=1em \setlength{\textfloatsep}{12pt plus 2pt minus 2pt} \numberwithin{equation}{section} \theoremstyle{plain} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{remark}[theorem]{Remark} \newcommand{\step}[1]{\smallskip\noindent\emph{#1}\ } \DeclareRobustCommand{\lean}[1]{{\ttfamily\upshape\renewcommand{\_}{\textunderscore\allowbreak}#1}} \newcommand{\N}{\mathbb N} \newcommand{\Z}{\mathbb Z} \newcommand{\RR}{\mathbb R} \newcommand{\CC}{\mathbb C} \newcommand{\F}{\mathbb F} \newcommand{\kk}{\Bbbk} \newcommand{\KK}{\mathbb K} \newcommand{\E}{\mathbb E} \newcommand{\PERM}{\mathrm{PERM}} \newcommand{\HC}{\mathrm{HC}} \newcommand{\VP}{\mathrm{VP}} \newcommand{\VPbar}{\overline{\mathrm{VP}}} \newcommand{\VNP}{\mathrm{VNP}} \newcommand{\SL}{\mathrm{SL}} \newcommand{\Mat}{\mathrm{Mat}} \newcommand{\rk}{\operatorname{rk}} \newcommand{\pv}{\operatorname{sum}} \newcommand{\eps}{\varepsilon} \newcommand{\abs}[1]{\lvert #1\rvert} \newcommand{\norm}[1]{\lVert #1\rVert} \newcommand{\ut}[2]{\langle #1\rangle_{#2}} \newcommand{\floor}[1]{\lfloor #1\rfloor} \newcommand{\ceil}[1]{\lceil #1\rceil} \newcommand{\rate}{1/3} \newcommand{\ratelog}{4/3} \lstdefinelanguage{lean}{morekeywords={theorem,def,import,open,namespace,end,structure,instance,noncomputable,fun,let,if,then,else,Type,Prop,with,in,by},sensitive=true,morecomment=[s]{/-}{-/}} \lstset{language=lean,basicstyle=\ttfamily\scriptsize,keywordstyle=\bfseries,columns=fullflexible,keepspaces=true,breaklines=true,showstringspaces=false,frame=single,extendedchars=true, literate={ℕ}{{$\mathbb N$}}1 {ℝ}{{$\mathbb R$}}1 {ℤ}{{$\mathbb Z$}}1 {∀}{{$\forall$}}1 {∃}{{$\exists$}}1 {∧}{{$\wedge$}}1 {∨}{{$\vee$}}1 {¬}{{$\neg$}}1 {≤}{{$\le$}}1 {≥}{{$\ge$}}1 {≠}{{$\ne$}}1 {→}{{$\to$}}1 {↦}{{$\mapsto$}}1 {×}{{$\times$}}1 {⊕}{{$\oplus$}}1 {⊂}{{$\subset$}}1 {⊆}{{$\subseteq$}}1 {∈}{{$\in$}}1 {∉}{{$\notin$}}1 {∑}{{$\sum$}}1 {∏}{{$\prod$}}1 {σ}{{$\sigma$}}1 {φ}{{$\varphi$}}1 {ε}{{$\varepsilon$}}1 {₀}{{\textsubscript{0}}}1 {₁}{{\textsubscript{1}}}1 {₂}{{\textsubscript{2}}}1 {→₀}{{$\to_0$}}2} \usetikzlibrary{arrows.meta,calc,shapes.geometric} \theoremstyle{definition} \newtheorem*{remark*}{Remark} \newtheorem*{example*}{Example} \newtheorem*{definition*}{Definition} \newtheorem*{convention*}{Convention} \newcommand{\fnote}[1]{\smallskip\noindent\emph{Formalization note.}\ #1\par\smallskip} \title[$\mathrm{VP}\ne\mathrm{VNP}$]{$\mathbf{VP}\boldsymbol{\ne}\mathbf{VNP}$ over every field} \author{Claude} \makeatletter \let\origsetauthors\@setauthors \def\@setauthors{\origsetauthors{\centering\footnotesize\vskip2pt \MakeUppercase{Anthropic}\par}} \makeatother \date{} \begin{document} \begin{abstract} We prove that every arithmetic circuit that computes the permanent of an $m\times m$ matrix over the reals has more than $m^{c(\log m)^{\rate}}$ gates, for some constant $c>0$ and all sufficiently large~$m$. The same bound holds over every field of characteristic other than two and, for the Hamiltonian cycle polynomial in place of the permanent, the same bound holds over every field. Hence $\VP\ne\VNP$ over every field. This is the algebraic analogue of the conjecture $\mathrm P\ne\mathrm{NP}$, but it does not settle that conjecture. Algebraic circuits must work for all inputs in the field and its extensions -- not just 0 and 1 -- thus our superpolynomial bound does not apply to Boolean circuits. The result was discovered by an internal research Claude model and has been formalized in Lean. \end{abstract} \maketitle \section{Introduction}\label{sec:intro} The theory of computing studies several models of computation such as Turing machines and Boolean circuits. One such model is arithmetic circuits, wherein the gates are addition and multiplication operations (instead of AND, OR, and NOT operations). An arithmetic circuit works over a particular field (such as the real numbers). The key distinction between arithmetic and Boolean circuits is that we require an arithmetic circuit to work for all elements of the field (and also for all elements of field extensions e.g.\ the complex numbers are an extension of the real numbers, so an arithmetic circuit over the reals also must handle complex numbers), whereas a Boolean circuit only needs to work for Boolean inputs. The famous $\mathrm P$ vs $\mathrm{NP}$ problem is a statement about Turing machines. The analogous problem for arithmetic circuits is the $\VP$ vs $\VNP$ problem. In this paper, we resolve the latter problem, but not the former. It has been shown that proving $\VP=\VNP$ over an appropriate field would imply that $\mathrm P/\mathrm{poly}=\mathrm{NP}/\mathrm{poly}$, which is the version of $\mathrm P=\mathrm{NP}$ for Boolean circuits \cite{Bur00b}, but no implication in the other direction is known. We show that $\VP\ne\VNP$ over all fields, but the $\mathrm P$ vs $\mathrm{NP}$ problem remains open. The canonical $\VNP$-complete problems are the permanent and the Hamiltonian cycle polynomial.\footnote{The permanent is $\VNP$-complete for fields of characteristic other than~2, while the Hamiltonian cycle polynomial is $\VNP$-complete for all fields.} For an $m\times m$ matrix of variables $x_{i,j}$ ($i,j\in\{1,2,\dots,m\}$) these are the multilinear polynomials \[ \PERM_m=\sum_{\sigma\in S_m}\prod_{i=1}^m x_{i,\sigma(i)} \qquad\text{and}\qquad \HC_m=\sum_{\sigma}\prod_{i=1}^m x_{i,\sigma(i)}, \] where $S_m$ is the symmetric group of size~$m!$ and the second sum runs over the $(m-1)!$ cyclic permutations in~$S_m$. The $\VP$ vs $\VNP$ problem is equivalent to asking whether or not the permanent and the Hamiltonian cycle polynomial can be computed by polynomial-size arithmetic circuits; Valiant \cite{Val79,Val82} conjectured that they cannot. We produce a lower bound of $2^{\Omega((\log m)^{\ratelog})}$, which is superpolynomial and thus separates $\VP$ from $\VNP$. Our lower bound is quasipolynomial, whereas the best upper bounds are exponential -- i.e.\ of the form $2^{O(m)}$ \cite{Rys63,Gly10,Cur26}. Thus there is still plenty of room to tighten the bounds. The full proofs are in the associated Lean release and in the appendix; a name in typewriter type, such as \lean{thm\_alt}, refers to the relevant statement in Lean. \subsection{Results}\label{sec:results} The precise statements follow; the model and the classes $\VP$ and $\VNP$ are made precise in Section~\ref{sec:model}. \begin{theorem}[main theorem; \lean{thm\_allfields}]\label{s:allfields} There is an absolute constant $c>0$ such that for every $p$, zero or prime, there is $m_0$ with the following property. Over every field of characteristic $p$ and for every $m\ge m_0$, every circuit for $\HC_m$, and every circuit for $\PERM_m$ if $p\ne2$, has more than $m^{c(\log m)^{\rate}}$ gates. \end{theorem} Here and throughout, $\log=\log_2$. We do not claim that the exponent $\rate$ is optimal. In characteristic two the permanent coincides with the determinant; since the determinant has polynomial-size circuits, the theorem does not apply there. As $(\PERM_m)$ and $(\HC_m)$ are in $\VNP$, Theorem~\ref{s:allfields} gives the following. \begin{corollary}[\lean{cor\_allclasses}]\label{s:allclasses} Over every field, $\VP$ is a proper subset of $\VNP$. \end{corollary} These results extend to approximate computation in the sense of border complexity, so that $\VNP\not\subseteq\VPbar$ over every field, and Section~\ref{sec:previous} says what this implies for the determinantal complexity of the permanent. \begin{definition}[\lean{def\_approx}]\label{s:approx} Let $\kk$ be a field, and let $\kk((\eps))$ be the field of formal Laurent series over~$\kk$. A circuit over $\kk((\eps))$ \emph{approximates} a polynomial $f$ over $\kk$ if it computes a polynomial of the form $f+\eps g$, where $g$ is a polynomial all of whose coefficients lie in $\kk[[\eps]]$. The class $\VPbar$ is defined like $\VP$, with approximating circuits in place of circuits. \end{definition} Over the real numbers this captures limits. If the constants of the circuit are, say, polynomials in $\eps$ and $1/\eps$, then putting a small positive real number for $\eps$ gives a circuit over $\RR$ with the same number of gates that computes $f+\eps g$, and these polynomials tend to~$f$, coefficient by coefficient, as $\eps\to0$. So $f$ is a limit of polynomials that have small circuits, although it need not have a small circuit itself, because constants such as $1/\eps$ blow up in the limit. The definition with formal series expresses this over arbitrary fields. \begin{theorem}[approximate computation; \lean{thm\_approx}]\label{s:approx-thm} Theorem~\ref{s:allfields} holds for circuits that approximate $\HC_m$, respectively $\PERM_m$. In particular $\VNP\not\subseteq\VPbar$ over every field. \end{theorem} Theorem~\ref{s:allfields} and Corollary~\ref{s:allclasses} are proved in Appendix~\ref{app:fields} (as Theorem~\ref{thm:allfields} and Corollary~\ref{cor:allclasses}), and Theorem~\ref{s:approx-thm} in Appendix~\ref{app:approx} (Definition~\ref{def:approx}, Theorem~\ref{thm:approx}). Section~\ref{app:statement} prints the Lean file that states Theorems~\ref{s:allfields} and~\ref{s:approx-thm} and Corollary~\ref{s:allclasses} from Mathlib alone. \subsection{Related work}\label{sec:previous} The determinant of an $m\times m$ matrix can be computed with a number of additions and multiplications that is polynomial in~$m$ \cite{Ber84}. Valiant's conjecture says that this is not so for the permanent, which differs from the determinant only in the signs of its terms. For background on algebraic complexity theory we refer to the books and surveys \cite{BCS97,Bur00,SY10,Lan17,Sap21,Bur24}. Lower bounds for general arithmetic circuits, that is, arithmetic circuits with no restriction on their depth or structure, have been hard to obtain. To our knowledge, the best previous lower bound for an explicit polynomial of degree $d$ in $n$ variables is the bound $\Omega(n\log d)$ of Strassen and of Baur and Strassen \cite{Str73,BS83}. In particular, no lower bound of larger order than $m^2\log m$ was known for $\PERM_m$, which has $m^2$ variables and degree~$m$. Much stronger bounds are known for restricted classes of circuits, and we review them next. For circuits over noncommutative rings, Raz recently proved that an explicit polynomial of degree $n$ in $n$ variables needs $\Omega(n^{1.5})$ product gates \cite{Raz26}. For circuits over a field, bounds stronger than $\Omega(n\log d)$ are known only for restricted models. For formulas and algebraic branching programs they are polynomial, at most quadratic in the number of variables \cite{Kal85,CKSV22}. Exponential lower bounds are known for monotone circuits \cite{JS82,Yeh19} and for noncommutative formulas and branching programs \cite{Nis91}, and bounds that are exponential in the square root of the degree for homogeneous circuits of depth four, first with bounded bottom fan-in \cite{GKKS14} and then in general \cite{KLSS17,KS17}. Superpolynomial lower bounds are known for multilinear formulas \cite{Raz09} and, by a breakthrough of Limaye, Srinivasan and Tavenas, for circuits of every constant depth in characteristic zero or large characteristic \cite{LST25}, which Forbes extended to all fields \cite{For24}. Many of these proofs bound the rank of a matrix of partial derivatives or of coefficients \cite{Nis91,NW97}. Depth reduction, from \cite{Hya79,VSBR83} to the reductions to depth four and three \cite{AV08,Koi12,Tav15,GKKS16}, connects these models to general circuits. Raz related lower bounds for general circuits to elusive functions \cite{Raz10} and lower bounds for formulas to tensor rank \cite{Raz13}. In comparison, Theorem~\ref{s:allfields} concerns general circuits, with no restriction on their depth, on their constants or on cancellations, and its bound is superpolynomial, whereas the bound of Baur and Strassen is linear in the number of variables up to a logarithmic factor. Geometric complexity theory, the programme of Mulmuley and Sohoni \cite{MS01,MS08,BLMW11}, approaches the border version of the conjecture through representation theory: it seeks representations that obstruct the padded permanent from lying in the orbit closure of a determinant of polynomial size. Many known lower bounds fit its framework \cite{Gro15}, and occurrence obstructions, on which the original plan relied, cannot give superpolynomial bounds \cite{IP17,BIP19}. Our proof does not follow this programme, since it uses neither representation theory nor orbit closures (Section~\ref{sec:outline}), but it bears on the statement at which the programme aims: the bound for approximating circuits (Theorem~\ref{s:approx-thm}) implies that the permanent is not approximated by determinants of polynomial size, which over $\CC$ was conjectured by Mulmuley and Sohoni \cite{MS01} in the language of orbit closures (this consequence is the one numbered statement of this paper that is not formalized in Lean). For the determinantal complexity of the $m\times m$ permanent the classical lower bound is quadratic in~$m$ \cite{MR04,CCL10,Yab15}, also for the border version \cite{LMR13}. In 2026 a cubic lower bound, also for the border version over~$\CC$, was announced in a manuscript of OpenAI that comes with a Lean development \cite{OAI26}, and it was extended to odd characteristic in \cite{She26b}; from the same manuscript, \cite{Guo26} derives a bound of order $m^2\log m$ for circuits with division. For the power sum $x_1^n+\dots+x_n^n$ a bound that is quadratic in the number of variables was announced in \cite{She26}, and a short proof for determinantal complexity is given in \cite{KV26}. Border complexity goes back to \cite{BCRL79,Ald84}, and for the class $\VPbar$, for border reductions and for closures of small classes we refer to \cite{Bur04,GMQ16,IS22} and \cite{BIZ18,Kum20,DDS21}. Several barriers are known for natural strategies towards lower bounds, and we comment briefly on how our proof, which is outlined in Section~\ref{sec:outline}, relates to them. Rank methods cannot give strong lower bounds for the rank of tensors \cite{EGOW18,GMOW19}. In the flat case we use, instead of ranks, functionals in a variant of Strassen's asymptotic spectrum \cite{Str88,WZ26}, which we call spectral points. Few points of the asymptotic spectrum are known explicitly, namely the ranks of flattenings \cite{Str88}, the support functionals on oblique tensors \cite{Str91} and, over~$\CC$, the quantum functionals \cite{CVZ23}. The spectral points that we use are not explicit at all, since they are only known to exist by Zorn's lemma (\lean{prop\_gauge}). Algebraically natural proofs \cite{FSV18,GKSS17}, the analogue of the natural proofs of Razborov and Rudich \cite{RR97}, may be unable to prove superpolynomial lower bounds for general circuits, and there is evidence in both directions \cite{CKRST20,KRST22}. In the contracting case no property of polynomials other than low degree is used, and the argument ends in a diagonalization. We have not analysed how it relates to relativization and algebrization \cite{BGS75,AW09}. Lower bounds for the permanent have consequences for the derandomization of polynomial identity testing \cite{KI04}, but we have not worked out what our bound gives there. \subsection{The model}\label{sec:model} We now make the model precise. An \emph{arithmetic circuit} over a commutative ring $R$ is a finite list of polynomials over~$R$, each of which is a variable, a constant from~$R$, or the sum or the product of two earlier entries of the list, which may be the same entry. We call the entries of the list the \emph{gates} of the circuit, and we say that the circuit \emph{computes} each of the polynomials in the list. The \emph{size} of the circuit is the length of the list, so that variables and constants are counted as gates.\footnote{Counting only the additions and multiplications would change the size by a factor of at most three.} Valiant's classes are defined as follows \cite{Val79,Val82}. A family $(f_n)$ of polynomials over a field is in $\VP$ if the number of variables of $f_n$, its degree, and the size of the smallest circuit that computes it are all bounded by polynomials in~$n$. The family is in $\VNP$ if $f_n(x)=\sum_{e\in\{0,1\}^{r(n)}}g_n(x,e)$ for some family $(g_n)$ in $\VP$. Clearly $\VP\subseteq\VNP$, and Valiant's conjecture is the statement that $\VP\ne\VNP$. The family $(\PERM_m)$ belongs to $\VNP$, for example by Ryser's formula \cite{Rys63}. As said above, it is complete for $\VNP$ over every field in which $2\ne0$; this is a theorem of Valiant \cite{Val79}. We said above that an arithmetic circuit has to work for all elements of the field and of its extensions. Equivalently, the circuit produces the polynomial itself, as a formal expression over the field, by additions and multiplications only, and not merely its values on inputs from $\{0,1\}$. A Turing machine or a Boolean circuit, in contrast, may manipulate the bits of its input in any way. The results of this paper therefore say nothing about whether NP-complete problems have fast algorithms. (Evaluating the permanent of a matrix with entries $0$ and $1$ is $\#\mathrm P$-complete \cite{Val79b}, but that is a statement about Boolean computation.) As said above, it is not known whether Valiant's conjecture implies Boolean separations such as $\mathrm P\ne\mathrm{NP}$, while in the other direction a separation of Boolean circuit classes is known to imply Valiant's conjecture over appropriate fields. For example, if $\mathrm{NP}\not\subseteq\mathrm P/\mathrm{poly}$, then $\VP\ne\VNP$ over~$\CC$, provided that the Riemann hypothesis for Dedekind zeta functions holds \cite{Bur00b}. \section{Overview of the proof}\label{sec:outline} This section describes the proof informally; Section~\ref{sec:ov-tests} says why the argument applies neither to the determinant nor to Boolean circuits. Throughout this section we assume that the field of coefficients~$\kk$ has characteristic different from two; the last paragraph of Section~\ref{sec:ov-tests} treats characteristic two. \subsection{The shape of the argument}\label{sec:ov-shape} \begin{figure}[t] \centering \begin{tikzpicture}[x=1cm,y=1cm,>={Stealth[length=1.8mm]}, every node/.style={font=\footnotesize}, bx/.style={draw,rectangle,align=center,inner sep=3pt,minimum height=6.5mm,text width=#1}, bx/.default=64mm, free/.style={fill=gray!18}, hyp/.style={draw,dashed,rounded corners=3pt,rectangle,align=center,inner sep=3pt,minimum height=6.5mm,text width=64mm}, tagP/.style={circle,fill=black,text=white,inner sep=1.2pt,font=\footnotesize\bfseries}, tagC/.style={rectangle,fill=black,text=white,inner sep=2.2pt,font=\footnotesize\bfseries}, lab/.style={align=left,font=\scriptsize,inner sep=1pt}] \node[bx=146mm,free] (c) at (7.5,0) {\emph{Common part: tensors over the field~$\kk$.}\\ prices, and ranks as distances (\lean{lem\_hubs}) $\;\to\;$ two crossing wires (\lean{prop\_crossing}) $\;\to\;$\\ prices have nonpositive curvature (\lean{thm\_cn}) $\;\to\;$ flat case or contracting case (\lean{thm\_alt})}; \node[bx,free,anchor=north] (fa) at (3.6,-1.6) {flat hypothesis: Euclidean configurations\\are prices (\lean{def\_cases}); the balanced sets\\cost about $k^{3/2}$ bits (\lean{lem\_few}, \lean{prop\_cube})}; \node[hyp,below=4mm of fa] (fh) {assume a circuit with $L'$ gates for $\PERM_m$}; \node[bx,below=6.5mm of fh] (f2) {circuit with \mbox{$L=5L'$} gates for $f_{k,\ell}$}; \node[bx,below=6.5mm of f2] (f3) {\mbox{$f_{k,\ell}=\sum_Sf_S$} over the balanced sets~$S$,\\the tensor of $f_S$ of rank at most $L$ across~$S$}; \node[bx,below=5mm of f3] (f4) {comparison of lengths:\\\mbox{$\log L\ge\ell k^{3/2}/16$} (\lean{prop\_flat\_rate})}; \node[bx,below=5mm of f4] (f5) {\lean{thm\_flat\_rate}}; \draw[->] (fh)--(f2) node[midway,tagP] (tp1) {P}; \node[lab,anchor=west] at ($(tp1.east)+(0.1,0)$) {\lean{cor\_clauses}, \lean{lem\_fkl\_perm}}; \draw[->] (f2)--(f3) node[midway,tagC] (tc1) {C}; \node[lab,anchor=west] at ($(tc1.east)+(0.1,0)$) {\lean{lem\_balanced}}; \draw[->] (f3)--(f4) node[midway,lab,anchor=west,xshift=2pt] {\lean{lem\_hubs}}; \draw[->] (f4)--(f5) node[midway,lab,anchor=west,xshift=2pt] {$k=r^2$, $\ell=100r$}; \draw[->] (fa.west)--++(-0.3,0)|-(f4.west); \node[bx,free,anchor=north] (ka) at (11.4,-1.6) {Poincar\'e inequality (\lean{thm\_poincare}) $\to$ laws\\(\lean{thm\_laws}) $\to$ trees (\lean{thm\_tree}) $\to$\\computations can be cut (\lean{thm\_cut})}; \node[hyp,below=4mm of ka] (kh) {assume a circuit with $v^a$ gates for $\PERM_m$}; \node[bx,below=6.5mm of kh] (k2) {circuit with $O(v^a)$ gates for $\Phi$}; \node[bx,below=6.5mm of k2] (k3) {accelerator at the scale $v$ (\lean{lem\_circuit}):\\sums over $v^H$ steps in $v^{H-16}$ steps}; \node[bx,below=5mm of k3] (k4) {accelerators at all larger scales; diagonal\\argument: there are none (\lean{thm\_noacc})}; \node[bx,below=5mm of k4] (k5) {\lean{thm\_contracting}}; \draw[->] (kh)--(k2) node[midway,tagP] (tp2) {P}; \node[lab,anchor=west] at ($(tp2.east)+(0.1,0)$) {\lean{cor\_clauses}}; \draw[->] (k2)--(k3) node[midway,tagC] (tc2) {C}; \node[lab,anchor=west] at ($(tc2.east)+(0.1,0)$) {\lean{lem\_lowdeg}}; \draw[->] (k3)--(k4) node[midway,lab,anchor=west,xshift=2pt] {\lean{lem\_postpone}, \lean{prop\_next}}; \draw[->] (k4)--(k5); \draw[->] (ka.east)--++(0.3,0)|-(k4.east); \draw[->] (c.south-|fa.north)--(fa.north) node[midway,lab,anchor=west,xshift=2pt] {flat case}; \draw[->] (c.south-|ka.north)--(ka.north) node[midway,lab,anchor=west,xshift=2pt] {contracting case}; \node[bx=40mm] (m) at ($(f5.south)!0.5!(k5.south)+(0,-0.65)$) {Theorem~\ref{s:allfields}}; \draw[->] (f5.south)|-(m.west); \draw[->] (k5.south)|-(m.east); \end{tikzpicture} \caption{The structure of the proof. The two arrows marked \textbf{P} are the only steps that use the permanent; they use the circuit too, but only by substituting into it. The two arrows marked \textbf{C} are the only steps that look inside the circuit, both times at the polynomial at every gate. In the shaded boxes neither the polynomial that is to be computed nor a circuit occurs; the dashed boxes are the assumptions. For the determinant the arrows \textbf{P} are missing, and a Boolean circuit does not pass the arrows \textbf{C} (Section~\ref{sec:ov-tests}).} \label{fig:ov-flow} \end{figure} The proof consists of two cases, the \emph{contracting case} and the \emph{flat case}, according to which of two technical hypotheses (described next) holds. Both are hypotheses on the field~$\kk$. \begin{definition}[the two hypotheses; \lean{def\_cases}]\label{s:cases} Let $\kk$ be a field and let $V$ be a finite set; its elements are only labels, and we call them \emph{parties}. A \emph{$V$-tensor} is an element of $\bigotimes_{v\in V}\kk^{n_v}$ for some dimensions $n_v\ge1$, that is, an array over~$\kk$ with one index for each party. The product $st$ of two $V$-tensors is their tensor product taken party by party, so that it lies in $\bigotimes_v\kk^{m_vn_v}$, and $s$ is a \emph{restriction} of~$t$ if $s=(\bigotimes_vA_v)\,t$ for linear maps $A_v\colon\kk^{n_v}\to\kk^{m_v}$. A \emph{spectral point} on~$V$ (\lean{def\_spectral}, after Strassen \cite{Str87,Str88}) is a function $\phi$ from the $V$-tensors to $[0,\infty)$ such that $\phi(1)=1$ for the tensor $1$ with all $n_v=1$ and entry~$1$, such that $\phi(st)=\phi(s)\phi(t)$, and such that $\phi(s)\le\sum_j\phi(t_j)$ whenever $s=\sum_js_j$ with every $s_j$ a restriction of~$t_j$. The \emph{wire} $\ut q{uv}$ is the $q\times q$ identity matrix in the indices of $u$ and~$v$, with $n_w=1$ for all other parties~$w$; we call $q$ its dimension and $\log q$ its \emph{size}. For every spectral point $\phi$ there is a pseudometric $d_\phi$ on~$V$ with values in $[0,1]$ such that $\phi(\ut q{uv})=q^{d_\phi(u,v)}$ for all $q\ge1$ (\lean{lem\_exponents}). We consider two hypotheses on the field~$\kk$: \begin{description} \item[Contracting hypothesis] There are an integer $\mu\ge2$ and a real number $s$ with $1\le s$ and $s^2<\mu$ such that, for the set $V=\Mat_\mu(\F_2)$ of the $\mu\times\mu$ matrices over the field with two elements and for every spectral point $\phi$ on~$V$, \[ \E_{a,\,W\colon\rk W=\mu}\,d_\phi(a,a+W)^2\ \le\ s^2\;\E_{a,\,W\colon\rk W=1}\,d_\phi(a,a+W)^2 , \] where the means are over all matrices $a$ and all matrices $W$ of the rank shown. \item[Flat hypothesis] For every finite subset $V$ of a Euclidean space and every $\eps>0$ there are a spectral point $\phi$ on~$V$ and a real number $c\ge0$ such that $\abs{c\,d_\phi(u,v)-\norm{u-v}}\le\eps$ for all $u,v\in V$. \end{description} \end{definition} The field enters only through the tensors, which have entries in~$\kk$, and the restrictions, which use $\kk$-linear maps. The set $\Mat_\mu(\F_2)$ only supplies the parties and their addition; its $\F_2$ is not the field~$\kk$. A \emph{price} on~$V$ is a pointwise limit of functions $c\,d_\phi$ with real numbers $c\ge0$ (\lean{def\_price}); we write $\abs{uv}$, or $\abs{u,v}$, for the distance of $u$ and~$v$ in a given price, and for a price on $\Mat_\mu(\F_2)$ we write $D(r)^2$ for the mean of $\abs{a,a+W}^2$ over all $a$ and all $W$ of rank~$r$. The Lean definition states both hypotheses for prices: the contracting one as $D(\mu)\le s\,D(1)$ for all prices on $\Mat_\mu(\F_2)$, which is the same because the inequality survives scaling and limits, and the flat one as the statement that all finite subsets of Euclidean spaces, with their metrics, are prices. Every price on $\Mat_\mu(\F_2)$ has $D(\mu)\le\sqrt\mu\,D(1)$. Indeed, for $W,W'$ of ranks $i,j$ whose sum has rank $i+j$, the points $a$, $a+W$, $a+W+W'$, $a+W'$ form a quadrilateral with two sides $W$, two sides $W'$ and, since $2=0$, both diagonals $W+W'$; prices have nonpositive curvature (Section~\ref{sec:ov-curv}), where the squared diagonals of a quadrilateral add up to at most its squared sides (\lean{lem\_toolkit\_b}), with equality for rectangles in a Euclidean space. So the contracting hypothesis says that, for some~$\mu$, every price on $\Mat_\mu(\F_2)$ falls short of a Euclidean rectangle by a fixed factor, and the flat hypothesis says that prices can be Euclidean. \begin{theorem}[the two cases; \lean{thm\_alt}]\label{s:alt} Over every field~$\kk$ at least one of the two hypotheses of Definition~\ref{s:cases} holds, that is, one of the two cases occurs. \end{theorem} We do not know which of the two hypotheses holds, even over~$\RR$, nor do we show that the two are mutually exclusive. Rather than analyzing the permanent or Hamiltonian cycle polynomial directly, in each case we work with another polynomial, which the permanent, and likewise the Hamiltonian cycle polynomial, can express. In the flat case we prove a lower bound (\lean{prop\_flat\_rate}) for the polynomial of a network of wires on the complete graph, which for $k\ge2$ and $\ell\ge1$ is \begin{equation}\label{eq:ov-fkl} f_{k,\ell}=\sum_\sigma\prod_{a=1}^kx_{a,\sigma_a}. \end{equation} Here $\sigma=(\sigma_{ab})_{a0$ some $c\,d_\phi$ differs from their Euclidean distances by less than~$\delta$, and this one $\phi$ serves all balanced sets at once. For $a 0`, and for each characteristic `p` an `m₀`, such that over every field of characteristic `p` and for every `m ≥ m₀` every circuit for `hc m`, and for `perm m` if `p ≠ 2`, has more than `m ^ (c * (log₂ m) ^ (1/3))` gates. -/ def MainTheorem : Prop := ∃ c : ℝ, 0 < c ∧ ∀ p : ℕ, ∃ m₀ : ℕ, ∀ (F : Type u) [Field F] [CharP F p], ∀ m ≥ m₀, ∀ s : ℕ, (Computes (hc F m) s → Beyond c m s) ∧ (p ≠ 2 → Computes (perm F m) s → Beyond c m s) /-! ### Approximate circuits -/ /-- `f` is approximated by a circuit with at most `s` gates: a circuit over the Laurent series in `ε` computes some `q = f + ε * g`, where the coefficients of `g` are power series in `ε`. Here `a.coeff i` is the coefficient of `ε ^ i` in the series `a`. -/ def Approximates {F : Type u} {V : Type} [Field F] (f : MvPolynomial V F) (s : ℕ) : Prop := ∃ q : MvPolynomial V (LaurentSeries F), Computes q s ∧ ∀ (d : V →₀ ℕ) (i : ℤ), i ≤ 0 → (coeff d q).coeff i = if i = 0 then coeff d f else 0 /-- **Main theorem, approximate form.** The same bound, for circuits that only approximate. -/ def MainTheoremApprox : Prop := ∃ c : ℝ, 0 < c ∧ ∀ p : ℕ, ∃ m₀ : ℕ, ∀ (F : Type u) [Field F] [CharP F p], ∀ m ≥ m₀, ∀ s : ℕ, (Approximates (hc F m) s → Beyond c m s) ∧ (p ≠ 2 → Approximates (perm F m) s → Beyond c m s) /-! ### Valiant's classes -/ /-- A family of polynomials, with finitely many variables for every `n`. -/ structure Family (F : Type u) [CommSemiring F] where /-- the variables of the `n`-th polynomial -/ vars : ℕ → Type /-- finitely many -/ [fin : ∀ n, Fintype (vars n)] /-- the `n`-th polynomial -/ poly : ∀ n, MvPolynomial (vars n) F attribute [instance] Family.fin /-- VP: the number of variables, the degree and the circuit size are polynomially bounded in `n`. -/ def VP (F : Type u) [CommSemiring F] : Set (Family F) := {f | ∃ a : ℕ, ∀ n, Fintype.card (f.vars n) ≤ n ^ a + a ∧ (f.poly n).totalDegree ≤ n ^ a + a ∧ Computes (f.poly n) (n ^ a + a)} /-- The closure of VP: the same with approximating circuits. -/ def VPBar (F : Type u) [Field F] : Set (Family F) := {f | ∃ a : ℕ, ∀ n, Fintype.card (f.vars n) ≤ n ^ a + a ∧ (f.poly n).totalDegree ≤ n ^ a + a ∧ Approximates (f.poly n) (n ^ a + a)} /-- VNP: the families `f n = ∑ g n (x, e)`, as polynomials, the sum over all vectors `e` of `r n` bits, for some family `g` in VP. -/ def VNP (F : Type u) [CommSemiring F] : Set (Family F) := {f | ∃ (r : ℕ → ℕ) (g : ∀ n, MvPolynomial (f.vars n ⊕ Fin (r n)) F), ({ vars := fun n => f.vars n ⊕ Fin (r n), poly := g } : Family F) ∈ VP F ∧ ∀ n, f.poly n = ∑ e : Fin (r n) → Bool, aeval (Sum.elim X fun i => if e i then 1 else 0) (g n)} /-- **VP ≠ VNP**: over every field VP is a proper subset of VNP. -/ def Separation : Prop := ∀ (F : Type u) [Field F], VP F ⊂ VNP F /-- Over every field VNP is not contained in the closure of VP. -/ def SeparationClosure : Prop := ∀ (F : Type u) [Field F], ¬ VNP F ⊆ VPBar F end Statement \end{lstlisting} {\footnotesize \begin{thebibliography}{CKRST20} \bibitem[AJMV98]{AJMV98} E.~Allender, J.~Jiao, M.~Mahajan and V.~Vinay, Non-commutative arithmetic circuits: depth reduction and size lower bounds, \emph{Theoret.\ Comput.\ Sci.} 209 (1998), 47--86. \bibitem[AKK22]{AKK22} P.~Austrin, P.~Kaski and K.~Kubjas, Tensor network complexity of multilinear maps, \emph{Theory Comput.} 18 (2022), article 16. \bibitem[Ald84]{Ald84} A.~Alder, \emph{Grenzrang und Grenzkomplexit\"at aus algebraischer und topologischer Sicht}, Dissertation, Universit\"at Z\"urich, 1984. \bibitem[All99]{All99} E.~Allender, The permanent requires large uniform threshold circuits, \emph{Chicago J.\ Theoret.\ Comput.\ Sci.} 1999, article 7. \bibitem[And84]{And84} G.~E.~Andrews, Generalized Frobenius partitions, \emph{Mem.\ Amer.\ Math.\ Soc.} 49 (1984), no.~301. \bibitem[AV08]{AV08} M.~Agrawal and V.~Vinay, Arithmetic circuits: a chasm at depth four, \emph{FOCS 2008}, 67--75. \bibitem[AW09]{AW09} S.~Aaronson and A.~Wigderson, Algebrization: a new barrier in complexity theory, \emph{ACM Trans.\ Comput.\ Theory} 1 (2009), article 2. \bibitem[BCRL79]{BCRL79} D.~Bini, M.~Capovani, F.~Romani and G.~Lotti, $O(n^{2.7799})$ complexity for $n\times n$ approximate matrix multiplication, \emph{Inform.\ Process.\ Lett.} 8 (1979), 234--235. \bibitem[BCS97]{BCS97} P.~B\"urgisser, M.~Clausen and M.~A.~Shokrollahi, \emph{Algebraic complexity theory}, Springer, 1997. \bibitem[BEGKN94]{BEGKN94} M.~Blum, W.~Evans, P.~Gemmell, S.~Kannan and M.~Naor, Checking the correctness of memories, \emph{Algorithmica} 12 (1994), 225--244. \bibitem[Ber84]{Ber84} S.~J.~Berkowitz, On computing the determinant in small parallel time using a small number of processors, \emph{Inform.\ Process.\ Lett.} 18 (1984), 147--150. \bibitem[BGS75]{BGS75} T.~Baker, J.~Gill and R.~Solovay, Relativizations of the $\mathcal P\overset{?}{=}\mathcal{NP}$ question, \emph{SIAM J.\ Comput.} 4 (1975), 431--442. \bibitem[BH99]{BH99} M.~R.~Bridson and A.~Haefliger, \emph{Metric spaces of non-positive curvature}, Springer, 1999. \bibitem[BIP19]{BIP19} P.~B\"urgisser, C.~Ikenmeyer and G.~Panova, No occurrence obstructions in geometric complexity theory, \emph{J.\ Amer.\ Math.\ Soc.} 32 (2019), 163--193. \bibitem[BIZ18]{BIZ18} K.~Bringmann, C.~Ikenmeyer and J.~Zuiddam, On algebraic branching programs of small width, \emph{J.\ ACM} 65 (2018), article 32. \bibitem[BLMW11]{BLMW11} P.~B\"urgisser, J.~M.~Landsberg, L.~Manivel and J.~Weyman, An overview of mathematical issues arising in the geometric complexity theory approach to $\mathrm{VP}\ne\mathrm{VNP}$, \emph{SIAM J.\ Comput.} 40 (2011), 1179--1209. \bibitem[BN08]{BN08} I.~D.~Berg and I.~G.~Nikolaev, Quasilinearization and curvature of Aleksandrov spaces, \emph{Geom.\ Dedicata} 133 (2008), 195--218. \bibitem[BS83]{BS83} W.~Baur and V.~Strassen, The complexity of partial derivatives, \emph{Theoret.\ Comput.\ Sci.} 22 (1983), 317--330. \bibitem[BS83b]{BS83b} E.~Becker and N.~Schwartz, Zum Darstellungssatz von Kadison--Dubois, \emph{Arch.\ Math.\ (Basel)} 40 (1983), 421--428. \bibitem[BT72]{BT72} F.~Bruhat and J.~Tits, Groupes r\'eductifs sur un corps local: I. Donn\'ees radicielles valu\'ees, \emph{Publ.\ Math.\ IH\'ES} 41 (1972), 5--251. \bibitem[B\"ur00]{Bur00} P.~B\"urgisser, \emph{Completeness and reduction in algebraic complexity theory}, Springer, 2000. \bibitem[B\"ur00b]{Bur00b} P.~B\"urgisser, Cook's versus Valiant's hypothesis, \emph{Theoret.\ Comput.\ Sci.} 235 (2000), 71--88. \bibitem[B\"ur04]{Bur04} P.~B\"urgisser, The complexity of factors of multivariate polynomials, \emph{Found.\ Comput.\ Math.} 4 (2004), 369--396. \bibitem[B\"ur24]{Bur24} P.~B\"urgisser, Completeness classes in algebraic complexity theory, arXiv:2406.06217, 2024; to appear in \emph{Foundations of Computation and Machine Learning: The Work of Leslie Valiant} (R.~A.~Servedio, ed.), ACM Books. \bibitem[CCL10]{CCL10} J.-Y.~Cai, X.~Chen and D.~Li, Quadratic lower bound for permanent vs.\ determinant in any characteristic, \emph{Comput.\ Complexity} 19 (2010), 37--56. \bibitem[CDM16]{CDM16} F.~Capelli, A.~Durand and S.~Mengel, The arithmetic complexity of tensor contraction, \emph{Theory Comput.\ Syst.} 58 (2016), 506--527. \bibitem[CKRST20]{CKRST20} P.~Chatterjee, M.~Kumar, C.~Ramya, R.~Saptharishi and A.~Tengse, On the existence of algebraically natural proofs, \emph{FOCS 2020}; arXiv:2004.14147. \bibitem[CKSV22]{CKSV22} P.~Chatterjee, M.~Kumar, A.~She and B.~L.~Volk, Quadratic lower bounds for algebraic branching programs and formulas, \emph{Comput.\ Complexity} 31 (2022), article 8. \bibitem[Cur26]{Cur26} R.~Curticapean, Get permanent results faster by counting stars, arXiv:2611.03636, 2026. \bibitem[CVZ19]{CVZ19} M.~Christandl, P.~Vrana and J.~Zuiddam, Asymptotic tensor rank of graph tensors: beyond matrix multiplication, \emph{Comput.\ Complexity} 28 (2019), 57--111. \bibitem[CVZ23]{CVZ23} M.~Christandl, P.~Vrana and J.~Zuiddam, Universal points in the asymptotic spectrum of tensors, \emph{J.\ Amer.\ Math.\ Soc.} 36 (2023), 31--79. \bibitem[CZ19]{CZ19} M.~Christandl and J.~Zuiddam, Tensor surgery and tensor rank, \emph{Comput.\ Complexity} 28 (2019), 27--56. \bibitem[DDS21]{DDS21} P.~Dutta, P.~Dwivedi and N.~Saxena, Demystifying the border of depth-3 algebraic circuits, \emph{FOCS 2021}, 92--103. \bibitem[DHM02]{DHM02} C.~Damm, M.~Holzer and P.~McKenzie, The complexity of tensor calculus, \emph{Comput.\ Complexity} 11 (2002), 54--89. \bibitem[DJ02]{DJ02} J.~Dymara and T.~Januszkiewicz, Cohomology of buildings and of their automorphism groups, \emph{Invent.\ Math.} 150 (2002), 579--627. \bibitem[EGOW18]{EGOW18} K.~Efremenko, A.~Garg, R.~Oliveira and A.~Wigderson, Barriers for rank methods in arithmetic complexity, \emph{ITCS 2018}, LIPIcs 94, 1:1--1:19. \bibitem[Eis95]{Eis95} D.~Eisenbud, \emph{Commutative algebra with a view toward algebraic geometry}, Springer, 1995. \bibitem[EJ10]{EJ10} M.~Ershov and A.~Jaikin-Zapirain, Property (T) for noncommutative universal lattices, \emph{Invent.\ Math.} 179 (2010), 303--347. \bibitem[Enf69]{Enf69} P.~Enflo, On the nonexistence of uniform homeomorphisms between $L_p$-spaces, \emph{Ark.\ Mat.} 8 (1969), 103--105. \bibitem[FLMV05]{FLMV05} L.~Fortnow, R.~Lipton, D.~van Melkebeek and A.~Viglas, Time-space lower bounds for satisfiability, \emph{J.\ ACM} 52 (2005), 835--865. \bibitem[For24]{For24} M.~A.~Forbes, Low-depth algebraic circuit lower bounds over any field, \emph{CCC 2024}, LIPIcs 300, 31:1--31:16. \bibitem[FPV13]{FPV13} H.~Fournier, S.~Perifel and R.~de~Joannis~de~Verclos, On fixed-polynomial size circuit lower bounds for uniform polynomials in the sense of Valiant, \emph{Inform.\ and Comput.} 240 (2015), 31--41; preliminary version in MFCS 2013. \bibitem[Fri21]{Fri21} T.~Fritz, A generalization of Strassen's Positivstellensatz, \emph{Comm.\ Algebra} 49 (2021), 482--499. \bibitem[FSV18]{FSV18} M.~A.~Forbes, A.~Shpilka and B.~L.~Volk, Succinct hitting sets and barriers to proving lower bounds for algebraic circuits, \emph{Theory Comput.} 14 (2018), article 18. \bibitem[GKKS14]{GKKS14} A.~Gupta, P.~Kamath, N.~Kayal and R.~Saptharishi, Approaching the chasm at depth four, \emph{J.\ ACM} 61 (2014), article 33. \bibitem[GKKS16]{GKKS16} A.~Gupta, P.~Kamath, N.~Kayal and R.~Saptharishi, Arithmetic circuits: a chasm at depth 3, \emph{SIAM J.\ Comput.} 45 (2016), 1064--1079. \bibitem[GKSS17]{GKSS17} J.~A.~Grochow, M.~Kumar, M.~Saks and S.~Saraf, Towards an algebraic natural proofs barrier via polynomial identity testing, arXiv:1701.01717, 2017. \bibitem[Gly10]{Gly10} D.~G.~Glynn, The permanent of a square matrix, \emph{European J.\ Combin.} 31 (2010), 1887--1891. \bibitem[GMOW19]{GMOW19} A.~Garg, V.~Makam, R.~Oliveira and A.~Wigderson, More barriers for rank methods, via a ``numeric to symbolic'' transfer, \emph{FOCS 2019}, 824--844. \bibitem[GMQ16]{GMQ16} J.~A.~Grochow, K.~D.~Mulmuley and Y.~Qiao, Boundaries of VP and VNP, \emph{ICALP 2016}, LIPIcs 55, 34:1--34:14. \bibitem[Gro03]{Gro03} M.~Gromov, Random walk in random groups, \emph{Geom.\ Funct.\ Anal.} 13 (2003), 73--146. \bibitem[Gro15]{Gro15} J.~A.~Grochow, Unifying known lower bounds via geometric complexity theory, \emph{Comput.\ Complexity} 24 (2015), 393--475. \bibitem[Guo26]{Guo26} J.~Guo, An $n^2\log\log n$ lower bound for permanent circuits with valid division, arXiv:2609.29568, 2026. \bibitem[GS89]{GS89} Y.~Gurevich and S.~Shelah, Nearly linear time, \emph{Logic at Botik '89}, LNCS 363 (1989), 108--118. \bibitem[HPV77]{HPV77} J.~Hopcroft, W.~Paul and L.~Valiant, On time versus space, \emph{J.\ ACM} 24 (1977), 332--337. \bibitem[HR18]{HR18} G.~H.~Hardy and S.~Ramanujan, Asymptotic formulae in combinatory analysis, \emph{Proc.\ London Math.\ Soc.} (2) 17 (1918), 75--115. \bibitem[Hya79]{Hya79} L.~Hyafil, On the parallel evaluation of multivariate polynomials, \emph{SIAM J.\ Comput.} 8 (1979), 120--123. \bibitem[IN05]{IN05} H.~Izeki and S.~Nayatani, Combinatorial harmonic maps and discrete-group actions on Hadamard spaces, \emph{Geom.\ Dedicata} 114 (2005), 147--188. \bibitem[IP17]{IP17} C.~Ikenmeyer and G.~Panova, Rectangular Kronecker coefficients and plethysms in geometric complexity theory, \emph{Adv.\ Math.} 319 (2017), 40--66. \bibitem[IS22]{IS22} C.~Ikenmeyer and A.~Sanyal, A note on VNP-completeness and border complexity, \emph{Inform.\ Process.\ Lett.} 176 (2022), 106243. \bibitem[JS82]{JS82} M.~Jerrum and M.~Snir, Some exact complexity results for straight-line computations over semirings, \emph{J.\ ACM} 29 (1982), 874--897. \bibitem[Kal85]{Kal85} K.~A.~Kalorkoti, A lower bound for the formula size of rational functions, \emph{SIAM J.\ Comput.} 14 (1985), 678--687. \bibitem[Kas11]{Kas11} M.~Kassabov, Subspace arrangements and property T, \emph{Groups Geom.\ Dyn.} 5 (2011), 445--477. \bibitem[KI04]{KI04} V.~Kabanets and R.~Impagliazzo, Derandomizing polynomial identity tests means proving circuit lower bounds, \emph{Comput.\ Complexity} 13 (2004), 1--46. \bibitem[KLS10]{KLS10} R.~Koekoek, P.~A.~Lesky and R.~F.~Swarttouw, \emph{Hypergeometric orthogonal polynomials and their $q$-analogues}, Springer, 2010. \bibitem[KLSS17]{KLSS17} N.~Kayal, N.~Limaye, C.~Saha and S.~Srinivasan, An exponential lower bound for homogeneous depth four arithmetic formulas, \emph{SIAM J.\ Comput.} 46 (2017), 307--335. \bibitem[KO18]{KO18} T.~Kaufman and I.~Oppenheim, Construction of new local spectral high dimensional expanders, \emph{STOC 2018}, 773--786. \bibitem[KO23]{KO23} T.~Kaufman and I.~Oppenheim, High dimensional expanders and coset geometries, \emph{European J.\ Combin.} 111 (2023), 103696. \bibitem[Koi12]{Koi12} P.~Koiran, Arithmetic circuits: the chasm at depth four gets wider, \emph{Theoret.\ Comput.\ Sci.} 448 (2012), 56--65. \bibitem[KP09]{KP09} P.~Koiran and S.~Perifel, A superpolynomial lower bound on the size of uniform non-constant-depth threshold circuits for the permanent, \emph{CCC 2009}, 35--40. \bibitem[KRST22]{KRST22} M.~Kumar, C.~Ramya, R.~Saptharishi and A.~Tengse, If VNP is hard, then so are equations for it, \emph{STACS 2022}, LIPIcs 219, 44:1--44:13. \bibitem[KS17]{KS17} M.~Kumar and S.~Saraf, On the power of homogeneous depth 4 arithmetic circuits, \emph{SIAM J.\ Comput.} 46 (2017), 336--387. \bibitem[KS93]{KS93} N.~J.~Korevaar and R.~M.~Schoen, Sobolev spaces and harmonic maps for metric space targets, \emph{Comm.\ Anal.\ Geom.} 1 (1993), 561--659. \bibitem[Kum20]{Kum20} M.~Kumar, On the power of border of depth-3 arithmetic circuits, \emph{ACM Trans.\ Comput.\ Theory} 12 (2020), article 5. \bibitem[KV26]{KV26} M.~Kumar and B.~L.~Volk, A quadratic lower bound on determinantal complexity, arXiv:2609.34462, 2026. \bibitem[Lan17]{Lan17} J.~M.~Landsberg, \emph{Geometry and complexity theory}, Cambridge University Press, 2017. \bibitem[Lean]{Lean} L.~de Moura and S.~Ullrich, The Lean 4 theorem prover and programming language, \emph{CADE 28}, LNCS 12699 (2021), 625--635. \bibitem[LMR13]{LMR13} J.~M.~Landsberg, L.~Manivel and N.~Ressayre, Hypersurfaces with degenerate duals and the geometric complexity theory program, \emph{Comment.\ Math.\ Helv.} 88 (2013), 469--484. \bibitem[LST25]{LST25} N.~Limaye, S.~Srinivasan and S.~Tavenas, Superpolynomial lower bounds against low-depth algebraic circuits, \emph{J.\ ACM} 72 (2025), article 26; preliminary version in FOCS 2021. \bibitem[Mal03]{Mal03} G.~Malod, \emph{Polyn\^omes et coefficients}, Th\`ese, Universit\'e Claude Bernard Lyon~1, 2003. \bibitem[Mathlib]{Mathlib} The mathlib Community, The Lean mathematical library, \emph{CPP 2020}, 367--381. \bibitem[MN13]{MN13} M.~Mendel and A.~Naor, Spectral calculus and Lipschitz extension for barycentric metric spaces, \emph{Anal.\ Geom.\ Metr.\ Spaces} 1 (2013), 163--199. \bibitem[MP08]{MP08} G.~Malod and N.~Portier, Characterizing Valiant's algebraic complexity classes, \emph{J.\ Complexity} 24 (2008), 16--38. \bibitem[MR04]{MR04} T.~Mignon and N.~Ressayre, A quadratic bound for the determinant and permanent problem, \emph{Int.\ Math.\ Res.\ Not.} 2004, 4241--4253. \bibitem[MS01]{MS01} K.~D.~Mulmuley and M.~Sohoni, Geometric complexity theory I: an approach to the P vs.\ NP and related problems, \emph{SIAM J.\ Comput.} 31 (2001), 496--526. \bibitem[MS08]{MS08} K.~D.~Mulmuley and M.~Sohoni, Geometric complexity theory II: towards explicit obstructions for embeddings among class varieties, \emph{SIAM J.\ Comput.} 38 (2008), 1175--1206. \bibitem[MS08b]{MS08b} I.~L.~Markov and Y.~Shi, Simulating quantum computation by contracting tensor networks, \emph{SIAM J.\ Comput.} 38 (2008), 963--981. \bibitem[MW17]{MW17} C.~D.~Murray and R.~R.~Williams, Easiness amplification and uniform circuit lower bounds, \emph{CCC 2017}, LIPIcs 79, 8:1--8:21. \bibitem[Nis91]{Nis91} N.~Nisan, Lower bounds for non-commutative computation, \emph{STOC 1991}, 410--418. \bibitem[NS23]{NS23} E.~Nestoridi and A.~Sly, The random walk on upper triangular matrices over $\Z/m\Z$, \emph{Probab.\ Theory Related Fields} 187 (2023), 571--601. \bibitem[NW97]{NW97} N.~Nisan and A.~Wigderson, Lower bounds on arithmetic circuits via partial derivatives, \emph{Comput.\ Complexity} 6 (1996/97), 217--234. \bibitem[OAI26]{OAI26} OpenAI, manuscript on the border determinantal complexity of the permanent, with a Lean development, September 24, 2026; see \cite{Guo26,She26b}. \bibitem[Opp17]{Opp17} I.~Oppenheim, Averaged projections, angles between groups and strengthening of Banach property (T), \emph{Math.\ Ann.} 367 (2017), 623--666. \bibitem[Or\'us14]{Oru14} R.~Or\'us, A practical introduction to tensor networks: matrix product states and projected entangled pair states, \emph{Ann.\ Physics} 349 (2014), 117--158. \bibitem[PPST83]{PPST83} W.~J.~Paul, N.~Pippenger, E.~Szemer\'edi and W.~T.~Trotter, On determinism versus non-determinism and related problems, \emph{FOCS 1983}, 429--438. \bibitem[PS13]{PS13} Y.~Peres and A.~Sly, Mixing of the upper triangular matrix walk, \emph{Probab.\ Theory Related Fields} 156 (2013), 581--591. \bibitem[Raz09]{Raz09} R.~Raz, Multi-linear formulas for permanent and determinant are of super-polynomial size, \emph{J.\ ACM} 56 (2009), article 8. \bibitem[Raz10]{Raz10} R.~Raz, Elusive functions and lower bounds for arithmetic circuits, \emph{Theory Comput.} 6 (2010), 135--177. \bibitem[Raz13]{Raz13} R.~Raz, Tensor-rank and lower bounds for arithmetic formulas, \emph{J.\ ACM} 60 (2013), article 40. \bibitem[Raz26]{Raz26} R.~Raz, Polynomial lower bounds for arithmetic circuits over non-commutative rings, ECCC TR26-061, arXiv:2604.22006, 2026. \bibitem[Res68]{Res68} Yu.~G.~Reshetnyak, Inextensible mappings in a space of curvature no greater than $K$, \emph{Siberian Math.\ J.} 9 (1968), 683--689. \bibitem[Rob91]{Rob91} J.~M.~Robson, An $O(T\log T)$ reduction from RAM computations to satisfiability, \emph{Theoret.\ Comput.\ Sci.} 82 (1991), 141--149. \bibitem[RR97]{RR97} A.~A.~Razborov and S.~Rudich, Natural proofs, \emph{J.\ Comput.\ System Sci.} 55 (1997), 24--35. \bibitem[Rys63]{Rys63} H.~J.~Ryser, \emph{Combinatorial mathematics}, Carus Mathematical Monographs~14, Mathematical Association of America, 1963. \bibitem[RZ21]{RZ21} R.~Robere and J.~Zuiddam, Amortized circuit complexity, formal complexity measures, and catalytic algorithms, \emph{FOCS 2021}, 759--769. \bibitem[Sap21]{Sap21} R.~Saptharishi, \emph{A survey of lower bounds in arithmetic circuit complexity}, version 9.0.3, 2021, \url{https://github.com/dasarpmar/lowerbounds-survey}. \bibitem[Sat09]{Sat09} T.~Sato, An alternative proof of Berg and Nikolaev's characterization of CAT(0)-spaces via quadrilateral inequality, \emph{Arch.\ Math.\ (Basel)} 93 (2009), 487--490. \bibitem[Sch78]{Sch78} C.~P.~Schnorr, Satisfiability is quasilinear complete in NQL, \emph{J.\ ACM} 25 (1978), 136--145. \bibitem[Sch80]{Sch80} A.~Sch\"onhage, Storage modification machines, \emph{SIAM J.\ Comput.} 9 (1980), 490--508. \bibitem[She26]{She26} K.~Sheshadri, A fully Lean-verified quadratic lower bound on the border determinantal complexity of $x_1^n+\dots+x_n^n$ over $\CC$, including the symmetric and exact models, arXiv:2606.13628, 2026. \bibitem[She26b]{She26b} K.~Sheshadri, Cubic lower bounds for the permanent in odd characteristic, for Pfaffian representations, and for polynomial entries, arXiv:2610.40484, 2026. \bibitem[Sto95]{Sto95} R.~Stong, Random walks on the groups of upper triangular matrices, \emph{Ann.\ Probab.} 23 (1995), 1939--1949. \bibitem[Str73]{Str73} V.~Strassen, Die Berechnungskomplexit\"at von elementarsymmetrischen Funktionen und von Interpolationskoeffizienten, \emph{Numer.\ Math.} 20 (1973), 238--251. \bibitem[Str87]{Str87} V.~Strassen, Relative bilinear complexity and matrix multiplication, \emph{J.\ reine angew.\ Math.} 375/376 (1987), 406--443. \bibitem[Str88]{Str88} V.~Strassen, The asymptotic spectrum of tensors, \emph{J.\ reine angew.\ Math.} 384 (1988), 102--152. \bibitem[Str91]{Str91} V.~Strassen, Degeneration and complexity of bilinear maps: some asymptotic spectra, \emph{J.\ reine angew.\ Math.} 413 (1991), 127--180. \bibitem[Stu03]{Stu03} K.-T.~Sturm, Probability measures on metric spaces of nonpositive curvature, \emph{Contemp.\ Math.} 338 (2003), 357--390. \bibitem[SW14]{SW14} R.~Santhanam and R.~Williams, On uniformity and circuit lower bounds, \emph{Comput.\ Complexity} 23 (2014), 177--205. \bibitem[SY10]{SY10} A.~Shpilka and A.~Yehudayoff, Arithmetic circuits: a survey of recent results and open questions, \emph{Found.\ Trends Theor.\ Comput.\ Sci.} 5 (2010), 207--388. \bibitem[Tav15]{Tav15} S.~Tavenas, Improved bounds for reduction to depth 4 and depth 3, \emph{Inform.\ and Comput.} 240 (2015), 2--11. \bibitem[Val79]{Val79} L.~G.~Valiant, Completeness classes in algebra, \emph{STOC 1979}, 249--261. \bibitem[Val79b]{Val79b} L.~G.~Valiant, The complexity of computing the permanent, \emph{Theoret.\ Comput.\ Sci.} 8 (1979), 189--201. \bibitem[Val82]{Val82} L.~G.~Valiant, Reducibility by algebraic projections, in \emph{Logic and Algorithmic}, Monogr.\ Enseign.\ Math.~30 (1982), 365--380. \bibitem[VC17]{VC17} P.~Vrana and M.~Christandl, Entanglement distillation from Greenberger--Horne--Zeilinger shares, \emph{Comm.\ Math.\ Phys.} 352 (2017), 621--627. \bibitem[Vin91]{Vin91} V.~Vinay, Counting auxiliary pushdown automata and semi-unbounded arithmetic circuits, \emph{Structure in Complexity Theory 1991}, 270--284. \bibitem[vM07]{vM07} D.~van Melkebeek, A survey of lower bounds for satisfiability and related problems, \emph{Found.\ Trends Theor.\ Comput.\ Sci.} 2 (2007), 197--303. \bibitem[Vra22]{Vra21} P.~Vrana, A generalization of Strassen's theorem on preordered semirings, \emph{Order} 39 (2022), 209--228. \bibitem[VSBR83]{VSBR83} L.~G.~Valiant, S.~Skyum, S.~Berkowitz and C.~Rackoff, Fast parallel computation of polynomials using few processors, \emph{SIAM J.\ Comput.} 12 (1983), 641--644. \bibitem[Wan00]{Wan00} M.-T.~Wang, Generalized harmonic maps and representations of discrete groups, \emph{Comm.\ Anal.\ Geom.} 8 (2000), 545--563. \bibitem[Wil25]{Wil25} R.~R.~Williams, Simulating time with square-root space, \emph{STOC 2025}, 13--23. \bibitem[WZ26]{WZ26} A.~Wigderson and J.~Zuiddam, Asymptotic spectra: theory, applications, and extensions, \emph{Bull.\ Amer.\ Math.\ Soc.} 63 (2026), 199--331. \bibitem[Yab15]{Yab15} A.~Yabe, Bi-polynomial rank and determinantal complexity, arXiv:1504.00151, 2015. \bibitem[Yeh19]{Yeh19} A.~Yehudayoff, Separating monotone VP and VNP, \emph{STOC 2019}, 425--429. \bibitem[Zui19]{Zui19} J.~Zuiddam, The asymptotic spectrum of graphs and the Shannon capacity, \emph{Combinatorica} 39 (2019), 1173--1184. \end{thebibliography} } \clearpage \appendix \section*{Appendix: the full proof} The appendices give the written proof of the results of Section~\ref{sec:intro}, in the order of the overview in Section~\ref{sec:outline}. Appendices~\ref{sec:prices} to~\ref{sec:scales} prove the lower bound for the permanent over the real numbers, and Appendix~\ref{sec:proofs} assembles it. Appendix~\ref{app:fields} passes to all fields and to the Hamiltonian cycle polynomial, and Appendix~\ref{app:approx} to approximate computation. Appendix~\ref{app:cat} proves the standard facts on CAT(0) spaces that are used, Appendix~\ref{app:glossary} lists the terms coined here, and Appendix~\ref{app:lean} describes the Lean development. Appendices~\ref{sec:prices} to~\ref{sec:proofs} are the sections of the proof, and the text refers to them as ``Section~\ref{sec:prices}'' to ``Section~\ref{sec:proofs}''. Every numbered statement of the appendices except Remark~\ref{rem:det} has a Lean theorem, whose name is formed from the kind of the statement and a short name, such as \lean{thm\_alt} for Theorem~\ref{thm:alt}; Table~\ref{tab:lean} lists these names. The printed proofs differ in completeness. Those of Sections~\ref{sec:prices} to~\ref{sec:ident} and of Appendix~\ref{app:cat}, and the deduction of Theorem~\ref{thm:main} in Section~\ref{sec:proofs}, are meant to be complete, if terse. The proofs of Proposition~\ref{prop:universal}, Theorem~\ref{thm:tree}(d),~(e), Theorem~\ref{thm:onecut} and Proposition~\ref{prop:approx-acc} describe machines and programs and account for their sizes and running times. That these do exactly what is claimed can be verified only in the Lean development, and each of these four statements is followed by a formalization note that says so. Consequently the contracting case, and with it every main result, rests on Lean at these points. Table~\ref{tab:map} shows how the sections depend on each other. Section~\ref{sec:flat} treats the flat case completely, and nothing after it is needed for that case except Section~\ref{sec:proofs}. The proof of the duality theorem in Section~\ref{sec:prices} can be skipped at a first reading, since the theorem is used only in Section~\ref{sec:ident}. The standard facts on CAT(0) spaces that Section~\ref{sec:cat} collects are proved in Appendix~\ref{app:cat}. The main terms that are introduced in this paper or used in a special sense are listed in Appendix~\ref{app:glossary}. \begin{table}[b] \footnotesize \begin{tabular}{@{}lp{.5\textwidth}ll@{}} \hline Section & what is proved & uses & case\\ \hline \ref{sec:prices} & spectral points and prices; duality; random points & -- & both\\ \ref{sec:cross} & the inequality \eqref{eq:Q} for two crossing wires & \ref{sec:prices} & both\\ \ref{sec:cat} & prices satisfy the inequality of Bruhat and Tits & \ref{sec:prices}, \ref{sec:cross} & both\\ \ref{sec:alt} & the flat case or the contracting case holds & \ref{sec:cat} & both\\ \ref{sec:flat} & lower bounds for $f_{k,\ell}$ and for the permanent & \ref{sec:prices}, \ref{sec:cat}, \ref{sec:alt} & flat\\ \ref{sec:group} & a Poincar\'e inequality on unitriangular groups & \ref{sec:cat}, \ref{sec:alt} & contracting\\ \ref{sec:ident} & rerouting laws & \ref{sec:prices}, \ref{sec:group} & contracting\\ \ref{sec:tower} & every network is a sum of tree networks & \ref{sec:ident} & contracting\\ \ref{sec:machines} & programs and tape automata; runs as networks & \ref{sec:ident}, \ref{sec:tower} & contracting\\ \ref{sec:cut} & computations can be cut into pieces & \ref{sec:tower}, \ref{sec:machines} & contracting\\ \ref{sec:scales} & small circuits give accelerators; there are none & \ref{sec:flat}, \ref{sec:ident}, \ref{sec:machines}, \ref{sec:cut} & contracting\\ \ref{sec:proofs} & Theorems~\ref{thm:main}, \ref{thm:simple}, Corollary~\ref{cor:classes} & \ref{sec:alt}, \ref{sec:flat}, \ref{sec:scales} & both\\ \ref{app:fields} & all fields; the Hamiltonian cycle polynomial & \ref{sec:alt}, \ref{sec:flat}, \ref{sec:scales} & both\\ \ref{app:approx} & approximate computation & \ref{sec:flat}, \ref{sec:scales}, \ref{app:fields} & both\\ \ref{app:cat} & proofs of the facts on CAT(0) spaces in Lemma~\ref{lem:toolkit} & \ref{sec:cat} & both\\ \hline \end{tabular} \medskip \caption{Map of the proof. Of Section~\ref{sec:ident}, Sections~\ref{sec:machines} and~\ref{sec:scales} use only the ring~$A$; of Section~\ref{sec:tower}, Section~\ref{sec:machines} uses only the notion of a network.}\label{tab:map} \end{table} \subsubsection*{Notation and conventions} Recall that $\log$ is the logarithm to the base two. We write $\ln$ for the natural logarithm, and for an integer $n\ge1$ we let $\lg n=\floor{\log n}+1$ be the number of its binary digits. The set $\N$ contains $0$, $[k]=\{1,\dots,k\}$, and for a condition $P$ the bracket $[P]$ is $1$ if $P$ holds and $0$ otherwise. The letters $c>0$ and $C$ denote a small and a large constant whose values may differ from one statement to the next, and inside a proof a constant taken from another statement carries the name of that statement as a subscript. Constants with names of their own, such as $\kappa$ (the constant of Lemma~\ref{lem:count}), $\mu$, $C_0$, $C_1$, $h$, $b$ and $H$, keep their values once they are chosen, and from Section~\ref{sec:ident} on the constants in $O(\cdot)$ and the word ``large'' depend on these choices only. The letters $\Lambda$, $N$ and $s$ are reused with local meanings, each introduced where it is used. In Sections~\ref{sec:prices} and~\ref{sec:flat} the letter $c$ also denotes the factor by which a pseudometric $d_\phi$ is multiplied in order to approximate given distances. In Sections~\ref{sec:prices} to~\ref{sec:proofs} the field of coefficients is $\kk=\RR$, of which we use only that it is a field in which $2\ne0$ (Appendix~\ref{app:fields} treats all fields), and we write $\kk$ so that Appendices~\ref{app:fields} and~\ref{app:approx} can quote the statements. Tensors that are restrictions of each other are identified. We write $\abs{xy}$, or $\abs{x,y}$ when the points are given by expressions, for the distance of $x$ and $y$ in the price under discussion, and $\norm\cdot$ for the Euclidean norm and for the two norms of loads in Sections~\ref{sec:ident} and~\ref{sec:tower}. Single bars also denote cardinalities, lengths and sizes. Finally, $\E$ is an expectation, and with a subscript, as in $\E_g$, it is the uniform average over a finite set. \section{Tensors, spectral points and prices}\label{sec:prices} In this section we compare tensors shared by finitely many parties by restriction, as in Strassen's theory of the asymptotic spectrum \cite{Str87,Str88}. A spectral point measures such tensors compatibly with restrictions, products and sums, it induces a pseudometric on the parties, and the prices are the limits of multiples of these pseudometrics. Lemma~\ref{lem:hubs} is our link to circuits, Theorem~\ref{thm:duality} is used only in Section~\ref{sec:ident}, and Propositions~\ref{prop:extend} and~\ref{prop:random} add new points to a price. Section~\ref{ssec:gauge} and the proofs in Sections~\ref{ssec:duality} and~\ref{ssec:extend} rest on Zorn's lemma and may be skipped at a first reading. Of the field of coefficients $\kk=\RR$ we use only that it is a field in which $2\ne0$, and $2\ne0$ is needed only for the permanent. \subsection{Tensors, restrictions and covers}\label{ssec:tensors} Let $I$ be a finite nonempty set, whose elements we call \emph{parties}, as in quantum information theory. A \emph{tensor} on $I$ is an array with entries in $\kk$ that has one index for each party, which runs through a finite set, the \emph{index set} at this party. A tensor may be zero. Following Strassen, we say that $s$ is a \emph{restriction} of $t$ if $s=(\bigotimes_pA_p)\,t$ for some linear maps $A_p$, one for each party. We think of the parties as players who share the state $t$ and may each process their own index. We say that $s$ is \emph{covered} by $t_1,\dots,t_r$, and that these form a \emph{cover} of $s$, if $s=s_1+\dots+s_r$ with every $s_j$ a restriction of $t_j$, and we measure a cover by the number $r$ of its tensors. In the \emph{product} $st$ each party holds its index of $s$ and its index of~$t$, and $1$ denotes the tensor all of whose index sets have one element and whose entry is~$1$. Tensors that are restrictions of each other are identified, so that the product is commutative and associative, with unit~$1$. Every nonzero tensor has $1$ as a restriction, and every tensor is covered by finitely many copies of~$1$. For a map $\pi:I\to J$ of finite sets the \emph{push-forward} $\pi t$ of a tensor $t$ on $I$ is the tensor on $J$ in which the party $\pi(p)$ holds the index of~$p$, and a party outside the image holds an index set with one element. When $J$ has two elements, $\pi t$ is a matrix, a \emph{flattening} of~$t$. Push-forward commutes with products and with the composition of maps, and it sends $1$ to $1$, restrictions to restrictions and covers to covers. In particular, a tensor on a subset $P\subseteq I$ is also a tensor on~$I$. For a nonempty $P\subseteq I$ and an integer $q\ge1$ the \emph{unit tensor} of size $q$ on $P$ is $\ut qP=\sum_{i=1}^q\bigotimes_{p\in P}e_i$, where $e_1,\dots,e_q$ is the standard basis of $\kk^q$. For parties $u\ne v$ we call $\ut q{uv}=\ut q{\{u,v\}}$ the \emph{wire} of dimension $q$ between $u$ and $v$, and we put $\ut q{uu}=1$. A product of wires is a \emph{graph tensor}. In the literature on graph tensors \cite{CVZ19,CZ19,VC17} a wire is an EPR pair of level~$q$, and in tensor networks \cite{Oru14} it is a bond of dimension~$q$. Since $\ut qP\,\ut{q'}P=\ut{qq'}P$, a wire of dimension $2^n$ is a product of $n$ wires of dimension two, and we say that it carries $n$ bits. \begin{example*} On two parties $u,v$ a tensor is a matrix, two matrices are restrictions of each other if and only if they have the same rank, and the matrix of rank $q\ge1$ is the wire $\ut q{uv}$. On three parties the restrictions of $\ut q{uvw}$ are the tensors of tensor rank at most~$q$, and $\ut q{uv}\ut q{vw}\ut q{uw}$ is the tensor of the multiplication of $q\times q$ matrices. \end{example*} \subsection{Spectral points, wires and hubs}\label{ssec:spectral} We measure tensors by functions that are compatible with the three notions just introduced. \begin{definition}\label{def:spectral} A \emph{spectral point} on $I$ is a function $\phi\ge0$ on the tensors on $I$ such that $\phi(1)=1$, such that $\phi(st)=\phi(s)\phi(t)$ for all tensors $s$ and $t$, and such that $\phi(s)\le\sum_{j=1}^r\phi(t_j)$ whenever $s$ is covered by $t_1,\dots,t_r$. \end{definition} For $r=1$ the last condition says that $\phi$ is monotone under restriction, and for $r=0$ it says that $\phi(0)=0$. Since $1$ is a restriction of every nonzero tensor, $\phi(t)\ge1$ for every $t\ne0$. Examples are the function that is $1$ on all nonzero tensors and the rank of a flattening. This class is larger than Strassen's asymptotic spectrum \cite{Str88}, whose points are in addition additive under direct sums and normalized on unit tensors, and for example $\phi^a$ is again a spectral point for $00$ let $c_\delta$ be a constant with $p(t_j^a)\le c_\delta(r(t_j)+\delta)^a$ for all $j$ and all $a\ge0$. A word $w$ in which $t_j$ occurs $a_j$ times satisfies $p(w)\le\prod_jp(t_j^{a_j})\le c_\delta^{\,l}\prod_j(r(t_j)+\delta)^{a_j}$, and over all words of length $n$ these bounds add up to $c_\delta^{\,l}\bigl(\sum_j(r(t_j)+\delta)\bigr)^n$. As $\delta$ was arbitrary, this gives $r(s)\le\sum_jr(t_j)$. If $p$ respects $(x,y,c)$, then $p(t^nx^n)\le c^np(t^ny^n)$, so $r$ respects this triple as well. By minimality $r=p$, that is, $p(t^n)=p(t)^n$. Let $f$ be a tensor with $p(f)>0$ and let $p_f(t)=\inf_{n\ge0}p(tf^n)/p(f)^n$, where the sequence is nonincreasing, so that $p_f\le p$. This is again such an upper functional, because $p_f(1)=1$ by the previous step, submultiplicativity follows from $p(stf^{a+b})\le p(sf^a)\,p(tf^b)$, and the two other properties pass to the limit. By minimality $p_f=p$, so that $p(t)\le p(tf)/p(f)$ and hence $p(tf)=p(t)p(f)$. If $p(f)=0$, then $p(tf)=0$ as well, so $p$ is multiplicative. \end{proof} \subsection{Duality}\label{ssec:duality} The next theorem is a form of Strassen's duality theorem \cite{Str88}, for the larger class of spectral points of Definition~\ref{def:spectral}. \begin{theorem}[duality]\label{thm:duality} Let $C\ne0$ and $A_1,\dots,A_r$ be tensors on $I$, not all $A_\beta$ zero, and suppose that every spectral point $\phi$ on $I$ satisfies $\phi(C)\le\max_\beta\phi(A_\beta)$. Then for every $\eps>0$ and all large $N$ the power $C^N$ is covered by at most $2^{\eps N}$ tensors, each of which is a product of $N$ factors from $A_1,\dots,A_r$. \end{theorem} Informally, if no spectral point detects that $C$ is larger than all the $A_\beta$, then $C^N$ can be made from products of $N$ of the $A_\beta$ with only $2^{\eps N}$ summands. All identities of Sections~\ref{sec:ident} to~\ref{sec:cut} arise in this way, and none of them is written down explicitly. For background see \cite{Str87,BS83b,Zui19,Fri21,Vra21} and the survey \cite{WZ26}, and for an earlier use of duality in circuit complexity see Robere and Zuiddam \cite{RZ21}. \begin{proof} We apply Proposition~\ref{prop:gauge} to a function $p$ that is defined by covers in which some factors $C$ have been exchanged for factors $A_\beta$. For $v\in\N^r$ write $A^v=\prod_\beta A_\beta^{v_\beta}$ and $\abs v=\sum_\beta v_\beta$, and let $\eta=2^{-\eps/2}$. A \emph{certificate} of level $k\ge0$ for a tensor $t$ is a cover of $tC^k$ by products $C^{u_j}A^{v_j}$ with $u_j+\abs{v_j}=k$, and its \emph{weight} $\sum_j\eta^{\abs{v_j}}$ decreases with every exchange of a $C$ for an $A_\beta$. Let $p(t)$ be the infimum of the weights of all certificates for~$t$. Certificates can be multiplied, and they can be raised to a common level, by multiplying all terms by $C$, and then added along covers. As the certificate of level $0$ with the single term $1$ gives $p(1)\le1$, and copies of $1$ give every tensor a certificate of level $0$, the function $p$ is an upper functional if $p(1)\ge1$. Suppose that this is so. Multiplying a certificate for $tC$ by $A_\beta$ gives a certificate for $tA_\beta$ of one level higher and of $\eta$ times the weight, so $p$ respects the triples $(A_\beta,C,\eta)$. By Proposition~\ref{prop:gauge} some spectral point $\phi$ satisfies $\phi(A_\beta)\le\eta\,\phi(C)$ for all $\beta$, which contradicts the hypothesis, as $\phi(C)\ge1$. Hence $p(1)<1$, and $1$ has a certificate of some level $k$ and of weight less than $1$. Then $k\ge1$, and every term has $v_j\ne0$, since its weight alone would be $1$ otherwise, so this certificate is a cover of $C^k$ by terms in which at least one $C$ has been exchanged. Starting from $C^N$, replace $C^k$ by this cover as long as some term contains it. The total weight never increases, so it stays at most $1$, and each final term has fewer than $k$ factors $C$ and, having $N$ factors in all, weight at least $\eta^N$. Hence there are at most $\eta^{-N}$ terms. Each remaining factor $C$ is covered by a fixed number $c$ of copies of a nonzero $A_\beta$, and replacing it in this way gives at most $c^k\eta^{-N}\le2^{\eps N}$ terms for large~$N$. \end{proof} \subsection{Extension and random points}\label{ssec:extend} In Sections~\ref{sec:cat} and~\ref{sec:flat} we add new points to a price by placing each of them at one of the old points, chosen at random, and Proposition~\ref{prop:random} below provides an enlarged price in which distances are at most the expected distances of these positions. It follows from the next proposition for spectral points, in which $I$ is the set of old parties, $I'$ is the enlarged set, the maps $\pi_i$ are the possible positions of the new parties and the $\theta_i$ are their probabilities. \begin{proposition}[extension]\label{prop:extend} Let $\iota:I\to I'$ and $\pi_i:I'\to I$, for $i=1,\dots,n$, be maps of finite sets with $\pi_i\iota=\mathrm{id}$ for all $i$, and let $\theta_1,\dots,\theta_n\ge0$ add up to $1$. Let $\phi$ be a spectral point on $I$ and let $C$ be a tensor on $I$. Then there is a spectral point $\phi'$ on $I'$ with \[ \phi'(t)\le\prod_i\phi(\pi_it)^{\theta_i}\ \text{ for all tensors $t$ on $I'$},\qquad\phi'(\iota C)=\phi(C). \] \end{proposition} \begin{proof} We turn the product on the right, which we call $f(t)$, into an upper functional by an infimum over covers. The function $f$ is multiplicative and monotone under restriction. Let $p(t)$ be the infimum of $\sum_jf(b_j)$ over all covers $(b_j)$ of~$t$. Suppose that $\iota A=\sum_js_j$ for a tensor $A$ on $I$, where each $s_j$ is a restriction of $b_j$. As $\iota A$ has index sets with one element outside $\iota(I)$, so has every $s_j$, and therefore $s_j=\iota a_j$ with $\sum_ja_j=A$. Push-forward preserves restrictions, so $a_j=\pi_is_j$ is a restriction of $\pi_ib_j$ for every $i$, and hence $\phi(A)\le\sum_j\phi(a_j)\le\sum_jf(b_j)$. On the other hand $p(\iota A)\le f(\iota A)=\phi(A)$, as $\pi_i\iota=\mathrm{id}$. With $A=1$ this shows that $p(1)=1$, so $p$ is an upper functional with $p\le f$ and with $p(\iota A)=\phi(A)$ for all~$A$. If $C=0$, Proposition~\ref{prop:gauge} finishes the proof. Otherwise let $c=\phi(C)$ and $q(t)=\inf_{m\ge0}p(t\,\iota C^m)/c^m$. As $p(\iota C^m)=c^m$, this is an upper functional below $p$ that respects the triple $(1,\iota C,1/c)$, as in the last step of the proof of Proposition~\ref{prop:gauge}. By Proposition~\ref{prop:gauge} there is a spectral point $\phi'$ below $q$ that respects this triple, and it satisfies $\phi'\le p\le f$ and $c\le\phi'(\iota C)\le f(\iota C)=c$. \end{proof} We now state the consequence for prices. \begin{proposition}[random points]\label{prop:random} Let $w$ be a price on $Y$, let $Q$ be a set disjoint from $Y$, and let $\sigma$ be a random map $Y\cup Q\to Y$ that is the identity on $Y$, such that each $\sigma(o)$ has only finitely many values. Then there is a price on $Y\cup Q$ that extends $w$ and satisfies $\abs{oo'}\le\E\,\abs{\sigma(o)\sigma(o')}$ for all $o,o'\in Y\cup Q$. \end{proposition} \begin{proof} We reduce to finite sets by compactness and to a price of the form $d_\phi$ by a limit, and then apply Proposition~\ref{prop:extend}. It is enough to find, for all finite sets $Y_0\subseteq Y$ and $Q_0\subseteq Q$ such that $\sigma$ maps $Q_0$ into $Y_0$, a price on $Y_0\cup Q_0$ with the two properties, because these prices form compact sets, so that one price on $Y\cup Q$ then works for all of them at once. Now let $Y$ and $Q$ be finite, and let $\sigma$ take the values $\pi_i$ with probabilities $\theta_i$. Passing to a limit, we may assume that $w=c\,d_\phi$, and then that $c=1$ by homogeneity. Let $C$ be the product of all wires $\ut2{uv}$ with $u,v\in Y$, and apply Proposition~\ref{prop:extend} to the inclusion of $Y$ in $Y\cup Q$ and the maps~$\pi_i$. For every pair $e$ of elements of $Y\cup Q$ the first condition, applied to $\ut2e$, gives $d_{\phi'}(e)\le\sum_i\theta_i\,d_\phi(\pi_ie)$, which is the expected distance. On $Y$ this reads $d_{\phi'}\le d_\phi$, and by the second condition the sums over all pairs in $Y$ are equal, so equality holds for each pair. \end{proof} \section{An identity and an inequality for two crossing wires}\label{sec:cross} This section proves an identity and an inequality for four parties $a,b,c,d$ and two wires that \emph{cross} (Figure~\ref{fig:cross}), one between $a$ and $c$ and one between $b$ and $d$. The crossing identity (Proposition~\ref{prop:identity}) writes their product as a sum of tensors $\Psi_N$, each of which is a sum of few products with respect to both partitions $\{a,d\}\mid\{b,c\}$ and $\{a,b\}\mid\{c,d\}$. By Lemma~\ref{lem:hubs} a spectral point turns this into the crossing inequality between distances in a price (Proposition~\ref{prop:crossing}), with its consequence~\eqref{eq:Q}. Only \eqref{eq:Q} is used later, and only in the proof of Lemma~\ref{lem:means}, so that the proof of the identity in Section~\ref{sec:identity-proof} may be skipped at first reading. \subsection{Frobenius symbols}\label{sec:symbols} A \emph{symbol} is a pair $(I,J)$ of finite subsets of $\N$ with $\abs I=\abs J$. The number $\abs I$ is the \emph{size} of the symbol, and $\sum_{i\in I}(2i+1)+\sum_{j\in J}(2j+1)$ is its \emph{energy}. In this section the letters $I$ and $J$ always denote such subsets of $\N$, and not sets of parties. The symbols of energy $2n$ are the Frobenius symbols of the partitions of $n$ \cite{And84}, which explains the name, but we use no property of partitions. For an integer $E\ge0$ let $P(E)$ be the number of symbols of energy at most $E$. The following lemma says that $\ln P(E)$ grows like $\kappa\sqrt E$, with an upper bound that holds for every $E$. \begin{lemma}[number of symbols]\label{lem:count} There is $\kappa>0$ with $\ln P(E)\le\kappa\sqrt E$ for all integers $E\ge0$ and $\ln P(E)\ge(\kappa-o(1))\sqrt E$ for $E\to\infty$. \end{lemma} \begin{proof} We first show that $P(k^2E)\ge P(E)^k$, by interleaving $k$ symbols $(I_r,J_r)$, $0\le r0$, \begin{equation}\label{eq:Q} \begin{split} 2(p\abs{xv}+q\abs{yu})\le{}&p(\abs{xo}+\abs{vo'}+\abs{xw}+\abs{vw'})+q(\abs{yo}+\abs{uo'}+\abs{uw}+\abs{yw'})\\ &{}+t_0(p^2+q^2)+(\abs{oo'}^2+\abs{ww'}^2)/(2t_0) . \end{split} \end{equation} \end{proposition} \begin{proof} We reduce the statement to the metric $d_\phi$ of a spectral point $\phi$, and apply $\phi$ to the crossing identity for two large classes of symbols. We pull the price back to eight distinct points, which covers coincidences. Both bounds are homogeneous in the distances and the pairs $(r,r')$ lie in a compact set, so that the bounds pass to limits, and it suffices to treat $d_\phi$ for a spectral point $\phi$ on the eight points. For a large integer $n_0$ let $E_1=\floor{p^2n_0}$ and $E_2=\floor{q^2n_0}$. By the pigeonhole principle there is, for $i=1,2$, a class $\Sigma_i$ as in Section~\ref{sec:identity}, of some size $n_i$ and some energy $e_i\le E_i$, that contains at least the fraction $(E_i+1)^{-2}$, and of course at most all, of the symbols of energy at most $E_i$. So, in units of $\kappa\sqrt{n_0}$, the logarithms of $\abs{\Sigma_1}$ and $\abs{\Sigma_2}$ are $p+o(1)$ and $q+o(1)$ by Lemma~\ref{lem:count}. We identify $a,c,b,d$ with $x,v,y,u$, and write $\abs{xv}$ for $d_\phi(x,v)$. The product of the two wires is covered by the $\Theta+1$ tensors $\Psi_N$ of Proposition~\ref{prop:identity}(a), the spectral point $\phi$ is subadditive on covers, and $\ln(\Theta+1)=o(\sqrt{n_0})$. Hence, by Lemma~\ref{lem:exponents}, some $N$ has $\ln\phi(\Psi_N)\ge(p\abs{xv}+q\abs{yu}-o(1))\kappa\sqrt{n_0}$. Define $r,r'\ge0$ by $r^2=(\Theta-N)/n_0$ and $r'^2=N/n_0$, so that $r^2+r'^2=\Theta/n_0\le2(p^2+q^2)$. In the same units the logarithm of the number of products in (c) is at most $r+o(1)$, and that in (b) is at most $r'+o(1)$, by the upper bound of Lemma~\ref{lem:count}. Lemma~\ref{lem:hubs}, with the hubs $o,o'$ for (c) and $w,w'$ for (b), bounds $\phi(\Psi_N)$ in both ways. A limit of $(r,r')$ along a subsequence of the $n_0$ proves the first statement. Finally we add the two bounds and use $r\lambda\le\frac{t_0}2r^2+\lambda^2/(2t_0)$, and the same with $r'$, to obtain \eqref{eq:Q}. \end{proof} \section{Prices have nonpositive curvature}\label{sec:cat} In this section we show that every price satisfies the inequality of Bruhat and Tits that characterizes nonpositive curvature (Theorem~\ref{thm:cn}), and that it is the pull-back of the metric of a complete CAT(0) space whose metric is again a price (Proposition~\ref{prop:space}). The only properties of prices that we use are Proposition~\ref{prop:random}, the inequality \eqref{eq:Q}, and the fact that pull-backs, nonnegative multiples and limits of prices are prices. \subsection{The curvature bound and the plan of its proof}\label{sec:cn-plan} The main result of this section is the following. \begin{theorem}[curvature bound for prices]\label{thm:cn} Let $x,v,m,z$ be points of a price with $\abs{xm},\abs{vm}\le D$ and $\abs{xv}=2D$. Then \begin{equation}\label{eq:cn} \abs{zm}^2\le\tfrac12\abs{zx}^2+\tfrac12\abs{zv}^2-D^2 . \end{equation} \end{theorem} The hypotheses say that $m$ is a midpoint of $x$ and $v$ (in this section $m$ denotes a point, not the size of a matrix). In the Euclidean plane \eqref{eq:cn} is the formula for the length of a median, and in general it is the CN inequality of Bruhat and Tits \cite{BT72}, \cite[Exercise~II.1.9(1)(c)]{BH99}. Throughout the proof we write $\Gamma=\abs{mz}^2-\frac12\abs{xz}^2-\frac12\abs{vz}^2$, so that the claim is $\Gamma\le-D^2$. The plan of the proof is as follows. If a price on $\Z^2$ is given by a seminorm $N$, then \eqref{eq:Q} forces the parallelogram law for $N$, so that three values of $N$ determine all others. One would like to differentiate the price at $m$, but the proof avoids differentiation. Instead, for a large integer $n$, we use Proposition~\ref{prop:random} to join $x$ and $v$ to $m$ by paths of new points $\gamma_i$, and every $\gamma_i$ to $z$ by a path of new points $G(i,j)$ (Figure~\ref{fig:fan}). This family of points is called a \emph{fan}, and it has two \emph{sheets}, one for $x$ and one for $v$, because only the two paths to $m$ together have a known length, namely $2D$. We multiply distances by $n^2$ and average their squares over boxes in the coordinates $(i,k)$, where $j=i+k+n$. The boxes are short in $k$, so that $j/n^2$ follows $i/n^2$. The inequality \eqref{eq:Q} survives this averaging, and the averages depend only on the displacement and define a seminorm $N$ that satisfies the parallelogram law (Lemma~\ref{lem:means}). We bound $N$ in three directions, and in a fourth direction it contains $\Gamma$ by a telescoping sum, so that the parallelogram law compares them. \begin{figure}[ht] \centering \begin{tikzpicture}[scale=1.0,every node/.style={font=\small}] \tikzset{pt/.style={circle,fill,inner sep=1.2pt}} \coordinate (x) at (-4.5,0); \coordinate (v) at (4.5,0); \coordinate (m) at (0,0); \coordinate (z) at (0,3.6); \foreach \s in {0,0.125,0.25,0.375,0.5,0.625,0.75,0.875}{ \draw[gray!70,very thin] ({-4.5+4.5*\s},0)--(z); \draw[gray!70,very thin] ({4.5-4.5*\s},0)--(z); \node[circle,fill,gray,inner sep=0.7pt] at ({-4.5+4.5*\s},0) {}; \node[circle,fill,gray,inner sep=0.7pt] at ({4.5-4.5*\s},0) {};} \draw (x)--(v); \draw (m)--(z); \draw[line width=1.6pt,domain=0:1,samples=30,variable=\s] plot ({(1-0.3*\s)*(-4.5+4.5*\s)},{1.08*\s}); \draw[line width=1.6pt,domain=0:1,samples=30,variable=\s] plot ({(1-0.3*\s)*(4.5-4.5*\s)},{1.08*\s}); \node[pt,label=below:$x$] at (x) {}; \node[pt,label=below:$v$] at (v) {}; \node[pt,label=below:$m$] at (m) {}; \node[pt,label=above:$z$] at (z) {}; \node at (-2.25,-0.35) {$\gamma_i$}; \node[pt,label={[label distance=-1pt]above left:$G(i,j)$}] at (-1.9125,0.54) {}; \node at (-3.0,2.3) {first sheet}; \node at (3.0,2.3) {second sheet}; \begin{scope}[shift={(6.3,1.5)}] \draw[->,thick] (0,0)--(1.3,0) node[right] {$(1,-1)$}; \draw[->,thick] (0,0)--(0.3,0.6) node[above] {$(0,1)$}; \draw[->,thick] (0,0)--(1.6,0.6) node[right] {$(1,0)$}; \draw[->,thick] (0,0)--(0.7,-1.2) node[below] {$(1,-1-A)$}; \end{scope} \end{tikzpicture} \caption{The fan, drawn as if the price were Euclidean. The averages are taken over the points near the two thick curves, where $j/n^2$ is close to $i/n^2$. On the right are the four directions in which $N$ is estimated, in the coordinates $(i,k)$.} \label{fig:fan} \end{figure} \subsection{Averaged squared distances}\label{sec:means} We now describe the averaging in general. We consider two disjoint copies of $\Z^2$, the two sheets, so that $P+g$ lies on the sheet of $P$ for $g\in\Z^2$, and we write $\norm g_1=\abs{g_1}+\abs{g_2}$. Suppose that for every $n=1,2,\dots$ we are given a price $W_n$ on the union of the two sheets, and that there is a constant $K$ with $W_n(P,P+g)\le K\norm g_1$ for all $n$, all points $P$ and all $g\in\Z^2$. The $n$th \emph{box} consists of the points $(i,k)$ with $0\le in^2$. A step by $S(1,-1-A)$ leads from $G(i,j)$ to $G(i+S,j-AS)$, and by the second relation of \eqref{eq:fan} the distances of these two points from $z$ give \[ W_n\bigl(P,P+S(1,-1-A)\bigr)\ge\bigl|\,n^2\rho(L'-L)+AS\theta L'\,\bigr| . \] We square this, use $2L'(L'-L)\ge L'^2-L^2$, and take the average. The average of $L'^2$ is $\Lambda_2$, and $n^2(L'^2-L^2)$ telescopes along $i$ to the mean $S\Gamma+o(1)$. The factor $\rho$ of this term is removed by means of $1-\rho\le2\theta$ and $n^2\abs{L'^2-L^2}\le2SD(D+\abs{zm})$. Dividing by $S^2$ proves (iv). \step{Conclusion.} By Lemma~\ref{lem:means}, applied to $a=(1,-1-l)$ and $b=(0,1)$, the second differences of $l\mapsto N(1,-1-l)^2$ are $2N(0,1)^2$. So by (iii) the function $\psi(l)=N(1,-1-l)^2-l^2\theta^2\Lambda_2$ is concave on the integers $l\ge-1$, and consequently $\psi(A)\le\psi(0)+A(\psi(0)-\psi(-1))$. We insert (iv) for $\psi(A)$, (ii) for $\psi(0)$ and (i) for $\psi(-1)$, divide by $A$ and let $A\to\infty$: \[ \theta\Gamma-O(\theta^2)\le D^2(-\theta+\theta^2)+\theta^2\Lambda_2 . \] Since $\Lambda_2\le(D+\abs{zm})^2$, dividing by $\theta$ and letting $\theta\to0$ gives $\Gamma\le-D^2$, which is \eqref{eq:cn}. \qed \subsection{Price spaces}\label{ssec:spaces} Sections~\ref{sec:alt} and~\ref{sec:group} use Theorem~\ref{thm:cn} in another form: every price is the pull-back of the metric of a complete space of nonpositive curvature, in which geodesics, barycenters and nearest-point projections are available. A \emph{midpoint} of two points $x,v$ of a metric space is a point at the distance $\frac12\abs{xv}$ from both, and it satisfies the \emph{CN inequality}~\cite{BT72} if \eqref{eq:cn} holds for it with $D=\frac12\abs{xv}$ and with every point~$z$. \begin{definition*} A metric space is \emph{CAT(0)} if it is complete and if any two of its points have a midpoint that satisfies the CN inequality. A \emph{price space} is a CAT(0) space whose metric is a price in the sense of Definition~\ref{def:price}. \end{definition*} This is the definition used by Sturm~\cite{Stu03}, and for complete geodesic spaces it is equivalent to the more common one by comparison triangles \cite[Exercise~II.1.9(1)(c)]{BH99}. The midpoint in the definition is the only midpoint of the two points, as the CN inequality shows when $z$ is another midpoint. The following proposition says that every price arises from a price space. \begin{proposition}[embedding into a price space]\label{prop:space} Every price on a set $V$ is the pull-back of the metric of a price space. \end{proposition} \begin{proof} We add midpoints to $V$ again and again and then pass to the completion, using Proposition~\ref{prop:random} for the midpoints and Theorem~\ref{thm:cn} for the CN inequality. Let $V_0=V$, and let $V_{l+1}$ be $V_l$ with one new point for every pair of its points. A price on $V_l$ extends to one on $V_{l+1}$ by Proposition~\ref{prop:random}, applied to the random map that fixes $V_l$ and sends each new point to either point of its pair with probability $\frac12$, and in it each new point is a midpoint of its pair. These prices extend one another, so together they form a price on the union of the~$V_l$, in which any two points have a midpoint and, by Theorem~\ref{thm:cn}, every midpoint satisfies the CN inequality. We identify points at distance~$0$ and let $Y$ be the completion, so that the given price on $V$ is the pull-back of the metric of~$Y$. This metric is a price, as a limit of prices, so by Theorem~\ref{thm:cn} every midpoint in $Y$ satisfies the CN inequality. Finally, let $x,v\in Y$, choose points $x_n\to x$ and $v_n\to v$ in the union of the~$V_l$, and let $m_n$ be a midpoint of $x_n$ and~$v_n$. The CN inequality for $m_n$ at $z=m_k$ shows that $(m_n)$ is a Cauchy sequence, and its limit is a midpoint of $x$ and~$v$. \end{proof} \subsection{Standard facts on CAT(0) spaces}\label{ssec:toolkit} The next lemma collects the standard facts about CAT(0) spaces that we use \cite{BH99,Stu03,BN08}, and Appendix~\ref{app:cat} gives their short proofs from the CN inequality. Part~(b) is Reshetnyak's comparison for quadrilaterals \cite{Res68,KS93}, whose weak form is Enflo's roundness~$2$ \cite{Enf69,Sat09}, part~(c) is in~\cite{Stu03}, part~(d) is in \cite[II.2]{BH99}, and part~(f) is close to the Flat Quadrilateral Theorem \cite[II.2.11]{BH99}; our proof of it uses the inequality of part~(b) in the form of the quadrilateral cosine of Berg and Nikolaev~\cite{BN08}. Section~\ref{sec:alt} uses parts (a), (b) and (f), and Section~\ref{sec:group} uses parts (a), (c), (d) and (e). We call a subset of a CAT(0) space \emph{convex} if it contains the midpoints of its points. The $L^2$ product $Y^n$ in part~(e) carries the metric $\bigl(\sum_i\abs{x_iy_i}^2\bigr)^{1/2}$. Multiplying the metric of a CAT(0) space by a positive constant gives a CAT(0) space again, because completeness, midpoints and the CN inequality are unchanged. When the points in a distance are given by expressions we separate them by a comma, as in $\abs{Py,q}$ below. \begin{lemma}[standard facts on CAT(0) spaces]\label{lem:toolkit} Let $Y$ be a CAT(0) space. \begin{enumerate}[label=\textup{(\alph*)}] \item For $x,v\in Y$ and $t\in[0,1]$ exactly one point $\gamma(t)$ has the distances $t\abs{xv}$ from $x$ and $(1-t)\abs{xv}$ from~$v$, and $\abs{z\gamma(t)}^2\le(1-t)\abs{zx}^2+t\abs{zv}^2-t(1-t)\abs{xv}^2$ for every $z\in Y$. We write $[x,v]$ for the set of these points, the geodesic segment from $x$ to~$v$, and we call $\gamma(t)$ the point at $t$ on $[x,v]$. \item For $x,v,y,u\in Y$ we have $\abs{xv}^2+\abs{yu}^2\le\abs{xu}^2+\abs{yv}^2+2\abs{xy}\abs{uv}$. In particular the squared diagonals of the quadrilateral with the consecutive vertices $x,y,v,u$ add up to at most its squared sides, that is, $\abs{xv}^2+\abs{yu}^2\le\abs{xy}^2+\abs{yv}^2+\abs{vu}^2+\abs{ux}^2$, and if there is equality, then opposite sides are equal. \item Points $x_1,\dots,x_n$ of $Y$, $n\ge1$, have a \emph{barycenter} $b$, the minimizer of $y\mapsto\sum_i\abs{yx_i}^2$, and $\sum_i\abs{yx_i}^2\ge n\abs{yb}^2+\sum_i\abs{bx_i}^2$ for all $y\in Y$. If $b'$ is the barycenter of $x'_1,\dots,x'_n$, then $n\abs{bb'}\le\sum_i\abs{x_ix'_i}$. \item Let $F\subseteq Y$ be nonempty, closed and convex. Every $y\in Y$ has a nearest point $Py$ in $F$, and $\abs{yq}^2\ge\abs{y,Py}^2+\abs{Py,q}^2$ for all $q\in F$. \item Finite $L^2$ products of copies of $Y$ are CAT(0). \item \emph{Flat rectangles.} Suppose that $\abs{xy}=\abs{uv}=\delta$ and $\abs{xu}=\abs{yv}=h$, that both diagonals of the quadrilateral $x,y,v,u$ have the squared length $\delta^2+h^2$, and that $a\in[x,u]$ and $b\in[y,v]$ have $\abs{xa}=sh$ and $\abs{yb}=th$. Then $\abs{ab}^2=\delta^2+h^2(s-t)^2$. \end{enumerate} \end{lemma} \section{The two cases}\label{sec:alt} In this section we formulate two hypotheses on the field~$\kk$, a flat one and a contracting one, and we show that at least one of them holds (Theorem~\ref{thm:alt}). Section~\ref{sec:flat} proves the lower bound for the permanent under the first hypothesis, and Sections~\ref{sec:group} to~\ref{sec:scales} prove it under the second. \subsection{The two hypotheses} Let $\Mat_\mu(\F_2)$ be the additive group of the $\mu\times\mu$ matrices over the field with two elements. For a price on it and $r\le\mu$ let $D(r)\ge0$ be the root mean square distance of two matrices whose difference has rank~$r$, that is, let $D(r)^2$ be the mean of $\abs{a,a+W}^2$ over all matrices $a$ and all matrices $W$ of rank~$r$. We call matrices $W_1,W_2,\dots$ \emph{transversal} if their column spaces are linearly independent and their row spaces are as well. The rank of their sum is then the sum of their ranks. Every price on $\Mat_\mu(\F_2)$ satisfies $D(r)\le\sqrt r\,D(1)$, by averaging over the quadrilaterals of Figure~\ref{fig:quad} (Step~1 of the proof of Theorem~\ref{thm:alt}). \begin{figure}[ht] \centering \begin{tikzpicture}[scale=1.15,every node/.style={font=\small}] \tikzset{pt/.style={circle,fill,inner sep=1.3pt}} \node[pt] (a) at (0,0) {}; \node[pt] (b) at (4.6,0) {}; \node[pt] (c) at (4.6,2.6) {}; \node[pt] (d) at (0,2.6) {}; \node[below left] at (a) {$a=\bigl(\begin{smallmatrix}0&0\\0&0\end{smallmatrix}\bigr)$}; \node[below right] at (b) {$a+W=\bigl(\begin{smallmatrix}1&0\\0&0\end{smallmatrix}\bigr)$}; \node[above right] at (c) {$a+W+W'=\bigl(\begin{smallmatrix}1&0\\0&1\end{smallmatrix}\bigr)$}; \node[above left] at (d) {$a+W'=\bigl(\begin{smallmatrix}0&0\\0&1\end{smallmatrix}\bigr)$}; \draw[thick] (a)--(b) node[midway,below] {$W$}; \draw[thick] (b)--(c) node[midway,right] {$W'$}; \draw[thick] (c)--(d) node[midway,above] {$W$}; \draw[thick] (d)--(a) node[midway,left] {$W'$}; \draw[dashed] (a)--(c) node[pos=0.27,sloped,above] {$W+W'$}; \draw[dashed] (b)--(d) node[pos=0.27,sloped,above] {$W+W'$}; \end{tikzpicture} \caption{The quadrilateral $a$, $a+W$, $a+W+W'$, $a+W'$ for $\mu=2$, $a=0$ and the diagonal matrices $W,W'$ of rank one. Both diagonals have the difference $W+W'$.} \label{fig:quad} \end{figure} \begin{definition}\label{def:cases} We consider two hypotheses on the field~$\kk$, on which the notion of a price depends. \begin{description} \item[Flat hypothesis] All finite subsets of all Euclidean spaces, with their metrics, are prices. \item[Contracting hypothesis] There are an integer $\mu\ge2$ and a real number $s$ with $1\le s$ and $s^2<\mu$ such that $D(\mu)\le s\,D(1)$ for all prices on $\Mat_\mu(\F_2)$. \end{description} We say that we are in the \emph{flat case} if the flat hypothesis holds, and in the \emph{contracting case} if the contracting hypothesis holds. \end{definition} Thus the contracting hypothesis says that for some $\mu$ the bound $D(\mu)\le\sqrt\mu\,D(1)$ can be improved by a constant factor. The main result of this section relates the two hypotheses. \begin{theorem}[the two cases]\label{thm:alt} At least one of the two hypotheses of Definition~\ref{def:cases} holds, that is, one of the two cases occurs. \end{theorem} \subsection{Proof of Theorem~\ref{thm:alt}} We assume that the contracting hypothesis fails and derive the flat one. Steps 1 to~3 produce a price on $\Mat_\mu(\F_2)$ with equality in Lemma~\ref{lem:toolkit}(b) for all quadrilaterals as in Figure~\ref{fig:quad}, Steps 4 to~7 deduce that its squared distances are the ranks of the differences, and Step~8 fills a Euclidean cube by Lemma~\ref{lem:toolkit}(f). \begin{proof} Suppose that the contracting hypothesis fails, and fix $\mu\ge3$. By Proposition~\ref{prop:space} every price is pulled back from the metric of a CAT(0) space, so that Lemma~\ref{lem:toolkit} applies to the points of a price. \step{Step 1: subadditivity.} Let $(W,W')$ be a uniformly random transversal pair of matrices of ranks $i$ and~$j$, where $i+j\le\mu$, and let $a$ be uniformly random and independent of it. Then $W$, $W'$ and $W+W'$ are uniformly distributed among the matrices of ranks $i$, $j$ and $i+j$. Both diagonals of the quadrilateral $a$, $a+W$, $a+W+W'$, $a+W'$ have the difference $W+W'$, so the mean of the second inequality of Lemma~\ref{lem:toolkit}(b) over these quadrilaterals is $D(i+j)^2\le D(i)^2+D(j)^2$. \step{Step 2: a price with equality.} As the contracting hypothesis fails, for every $s$ with $1\le s<\sqrt\mu$ there is a price on $\Mat_\mu(\F_2)$ with $D(\mu)>s\,D(1)$. Every distance in a price on $\Mat_\mu(\F_2)$ is at most a constant, which depends on $\mu$ only, times~$D(1)$, so we may scale these prices to $D(1)=1$ and, by compactness, pass to a limit for $s\to\sqrt\mu$, which is a price with $D(1)=1$ and $D(\mu)^2\ge\mu$. By Step~1 it has $D(r)^2\le r$ and $\mu\le D(\mu)^2\le D(r)^2+D(\mu-r)^2\le\mu$, and therefore $D(r)^2=r$ for all $r\le\mu$. \step{Step 3: equality for all quadrilaterals.} In this price the inequality of Step~1, a mean of finitely many inequalities, is an equality, so for every $a$ and every transversal pair $(W,W')$ the quadrilateral of Step~1 has equality in the second statement of Lemma~\ref{lem:toolkit}(b). Put $n_a(W)=\abs{a,a+W}^2$. For transversal $W,W'$ opposite sides are equal by the lemma, and the equality then expresses one diagonal by the other and the sides, that is, \begin{align} n_{a+W'}(W)&=n_a(W),\label{eq:opp}\\ \abs{a+W,a+W'}^2&=2n_a(W)+2n_a(W')-n_a(W+W').\label{eq:diag} \end{align} \step{Step 4: additivity.} Let $B_a(W,W')=\tfrac12\bigl(n_a(W+W')-n_a(W)-n_a(W')\bigr)$, which is symmetric in $W$ and~$W'$. We claim that for transversal $W_1,W_2,W_3$ \begin{equation}\label{eq:add} B_a(W_1,W_2+W_3)=B_a(W_1,W_2)+B_a(W_1,W_3) . \end{equation} To see this we apply \eqref{eq:diag} at the matrix $a+W_2$ to the pair $(W_1,W_2+W_3)$, whose quadrilateral has the other vertices $a+W_1+W_2$, $a+W_1+W_3$ and $a+W_3$, and we express all its terms by $n_a$, using \eqref{eq:opp} for $n_{a+W_2}(W_1)$ and \eqref{eq:diag} at~$a$ for the others. This gives \[ n_a(W_1{+}W_2{+}W_3)-\sum_{i2k$, then $\gamma_S=\sum_{\delta,A}\delta_A\,h_{\delta,A}$ over the gates $\delta$ and the balanced subsets $A$ of $S$, where $h_{\delta,A}$, which depends on $\gamma$ and $S$, is linear in each block of $S\setminus A$ and free of the other blocks. Variables and constants have $\gamma_S=0$, because $S$ has at least two elements, and for a sum of two gates we add their representations. For a product $\gamma=\gamma_1\gamma_2$ we have $\gamma_S=\sum(\gamma_1)_A(\gamma_2)_B$ over all $A\sqcup B=S$. In each term the larger of the two sets, say $A$, has more than $k/3$ elements, so either $A$ is balanced and the term has the required form, or the induction hypothesis applies to $(\gamma_1)_A$ and we multiply by $(\gamma_2)_B$. Finally we take $\gamma$ to be the output and $S=[k]$, so that $\gamma_S=f$, and collect the terms by $(\delta,A)$, of which there are at most $L$ for every balanced~$A$. \end{proof} For a circuit for $f_{k,\ell}$ the lemma says that $T_{k,\ell}=\sum_St_S$ over the balanced sets $S$, where $t_S$ is a sum of at most $L$ products of a tensor on the ends $(a,b)$ with $a\in S$ and a tensor on the other ends, which is the form to which Lemma~\ref{lem:hubs} applies. \subsection{A first lower bound}\label{sec:flat-first} We first prove a lower bound for $f_{k,\ell}$ that holds for all sufficiently large~$\ell$. \begin{proposition}[a first lower bound for the network polynomial]\label{prop:flat-lower} In the flat case, for every $k\ge2$ there is $\ell_0$ such that for $\ell\ge\ell_0$ every circuit over $\kk$ for $f_{k,\ell}$ has at least $2^{\ell k^{3/2}/6}$ gates. \end{proposition} \begin{figure}[ht] \centering \begin{tikzpicture}[scale=1.2,every node/.style={font=\small},pt/.style={circle,fill,inner sep=1.3pt},hub/.style={circle,draw,fill=white,inner sep=1.7pt}] \draw[gray!70,dashed] (0,0) circle (2); \coordinate (o) at (0.6,0); \coordinate (m) at (-0.6,0); \foreach \t/\q in {25/m,-20/m,50/m,90/o}{ \draw[gray!80] (\t:2)--(\t+180:2); \draw[thick] (\t:2)--(o) (\t+180:2)--(\q); \node[pt] at (\t:2) {}; \node[pt] at (\t+180:2) {};} \draw[very thick,dotted] (m)--(o); \node[hub] at (o) {}; \node[hub] at (m) {}; \node[fill=white,inner sep=1pt] at (0.85,-0.4) {$o_S$}; \node[fill=white,inner sep=1pt] at (-0.5,0.42) {$-o_S$}; \node[right] at (25:2.05) {$(a,b)$}; \node[left] at (205:2.05) {$(b,a)$}; \node[above] at (90:2.05) {$(a,a')$}; \node[below] at (270:2.05) {$(a',a)$}; \end{tikzpicture} \caption{The ends of four edges and the two hubs of a balanced set $S$. The ends $(a,b)$ with $a\in S$ are joined to $o_S$, the others to $-o_S$, and the hubs by a wire of dimension $L$ (dotted).} \label{fig:flat-hubs} \end{figure} \begin{proof} We place the ends, and two hubs for every balanced set, in $\RR^k$, and use the flat case to compare Euclidean lengths with the values of a spectral point on the decomposition of $T_{k,\ell}$ given by a circuit. \step{The ends.} Let $e_1,\dots,e_k$ be the standard basis of $\RR^k$ and let $u_{ab}=(e_a-e_b)/\sqrt2$. We put the end $(a,b)$ at $\frac12u_{ab}$ (Figure~\ref{fig:flat-hubs}), so that the two ends of each of the $N=\binom k2$ edges have distance~$1$. \step{The hubs.} For a balanced set $S$ let $w_S=\sum_{a\in S,\,b\notin S}u_{ab}$, so that $\norm{w_S}^2=\frac12k\abs S(k-\abs S)\ge k^3/9$. Since $u_{ab}+u_{ba}=0$, the vectors $u_{ab}$ with $a\in S$ and $b\ne a$ add up to $w_S$, and the others to $-w_S$. Let the hubs of $S$ be $\pm o_S=\pm\eta\,w_S/\norm{w_S}$ with $\eta=\frac1{6\sqrt k}$, regarded as different parties for different $S$, and join every end $(a,b)$ with $a\in S$ to $o_S$ and every other end to $-o_S$. For a unit vector $u$ and a vector $o$ we have $\norm{\tfrac12u-o}\le\tfrac12-u\cdot o+\norm o^2$, because $(\frac12+t)^2\ge\frac14+t$. Hence the distances from the ends to their hubs add up to at most \[ N-2\eta\norm{w_S}+k^2\eta^2\le N-\frac k{12}. \] \step{The spectral point.} Let $\delta=\frac1{150k}$. Because we are in the flat case, there are a spectral point $\phi$ on the set of the ends and of all hubs and a factor $c\ge0$, both depending on $k$ only, such that $c\,d_\phi$ differs from the Euclidean distances of the positions by less than~$\delta$. We put $\ell_0=\ceil{100c}+1$. \step{The comparison.} Let $\ell\ge\ell_0$ and let $L$ be the size of a circuit for $f_{k,\ell}$. By Lemmas~\ref{lem:balanced} and~\ref{lem:hubs}, with $\pm o_S$ as the two further parties, $T_{k,\ell}=\sum_St_S$, where $t_S$ is a restriction of the tensor \[ T_S=\prod_{a\in S,\,b\ne a}\ut{2^\ell}{(a,b),\,o_S}\cdot\ut L{o_S,-o_S}\cdot\prod_{a\notin S,\,b\ne a}\ut{2^\ell}{(a,b),-o_S} \] of Figure~\ref{fig:flat-hubs}. Thus $T_{k,\ell}$ is covered by at most $2^k$ tensors $T_S$, and $\phi(T_{k,\ell})\le2^k\max_S\phi(T_S)$ by Definition~\ref{def:spectral}. We take logarithms, use Lemma~\ref{lem:exponents} for every wire, multiply by $c$, and replace each $c\,d_\phi$ by the Euclidean distance, which gives for some $S$ \begin{equation}\label{eq:flat-first} \ell N(1-\delta)\le ck+\ell\Bigl(N-\frac k{12}+2N\delta\Bigr)+(2\eta+\delta)\log L . \end{equation} \step{The conclusion.} Here $ck\le\ell k/100$ by the choice of $\ell_0$, and $3N\delta\le k/100$. Hence $\ell k\bigl(\frac1{12}-\frac1{50}\bigr)\le(2\eta+\delta)\log L\le0.34\,k^{-1/2}\log L$, and this gives $\log L\ge\ell k^{3/2}/6$. \end{proof} With Lemma~\ref{lem:fkl-perm} this excludes circuits of polynomial size for the permanent. \begin{theorem}[no circuits of polynomial size in the flat case]\label{thm:flat-simple} In the flat case, for every $C$ there is $m_0$ such that for $m\ge m_0$ no circuit over $\kk$ with at most $m^C$ gates computes $\PERM_m$. \end{theorem} \begin{proof} We apply Proposition~\ref{prop:flat-lower} with a fixed $k$ for which $\sqrt k\ge30(C+1)$. For large $m$ let $\ell$ be the largest integer with $3k^3\ell\,2^{k\ell}\le m$, so that $m<3k^3(\ell+1)2^{k(\ell+1)}$, and hence $\log m\le2k\ell$ and $\ell\ge\ell_0$. By Lemma~\ref{lem:fkl-perm} a circuit with at most $m^C$ gates for $\PERM_m$ then gives $\ell k^{3/2}/6\le3+2Ck\ell$, which is false by the choice of~$k$. \end{proof} \subsection{Sums with few terms}\label{sec:rate} In \eqref{eq:flat-first} the $k$ bits that name a balanced set are multiplied by the unknown factor $c$, which is the reason for the unspecified threshold~$\ell_0$. The following lemma replaces the factor $J$ in the inequality for covers of Definition~\ref{def:spectral} by $J^{g_\phi(P)}$ when the $J$ terms arise by applying functionals outside a set $P$ of parties. With $P$ the set of all ends, the term $ck$ becomes $k$ times the scaled exponent $c\,g_\phi(P)$, which Section~\ref{sec:flat-cube} bounds by about~$\sqrt k$. \begin{lemma}[sums with few terms]\label{lem:few} Let $P\subseteq V$ be nonempty, let $t$ be a tensor on $P$, and let $T_1,\dots,T_J$ be tensors on $V$ that have the same index sets as $t$ at the parties of $P$. Suppose that $t=\sum_jf_j(T_j)$, where each $f_j$ consists of one linear functional at every party outside~$P$, the trivial one where there is no index, and $f_j(T_j)$ is the tensor on $P$ that results when these functionals are applied to the indices of $T_j$ outside~$P$. Then $\phi(t)\le J^{g_\phi(P)}\max_j\phi(T_j)$ for every spectral point $\phi$ on $V$. \end{lemma} \begin{proof} We expand a high power $t^n$ by words with $n$ letters in $[J]$, and group the words by their \emph{type} $\tau=(\tau_1,\dots,\tau_J)$, in which $\tau_j$ is the number of places with the letter~$j$. We number the $M_\tau\le J^n$ words of type~$\tau$. The sum over these words is a restriction of $\ut{M_\tau}P\cdot\prod_jT_j^{\tau_j}$, because every party of $P$ can order its $n$ indices as the word whose number it holds prescribes, while the parties outside $P$ apply $\prod_jf_j^{\tau_j}$. There are at most $(n+1)^J$ types, so \[ \phi(t)^n\le(n+1)^JJ^{ng_\phi(P)}\max_j\phi(T_j)^n . \] Taking $n$th roots and letting $n$ tend to infinity proves the lemma. \end{proof} \subsection{The exponent of the set of all ends}\label{sec:flat-cube} The scaled exponent $c\,g_\phi(P)$ of two points is their distance, and the next lemma allows us to pass to larger sets $P$ by taking midpoints. For a map $\pi$ of a finite set $I$ into $V$ we write $g_\phi(\pi)=g_\phi(\pi(I))$ for the exponent of its image. \begin{lemma}[the exponent is almost convex along midpoints]\label{lem:convex} Let $V\subseteq\RR^n$ and $I\ne\emptyset$ be finite. For every $\eps>0$ there is $\delta>0$ with the following property. Let $\phi$ be a spectral point on $V$ and $c\ge0$ with $\bigl|c\,d_\phi(x,y)-\norm{x-y}\bigr|<\delta$ for all $x,y\in V$, and let $a,b,m:I\to V$ be maps such that every $m(i)$ is the midpoint of $a(i)$ and $b(i)$. Then \[ c\,g_\phi(m)\le\tfrac12c\,g_\phi(a)+\tfrac12c\,g_\phi(b)+\eps . \] \end{lemma} \begin{proof} We add a new party $i'$ for every $i\in I$, extend $\phi$ as if all $i'$ were placed at $a(i)$ or all at $b(i)$, each with probability $\frac12$, and use Theorem~\ref{thm:cn} to show that $i'$ is close to $m(i)$. Let $Q=\{i':i\in I\}$, and let $\pi_a,\pi_b:V\cup Q\to V$ be the identity on $V$ and map $i'$ to $a(i)$ and to $b(i)$. Proposition~\ref{prop:extend}, with the weights $\frac12,\frac12$ and with $C$ the product of the wires of dimension $2$ on $V$ and of $\ut2{m(I)}$, gives a spectral point $\phi'$ on $V\cup Q$ with $\phi'(t)\le\phi(\pi_at)^{1/2}\phi(\pi_bt)^{1/2}$ for all $t$ and with the same values as $\phi$ on the factors of $C$, because each can only decrease and the product is kept. Thus $d_{\phi'}=d_\phi$ on $V$ and $g_{\phi'}(m(I))=g_\phi(m)$, and since $\pi_a\ut qQ$ is a restriction of $\ut q{a(I)}$, and likewise for $b$ and for wires, \[ g_{\phi'}(Q)\le\tfrac12g_\phi(a)+\tfrac12g_\phi(b),\qquad d_{\phi'}(i',x)\le\tfrac12d_\phi(a(i),x)+\tfrac12d_\phi(b(i),x)\quad(x\in V). \] Contracting $\ut qQ$ with the wires $\ut q{i'\,m(i)}$ gives $\ut q{m(I)}$, and hence $g_\phi(m)\le g_{\phi'}(Q)+\sum_id_{\phi'}(i',m(i))$. Now fix $i$, measure distances in the price $c\,d_{\phi'}$, and let $\lambda$ be the distance of $a(i)$ and $b(i)$. Then $i'$ has distance at most $\lambda/2$ from both, so it is an exact midpoint, and $m(i)$ has distance less than $\frac\lambda2+\frac32\delta$ from both. Theorem~\ref{thm:cn}, with $i'$ as the midpoint, $D=\lambda/2$ and $z=m(i)$, bounds the square of the distance of $i'$ and $m(i)$ by $\frac32\delta\lambda+(\frac32\delta)^2$, which tends to $0$ with $\delta$, uniformly in $\phi$, $c$ and the maps $a,b,m$, because $\lambda$ is at most the diameter of $V$ plus~$\delta$. Inserting this bound for every $i$ into the inequality for $g_\phi(m)$, multiplied by $c$, gives the claim for small~$\delta$. \end{proof} We apply the lemma to sets of facet centres of the cube $[-\frac12,\frac12]^k$, that is, of the $2k$ points $\pm\frac12e_i$ (Figure~\ref{fig:flat-cube}). \begin{proposition}[facet centres of a cube]\label{prop:cube} In the flat case let $V\subseteq\RR^k$ be finite, let $P\subseteq V\cap\{\pm\frac12e_1,\dots,\pm\frac12e_k\}$ be nonempty, and let $\eps>0$. There are a spectral point $\phi$ on $V$ and $c\ge0$ with $\bigl|c\,d_\phi(x,y)-\norm{x-y}\bigr|<\eps$ for all $x,y\in V$ and $c\,g_\phi(P)\le\sqrt k+\eps$. \end{proposition} \begin{figure}[ht] \centering \begin{tikzpicture}[scale=2.6,every node/.style={font=\small},pt/.style={circle,fill,inner sep=1.3pt},ce/.style={circle,draw,fill=white,inner sep=1.6pt}] \draw (-.5,-.5) rectangle (.5,.5); \draw[thick] (-.5,-.5)--(.5,.5); \draw[thick,dashed] (-.5,.5)--(.5,-.5); \foreach \x/\y/\p/\t in {.5/.5/above right/{\frac12(1,1)},-.5/-.5/below left/{-\frac12(1,1)},.5/-.5/below right/{\frac12(1,-1)},-.5/.5/above left/{\frac12(-1,1)}} \node[pt,label={\p:$\t$}] at (\x,\y) {}; \foreach \x/\y/\p/\t in {.5/0/right/{\frac12e_1},-.5/0/left/{-\frac12e_1},0/.5/above/{\frac12e_2},0/-.5/below/{-\frac12e_2}} \node[ce,label={\p:$\t$}] at (\x,\y) {}; \end{tikzpicture} \caption{Proposition~\ref{prop:cube} for $k=2$. Every facet centre (circles) is the midpoint of an end of the solid diagonal and an end of the dashed one, so by Lemma~\ref{lem:convex} the scaled exponent of the four centres is at most about $\sqrt2$.} \label{fig:flat-cube} \end{figure} \begin{proof} We pass from the two ends of a main diagonal of the cube to the set $P$ by taking midpoints $k$ times, as in Lemma~\ref{lem:convex}. We add to $V$ the points $\frac12u$ with $u\in\{-1,0,1\}^k$, and restrict $\phi$ to the given set in the end. For a level $0\le j\le k$ and signs $\chi=(\chi_{j+1},\dots,\chi_k)$ let $\alpha_\chi:P\to V$ map a centre $\pm\frac12e_i$ in $P$ to itself if $i\le j$, and to $\pm\frac12\chi_i\,(0,\dots,0,\chi_{j+1},\dots,\chi_k)$, with $j$ zeros, if $i>j$. At level $k$ the map is the identity, with image $P$, and at level $0$ its image is contained in the two ends $\pm\frac12\chi$ of a main diagonal, so that $g_\phi(\alpha_\chi)$ is at most the exponent of one wire of length~$\sqrt k$. For $j\ge1$ the map $\alpha_\chi$ of level $j$ is the pointwise midpoint of the two maps $\alpha_{(1,\chi)}$ and $\alpha_{(-1,\chi)}$ of level $j-1$, as one sees by comparing the three cases $ij$. We use the flat case to choose $\phi$ and $c$ such that $c\,d_\phi$ differs from the Euclidean metric on $V$ by less than $\eps/(k+1)$, and by so little that Lemma~\ref{lem:convex} applies to each of these finitely many triples of maps with $\eps/(k+1)$ in place of~$\eps$. Then $c\,g_\phi(\alpha_\chi)\le\sqrt k+(j+1)\eps/(k+1)$ at level $j$ by induction on $j$, which for $j=k$ is the claim. \end{proof} \subsection{The lower bound for \texorpdfstring{$\ell\ge100\sqrt k$}{l >= 100 sqrt k}}\label{sec:flat-bound} We repeat the proof of Proposition~\ref{prop:flat-lower} with the ends at facet centres of a cube and with Lemma~\ref{lem:few} in place of the inequality for covers. \begin{proposition}[lower bound for the network polynomial]\label{prop:flat-rate} In the flat case, for $k\ge2$ and $\ell\ge100\sqrt k$ every circuit over $\kk$ for $f_{k,\ell}$ has at least $2^{\ell k^{3/2}/16}$ gates. \end{proposition} \begin{proof} The steps and the notation are those of the proof of Proposition~\ref{prop:flat-lower}. \step{The ends.} For $aa$ such that exactly one of $a,b$ lies in $S$, then $w_S=\sum_a\pm c_ae_a$ and $\sum_ac_a=\abs S(k-\abs S)\ge2k^2/9$, so that $\norm{w_S}\ge\frac29k^{3/2}$ by the Cauchy--Schwarz inequality. We choose the hubs as $\pm o_S=\pm\eta\,w_S/\norm{w_S}$ with $\eta=\frac2{9\sqrt k}$, and join every end to the hub of its side as before. As $\norm{r-o}\le\frac12-2\,r\cdot o+\eta^2$ for $\norm r=\frac12$ and $\norm o=\eta$, the distances from the ends to their hubs add up to at most \[ N-2\eta\norm{w_S}+k^2\eta^2\le N-\frac4{81}k . \] \step{The spectral point.} Let $\delta=10^{-3}/k$, and let $\phi$ and $c$ be as in Proposition~\ref{prop:cube} for the set $V$ of the positions of all ends and hubs and the set $P$ of the positions of the ends, with $\delta$ as $\eps$, pulled back to the ends and hubs regarded as different parties. Then $c\,d_\phi$ differs from the Euclidean distance of the positions by less than~$\delta$, and $c\,g_\phi(\mathcal E)\le\sqrt k+\delta$ for the set $\mathcal E$ of all ends, because the push-forward of a unit tensor on $\mathcal E$ is the unit tensor on~$P$. \step{The comparison.} For a circuit with $L$ gates we have, as before, $T_{k,\ell}=\sum_St_S$ over the at most $2^k$ balanced sets, and $t_S$ is a restriction of $T_S$. By the proof of Lemma~\ref{lem:hubs} this restriction applies a functional at $o_S$ and one at $-o_S$ and nothing at the ends, and $T_S$ has no index at the hubs of the other sets. Lemma~\ref{lem:few}, with $\mathcal E$ as the set $P$ of the lemma and $J\le2^k$, therefore gives $\phi(T_{k,\ell})\le2^{k\,g_\phi(\mathcal E)}\max_S\phi(T_S)$, and as before we find for some $S$ \begin{equation}\label{eq:flat-second} \ell N(1-\delta)\le k(\sqrt k+\delta)+\ell\Bigl(N-\frac4{81}k+\delta k^2\Bigr)+(2\eta+\delta)\log L . \end{equation} \step{The conclusion.} Here $k(\sqrt k+\delta)\le1.5\,k^{3/2}\le0.015\,\ell k$, because $\ell\ge100\sqrt k$, and the two terms with $\delta$ add up to at most $\frac32\delta k^2\ell=0.0015\,\ell k$. Hence $(2\eta+\delta)\log L\ge\ell k/31$, and since $2\eta+\delta\le0.446\,k^{-1/2}$, it follows that $\log L\ge\ell k^{3/2}/14$, which implies the claim. \end{proof} For the permanent we take $\ell=100\sqrt k$, the smallest value that Proposition~\ref{prop:flat-rate} admits, which makes $\log m$ of order $k^{3/2}$ and the bound of order~$k^2$. \begin{theorem}[lower bound for the permanent in the flat case]\label{thm:flat-rate} In the flat case there is $m_0$ such that for $m\ge m_0$ every circuit over $\kk$ for $\PERM_m$ has more than $2^{(\log m)^{\ratelog}/1600^2}$ gates. \end{theorem} \begin{proof} We apply Proposition~\ref{prop:flat-rate} to a square $k=r^2$. Let $r$ be the largest integer with $200r^3\le\floor{\log m}$, and let $k=r^2$ and $\ell=100r$. For large $m$ we have $r\ge2$, $3k^3\ell\,2^{k\ell}\le2^{200r^3}\le m$ and $\log m\le1600r^3$. By Lemma~\ref{lem:fkl-perm} and Proposition~\ref{prop:flat-rate}, a circuit with $L$ gates for $\PERM_m$ gives \[ \log(5L)\ge\frac{\ell k^{3/2}}{16}=\frac{25}4r^4 . \] Hence $\log L>r^4\ge(\log m/1600)^{4/3}\ge(\log m)^{4/3}/1600^2$. \end{proof} \section{A Poincar\'e inequality on unitriangular groups}\label{sec:group} In this section and in Sections~\ref{sec:ident} to~\ref{sec:scales} we are in the contracting case, and we fix $\mu$ and $s$ as in Definition~\ref{def:cases}. Let $U_n$ be the group of the upper unitriangular $n\times n$ matrices over~$\F_2$. We number the coordinates by $0,\dots,n-1$ and use the generators $x_j=1+E_{j,j+1}$, $0\le j0$ and $1-c^2\le(1-\zeta)^2$. If $a$ and $a'$ are the projections of a point $z$ for the windows $[p,p+2u)$ and $[p+u,p+3u)$, then $\abs{aa'}^2\le\abs{za}^2+\abs{za'}^2+2c\abs{za}\abs{za'}$. \end{lemma} \begin{proof} We first bound the angle at a common fixed point~$v$, and then we compare the quadrilateral $z,a,v,a'$ with a Euclidean one (Figure~\ref{fig:windows}). Let $v=P_{[p,p+3u)}a$, and put $r=\abs{za}$, $r'=\abs{za'}$, $\alpha=\abs{av}$ and $\beta=\abs{va'}$. We may assume that these four numbers are positive, as the other cases are immediate. The first step is the inequality \begin{equation}\label{eq:angle-v} \alpha^2+\beta^2-2c\alpha\beta\le\abs{aa'}^2 . \end{equation} To prove it, let $q$ and $q'$ be the points at the distances $\sigma\alpha$ and $\sigma'\beta$ from $v$ on $[v,a]$ and $[v,a']$, where $\sigma,\sigma'\in(0,1]$ satisfy $\sigma'\beta=c\,\sigma\alpha$. The point $q$ is fixed by $[p,p+2u)$ and its projection for $[p,p+3u)$ is again~$v$, so Lemma~\ref{lem:tele} and the hypothesis on $c$ give $\abs{qq'}^2\ge(1-c^2)\sigma^2\alpha^2$. Lemma~\ref{lem:toolkit}(a), applied to $q'$ on $[v,a']$ as seen from $q$ and to $q$ on $[v,a]$ as seen from~$a'$, gives the upper bound $\abs{qq'}^2\le\sigma^2\alpha^2+\sigma'^2\beta^2-\sigma\sigma'(\alpha^2+\beta^2-\abs{aa'}^2)$. The two bounds together, with $\sigma'\beta=c\,\sigma\alpha$, are \eqref{eq:angle-v}. For the second step note that $r^2+\alpha^2$ and $r'^2+\beta^2$ are at most $\abs{zv}^2$, by Lemma~\ref{lem:toolkit}(d). Let $\eta,t\in[0,1]$. Lemma~\ref{lem:toolkit}(a), applied twice, to the points at $\eta$ on $[a,a']$ and at $t$ on $[z,v]$, gives \[ t(1-t)\abs{zv}^2+\eta(1-\eta)\abs{aa'}^2\le(1-t)(1-\eta)r^2+(1-t)\eta r'^2+t(1-\eta)\alpha^2+t\eta\beta^2 . \] On the left we insert $\abs{zv}^2\ge(1-\eta)(r^2+\alpha^2)+\eta(r'^2+\beta^2)$, and we choose $\eta=r\alpha/(r\alpha+r'\beta)$ and $t=rr'/(rr'+\alpha\beta)$, which gives \[ (rr'+\alpha\beta)\abs{aa'}^2\le\alpha\beta(r^2+r'^2)+rr'(\alpha^2+\beta^2) . \] Inserting $\alpha^2+\beta^2\le\abs{aa'}^2+2c\alpha\beta$ from \eqref{eq:angle-v} on the right gives the claim. \end{proof} \subsection{Proof of the Poincar\'e inequality}\label{ssec:poincare} In the main result of this section $g$ and $a$ are independent and uniformly distributed in~$U_h$. \begin{theorem}[Poincar\'e inequality]\label{thm:poincare} There are an integer $u\ge2$ and a real number $C_0\ge0$ such that for every $l\ge2$, $h=lu$, and every price on $U_h$ \[ \E_{g,a}\abs{a,ga}^2\le C_0\sum_{j0$, which gives the first inequality. \step{One step of averaging.} Let $b$ be the barycenter of the $k$ points $Q_iz$. Lemma~\ref{lem:toolkit}(c) at each of these points and \eqref{eq:QQ} give \[ 2k\sum_i\abs{b,Q_iz}^2\le\sum_{i,i'}\abs{Q_iz,Q_{i'}z}^2\le2(k-1+2c)\Phi(z) . \] As $\Phi(b)\le\sum_i\abs{b,Q_iz}^2$, and as Lemma~\ref{lem:toolkit}(c) at the point $z$ gives $k\abs{zb}^2\le \Phi(z)-\sum_i\abs{b,Q_iz}^2$, it follows that \[ \Phi(b)\le\Bigl(1-\frac{1-2c}k\Bigr)\Phi(z),\qquad k\abs{zb}^2\le \Phi(z)-\Phi(b) . \] If $\Phi(z)>0$, these two inequalities give \[ \abs{zb}\le\frac{\Phi(z)-\Phi(b)}{\sqrt{(1-2c)\Phi(z)}}\le\frac2{\sqrt{1-2c}}\Bigl(\sqrt{\Phi(z)}-\sqrt{\Phi(b)}\Bigr) . \] \step{Iteration.} We iterate the map $z\mapsto b$. The values of $\Phi$ decrease geometrically and the steps add up to at most $2\sqrt{\Phi(z)/(1-2c)}$, so the points converge to a point fixed by every window and hence by~$U_h$, and therefore $\abs{z,P_{[0,h)}z}^2\le\frac4{1-2c}\Phi(z)$. Each generator lies in at most two of the windows, so \eqref{eq:window} for $n=2u$ bounds $\Phi(z)$ by $2C(2u)\sum_j\delta_j(z)^2$, and $\abs{z,gz}\le2\abs{z,P_{[0,h)}z}$ because $g$ fixes $P_{[0,h)}z$. For $z=f$ we have $\abs{f,gf}^2=\E_a\abs{a,ga}^2$ and $\delta_j(f)^2=\E_a\abs{a,x_ja}^2$ in the given price, and the theorem follows with $C_0=32C(2u)/(1-2c)$. \end{proof} \subsection{Related work} For real-valued functions the inequality of Theorem~\ref{thm:poincare} is a spectral gap for a walk on unitriangular matrices, as in Stong's eigenvalue bounds~\cite{Sto95}; for the mixing time of this walk see \cite{PS13,NS23}. Almost right angles between commuting or overlapping subgroups are used in a similar way in proofs of property~(T) \cite{DJ02,EJ10,Kas11,Opp17}. Poincar\'e constants for nonlinear targets, and for CAT(0) targets in particular, are studied in \cite{Wan00,IN05,Gro03,MN13}. \section{Rerouting laws}\label{sec:ident} We are still in the contracting case. In this section the duality theorem (Theorem~\ref{thm:duality}) turns the Poincar\'e inequality of Theorem~\ref{thm:poincare} into identities between tensors, which we call \emph{rerouting laws}, or simply \emph{laws} (Definition~\ref{def:law}). A law writes a product of wires between arbitrary pairs of elements of $U_h$ as a sum of tensor networks whose wires run along edges of the Cayley graph. Theorem~\ref{thm:laws} provides finitely many laws whose size is controlled by a constant $C_1$ that does not depend on~$h$. That their coefficients lie in a finitely generated ring matters only in Section~\ref{sec:scales}. \subsection{Edges, loads and the choice of \texorpdfstring{$h$}{h}} Let $b=\abs{U_h}=2^{h(h-1)/2}$. By an \emph{edge} we always mean an edge $\{g,x_jg\}$ of the Cayley graph of $U_h$ for the generators $x_j=1+E_{j,j+1}$, $0\le j0$ and every large $q$ the theorem covers $\mathsf W^{q\sigma_x}$ by at most $2^{\eps q}$ tensors $\mathsf W^{\beta'}$ in which $\beta'$ is a sum of $q$ elements of~$\mathcal B$, and one $q$ serves for the finitely many~$\sigma_x$. For every $x$ this cover, with its linear maps written out, is a law: the left side of \eqref{eq:law} is $\mathsf W^{q\sigma_x}$, so the slots are counted by $q\sigma_x$, the indices number the tensors of the cover, $\mathrm{len}_i$ is the sum $\beta'$ of the $i$th of them, and the node tensor of $(i,g)$ is the matrix of the linear map that the party $g$ applies to~$\mathsf W^{\beta'}$. The indices get an injective code of $\lambda$ bits with $1\le\lambda\le\eps q+2$. Let $a_1=aq$, and let $A$ be the subring of $\kk$ generated by $-1$ and the entries of the node tensors of these finitely many laws. By the triangle inequality the norm of $\lambda+\mathrm{len}_i$ is at most $q\bigl(\sqrt{C_0'}\,a+O(1)\bigr)+(\eps q+2)\norm1_*$, where $1$ is the load that is $1$ on every edge. This is at most $2\sqrt{C_0'}\,aq=\sqrt{C_1}\,a_1$ if we choose first $a$ large, then $\eps$ small, and then $q$ large, which proves (b). For (a), let $\norm n\le a_1t$. If $t>0$, then $x=n/(a_1t)$ has $\norm x\le1$ and $n\le t\,q\sigma_x$, so the law that belongs to $x$ will do. If $t=0$, then $n=0$ and every law will do. \end{proof} The laws are finitely many polynomial identities with coefficients in~$A$, so they hold over every commutative $A$-algebra. From now on $A$, $a_1$ and the laws, in some fixed order, are kept, and all constants below depend only on these choices. \section{Every network is a sum of tree networks}\label{sec:tower} In this section we apply the laws of Theorem~\ref{thm:laws} again and again, along a tower of finite sets, to an arbitrary tensor network. By Theorem~\ref{thm:tree}, the value of a network on $M$ nodes is a sum of values of networks whose nodes form a tree of small depth, in which the bound for the packets at any one node is smaller by a factor $M^\gamma$ than the bound for all packets together. In Sections~\ref{sec:machines} and~\ref{sec:cut} the network will be a computation, and the tree will show where to cut it. Here $\gamma=1/\log b$. \subsection{A tower of finite groups}\label{sec:tower-groups} To apply the laws repeatedly we use groups with $h$ types of edges, arranged in a cycle, such that leaving out any one type leaves copies of the Cayley graph of $U_h$. Let \[ R_n=\F_2[s]/(s^{n+1}),\qquad G_n=\SL_h(R_n), \] number the coordinates by $\Z/h$, and put $\varsigma=1+s$, $X_k=1+E_{k-1,k}$ for $k\ne0$ and $X_0=1+\varsigma E_{h-1,0}$, where $E_{jk}$ is a matrix unit. The letters $s$ and $\varsigma$ have this meaning in the present subsection only. Let $K_n$ be the kernel of the reduction $s\mapsto0$ from $G_n$ to $\SL_h(\F_2)$, a $2$-group of order $2^{(h^2-1)n}$. \begin{proposition}[tower]\label{prop:tower} Let $n\ge1$ and $M=\abs{G_n}$. There are $G_n$-sets $V_0=G_n,V_1,\dots,V_J$, with equivariant projections $\pi:V_j\to V_{j+1}$ that are $b$ to one, such that \begin{enumerate}[label=\textup{(\alph*)}] \item for every $i\in\Z/h$ the $X_k$, $k\ne i$, generate a copy of $U_h$ (with $X_{i+1},\dots,X_{i-1}$ as the generators in order), which acts freely on every $V_j$; we call its orbits \emph{cosets of type $i$}; \item $c$ and $X_ic$ always lie in different cosets of type $i$, and $\pi$ maps every coset of type $i$ bijectively onto one, exactly $b$ of them onto each; \item $\abs{V_J}] (-.4,1.9)--(-.9,.8); \draw[->] (7.2,1.9)--(7.7,.8); \end{tikzpicture} \caption{One stage. Every element of the coset $\chi$ becomes a child of $\hat\chi$. A law is applied to the dotted segments inside each coset of stage $j+1$.} \label{fig:stage} \end{figure} \begin{proof} We spread the packets over the edges of $G_n$, describe one stage and the recursion for the loads, and then verify (a) to~(e). Take the least $n\ge1$ with $M\le\abs{G_n}$, so that $\abs{G_n}=O(M)$ by Proposition~\ref{prop:tower}(c). Nodes with node tensor $1$ and no packets may be added, and bounded factors are absorbed in $\Lambda$, so we may assume that $M=\abs{G_n}$. The nodes of the new networks will be the elements of all $V_j$, those of $V_j$ forming the stage~$j$, and a root, and we place the given nodes at the elements of $V_0=G_n$. \step{Start.} We divide the packets of each pair $(\alpha,\beta)$ of given nodes into $M$ batches, of equal size up to one, one for every $g\in G_n$. We lead the batch of $g$ by relays from $\alpha$ to $g$ along the word for $g\alpha^{-1}$ and on to $\beta$ along the word for $\beta g^{-1}$, and we stop at the first visit of~$\beta$, as a relay needs three different nodes. The batches that leave one $\alpha$ for one $g$ have together at most $N/M+M$ packets. There are $M$ words $g\alpha^{-1}$, of at most $\mathsf L$ letters each, and for a fixed word all its translates use each edge at most twice for each of its letters. Hence the first halves of the paths put at most $2\mathsf L(N+M^2)$ packets on an edge, and likewise the second halves, so that every edge gets at most $n_0=4\mathsf L(N+M^2)$ packets. \step{Loads.} For numbers $n_e$ of packets on the edges of $V_j$ let \[ N_i^2=\frac{\abs{V_j}}2\sum_{e\text{ of type }i}n_e^2,\qquad Q_j^2=\sum_{i\in\Z/h}N_i^2 , \] so that $Q_0\le\sqrt h\,Mn_0$ after the start. \step{One stage (Figure \ref{fig:stage}).} Let $i$ be the first type for which $N_i$ is least, so that $N_i^2\le Q_j^2/h$. Every element $c$ of a coset $\chi$ of type $i$ gets the parent $\hat\chi$. A packet on an edge inside $\chi$ is relayed through $\hat\chi$, which gives two packets between nodes and their parent. A packet on an edge $cc'$ of type $i$, with cosets $\chi,\chi'$, is relayed along $c,\hat\chi,\pi c,\pi c',\hat\chi',c'$, where trivial steps are omitted. The middle segments $\pi c\,\pi c'$ lie on edges of type $i$ of $V_{j+1}$, and as $b$ edges of $V_j$ lie over one edge of $V_{j+1}$, the new $N_i$ is at most the old one. The outer segments $\hat\chi\,\pi c$ lie inside the cosets $\omega=\pi\chi$ of type $i$ of $V_{j+1}$, and they give each $\omega$ a load $n_\omega$ on its pairs. As $\hat\chi$ determines $\chi$, and $\pi c$ then determines $c$, every pair serves at most two elements $c$, so that $\sum_\omega\sum_en_{\omega,e}^2\le4\sum n_e^2$, where the last sum is over the edges of type $i$ of $V_j$. With $\abs{V_j}=b\abs{V_{j+1}}$ this gives \[ \frac{\abs{V_{j+1}}}b\sum_\omega\norm{n_\omega}^2\le4N_i^2 . \] In each $\omega$ we apply a law move to the outer segments, with the first law that has $n_\omega\le t\sigma$ for the least possible $t$, so that $t\le\norm{n_\omega}/a_1+1$ by Theorem~\ref{thm:laws}(a). We do this also if $t=0$, which produces only the end packets described next. For a good outcome $o_\omega$ the new load on the channels of $\omega$ satisfies $\norm{o_\omega}_*\le\sqrt{C_1}\,(\norm{n_\omega}+a_1)$. The last of the $o_e+1$ packets on a channel is not counted here, because it is never moved again, and these end packets are the dead packets of~(b). The channels of $\omega$ are its edges of the types $k\ne i$, so the new loads of these types have \[ \sum_{k\ne i}N_k^2=\frac{\abs{V_{j+1}}}b\sum_\omega\norm{o_\omega}_*^2 , \] a sum over $\abs{V_{j+1}}/b$ cosets. By Minkowski's inequality and \eqref{eq:h}, with the constant $C_2=\sqrt{C_1}\,a_1/b$, \[ Q_{j+1}\le(1+4C_1)^{1/2}N_i+C_2\abs{V_{j+1}}\le\tfrac12Q_j+C_2\abs{V_{j+1}} . \] As $b\ge4$, this gives $Q_j\le2^{-j}\bar Q$ with $\bar Q=O(Mn_0)$. After stage $J$ we relay every packet on an edge of $V_J$ that is not dead through the root. \step{Bounds.} The tree has the stages $0,\dots,J$ and the root, and $J=O(\log M)$; the children of $\hat\chi$ are the $b$ elements of $\chi$, and those of the root are the elements of $V_J$, which gives~(a). Every packet on an edge at an element becomes one packet between this element and its parent. Hence, by the Cauchy--Schwarz inequality over its $h$ edges, an element of stage $j$ has towards its parent at most \[ \Bigl(\frac{2h}{\abs{V_j}}\Bigr)^{1/2}Q_j\le C\Bigl(\frac{\sqrt b}2\Bigr)^jM^{-1/2}\bar Q \] packets. This is largest for $j=J$, and $2^{-J}=O(M^{-\gamma})$ since $M=O(b^J)$, which gives (b) for one node and its boundedly many children, as $\mathsf L$ is at most a power of $\lg M$. In the same way all elements of stage $j$ together have at most $2\sqrt h\,Q_j$ packets towards their parents, which gives the total. There is one law move for each coset of each stage, whatever $N$ is, so there are at most $hM$ law moves, with boundedly many channels and hence boundedly many dead packets in each. For (c), the elements of $V_0$ take part in relays only, and $t\le o_e$ for every channel $e$ at a node, so the number of layers that a node tensor handles is bounded by the node's own bits. For (e), let $u_p$ be the sum of the loads on the edges at~$p$, and $0$ for the root, so that the bounds just shown are bounds for these numbers. A relay puts two packets at its middle node and replaces a packet by one packet at each of its ends. In a stage a packet is relayed boundedly often, and the slots at an element take boundedly many times $t\le o_e$ packets, zeros included. Hence what a node ever holds in the stages is at most a constant times the loads at it and at its children, and its dead packets. In the start the end $\beta$ of a given packet holds one packet after another, at most $2\mathsf L$ of them, and this is the term $\Lambda N$ at a given node. The copies that a node sums over are among these packets. For (d), and for computing the numbers $u_p$, the groups, the words, the cosets and the maps $\chi\mapsto\hat\chi$ are constants of the program, and all loads are $(MN)^{O(1)}$. Finding the least $N_i$ and the least $t$, and testing whether an outcome is good, amounts to comparing integers of that size, because $C_0'$ is an integer. Packets are assigned to batches, slots and channels by their number in a fixed order. There are fewer than $2M$ nodes besides the root and at most $hM$ law moves. In the start each of the at most $MN$ given packets is relayed at most $2\mathsf L$ times. Afterwards every packet on an edge is relayed boundedly many times in its stage, there are $O(\log M)$ stages with at most $hM$ edges each, and each edge carries $(MN)^{O(1)}$ packets by the bounds for the loads. Hence the number of relays is $(MN)^{O(1)}$. So is the number of packets: a packet is a given one, or is made by a relay, or is put by a law move on a channel, which is an edge of the next stage, or is one of the packets of zeros of a law move, of which there are boundedly many times $t\le o_e$. \end{proof} \section{Programs, automata and networks}\label{sec:machines} To apply Theorem~\ref{thm:tree} to computations, we fix in this section what a computation is and show that it is a network. Programs on binary trees (Section~\ref{ssec:programs}) can run other programs, as Section~\ref{sec:scales} requires, and the values of tape automata (Section~\ref{ssec:automata}) are sums of values of networks (Lemma~\ref{lem:runnet}). Proposition~\ref{prop:universal} connects the two models, and its proof, which follows classical ideas, can be skipped at first reading. We keep the ring $A$ and the laws of Section~\ref{sec:ident}, and $\lg v=\floor{\log v}+1$ for an integer $v\ge1$. \subsection{Programs and sums over runs}\label{ssec:programs} All data are binary trees, where a tree is either $\mathrm{nil}$ or a pair of two trees, and the \emph{size} $\abs x$ of a tree $x$ is its number of nodes. A \emph{program} is an expression in the constructs of the following table, in which $p_1,p_2,p_3$ stand for subprograms and $x$ for the argument. Programs are nondeterministic, and a run carries a weight in~$A$, which is $1$ at the start, and a \emph{tally}, which is a list of names. \begin{center}\footnotesize\renewcommand{\arraystretch}{1.2} \begin{tabular}{@{}ll@{}} construct & output, and effect on the run\\\hline a fixed tree; \ the argument & that tree; \ $x$\\ first, second part of $p_1$ & that part of the output of $p_1$, and $\mathrm{nil}$ for $\mathrm{nil}$\\ pair of $p_1,p_2$ & the pair of the two outputs\\ if $p_1$ then $p_2$ else $p_3$ & the output of $p_2$ if that of $p_1$ is not $\mathrm{nil}$, otherwise that of $p_3$\\ \texttt{run} $p_1$ $p_2$ & the output of the program coded by the output of $p_1$ at the output of $p_2$\\ \texttt{guess}; \ \texttt{fail} & two runs, with outputs $\mathrm{nil}$ and $(\mathrm{nil},\mathrm{nil})$; \ no accepting run\\ \texttt{weight} $p_1$ & $\mathrm{nil}$; multiplies the weight by the generator of $A$ named by the output of $p_1$\\ $\mathtt{use}$ $p_1$ & $\mathrm{nil}$; appends the output of $p_1$, a name, to the tally\\ \end{tabular} \end{center} Subprograms are evaluated from left to right, their weights multiply and their tallies are concatenated. Every construct costs one step, and the \emph{cost} of a run is its number of steps. Finitely many generators of $A$, one of which is $-1$, have names, and every other name has the weight~$0$. A run is \emph{accepting} if it does not fail, and its output is then the output of the program. A program is coded as the pair of the number of its outermost construct, in unary, and the codes of its parts. Conversely every tree is read as a program, with $\mathrm{nil}$ read as the fixed tree $\mathrm{nil}$ and a pair whose first component is not the number of a construct as \texttt{fail}. A loop is a program that receives its own code in its argument and calls \texttt{run} on it. An \emph{instance} $z$ is a pair of a program and an argument, and the tree $\mathrm{nil}$, of size~$1$, also counts as one, with program and argument $\mathrm{nil}$. That \emph{all runs} of an instance \emph{halt} is defined inductively along the evaluation: in a pair and in \texttt{run} both subprograms must halt, also when the first has no accepting run, and a chosen branch, and the program that is run, must halt for every accepting run of what precedes them. \begin{definition*} An instance $z$ is \emph{$\tau$-plain} if all its runs halt and every accepting run has an empty tally and costs at most $\tau$. The \emph{sum} $\pv(z)\in A$ of an instance is the sum of the weights of its accepting runs. \end{definition*} Any machine model with a self-interpreter of constant overhead should do, and polylogarithmic factors are always absorbed by powers of the parameter~$v$ of Sections~\ref{sec:cut} and~\ref{sec:scales}. The construct \texttt{use} and the tally are needed only in Section~\ref{sec:scales}, where a program that simulates a circuit over $\RR$ cannot contain the real constants of the circuit and names them in the tally instead (Definition~\ref{def:acc}). Finally, the \emph{code} of an instance \emph{as a word}, or briefly its \emph{word}, lists one symbol for each node of the tree, in preorder. \subsection{Tape automata}\label{ssec:automata} The second model is a weighted finite automaton that also writes on tapes. \begin{definition*} A \emph{tape automaton} over $A$ has finite sets of states, of tapes and of symbols, two fixed states $q^-$ and $q^+$, and for each \emph{letter} a matrix over $A$ whose rows and columns are indexed by the states. Each tape has two sides. A letter is either \emph{idle}, or it writes one symbol on one of the two sides of a tape, or it writes one symbol on the input. A sequence of $t$ letters is \emph{matched} on an input word if on every tape the two sides receive the same word and the input receives the given word. The \emph{value} of the automaton on an input word in $t$ steps is the sum, over all sequences of $t$ letters that are matched on this word, of the entry $(q^-,q^+)$ of the product of their matrices. \end{definition*} One side of a tape is for writing and the other for reading: a letter on the reading side guesses the symbol that is read, and being matched forces the guesses to agree with what is written. So a tape is like a queue, except that a symbol may be read before it is written. One tape automaton, the \emph{universal automaton}, evaluates every plain instance with a small loss of time. \begin{proposition}[a universal tape automaton]\label{prop:universal} There are a tape automaton and a constant $C_{\mathrm{univ}}$ such that the value of the automaton on the code of an instance $z$ as a word, in $t$ steps, is $\pv(z)$ whenever $z$ is $\tau$-plain and $t\ge C_{\mathrm{univ}}(\abs z+\tau)\bigl(\lg(\abs z+\tau)\bigr)^2$. \end{proposition} \fnote{The proof describes the automaton and counts its steps, and that the automaton is exact is proved only in the Lean development (Appendix~\ref{app:lean}).} \begin{proof} We describe the construction, which follows classical ideas \cite{Sch78,Sch80,BEGKN94,Rob91}: a pointer machine evaluates the program, and a tape automaton simulates it by guessing what every load returns and checking the guesses at the end. \step{The pointer machine.} The machine has a finite control and a fixed number of registers that hold addresses, where the address $0$ stands for $\mathrm{nil}$. In one step it may load the pair at the address in a register, allocate a pair of two registers at the next free address, test a register for~$0$, guess a bit, or multiply by one of finitely many weights. It first reads the code of $z$, which is the list of the brackets of the tree in preorder, and builds the tree, keeping a stack of pairs in the heap. Then it evaluates the program on the argument, with a stack of frames (tag, program, argument, outputs found so far) in the heap. On $\mathtt{use}$ it fails, since a plain instance uses no name in an accepting run. The number of a construct is found by at most $11$ loads, every construct takes boundedly many steps, and the name of a generator is read only to the bounded depth beyond which there are no names. Hence an accepting run of $z$ of cost $n$ gives exactly one accepting run of the machine, with the same weight and $O(\abs z+n)$ steps, and there are no others. \step{The automaton.} The automaton guesses the number $\beta$ of bits of an address and writes it in unary on a tape that serves as a counter. The registers and the next free address are words of $\beta$ bits that circulate on one tape: in each step of the machine they are read and written again, and the free address is increased on the way by the carry rule, where a carry out of the $\beta$ bits fails. For each load it guesses the pair and writes the record (address, load, pair), and for each allocation, the input tree included, it writes (address, allocation, pair). When the machine has accepted, it checks that the leading bit of the free address is $1$, which determines $\beta$, and it sorts the records by the key (address, allocations first). A pass of the sort reads the list and writes each record on one of two tapes according to the first bit of its key, with that bit moved to the end of the key, and then copies the first tape and after it the second back to the list. The counter counts the $\beta+1$ passes, so the same tapes serve for all of them. As the key is written with its least significant bit first, after $\beta+1$ passes it is in its old order and the sort, which is stable, is complete. A last pass checks that each address begins with an allocation and that all loads of it repeat its pair. After that the automaton stays in its final state on idle letters, and this is the only place where idle letters are allowed. \step{Exactness and number of steps.} Both sides of a tape carry the same word, and each block on a tape ends with a mark and is written before it is read, so what is read is what was written, in the same order. By induction on time all addresses in registers are below the free one, so a load refers to the only allocation at its address, which is earlier. Hence the last pass forces every guessed load, $\beta$ is forced, and all other letters are determined by the guesses of the machine. Thus accepting runs correspond to matched sequences of length $t$, provided that $t$ is large enough. They need $O(\beta)$ letters for each of the $O(\abs z+\tau)$ steps and records in each of the $\beta+1$ passes, and $\beta=O(\lg(\abs z+\tau))$. This is the classical conversion of random access into sequential checking~\cite{GS89}. \end{proof} \subsection{The runs of a tape automaton as a network}\label{ssec:runnet} Cutting a computation into time blocks and recording which block reads what another has written goes back to Hopcroft, Paul and Valiant \cite{HPV77} (see also \cite{PPST83,Wil25}). For a tape automaton the result is a network in the sense of Section~\ref{sec:tower-moves}, whose nodes are the time blocks and the parts of the input word (Figure~\ref{fig:runnet}). As a tape is a queue, the readers of what a node writes follow each other in order, and the data $\rho$ below record the first and the last. \begin{figure}[t] \centering \begin{tikzpicture}[x=1cm,y=1cm,every node/.style={font=\small},>={Stealth[length=1.8mm]}] \foreach \i in {1,2,3,4}{ \draw (2.6*\i-2.3,2.5) rectangle ++(2.0,0.55); \node at (2.6*\i-1.3,2.775) {part \i}; \draw[thick] (2.6*\i-2.6,0) rectangle ++(2.6,0.7); \node at (2.6*\i-1.3,0.35) {block \i}; } \node[anchor=east] at (0.1,2.775) {input}; \node[anchor=east] at (-0.15,0.35) {time}; \foreach \i/\q in {0/{q_0=q^-},1/{q_1},2/{q_2},3/{q_3},4/{q_4=q^+}}{ \draw[gray,thin] (2.6*\i,0)--(2.6*\i,-0.95); \node[font=\footnotesize] at (2.6*\i,-1.15) {$\q$}; } \foreach \a/\b in {1.0/1.0,3.5/2.2,4.2/4.2,6.5/6.5,9.1/9.1} \draw[->,densely dotted,thick] (\a,2.5)--(\b,0.7); \foreach \a/\b/\c in {1.6/50/3.0,1.9/42/5.5,4.8/50/6.0,7.2/50/8.4} \draw[->,thick] (\a,0.7) to[bend left=\b] (\c,0.7); \foreach \a/\c in {3.6/1.3,9.6/6.9} \draw[->,dashed,thick] (\a,0) to[bend left=40] (\c,0); \end{tikzpicture} \caption{A run of a tape automaton over $KT$ steps as a network, for $K=4$. An arrow from $p$ to $p'$ stands for the packets with the symbols that $p$ writes and $p'$ reads, solid and dashed for two tapes and dotted for the input. Dashed arrows point backwards in time.} \label{fig:runnet} \end{figure} \begin{lemma}[the runs of a tape automaton as networks]\label{lem:runnet} Let $K,T,\ell\ge1$ and $T'\le T$. Let an input word of at most $KT'$ symbols be cut into $K$ consecutive \emph{parts} of $T'$ symbols, the last parts possibly shorter or empty, and let the $KT$ steps be cut into $K$ consecutive \emph{time blocks} of $T$ steps. Order the $2K$ nodes as follows: first the $K$ time blocks, then the $K$ parts. Regard the input as one more tape, which is written by the parts and read by the blocks. Let $S$ be the set of tapes and $Q$ the set of states, and let the symbols and an end mark be coded by $c$ bits each. \begin{itemize} \item \emph{Data} $\rho$ say, for every tape and every node, whether the node writes nothing on the tape, and otherwise which is the first and which is the last node that reads its symbols. \item The data $\rho$ are \emph{valid} if on every tape the first reader of a node is not before the last reader of the node before it, and not after the last reader of the node itself. Here a node that writes nothing repeats the last reader of the node before it, so that $\rho$ is determined by the sequence of letters, and for the first node, the first node itself takes the place of that last reader. \end{itemize} Then the value of the automaton in $KT$ steps is the sum of the values of networks on these $2K$ nodes, one network for every choice of \begin{itemize} \item boundary states $q\in Q^{K+1}$ with $q_0=q^-$ and $q_K=q^+$, \item valid data $\rho$, and \item numbers of packets of $\ell$ bits between any two nodes, each number at most $(T+\abs S+1)c/\ell+1$. \end{itemize} In each of these networks a node whose node tensor is not $0$ has at most $2\bigl((T+2K(\abs S+1))c/\ell+2K\bigr)$ packets. \end{lemma} \begin{proof} We describe the network of one choice and then compare its terms with the matched sequences. For an ordered pair $(p,p')$ of nodes, the symbols that $p$ writes and $p'$ reads on all $\abs S+1$ tapes, those of each tape closed by the end mark, form one string, which is written on the packets from $p$ to $p'$. On a tape, two nodes are \emph{partners} if one reads a symbol that the other writes. The node tensor of a part tests that the contents of its packets are its symbols. The node tensor of the $i$th block is the sum, over all sequences of $T$ letters that have the partners prescribed by $\rho$ and whose symbols, coded on packets, are the given contents, of the entry $(q_{i-1},q_i)$ of the product of their matrices. It vanishes unless the block writes at most $T$ symbols in all, which bounds its packets. In a matched sequence the two sides of a tape carry the same word, so the $j$th symbol of one side meets the $j$th symbol of the other. Hence the partners of a node on a side follow each other in order, from a first to a last, and every matched sequence belongs to one choice of a valid $\rho$, of the boundary states and of the numbers of packets. Conversely, let $\rho$ be valid, and on some tape let $w_{pp'}$ be the symbols that $p$ writes for $p'$, in a term that is not~$0$. If $w_{pp'}$ and $w_{rr'}$ are not empty and $p\frac1k , \] and \emph{light} otherwise. The sets below different nodes of one stage are disjoint, so over a stage the left sides add up to at most $\frac14+\frac12$, and each stage has fewer than $k$ heavy nodes. Parents of heavy nodes are heavy. A \emph{piece} is a heavy node, or the subtree of a light node with a heavy parent, so there are at most $k\Lambda$ pieces. The packets between different pieces are the \emph{cut packets}, and the value of a piece sums over its other packets, the \emph{inner} ones. Every assignment of packets and letters is counted once, since the contents of absent or padded places are forced to be zero. \step{The bounds.} By part (b) of the theorem a piece has at most $\Lambda M^{1-\gamma}N\ell\le KT\Lambda/v^{300}$ bits in cut packets, besides the dead ones. A subtree that is a piece has at most $4M/k$ given nodes and $2Y/k$ packets, because its root is light, and a single node has fewer still, as $k\le v^{64}$. Packets used up and zeros in slots change this by a constant factor only, apart from $\Lambda N$ at each given node, by Theorem~\ref{thm:tree}(e). The packets from a node to itself are at most $N$ at each of the at most $4M/k$ given nodes, and the dead packets have at most $T/v^{300}$ bits. This bounds the bits in all. Parts (d) and (e) of the theorem give the last claim, since the heavy nodes and the pieces are computed from the parents and the numbers~$u_p$. \end{proof} \subsection{One cut} The next theorem turns Proposition~\ref{prop:pieces} into a program. Each piece becomes an instance again, whose program is a fixed \emph{evaluator} and whose argument is a \emph{script} that describes the piece. \begin{theorem}[one cut]\label{thm:onecut} There are constants $a_0,C,v_0$ such that the following holds with $\Lambda=(\lg v)^C$, for all $v\ge v_0$, all $\tau\ge v^{a_0}$ with $4\lg\tau\le(\lg v)^2$, all $s\le\tau$ and all $2\le k\le v^{64}$. Some program of size at most $v^{a_0}$ cuts $(\tau,s)$ into \[ \bigl(\tau\Lambda/k,\ (s/k+\tau/v^{256})\Lambda\bigr) \] with at most $k\Lambda$ pieces, in $(s+\tau k/v^{256})\Lambda$ steps. \end{theorem} \fnote{The proof describes the evaluator and the cutting program $G$ but does not print them, and that they are exact and keep the stated bounds is proved only in the Lean development (Appendix~\ref{app:lean}).} Thus a cut by $k$ divides the time and the input by $k$, up to the factor $\Lambda$, and the term $\tau/v^{256}$ accounts for the cut packets and the description of the tree, which the input of a piece also contains. \begin{proof} We obtain a formula for $\pv(z)$ from Proposition~\ref{prop:pieces} and then describe the two programs. Let $K,a$ be as in that proposition for the universal automaton, $M,N,\ell$ as in its proof, and $T=\ceil{\tau\Lambda/K}$. For a $\tau$-plain $z$ with $\abs z\le s\le\tau$ we have $KT\ge C_{\mathrm{univ}}(\abs z+\tau)(\lg(\abs z+\tau))^2$, so $\pv(z)$ is the value of the universal automaton on the word of $z$ in $KT$ steps. If $a_0$ is large, then $v^a\le T\le\tau$, and $K$, $M$ and all tables of size $(MN)^{C_{\mathrm{tree}}}$, those of the tower among them, are smaller than $v^{a_0}$ and than $\tau/v^{256}$. The proposition therefore gives the formula for $\pv(z)$. A piece reads at most $(s/k+M/k)\Lambda$ symbols of the input, and $M\le\tau/v^{256}$. \step{The evaluator.} Call the tree, the packets and the pieces of one choice its \emph{plan}. We name its packets, and the places of letters in blocks, by strings of $O((\lg v)^2)$ bits, and a binary trie finds an object in that many steps. A \emph{script} of a piece contains the numbers $T$ and $\ell$ in binary, the contents of its cut packets, the names of its inner packets, and a list of instructions of three kinds. \begin{itemize} \item \textsc{Block}: the boundary states of a block, its entries of $\rho$, the numbers of packets, and the names of the packets that carry them (or, for the input, the symbols themselves). \item \textsc{Role}, which is the part of one node in one law move: the law, the number $t$, the outcome, and for every slot and channel at this node the names of the packets that supply or receive its bits. A slot may be supplied by zeros. The bits of a segment that a law has replaced are those of the packet on the other side of the test at the node. \item \textsc{Test}: two packets are equal, or one packet is zero. \end{itemize} The evaluator guesses the contents of all inner packets and stores them. For \textsc{Block} it guesses $T$ letters and the states between them, multiplies for each by the matrix entry, collects the symbols of every side, checks that they fit these partners and numbers, and compares them, coded on packets, with the stored contents. For \textsc{Role} it guesses the index of each of the $t\ell$ layers and the bits of its channels, reads the bits of the slots in order, multiplies by the entry of the node tensor, and compares the coded strings with the stored packets. An entry of a matrix or of a node tensor is an element of $A$, hence a fixed sum of products of the generators, so multiplying by it is guessing a summand and multiplying by its factors. The contents fix the symbols and the indices, since codes are injective, and what is still summed over is exactly what the node tensors of Lemma~\ref{lem:runnet} sum over. Hence the sum of the instance (evaluator, script) is the value of the piece. All its loops have lengths that stand in the script, so all its runs halt, and within \[ \bigl(\#\text{blocks}\cdot T+\#\text{bits of packets}+\#\text{instructions}\cdot v^{O(1)}\bigr)(\lg v)^{O(1)}\le\tau\Lambda/k \] steps, because $a_0$ is large and because $t\le o_e$, which holds for every channel $e$ of a good outcome $o$ (Section~\ref{sec:tower-moves}), bounds the layers by the bits of the packets. \step{The program $G$.} The program contains the tables of the tower. On $z$ it writes the word of $z$ and cuts it into $K$ parts of equal length, the last ones shorter. It guesses $q$, $\rho$, the numbers of packets and the outcomes, each in binary with a fixed number of digits, and it rejects unless $\rho$ is valid, the numbers give every node at most $N$ packets, and all outcomes are good. With these it computes by the binary operations, in $(MN)^{C_{\mathrm{tree}}}\Lambda$ steps, the tree, the packets, the heavy nodes and the pieces, where rules such as ranks in a fixed enumeration decide which packet goes where. It then guesses the contents of the cut packets, writes for each piece its script, and outputs the list of the instances (evaluator, script). All of this is deterministic except for the guesses, and every choice in the formula is guessed exactly once, so the sum formula is the one obtained above. A script has $(s/k+M/k)\Lambda$ input symbols, $\tau\Lambda/v^{300}$ bits of cut packets, and $v^{O(1)}$ names and instructions, which is at most $(s/k+\tau/v^{256})\Lambda$ in all. The program $G$ takes $s\Lambda$ steps for the word, $(MN)^{C_{\mathrm{tree}}}\Lambda\le\tau\Lambda/v^{256}$ steps for the plan, and $k\Lambda\cdot\tau\Lambda/v^{300}$ steps for the cut packets, which gives the stated size of the pieces and number of steps. \end{proof} \subsection{Cuts at all scales} We now repeat the cut of Theorem~\ref{thm:onecut} until the pieces take $v^H$ steps, and the point to watch is that the inputs remain shorter than the times by the factor $v^{48}$, up to a factor $4$ for each cut. \begin{theorem}[cuts at all scales]\label{thm:cut} There are a multiple $H\ge272$ of $16$ and constants $C_{\mathrm{cut}},v_0$ such that the following holds whenever $v\ge v_0$ and $\alpha$ satisfy $(\lg v)^{C_{\mathrm{cut}}\alpha}\le v$. For all $\tau$ and $s$ with $v^H\le\tau\le v^{H\alpha}$ and $sv^{48}\le\tau$, some program of size at most $v^H$ cuts $(\tau,s)$ into $(v^H,v^{H-32})$ with at most $\tau v^2/v^H$ pieces in at most $\tau/v^{24}$ steps. \end{theorem} \begin{proof} We compose cuts of Theorem~\ref{thm:onecut} and follow their parameters by induction. Let $H$ be a multiple of $16$ with $H\ge272$ and $H\ge a_0+16$. We cut by $k=v^{63}$ as long as $\tau\Lambda\ge v^{H+64}$, and at last once by $k=\floor{\tau\Lambda/v^H}+1$, where $\tau$ is the current bound on the time, and we compose the programs, so that the next one is run on every piece in the list. The condition on $v$ gives $4\lg\tau\le(\lg v)^2$, and there are $r=O(\alpha)$ cuts. Let $(\tau_i,s_i)$ be the parameters after $i$ cuts and $P_i$ the number of pieces, and put $\tau_r=v^H$ after the last cut, for which $k\le2\tau_{r-1}\Lambda/v^H$. Three bounds hold by induction on~$i$, starting from $sv^{48}\le\tau$. First, $s_iv^{48}\le4^i\tau_i$, because $k\le v^{64}$ and $48+64\le256$, so that Theorem~\ref{thm:onecut} applies again. Second, $P_i\tau_i\le\tau(4\Lambda^2)^i$. Third, the next cut takes at most $(s_i+\tau_ik/v^{256})\Lambda\le2\cdot4^i\tau_i\Lambda/v^{48}$ steps on each piece. Moreover, the sum formulas compose. It follows that the final pieces have size at most $v^{H-48}(8\Lambda)^r$ and that there are at most $(\tau/v^H)(4\Lambda^2)^r$ of them. The number of steps is at most $(\tau/v^{48})(100\Lambda^3)^r$, and the program has size at most $4^r(v^{a_0}+O(1))$. All these powers of $\Lambda$ are below $v$ if $C_{\mathrm{cut}}$ is large, which gives the bounds of the theorem. \end{proof} \begin{remark*} For a fixed $\alpha$ the condition $(\lg v)^{C_{\mathrm{cut}}\alpha}\le v$ holds for all large~$v$, and this is all that Theorem~\ref{thm:simple} needs. \end{remark*} \section{Small circuits would speed up every computation}\label{sec:scales} We are still in the contracting case, and we keep the ring $A$ of Theorem~\ref{thm:laws} and the constant $H$ of Theorem~\ref{thm:cut}, and put $h_0=H/16$. In this section we prove Theorem~\ref{thm:contracting}, the lower bound for the permanent in the contracting case. A small circuit for the permanent would give a program, called an accelerator, that evaluates sums over the runs of other programs in fewer steps than those runs take, and we show that accelerators do not exist. \subsection{Accelerators} A circuit for $\PERM_m$ with $m^C$ gates is advice that is longer than the running times at its own scale, so we cannot diagonalize against it there. By Theorem~\ref{thm:cut}, however, a device that speeds up sums over runs of $v^H$ steps also speeds up much longer sums, piece by piece. The same advice therefore serves at the scale $v'=v^\alpha$, where it is short (about $v'^{H/4}$, against inputs of length $v'^{H-32}$) and a diagonal argument applies. A run of a program never multiplies by the constants of a circuit but only \emph{names} them in its tally (Section~\ref{sec:machines}). The powers $\xi^{2^i}$ of a constant $\xi$ also get names, so that a program can multiply by $\xi^e$ by naming $\xi^{2^i}$ for the binary digits of $e$ that are~$1$. \begin{definition}\label{def:acc} Let $R$ be a commutative $A$-algebra. An \emph{accelerator} at scale $v$ with constants $\xi_1,\xi_2,\dots$ from $R$ and exponent bound $B$ is a program $D$ with the following two properties. \begin{enumerate}[label=\textup{(\roman*)}] \item On every instance $z$ with $\abs z\le v^{H-32}$ all runs of $D$ halt, the accepting runs halt within $v^{H-16}$ steps, and every name in the tally of an accepting run stands for a power $\xi_l^{2^i}$ with $iv^{H-15}$. As $E$ is finite, there is $m_E$ such that for every $j\ge0$ there is an $r(j)0$ and $m_0$ such that for $m\ge m_0$ every circuit over $\kk$ for $\PERM_m$ has more than $2^{c(\log m)^2/\log\log m}$ gates. \end{theorem} \begin{proof} Suppose, for a small $c>0$ and some large $m$, that a circuit over $\kk$ for $\PERM_m$ has at most $2^{c(\log m)^2/\log\log m}$ gates. Let $v=\floor{m^{1/B_0}}$, so that $m\ge v^{B_0}$, and let $a$ be the least integer such that the circuit has at most $v^a$ gates, so that $a=O(c\log m/\log\log m)+1$. For any fixed $C'$ we have $(\lg v)^{C'(a+1)}\le v$ if $c$ is small enough and $m$ is large. Hence Lemma~\ref{lem:circuit} gives an accelerator of size $v^{C(a+1)}$ at scale $v$ over $\kk$, which is a nonzero $A$-algebra, and this contradicts Theorem~\ref{thm:noacc} with $C(a+1)$ in place of~$a$. \end{proof} \section{Proofs of the main theorems}\label{sec:proofs} Sections~\ref{sec:prices} to~\ref{sec:scales} work over the real numbers, and this section proves the following three statements over~$\RR$. Theorem~\ref{s:allfields} and Corollary~\ref{s:allclasses}, which hold over every field, are then proved in Appendix~\ref{app:fields}. \begin{theorem}[main theorem]\label{thm:main} There are $c>0$ and $m_0$ such that for all $m\ge m_0$ every circuit over $\RR$ that computes $\PERM_m$ has more than \[ m^{c(\log m)^{\rate}}=2^{c(\log m)^{\ratelog}} \] gates. \end{theorem} \begin{theorem}[no circuits of polynomial size]\label{thm:simple} For every integer $C\ge0$ there is $m_0$ such that for all $m\ge m_0$ no circuit over $\RR$ with at most $m^C$ gates computes $\PERM_m$. \end{theorem} \begin{corollary}\label{cor:classes} Over $\RR$, $\VP$ is a proper subset of $\VNP$. \end{corollary} The flat case was treated in Section~\ref{sec:flat} and the contracting case in Sections~\ref{sec:group} to~\ref{sec:scales}, and by Theorem~\ref{thm:alt} at least one of them occurs. \begin{proof}[Proof of Theorem~\ref{thm:main}] By Theorem~\ref{thm:alt} we are in the flat case or in the contracting case. In the flat case Theorem~\ref{thm:flat-rate} gives the bound $2^{c''(\log m)^{\ratelog}}$ for all large~$m$, with an explicit constant $c''>0$. In the contracting case Theorem~\ref{thm:contracting} gives the bound $2^{c'(\log m)^2/\log\log m}$ for some $c'>0$ and all large $m$, and $(\log m)^2/\log\log m\ge(\log m)^{\ratelog}$ for large~$m$. Hence the smaller of $c'$ and $c''$ serves as the constant $c$ of the theorem. \end{proof} Theorem~\ref{thm:simple} follows at once from Theorem~\ref{thm:main}, since $m^{c(\log m)^{\rate}}$ exceeds $m^C$ for large~$m$. The following direct proof uses of Section~\ref{sec:flat} only the part that precedes Section~\ref{sec:rate}. \begin{proof}[Proof of Theorem~\ref{thm:simple}] By Theorem~\ref{thm:alt} we are in the flat case or in the contracting case. In the flat case the claim is Theorem~\ref{thm:flat-simple}. In the contracting case it follows from Theorem~\ref{thm:contracting}, whose bound exceeds $m^C$ for large~$m$. \end{proof} \begin{proof}[Proof of Corollary~\ref{cor:classes}] The inclusion $\VP\subseteq\VNP$ is the case $r(n)=0$ of the definition. By Ryser's formula \cite{Rys63}, see also \cite{Gly10}, \[ \PERM_m=(-1)^m\sum_{e\in\{0,1\}^m}\ \prod_{j=1}^m(1-2e_j)\ \prod_{i=1}^m\ \sum_{j=1}^me_jx_{ij} . \] The summand is a polynomial in the $x_{ij}$ and the $e_j$ of degree at most $3m$ that has a circuit of size polynomial in~$m$, so the family $(\PERM_m)$ is in $\VNP$. By Theorem~\ref{thm:simple} it is not in $\VP$. \end{proof} \subsection*{Remarks and open questions} The constant $m_0$ in our theorems is not effective, and we do not claim that the exponent $\rate$ is optimal. We do not know whether we are in the flat case or in the contracting case, and we have not shown that the two cases exclude each other (see the end of Section~\ref{sec:alt}). To make $m_0$ effective along the lines of this proof we would have to decide which case holds, and in the contracting case we would also need values for the numbers $\mu$ and $s$ of Definition~\ref{def:cases}, which the proof of Theorem~\ref{thm:alt} does not provide. The exponent $\rate$ comes from the flat case alone, since the contracting case gives the stronger bound of Theorem~\ref{thm:contracting}. Two quantities limit the argument in the flat case: the $k$ bits that name a balanced set, and the scaled exponent $c\,g_\phi(P)$ of the set $P$ of all ends, which Proposition~\ref{prop:cube} bounds by about~$\sqrt k$. We do not know whether the bound in the flat case can be improved. \section{All fields and the Hamiltonian cycle polynomial}\label{app:fields} This appendix proves the lower bound of Theorem~\ref{thm:main} over every field, with a constant that does not depend on the field (Theorem~\ref{thm:allfields}), and deduces that $\VP\ne\VNP$ over every field (Corollary~\ref{cor:allclasses}). Sections~\ref{sec:prices} to~\ref{sec:proofs} use nothing about $\kk$ except that it is a field, apart from the element~$\frac12$ in Proposition~\ref{prop:grid}, and for uniform constants we apply them to a single field in each characteristic. Since the permanent is the determinant in characteristic two, we also treat the Hamiltonian cycle polynomial $\HC_M$, for which Proposition~\ref{prop:hc-grid} replaces Proposition~\ref{prop:grid} and needs no~$\frac12$. \subsection{Reduction to the algebraic closure of the prime field} Let $p$ be zero or a prime, and let $\KK$ be the algebraic closure of the prime field of characteristic~$p$. \begin{lemma}[circuits with constants in $\KK$]\label{lem:transfer} Let $f$ be a polynomial with integer coefficients. If $f$ has a circuit with $L$ gates over some field of characteristic~$p$, then it has a circuit with $L$ gates over~$\KK$. \end{lemma} \begin{proof} We embed the given field into an algebraically closed field, which contains a copy of~$\KK$, and adjoin the constants of the circuit to this copy. That the circuit computes $f$ is an identity in the resulting finitely generated $\KK$-algebra, and we reduce it modulo a maximal ideal, whose residue field is $\KK$ by the Nullstellensatz. \end{proof} \subsection{Sums over bits as Hamiltonian cycle polynomials} The next proposition is the analogue of Proposition~\ref{prop:grid} for the Hamiltonian cycle polynomial. \begin{proposition}[sums over bits as Hamiltonian cycle polynomials]\label{prop:hc-grid} Let $R$ be a commutative ring, and let the surjections $v:I\to V$ and $w:I\to K$ and the $2\times2$ matrices $W_n$ over~$R$ be as in Proposition~\ref{prop:grid}. Then the sum of that proposition is $\HC_M$ of an $M\times M$ matrix whose entries are $0$, $1$ and single values $W_n(x,r)$, for every $M\ge40\abs I$. \end{proposition} \begin{proof} We construct a directed graph with weighted edges in which the products of the weights along the Hamiltonian cycles add up to the given sum, and we take its weighted adjacency matrix. \step{Segments and XORs.} The graph is a cyclic row of \emph{segments}, each of which offers a few parallel \emph{options}, which are directed paths from one \emph{junction} to the next. An \emph{XOR} between two options consists of three new vertices $a,b,c$ with edges in both directions along $a$--$b$--$c$, and the first option is led through it from $a$ to~$c$ and the second from $c$ to~$a$. A Hamiltonian cycle must pass $b$ one way or the other, and if it runs $a,b,c$ then it follows the first option from junction to junction, also through several XORs in series. Hence it takes exactly one of the two options, and every choice with this property gives exactly one cycle. The weight of an option is put on its first edge, and in each segment at most one option passes no XOR, so that there are no parallel edges. \step{The graph.} For every element of $V$ and of $K$ there is a segment with the two options $T$ and~$F$, which stand for the values $1$ and~$0$ of the bits of $x$ and of~$r$. For every $n\in I$ there are seven further segments, namely the \emph{selector} with an option $s_t$ of weight $W_n(t)$ for each $t\in\{T,F\}^2$, for each $t$ a \emph{flag} with the options $y_t$ and~$\bar y_t$, the \emph{$x$-check} with the options $\xi_{TT},\xi_{TF},\xi_0$, and the \emph{$r$-check} with the options $\rho_{TT},\rho_{FT},\rho_0$. The ten XORs at $n$ join $\bar y_t$ with $s_t$ and, where they exist, with $\xi_t$ and $\rho_t$, and they join $\xi_0$ and $\rho_0$ with the option $T$ of the segments of $v(n)$ and of $w(n)$, respectively. Thus $y_t$ is taken exactly for the one $t$ for which $s_t$ is taken, and the two checks then force this $t$ to be $(x_{v(n)},r_{w(n)})$. The Hamiltonian cycles thus correspond to the pairs $(x,r)$, and the cycle of $(x,r)$ has the weight $\prod_nW_n(x_{v(n)},r_{w(n)})$. \step{The size.} There are $\abs V+\abs K+7\abs I$ junctions and $10\abs I$ XORs, which makes at most $39\abs I$ vertices, and segments with a single option of weight~$1$ give every larger~$M$. \end{proof} With $\HC_M$ in place of $\PERM_M$ and $40q$ in place of~$3q$, Corollary~\ref{cor:clauses} therefore holds in every characteristic, and its entries are again affine in one variable each. We call a family $(G_M)$ of polynomials over a field~$\kk$ in $M\times M$ variables \emph{complete for grid sums with factor~$\theta$} if the following holds: whenever in Proposition~\ref{prop:grid} the ring $R$ is a polynomial ring over~$\kk$, with or without the element~$\frac12$, and the entries of every matrix $W_n$ are affine in one variable, which depends on $w(n)$ only, the sum there is, for every $M\ge\theta\abs I$, the value of $G_M$ at a matrix whose entries are affine in one variable each. Thus $(\PERM_M)$ has this property with factor $3$ if $2\ne0$, and $(\HC_M)$ with factor~$40$. Corollary~\ref{cor:clauses}, Lemma~\ref{lem:fkl-perm} and with it Theorem~\ref{thm:flat-rate} hold for every such family, with $\theta$ in place of~$3$. These constructions are in the tradition of Valiant and Malod \cite{Val79,Mal03}, and a completeness proof for the Hamiltonian cycle polynomial along these lines can be found in \cite{FPV13}. \subsection{The lower bound over all fields} We can now state the main theorem in its general form. \begin{theorem}[lower bound over all fields]\label{thm:allfields} There is an absolute constant $c>0$ such that for every $p$, zero or prime, there is $m_0$ with the following property. Over every field of characteristic $p$ and for every $m\ge m_0$, every circuit for $\HC_m$, and every circuit for $\PERM_m$ if $p\ne2$, has more than $m^{c(\log m)^{\rate}}$ gates. \end{theorem} \begin{proof} By Lemma~\ref{lem:transfer} it suffices to consider circuits over~$\KK$, where Theorem~\ref{thm:alt} gives the flat or the contracting case, depending on~$p$. The constant of Theorem~\ref{thm:flat-rate} in the flat case is absolute, and the bound of Theorem~\ref{thm:contracting} in the contracting case, although its constant depends on~$p$, exceeds that of the flat case for all large~$m$, as in the proof of Theorem~\ref{thm:main}. For $\HC_m$, Proposition~\ref{prop:hc-grid} replaces Proposition~\ref{prop:grid}, which enters through Corollary~\ref{cor:clauses} in Lemmas~\ref{lem:fkl-perm} and~\ref{lem:circuit}. There the factor $3$ becomes~$40$, and the proofs only used that $3k^3\ell\,2^{k\ell}\le2^{2k\ell}$ for large values of the parameters. \end{proof} The separation of the classes follows as in Corollary~\ref{cor:classes}. \begin{corollary}\label{cor:allclasses} Over every field, $\VP$ is a proper subset of $\VNP$. \end{corollary} \begin{proof} The family $(\HC_m)$ is in $\VNP$ \cite{Val79}, as one sees by summing over one-hot codes of the places that the vertices take on the cycle, with vertex $1$ at place~$1$. By Theorem~\ref{thm:allfields} it is not in $\VP$. \end{proof} \section{Approximate computation}\label{app:approx} In this appendix we extend Theorem~\ref{thm:allfields} to circuits that only approximate the polynomial, in the sense of border complexity (Theorem~\ref{thm:approx}), so that $\VNP$ is not contained in the closure $\VPbar$ of $\VP$. We first reduce to constants that are Laurent polynomials in a formal variable $\eps$ over~$\KK$, and in the flat case we then only have to adapt Lemma~\ref{lem:few}. In the contracting case an approximating circuit gives a program that is correct only up to multiples of~$\eps$, and Proposition~\ref{prop:approx-acc}, whose long proof may be skipped at first reading, excludes such programs. \subsection{Approximating circuits} \begin{definition}\label{def:approx} Let $\kk$ be a field, and let $\kk((\eps))$ be the field of formal Laurent series over~$\kk$. A circuit over $\kk((\eps))$ \emph{approximates} a polynomial $f$ over $\kk$ if it computes a polynomial of the form $f+\eps g$, where $g$ is a polynomial all of whose coefficients lie in $\kk[[\eps]]$. We then fix one such polynomial and call it the \emph{output} of the circuit. The class $\VPbar$ is defined like $\VP$, with approximating circuits in place of circuits. \end{definition} Over an algebraically closed field, $f$ is approximated with $L$ gates if and only if it lies in the Zariski closure of the polynomials that have circuits with $L$ gates \cite{Ald84,Bur04}, but we do not use this fact. \begin{lemma}[constants that are Laurent polynomials]\label{lem:transfer-approx} Let $f$ be a polynomial with integer coefficients, and let $\kk$ be a field of characteristic~$p$. If a circuit with $L$ gates over $\kk((\eps))$ approximates~$f$, then some circuit with $L$ gates over the ring $\KK[\eps,\eps^{-1}]$ computes a polynomial that lies in $f+\eps\,\KK[\eps][x]$. \end{lemma} \begin{proof} We cut every constant off above $\eps^N$ with $N=2^L\Delta$, where no constant contains a power of $\eps$ below $\eps^{-\Delta}$. Since the output has degree at most $2^L$ in the constants, the cut changes it only in the positive powers of~$\eps$. We then apply the argument of Lemma~\ref{lem:transfer} to the coefficients of the constants, which are now Laurent polynomials. \end{proof} \subsection{Approximating circuits in the flat case} The flat case needs Lemma~\ref{lem:few} for functionals that are Laurent polynomials. \begin{lemma}[sums with few terms, approximate version]\label{lem:few-approx} Lemma~\ref{lem:few} remains true if the functionals of which the $f_j$ consist have coefficients in $\kk[\eps,\eps^{-1}]$, no negative power of $\eps$ occurs in $\sum_jf_j(T_j)$, and $t$ is the coefficient of $\eps^0$ in this sum. \end{lemma} \begin{proof} We follow the proof of Lemma~\ref{lem:few}, and let all exponents of $\eps$ in the functionals lie in $[-\Delta,\Delta]$. As no negative powers occur, $t^n$ is the coefficient of $\eps^0$ in the $n$th power of the sum, which is again a sum over the types. For each type the functional at a party outside $P$ is a sum of at most $2n\Delta+1$ functionals over~$\kk$, one for each power of~$\eps$, so that this coefficient is covered by $(2n\Delta+1)^{\abs V}$ copies of the same tensor as before, a subexponential number. \end{proof} It follows that Proposition~\ref{prop:flat-rate}, and with it Theorem~\ref{thm:flat-rate}, holds for approximating circuits. Indeed, we apply Lemma~\ref{lem:balanced}, which holds over every commutative ring, over $\kk((\eps))$, cut the functionals off at a power of $\eps$ that is high against their negative exponents times the number of parties, and use Lemma~\ref{lem:few-approx} in place of Lemma~\ref{lem:few}. \subsection{Approximate accelerators in the contracting case} For the contracting case we weaken the notion of an accelerator over a commutative $A$-algebra~$R$. \begin{definition*} An \emph{approximate accelerator} over $R$ is defined as in Definition~\ref{def:acc}, except that its constants lie in $R[\eps,\eps^{-1}]$ and that in property~(ii) its value on a $v^H$-plain instance $z$ is only required to lie in $\pv(z)+\eps R[\eps]$. \end{definition*} Approximate accelerators of moderate size do not exist either. \begin{proposition}[no approximate accelerators]\label{prop:approx-acc} Theorem~\ref{thm:noacc} holds for approximate accelerators. \end{proposition} \fnote{The proof below describes the programs and accounts for their sizes and running times to the level of exponents. That the programs do what is claimed is proved only in the Lean development.} \begin{proof} We carry the given program to larger scales by the rounds of Proposition~\ref{prop:next}, keeping the error a multiple of~$\eps$, and at a large scale we extract the coefficient of~$\eps^0$. Suppose that there is an approximate accelerator of size $v^a$ at scale~$v$ over a nonzero $A$-algebra~$E$. Let $\Delta$ bound the absolute values of the exponents of $\eps$ in its constants, and for $r\ge1$ let $\sigma_r$ be the substitution $\eps\mapsto\eps^r$, an endomorphism of $E[\eps,\eps^{-1}]$. All constants below arise from the given ones by such substitutions, so that the $n$th power of each of them has at most $2n\Delta+1$ terms. We carry the program to the scales $u=v^{a+5}$, $u^5$, $u^{25}$, and so on, keeping at the scale $u$ a program of size at most $u^{4h_0}$ and a trie of at most $u$ such constants. The height of the trie and the exponent bound are $b_0+O(\lg u)$, where $b_0\le((a+1)\lg v)^{O(1)}$ depends on the first step only, and the exponents of $\eps$ in the constants are at most $2^{(\lg u)^{O(1)}}$ in absolute value, with a constant in $O(1)$ that does not depend on $\Delta$ for large~$u$. \step{One round.} We follow the proof of Proposition~\ref{prop:next} from a program $D$, with constants~$\xi'$, to the next scale. Let $p$ be a program whose values on plain instances $z$ lie in $\pv(z)+\eps E[\eps]$. By Lemma~\ref{lem:postpone} its value is exactly $\sum_e\lambda^e\pv(z_e)$, where $\lambda$ lists the powers that $p$ names and $\pv(z_e)\in A$. Let $r$ exceed the absolute values of the exponents of $\eps$ in all $\lambda^e$. The new program guesses $e$, multiplies by $\lambda^e$, and cuts $z_e$ into pieces. For the list of pieces it guesses once a vector $e''$ of exponents for the constants $\sigma_r(\xi')$, multiplies by these powers, and lets the interpreter of Lemma~\ref{lem:postpone} run $D$ on all pieces, counting the names against~$e''$. By that lemma the result is the product, over the pieces $y$, of $\sigma_r$ applied to the value of $D$ at~$y$, which lies in $\prod_y\pv(y)+\eps^rE[\eps]$ if the pieces are plain. Summed over the runs of the cutting program, whose weights lie in $A$, the products $\prod_y\pv(y)$ give exactly $\pv(z_e)$ by Definition~\ref{def:cut}. The new value therefore lies in \[ \sum_e\lambda^e\bigl(\pv(z_e)+\eps^rE[\eps]\bigr)\subseteq(\text{value of }p)+\eps E[\eps]\subseteq\pv(z)+\eps E[\eps]. \] The new trie has the old one and the trie of the constants $\sigma_r(\xi')$ as its two halves, so that a round adds one to the height, at most the number of constants of $D$ to the number of constants, and $J$ to the exponent bound $B$ of the names, where $J$ is as in the proof of Proposition~\ref{prop:next}. The logarithm of the largest exponent of $\eps$ becomes at most the old one, plus that of the constants of~$D$, plus $O(J+B+\lg u)$. From $u$ to $u^5$ there are at most $15$ rounds, all with the same~$D$, so that this logarithm is multiplied by at most $16$ and increased by $O(b_0+\lg u)$, while $\lg u$ is multiplied by~$5$. Hence it remains $(\lg u)^{O(1)}$. In general there are $O(\alpha)$ rounds from a scale to the next, so that the invariant is kept, and the running time again has a factor $u$ to spare. \step{Back to exact values.} Let $u$ be one of these scales, large compared with $v$, $\Delta$ and~$b_0$, let $D$ be the program there, and let $2^J>u^H$. We choose $\beta=O(\lg u)$ and $W=(\lg u)^{O(1)}$ such that every relevant power of a constant has at most $2^\beta$ terms and every product of such powers has exponents of $\eps$ below $2^W$ in absolute value. The new program does the following for every named power $c=\xi_l^{2^i}$ with $i0$ such that, for all large~$m$, the polynomial $\PERM_m$ is not approximated, in the sense of Definition~\ref{def:approx}, by determinants of affine matrices of size $m^{c(\log m)^{\rate}}$. Over $\CC$, and for matrices of polynomial size, this was conjectured by Mulmuley and Sohoni \cite{MS01} in the language of orbit closures. \end{remark} \section{Proofs of the standard facts on CAT(0) spaces}\label{app:cat} In this appendix we prove Lemma~\ref{lem:toolkit} from the definition of a CAT(0) space in Section~\ref{ssec:spaces}. None of the arguments is new. Note that midpoints are unique, since the right-hand side of the CN inequality vanishes if $z$ is a second midpoint of $x$ and~$v$. \begin{proof}[Proof of Lemma~\ref{lem:toolkit}] \step{Minimization.} Let $F\subseteq Y$ be nonempty, closed and convex, let $c>0$, and let $G\ge0$ be a continuous function on $F$ with $G(m)\le\frac12G(q)+\frac12G(q')-\frac c4\abs{qq'}^2$ for the midpoint $m$ of any two points $q,q'$ of~$F$. Then minimizing sequences in $F$ are Cauchy sequences, so that $G$ has a minimizer $b$ on~$F$. If $G(y)\ge G(b)+c'\abs{yb}^2$ for all $y\in F$, then this bound at the midpoint of $b$ and~$y$, together with the hypothesis on~$G$, gives the same with $\frac{c+c'}2$ in place of~$c'$. Repeating this from $c'=0$ we get in the limit \begin{equation}\label{eq:minimizer} G(y)\ge G(b)+c\abs{yb}^2\qquad\text{for all }y\in F . \end{equation} By the CN inequality this applies to $G(y)=\sum_iw_i\abs{yx_i}^2$ on $F=Y$, for weights $w_i\ge0$ with $c=\sum_iw_i>0$, and to $G(q)=\abs{yq}^2$ on the set $F$ of~(d), with $c=1$. \step{Part (a).} Let $\gamma$ be the minimizer for the points $x,v$ with the weights $1-t,t$. By \eqref{eq:minimizer} we have $\abs{z\gamma}^2\le(1-t)\abs{zx}^2+t\abs{zv}^2-(1-t)\abs{\gamma x}^2-t\abs{\gamma v}^2$, and $(1-t)\abs{\gamma x}^2+t\abs{\gamma v}^2\ge t(1-t)(\abs{\gamma x}+\abs{\gamma v})^2\ge t(1-t)\abs{xv}^2$, which together are the inequality. At $z=x$ and at $z=v$ it gives $\abs{x\gamma}\le t\abs{xv}$ and $\abs{\gamma v}\le(1-t)\abs{xv}$, and hence equality in both. The uniqueness is the inequality at a second point $z$ with the same distances, for which the right-hand side is~$0$. \step{Part (b).} Let $0<\eta<1$ and let $z$ be the point at $\eta$ on $[y,u]$. By the triangle inequality and the Cauchy--Schwarz inequality we have $\abs{xv}^2\le\abs{xz}^2/\eta+\abs{zv}^2/(1-\eta)$. We bound $\abs{xz}^2$ and $\abs{zv}^2$ by (a) and choose $\eta=\abs{xy}/(\abs{xy}+\abs{uv})$, taking a limit if this is $0$ or~$1$, which gives the first statement. The second follows because $2\abs{xy}\abs{uv}\le\abs{xy}^2+\abs{uv}^2$. Equality in the second statement forces $\abs{xy}=\abs{uv}$, and likewise $\abs{xu}=\abs{yv}$ when the roles of $y$ and $u$ are exchanged. \step{Parts (c) and (d).} The barycenter of (c), with all weights equal to~$1$, and the nearest point of (d) are minimizers as in the first step, and the inequalities of (c) and (d) are \eqref{eq:minimizer}, which also shows that there is only one minimizer. For the last statement of (c) we add the inequality of (c) for the points $x_i$ at $y=b'$ and for the points $x'_i$ at $y=b$, and we apply (b) to the four points $b',x_i,b,x'_i$ for every~$i$, which together give $n\abs{bb'}^2\le\abs{bb'}\sum_i\abs{x_ix'_i}$. \step{Part (e).} The product is complete, midpoints are taken coordinate by coordinate, and the CN inequality for the product is the sum of those for the coordinates. \step{Part (f).} Let $\Phi(p,p';r,r')=\abs{pr'}^2+\abs{p'r}^2-\abs{pr}^2-\abs{p'r'}^2$, so that $\Phi(p,p';r,r')\le2\abs{pp'}\abs{rr'}$ by~(b). We have $\Phi(x,u;y,v)=\Phi(x,a;y,b)+\Phi(x,a;b,v)+\Phi(a,u;y,b)+\Phi(a,u;b,v)$, and the bounds for the four terms add up to $2\abs{xu}\abs{yv}=2h^2$, which by the hypotheses is the value of $\Phi(x,u;y,v)$. So all four bounds are equalities, and the first one says that \begin{equation}\label{eq:flat-eq} \abs{xb}^2+\abs{ya}^2-\delta^2-\abs{ab}^2=2sth^2 . \end{equation} Let first $s=t$. By (b) we have $\abs{xb}^2+\abs{ya}^2\le\abs{xa}^2+\abs{yb}^2+2\abs{xy}\abs{ab}=2s^2h^2+2\delta\abs{ab}$, so that $(\abs{ab}-\delta)^2\le0$ and $\abs{xb}^2+\abs{ya}^2=2\delta^2+2s^2h^2$. By (a) both $\abs{xb}^2$ and $\abs{ya}^2$ are at most $\delta^2+s^2h^2$, so both are equal to it. As $b$ does not depend on $s$ and $a$ does not depend on~$t$, it follows that $\abs{xb}^2=\delta^2+t^2h^2$ and $\abs{ya}^2=\delta^2+s^2h^2$ for all $s$ and~$t$, and inserting this into \eqref{eq:flat-eq} gives the claim. \end{proof} \section{Glossary of coined terms}\label{app:glossary} This appendix lists the main terms that are introduced in this paper or used in a special sense and says where each is defined. \begingroup \footnotesize \begin{longtable}{@{}p{.2\textwidth}p{.62\textwidth}p{.12\textwidth}@{}} \hline term & meaning & defined in\\ \hline \endfirsthead \hline term & meaning & defined in\\ \hline \endhead wire $\ut q{uv}$ & the unit tensor on two parties $u\ne v$; it has dimension $q$ and carries $\log q$ bits & \S\ref{sec:prices}\\ spectral point $\phi$ & a nonnegative function on tensors with $\phi(1)=1$ that is multiplicative, does not increase under restriction and is subadditive & Def.~\ref{def:spectral}\\ $g_\phi(P)$, $d_\phi(u,v)$ & the exponents in $\phi(\ut qP)=q^{g_\phi(P)}$; $d_\phi(u,v)=g_\phi(\{u,v\})$ & Lemma~\ref{lem:exponents}\\ price; $\abs{xy}$ & a limit of multiples $c\,d_\phi$; the distance of $x$ and $y$ in it & Def.~\ref{def:price}\\ hub & one of two additional parties through which a tensor of small rank is routed & Lemma~\ref{lem:hubs}\\ price space & a complete CAT(0) space whose metric is a price & \S\ref{sec:cat}\\ clause sum & a sum over bit vectors of a product of weights of satisfied clauses & \S\ref{sec:flat}\\ complete network; $f_{k,\ell}$ & the tensor network on the complete graph on $k$ nodes with $\ell$ bits on every edge; its polynomial & \S\ref{sec:flat}\\ load & a vector of natural numbers on pairs of elements, or on edges & \S\ref{sec:ident}\\ law; slot; channel & an identity that rewrites bits on arbitrary pairs (slots) as a sum of networks with bits on edges (channels) & Def.~\ref{def:law}\\ packet & a string of $\ell$ bits carried between two nodes & \S\ref{sec:tower}\\ network; node tensor; value; outcome & numbers of packets on pairs of nodes and a tensor at each node; the sum over all contents of the packets of the product of the node tensors; the numbers of packets that a law puts on its channels & \S\ref{sec:tower}\\ run; weight; tally & a computation of a nondeterministic program; the element of $A$ that it accumulates; the list of names of constants that it has used & \S\ref{sec:machines}\\ instance $z$; $\pv(z)$ & a program with an argument; the sum of the weights of its accepting runs & \S\ref{sec:machines}\\ $\tau$-plain & all runs halt, and the accepting ones have empty tallies and take at most $\tau$ steps & \S\ref{sec:machines}\\ tape automaton & a finite automaton with a matrix over $A$ for each letter, whose letters write on the two sides of tapes & \S\ref{sec:machines}\\ accelerator & a program that evaluates sums over $v^H$ steps within $v^{H-16}$ steps & Def.~\ref{def:acc}\\ \hline \end{longtable} \addtocounter{table}{-1} \endgroup \section{The Lean development}\label{app:lean} This appendix describes the formalization on which Section~\ref{sec:status} relies. The file of definitions and statements is printed in Section~\ref{app:statement}. Here we say how it can be checked, list the Lean theorem that belongs to each numbered statement of the paper, and say where the Lean development differs from the text. The development uses Lean~4.33.1 \cite{Lean} and Mathlib \cite{Mathlib} at commit \begin{center}\texttt{0df444a360eaa60ab8c11dca51a86af692955474}.\end{center} The file printed in Section~\ref{app:statement} imports Mathlib and nothing else, and it is printed as it stands in the development, without the license comment of five lines at its head. It defines circuits, the two polynomials, approximating circuits and Valiant's classes, and it states four propositions: \texttt{MainTheorem} is Theorem~\ref{thm:allfields}, \texttt{MainTheoremApprox} is the first assertion of Theorem~\ref{thm:approx}, \texttt{Separation} is Corollary~\ref{cor:allclasses}, and \texttt{SeparationClosure} is the second assertion of Theorem~\ref{thm:approx}. In the namespace \texttt{Solution} the theorems \texttt{mainTheorem}, \texttt{mainTheoremApprox}, \texttt{separation} and \texttt{separationClosure} have exactly the types \texttt{MainTheorem}, \texttt{MainTheoremApprox}, \texttt{Separation} and \texttt{SeparationClosure}, and \texttt{permanent\_over\_real} is Theorem~\ref{thm:main}. \subsection{Checks of the development} The folder \url{https://github.com/anthropics/formal-math/tree/main/vp-vnp} builds with Lean~4.33.1 and Mathlib's compiled files. It uses no \texttt{native\_decide} and declares no axioms, and its only uses of \texttt{sorry} are in \texttt{Challenge.lean}, which states the theorems of \texttt{Solution} without proof so that the tool Comparator can compare against them. The theorems of \texttt{Solution} depend on no axioms other than \texttt{propext}, \texttt{Classical.choice} and \texttt{Quot.sound}, as \texttt{scripts/PrintAxioms.lean} prints. Comparator accepted them against \texttt{Challenge.lean}, rechecking the proofs with Lean's kernel and with the independently written checker nanoda. The file printed in Section~\ref{app:statement} is \texttt{Statement.lean}, without the license comment at its head. Whether the statements say what is meant was judged only by AI readers. No human mathematician has checked the development, the statement file or the proofs. \subsection{The numbered statements in Lean} Every numbered statement of the paper except Remark~\ref{rem:det} has a Lean theorem. Table~\ref{tab:lean} lists them in the order of the paper, and for some statements it names a second Lean theorem; it also lists the display~\eqref{eq:window}, and \texttt{eq\_Q} is the display~\eqref{eq:Q}. \begin{table}[htp] \footnotesize \renewcommand{\arraystretch}{1.1} \setlength{\tabcolsep}{4pt} \begin{minipage}[t]{.485\textwidth} \begin{tabular}[t]{@{}p{.37\linewidth}>{\raggedright\arraybackslash}p{.57\linewidth}@{}} \hline Statement & Lean (prefix \texttt{Paper.})\\ \hline \multicolumn{2}{@{}l}{\emph{Section~\ref{sec:prices}}}\\ Definition~\ref{def:spectral} & \texttt{def\_spectral}, \texttt{def\_spectral\_congr}\\ Lemma~\ref{lem:exponents} & \texttt{lem\_exponents}\\ Lemma~\ref{lem:hubs} & \texttt{lem\_hubs}, \texttt{lem\_hubs\_further}\\ Definition~\ref{def:price} & \texttt{def\_price}\\ Proposition~\ref{prop:gauge} & \texttt{prop\_gauge}\\ Theorem~\ref{thm:duality} & \texttt{thm\_duality}\\ Proposition~\ref{prop:extend} & \texttt{prop\_extend}\\ Proposition~\ref{prop:random} & \texttt{prop\_random}\\ \multicolumn{2}{@{}l}{\emph{Section~\ref{sec:cross}}}\\ Lemma~\ref{lem:count} & \texttt{lem\_count}\\ Proposition~\ref{prop:identity} & \texttt{prop\_identity}\\ Proposition~\ref{prop:crossing} & \texttt{prop\_crossing}, \texttt{eq\_Q}\\ \multicolumn{2}{@{}l}{\emph{Section~\ref{sec:cat}}}\\ Theorem~\ref{thm:cn} & \texttt{thm\_cn}\\ Lemma~\ref{lem:means} & \texttt{lem\_means}\\ Proposition~\ref{prop:space} & \texttt{prop\_space}\\ Lemma~\ref{lem:toolkit} & \texttt{lem\_toolkit}, \texttt{lem\_toolkit\_a} to \texttt{\_f}, \texttt{lem\_toolkit\_c\_minimizer}\\ \multicolumn{2}{@{}l}{\emph{Section~\ref{sec:alt}}}\\ Definition~\ref{def:cases} & \texttt{def\_cases}\\ Theorem~\ref{thm:alt} & \texttt{thm\_alt}\\ \multicolumn{2}{@{}l}{\emph{Section~\ref{sec:flat}}}\\ Proposition~\ref{prop:grid} & \texttt{prop\_grid}\\ Corollary~\ref{cor:clauses} & \texttt{cor\_clauses}\\ Lemma~\ref{lem:fkl-perm} & \texttt{lem\_fkl\_perm}, \texttt{lem\_fkl\_perm\_printed}\\ Lemma~\ref{lem:balanced} & \texttt{lem\_balanced}\\ Proposition~\ref{prop:flat-lower} & \texttt{prop\_flat\_lower}, \texttt{prop\_flat\_lower\_printed}\\ Theorem~\ref{thm:flat-simple} & \texttt{thm\_flat\_simple}\\ Lemma~\ref{lem:few} & \texttt{lem\_few}\\ Lemma~\ref{lem:convex} & \texttt{lem\_convex}\\ Proposition~\ref{prop:cube} & \texttt{prop\_cube}\\ Proposition~\ref{prop:flat-rate} & \texttt{prop\_flat\_rate}, \texttt{prop\_flat\_rate\_printed}\\ Theorem~\ref{thm:flat-rate} & \texttt{thm\_flat\_rate}\\ \hline \end{tabular} \end{minipage}\hfill \begin{minipage}[t]{.485\textwidth} \begin{tabular}[t]{@{}p{.37\linewidth}>{\raggedright\arraybackslash}p{.57\linewidth}@{}} \hline Statement & Lean (prefix \texttt{Paper.})\\ \hline \multicolumn{2}{@{}l}{\emph{Section~\ref{sec:group}}}\\ Lemma~\ref{lem:growth} & \texttt{lem\_growth}\\ Lemma~\ref{lem:words} & \texttt{lem\_words}\\ Lemma~\ref{lem:first} & \texttt{lem\_first}\\ Display~\eqref{eq:window} & \texttt{eq\_window}, \texttt{projection\_nearest}\\ Lemma~\ref{lem:tele} & \texttt{lem\_tele}\\ Lemma~\ref{lem:angle} & \texttt{lem\_angle}\\ Theorem~\ref{thm:poincare} & \texttt{thm\_poincare}\\ \multicolumn{2}{@{}l}{\emph{Section~\ref{sec:ident}}}\\ Definition~\ref{def:law} & \texttt{def\_law}\\ Theorem~\ref{thm:laws} & \texttt{thm\_laws}\\ \multicolumn{2}{@{}l}{\emph{Section~\ref{sec:tower}}}\\ Proposition~\ref{prop:tower} & \texttt{prop\_tower}, \texttt{prop\_tower\_representatives}\\ Theorem~\ref{thm:tree} & \texttt{thm\_tree}, \texttt{thm\_tree\_good}\\ \multicolumn{2}{@{}l}{\emph{Section~\ref{sec:machines}}}\\ Proposition~\ref{prop:universal} & \texttt{prop\_universal}\\ Lemma~\ref{lem:runnet} & \texttt{lem\_runnet}\\ \multicolumn{2}{@{}l}{\emph{Section~\ref{sec:cut}}}\\ Definition~\ref{def:cut} & \texttt{def\_cut}\\ Proposition~\ref{prop:pieces} & \texttt{prop\_pieces}, \texttt{prop\_pieces\_identity}\\ Theorem~\ref{thm:onecut} & \texttt{thm\_onecut}\\ Theorem~\ref{thm:cut} & \texttt{thm\_cut}, \texttt{exists\_setting}\\ \multicolumn{2}{@{}l}{\emph{Section~\ref{sec:scales}}}\\ Definition~\ref{def:acc} & \texttt{def\_acc}\\ Lemma~\ref{lem:lowdeg} & \texttt{lem\_lowdeg}\\ Lemma~\ref{lem:circuit} & \texttt{lem\_circuit}, \texttt{lem\_circuit\_perm}\\ Lemma~\ref{lem:postpone} & \texttt{lem\_postpone}\\ Proposition~\ref{prop:next} & \texttt{prop\_next}, \texttt{scales\_setting}\\ Theorem~\ref{thm:noacc} & \texttt{thm\_noacc}, \texttt{scales\_setting}\\ Theorem~\ref{thm:contracting} & \texttt{thm\_contracting}\\ \multicolumn{2}{@{}l}{\emph{Section~\ref{sec:proofs}}}\\ Theorem~\ref{thm:main} & \texttt{thm\_main}, \texttt{thm\_main\_form}\\ Theorem~\ref{thm:simple} & \texttt{thm\_simple}\\ Corollary~\ref{cor:classes} & \texttt{cor\_classes}\\ \multicolumn{2}{@{}l}{\emph{Appendix~\ref{app:fields}}}\\ Lemma~\ref{lem:transfer} & \texttt{lem\_transfer}\\ Proposition~\ref{prop:hc-grid} & \texttt{prop\_hc\_grid}, \texttt{cor\_clauses\_hc}\\ Theorem~\ref{thm:allfields} & \texttt{thm\_allfields}\\ Corollary~\ref{cor:allclasses} & \texttt{cor\_allclasses}\\ \multicolumn{2}{@{}l}{\emph{Appendix~\ref{app:approx}}}\\ Definition~\ref{def:approx} & \texttt{def\_approx}\\ Lemma~\ref{lem:transfer-approx} & \texttt{lem\_transfer\_approx}\\ Lemma~\ref{lem:few-approx} & \texttt{lem\_few\_approx}\\ Proposition~\ref{prop:approx-acc} & \texttt{prop\_approx\_acc}, \texttt{prop\_approx\_acc\_setting}\\ Theorem~\ref{thm:approx} & \texttt{thm\_approx}\\ Remark~\ref{rem:det} & not formalized\\ \hline \end{tabular} \end{minipage} \par\medskip \caption{The Lean theorems that belong to the numbered statements.}\label{tab:lean} \end{table} \subsection{Differences between the text and the Lean development} The theorems with prefix \texttt{Paper.}\ state the numbered statements, and each of them is proved once. The theorems of \texttt{Solution} are proved through them, with these exceptions, which are not on that route: Theorem~\ref{thm:simple}, Corollary~\ref{cor:classes}, the qualitative bound in the flat case (Proposition~\ref{prop:flat-lower} and Theorem~\ref{thm:flat-simple}) and the definitions. Many unnumbered steps of the printed proofs have named theorems too. Lean does not identify equivalent tensors (\texttt{def\_spectral\_congr} shows that spectral points respect the identifications), and it writes the standing hypotheses out. Some theorems hold there for every field, or under weaker hypotheses. The theorems with prefix \texttt{Paper.}\ are stated for fields in the lowest universe, and so are their rings, algebras, groups, spaces, point sets and index sets. The exception is the given field in Theorems~\ref{thm:allfields} and~\ref{thm:approx}, Corollary~\ref{cor:allclasses}, Definition~\ref{def:approx} and Lemmas~\ref{lem:transfer} and~\ref{lem:transfer-approx}, which may lie in any universe. This restricts the printed statements to the lowest universe. The theorems of \texttt{Solution} hold for fields in every universe. The Lean development uses some other words. It says \emph{gauge} for an upper functional, \emph{unit} for a packet, \emph{table} for a node tensor, \emph{bill} for a tally, \emph{near pair} for an edge of the Cayley graph of~$U_h$, \emph{window} for the boxes of Section~\ref{sec:cat} as well as for the windows of Section~\ref{sec:group}, and \emph{state} for the symbols of Section~\ref{sec:cross}. The other differences that are known are listed below. \step{Statements.} The statements differ in the following points. \begin{itemize} \item The numbers $C$, $a$ and $\alpha$ are natural numbers. \item In the file printed in Section~\ref{app:statement} circuits and the classes $\VP$ and $\VNP$ are defined over commutative semirings. The permanent is written there as $\sum_\sigma\prod_i x_{\sigma(i),i}$, where Section~\ref{sec:intro} has $x_{i,\sigma(i)}$; the two sums agree, as one sees by replacing $\sigma$ with its inverse. \item Lean defines the projection to the fixed points of a window (Section~\ref{sec:group}) as the barycenter of the orbit, and \texttt{projection\_nearest} shows that this is the nearest point. In the proof of Theorem~\ref{thm:poincare} the space of functions carries the sum where the text has the mean, which is one scaling factor. Lean states Lemma~\ref{lem:first} for explicit numbers, $\vartheta_n=18\lceil\log_2n\rceil\,\mu(L+1)s^L$ with $L=\floor{\log_\mu2^{\lceil\log_2n\rceil}}$ (\texttt{kappa}), which are not those of the printed proof, and $C(n)$ in \eqref{eq:window} and in Lemmas~\ref{lem:tele} and~\ref{lem:angle} is formed with them. \item The families of tensors in Theorem~\ref{thm:duality} and of maps in Proposition~\ref{prop:extend} are indexed by any finite set. \item A variable of block $a$ of $f_{k,\ell}$ is indexed by $k$ strings, and the one at the place $a$ is $0$ in the variables that occur. The circuit sizes are the same, and the theorems with suffix \texttt{\_printed} state Lemma~\ref{lem:fkl-perm} and Propositions~\ref{prop:flat-lower} and~\ref{prop:flat-rate} for the printed polynomial. \item Lemmas~\ref{lem:hubs}, \ref{lem:balanced}, \ref{lem:few}, \ref{lem:growth}, \ref{lem:words}, \ref{lem:runnet}, \ref{lem:circuit}, \ref{lem:transfer}, \ref{lem:transfer-approx} and~\ref{lem:few-approx} and Proposition~\ref{prop:identity} are proved in stronger or more general forms. For example, \texttt{lem\_hubs} pushes the tensor $t$ forward along an arbitrary map from its parties to a finite set of parties, of which $o_1,o_2$ are any two, and \texttt{lem\_hubs\_further} is the form with two further parties. Proposition~\ref{prop:identity} is proved without the assumption that $\Sigma_1$ and $\Sigma_2$ are nonempty. Lemma~\ref{lem:balanced} is proved over every commutative semiring, and Lemmas~\ref{lem:few} and~\ref{lem:few-approx} whenever $t$ is covered by $T_1,\dots,T_J$, so that linear maps may also be applied at the parties of~$P$. In Section~\ref{sec:group} Lemma~\ref{lem:growth} is proved without the assumption $s^2<\mu$ and also for $r=0$, and Lemma~\ref{lem:words} without the conditions $1\le k