%%================================================================== \section{Weighted counting in subexponential time}\label{sec:weighted} %%================================================================== \subsection{Bounded occurrences} We first state the outcome of Sections \ref{sec:routine} and \ref{sec:design} for a factor system in which every variable occurs in few factors. \begin{theorem}[Bounded occurrences]\label{thm:bounded-occ} Fix an integer $\beta\ge1$. There are $n_0=n_0(\beta)$ and an absolute constant $C_0$ with the following property. Let $\A$ be a commutative $\Q$-algebra, let $n\ge n_0$, and let a factor system on $n$ variables have largest scope $w$, largest occurrence number $b$ and total degree $d$ with \[ w\le\lambda^{\beta},\qquad b\le\lambda^{\beta},\qquad d\le\kappa n \] for some $\kappa\ge1$. Then $Z$ in \eqref{eq:Z} can be computed deterministically with at most \begin{equation}\label{eq:boundedocc} |\F|\,\poly(n)\,2^{\,C_0(\kappa+1)(\beta+3)\,n\nu^2/\sqrt\lambda} \end{equation} operations in $\A$, evaluations of factors at inputs in $\Q[z]/(z^{J})$ with $J\le\kappa n$, and bit operations on rational numbers, using polynomially many elements of $\A$ and polynomially many bits of storage in addition to the factors' own. \end{theorem} \begin{proof} Adjoin the constant-one factors of Section~\ref{sec:design} so that \eqref{eq:nMb} holds; $b$ grows by at most one and $d$ is unchanged, and we may take $n_0$ so large that $\lambda^\beta+1\le\lambda^{\beta+1}$ is not needed: replace $\beta$ by $\beta+1$ in Lemma~\ref{lem:params} if $b$ was exactly $\lambda^\beta$, which changes only the constants. Choose the parameters \eqref{eq:params} by Lemma~\ref{lem:params}, which for $n\ge n_0(\beta)$ satisfy the hypotheses of Lemma~\ref{lem:complete}; construct the design in polynomial time by that lemma; and run the routine of Proposition~\ref{prop:routine}. The degree bound \eqref{eq:degbound} holds with $d\le\kappa n$, so $d_H\le\kappa nR$, $q\le\kappa nR/Q$ and $J\le q+1\le\kappa n$ because $Rck\lambda\}$. Then $|V_{\mathrm{hi}}|