\documentclass[11pt,letterpaper]{amsart} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{amsmath,amssymb,amsthm} \usepackage{longtable} \usepackage[margin=1.25in]{geometry} \usepackage{microtype} \usepackage[colorlinks=true,urlcolor=blue,linkcolor=black,citecolor=black]{hyperref} \hypersetup{pdftitle={The Esperet-Hendrey-Lagoutte-Marseloo-Norin-Steiner (2025) flow reconfiguration problem has a positive answer},pdfauthor={Dave Goel}, pdfkeywords={nowhere-zero flows, flow reconfiguration, abelian groups}} \def\InterfaceMacrosOnly{} \newcommand{\Z}{\mathbb{Z}} \newcommand{\Gam}{\Gamma} % \newcommand{\quo}[1]{\overline{#1}} % \newcommand{\Sig}{\Sigma} % \newcommand{\SigA}{\Sigma_A} % \newcommand{\SigB}{\Sigma_B} % \newcommand{\lift}{\gamma} % \newcommand{\Fl}{F} % \newcommand{\Ik}[1][k]{I_{#1}} % \newcommand{\Mk}[1][k]{M_{#1}} % \newcommand{\supp}{\operatorname{supp}} \newcommand{\eps}{\varepsilon} % \newcommand{\len}{\ell} % \newcommand{\thr}[1]{P_{#1}} % \newcommand{\HP}{H_P} % \newcommand{\Deps}{D_{\eps}} % \newcommand{\Te}{T^{e}} % \newcommand{\Tg}{T^{g}} % \newcommand{\red}{\mathrm{red}} % \newcommand{\Lam}{\Lambda} % \newcommand{\PL}[1]{P(#1)} % \newcommand{\RI}{\textup{(R1)}} \newcommand{\RIm}{\textup{(R1$^-$)}} \newcommand{\RII}{\textup{(R2)}} \newcommand{\RIII}{\textup{(R3$^*$)}} \newcommand{\AV}{\textup{(AV)}} \newcommand{\AVpp}{\textup{(AV$''$)}} \newcommand{\Hone}{\textup{(H1)}} \newcommand{\Htwo}{\textup{(H2)}} \newcommand{\Czero}{\textup{(C0)}} \newcommand{\Cone}{\textup{(C1)}} \newcommand{\Ctwo}{\textup{(C2)}} \newcommand{\Cthree}{\textup{(C3)}} \newcommand{\Cfour}{\textup{(C4)}} \newcommand{\condS}{\textup{(S)}} \newcommand{\condNR}{\textup{(NR)}} \newcommand{\condLone}{\textup{(L1)}} \newenvironment{condlist}[1]{\begin{list}{}{% \settowidth{\labelwidth}{\textup{#1}}\setlength{\labelsep}{0.5em}% \setlength{\leftmargin}{\labelwidth}\addtolength{\leftmargin}{\labelsep}% \setlength{\itemsep}{2pt}\setlength{\topsep}{4pt}\setlength{\parsep}{2pt}\setlength{\listparindent}{0pt}}}% {\end{list}} \theoremstyle{plain} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{criterion}[theorem]{Criterion} \newtheorem{conjecture}[theorem]{Conjecture} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{remark}[theorem]{Remark} \raggedbottom \emergencystretch=1.5em \usepackage{mathtools} \usepackage{enumitem} \usepackage{booktabs} \usepackage{array} \newcommand{\F}{\mathbb F} \newcommand{\diam}{\operatorname{diam}} \newcommand{\mad}{\operatorname{mad}} \newcommand{\Rk}[1]{\mathcal{R}_{#1}} \newcommand{\ind}{\mathbf 1} \DeclareMathOperator{\im}{im} \setlist{} \renewcommand{\thepart}{\Roman{part}} \begin{document} \title[Flow reconfiguration: one modulus]{The Esperet--Hendrey--Lagoutte--Marseloo--Norin--Steiner (2025) flow reconfiguration problem has a positive answer} \author{Dave Goel} \thanks{A preprint of this paper is Part~I of the paper \emph{Flow reconfiguration with one modulus for all graphs, Cereceda's conjecture for bipartite 2-degenerate graphs, and other miscellanea}; its section, theorem and table numbers are the same as here. It is available at \url{https://hexagonmath.org/2611.00520}\nopunct} \dedicatory{\upshape\footnotesize First version: October 9, 2026. This version: November 25, 2026.} \begin{abstract} For a finite multigraph $G$ and an integer $k\ge 2$, let $M_k(G)$ be the graph on the nowhere-zero $\mathbb{Z}_k$-flows of $G$, and $I_k(G)$ the graph on the integer flows $F$ of $G$ with $1\le|F(e)|\le k-1$ on every edge; two flows are adjacent if the support of their difference is a cycle. We prove that $M_k(G)$ and $I_k(G)$ are connected for every finite bridgeless loopless multigraph $G$ if $k=40$, if $k=48$, or if $k$ is a multiple of $4$ with $k\ge 52$. This gives a positive answer to Problem~1.2 of Esperet, Hendrey, Lagoutte, Marseloo, Norin and Steiner. The same holds for $k=66$, for every prime power $p^N$ with $N\ge 6$, and for a set of moduli of natural density one; these results do not cover every $k\ge 40$. For one fixed graph $G$ it holds for every $k$ above a bound that depends on $G$, primes included. The main tool is a master theorem for a finite abelian group $\Gamma$ with a subgroup $B$ and a set of steps. It gives the connectivity of the flow graph $F(G,\Gamma)$ for every finite abelian group $\Gamma$ that is not cyclic of prime-power order and has a subgroup of order at least $4$ and index at least $10$, for example every abelian group of order $40$. \end{abstract} \subjclass[2020]{Primary 05C21; Secondary 05C25, 05C40} \keywords{nowhere-zero flows, flow reconfiguration, abelian groups, integer flows} \maketitle \setcounter{section}{-1} \section{Introduction}\label{a0:sec} The table compares the main results with the best results known before this paper; the notation is fixed below. \begin{center} \small \begin{tabular}{@{}>{\raggedright\arraybackslash}p{0.47\textwidth}>{\raggedright\arraybackslash}p{0.47\textwidth}@{}} \toprule New result & Best result before this paper\\ \midrule \emph{One modulus for all graphs:} $\Mk(G)$ and $\Ik(G)$ are connected for every finite bridgeless loopless multigraph $G$ if $k=40$, $k=48$, or $k$ is a multiple of $4$ with $k\ge 52$ (Theorem~\ref{thm:bases}). This answers Problem~1.2 of~\cite{EHLMNS}. & $\Ik(G)$ is connected for a modulus $k$ that depends on $G$ \cite{EHLMNS}; $\Mk(G)$ is connected for every $k$ above a bound of the order of $10^{694}$ \cite{EHLMNS}.\\ \addlinespace \emph{Groups:} $\Fl(G,\Gam)$ is connected for every finite bridgeless multigraph $G$ if $\Gam$ is not cyclic of prime-power order and $|\Gam|$ has a divisor $d$ with $4\le d\le|\Gam|/10$; for example for every abelian group of order $40$ (Theorem~\ref{thm:G10}). & $\Gam=\F_2^8$, of order $256$, and every abelian group $\Gam$ of order above a bound of the order of $10^{694}$ \cite{EHLMNS}.\\ \addlinespace \emph{One graph:} for a fixed $G$, $\Mk(G)$ and $\Ik(G)$ are connected for every $k\ge 40$ if $G$ has at most $149$ vertices, or at most $189$ edges, or no cycle with more than $39$ edges (Section~\ref{a10:sec}). & $\Ik(G)$ is connected for a modulus $k$ that depends on $G$ \cite{EHLMNS}.\\ \bottomrule \end{tabular} \end{center} \noindent The new results are the following. \begin{itemize} \item \emph{One modulus for all graphs}: $\Mk(G)$ and $\Ik(G)$ are connected for every finite bridgeless loopless multigraph $G$ if $k=40$, $k=48$, or $k$ is a multiple of $4$ with $k\ge 52$ (Theorem~\ref{thm:bases}, proved in Section~\ref{a9:sec} from the cases proved in Sections~\ref{a5:sec}, \ref{a6:sec} and~\ref{a7:sec}). Before, $\Ik(G)$ was known to be connected only for a modulus that depends on $G$, and Problem~1.2 of~\cite{EHLMNS} asked for one modulus for all graphs. \item \emph{Further moduli}: $k=66$ (Corollary~\ref{cor:k66}, Section~\ref{a5:sec}); every prime power $p^N$ with $N\ge 6$ (Theorem~\ref{thm:pp}, Section~\ref{a7:sec}); every $k$ that is not a prime power and has at least four prime factors, counted with multiplicity, except $24$, $36$ and $54$ (Theorem~\ref{thm:omega4}, Section~\ref{a9:sec}); a set of moduli of natural density one (Corollary~\ref{cor:density}). Before, no modulus was known for $\Ik(G)$ for all graphs, and for $\Mk(G)$ only those above a bound of the order of $10^{694}$ \cite{EHLMNS}. \item \emph{Groups}: $\Fl(G,\Gam)$ is connected for every finite bridgeless multigraph $G$, loops allowed, if $\Gam$ is not cyclic of prime-power order and $|\Gam|$ has a divisor $d$ with $4\le d\le|\Gam|/10$ (Theorem~\ref{thm:G10}, proved in Section~\ref{a4:sec}). Before, this was known for $\F_2^8$ and for orders above a bound of the order of $10^{694}$ \cite{EHLMNS}; whether the order $2^8$ can be improved was one of the two main questions left open there. Every abelian group of order $40$ works. \item \emph{One graph}: for a fixed $G$, the results go from a base $k_0$ to every $k\ge k_0$, prime $k$ included; for example every $k\ge 40$ if $G$ has at most $149$ vertices, or at most $189$ edges, or no cycle with more than $39$ edges, or if $G$ is connected with diameter at most $3$ (Section~\ref{a10:sec}, Table~\ref{a0:tab:graph}). \end{itemize} \subsection*{The problem} Let $G$ be a finite multigraph and $k\ge 2$ an integer. A \emph{nowhere-zero $\Z_k$-flow} of $G$ gives every edge a non-zero element of $\Z_k$, with conservation at every vertex; an \emph{integer $k$-flow} gives every edge an integer $F(e)$ with $1\le|F(e)|\le k-1$, with conservation at every vertex. The reconfiguration graphs $\Mk(G)$ and $\Ik(G)$ have these flows as their vertices; two flows are adjacent if their difference is $\lambda\chi_C$ for a cycle $C$ of $G$ and a non-zero $\lambda$, that is, if the support of the difference is a cycle. For a finite abelian group $\Gam$ the graph $\Fl(G,\Gam)$ is defined in the same way, and $\Mk(G)=\Fl(G,\Z_k)$. The exact definitions are in Section~\ref{a1:sec}. A graph with a bridge has no nowhere-zero flow, so the graphs $G$ of interest are the bridgeless ones. These graphs are studied by Esperet, Hendrey, Lagoutte, Marseloo, Norin and Steiner~\cite{EHLMNS}. Their Problem~1.2 asks whether there is \emph{one} integer $k$ such that $\Ik(G)$ is connected for every $2$-edge-connected graph $G$; they prove that $\Ik(G)$ is connected for a modulus $k$ that depends on $G$. For groups they prove that $\Fl(G,\F_2^8)$ is connected for every $2$-edge-connected graph $G$ \textup{(}$\F_2^m$ is the elementary abelian group of order $2^m$\textup{)}, and that $\Fl(G,\Gam)$ is connected for every abelian group $\Gam$ whose order is at least an explicit bound of the order of $10^{694}$; they also show that the modulus $5$ fails. \textup{(}In~\cite{EHLMNS} the graphs $\Ik(G)$ and $\Mk(G)$ are $\mathcal{F}(G,k)$ and $\mathcal{F}(G,\Z_k)$.\textup{)} Their Problem~2.6 asks whether the connectivity of $\Mk(G)$ implies the connectivity of $\Ik(G)$; Cranston, Li, Su, Wang and Xu~\cite{CLSWX} conjecture that $\Ik(G)$ is connected if and only if $\Mk(G)$ is connected. \subsection*{The results} All results below are for every finite bridgeless loopless multigraph $G$; $G$ need not be connected. ``$k$ is reached'' means: one of the results of this paper applies to $k$ \textup{(}in Section~\ref{a9:sec}: $k$ is \emph{covered}, Definition~\ref{a9:def:covered}\textup{)}; then $\Mk(G)$ and $\Ik(G)$ are connected for every such $G$. \begin{condlist}{(6)} \item[\textup{(1)}] \emph{The bases} \textup{(}Theorem~\ref{thm:bases}\textup{)}. $k=40$, $k=48$ and every multiple $k$ of $4$ with $k\ge 52$ are reached. In particular $k=40$ gives a positive answer to Problem~1.2 of~\cite{EHLMNS}. \item[\textup{(2)}] \emph{Further moduli.} $k=66$ (Corollary~\ref{cor:k66}); every prime power $k=p^N$ with $N\ge 6$ (Theorem~\ref{thm:pp}); every product $k=ab$ of two coprime \emph{admitted factors}, that is integers $a$, $b$ each of which is at least $43$ or a product $de$ with $d\ge 4$, $e\ge 7$ (Corollary~\ref{cor:enlarged}): so every multiple of $1120$, every $pq$ with different primes $p,q\ge 43$, and every $p^2q$ with different primes $p\ge 7$, $q\ge 43$; every $k$ that is not a prime power and has at least four prime factors, counted with multiplicity, except $24$, $36$ and $54$ (Theorem~\ref{thm:omega4}); every $k=2p^3$ with a prime $p\ge 5$ (Proposition~\ref{prop:2p3}); and every $k$ to which Criterion~\ref{crit:F10} applies. \item[\textup{(3)}] \emph{Exactly which $k$ these results reach} \textup{(}Corollary~\ref{a9:cor:table}, Proposition~\ref{prop:omega3}\textup{)}, by the number $\Omega(k)$ of prime factors with multiplicity: see Table~\ref{a0:tab:omega}. The reached moduli have natural density~$1$ \textup{(}Corollary~\ref{cor:density}\textup{)}. Up to $100$ they are $40$, $48$, $52$, $56$, $60$, $64$, $66$, $68$, $72$, $76$, $78$, $80$, $84$, $88$, $90$, $92$, $96$, $100$. \item[\textup{(4)}] \emph{One graph} \textup{(}Section~\ref{a10:sec}\textup{)}. For a fixed $G$ the results go from a base $k_0$ to every $k\ge k_0$, prime $k$ included: see Table~\ref{a0:tab:graph}. For example, $\Mk(G)$ and $\Ik(G)$ are connected for every $k\ge 40$ if $G$ has at most $149$ vertices, or at most $189$ edges, or no cycle with more than $39$ edges, or if $G$ is connected with diameter at most~$3$. \item[\textup{(5)}] \emph{Groups} \textup{(}Theorem~\ref{thm:G10}\textup{)}. If $\Gam$ is not cyclic of prime-power order and $|\Gam|$ has a divisor $d$ with $4\le d\le|\Gam|/10$, then $\Fl(G,\Gam)$ is connected for every finite bridgeless multigraph $G$, loops allowed; the least such orders are $40$, $44$, $48$, $50$. The final remarks of~\cite{EHLMNS} name two main questions left open there: Problem~1.2, and whether the order $2^8=256$ of the group $\F_2^8$ in the positive answer to their Problem~1.4 can be improved. Item~\textup{(1)} answers the first, and this theorem answers the second: every abelian group of order $40$ works. By \cite[Corollary~13.2]{GoelS1}, so does every abelian group of order $32$ whose exponent divides $4$. \item[\textup{(6)}] \emph{Loops.} Every $k$ of \textup{(1)} and \textup{(2)} is reached through Theorem~\ref{thm:Z} or through Theorem~\ref{thm:twocoord}, and part~(a) of these two theorems gives the connectivity of $\Mk(G)$ also for every finite bridgeless multigraph $G$ with loops. \end{condlist} \noindent\emph{Open cases.} For all graphs, the moduli that are not reached include those from $6$ to $39$, those from $41$ to $47$, and the primes from $7$ on \textup{(}Remark~\ref{a9:rem:notcovered}\textup{)}; the modulus $5$ fails~\cite{EHLMNS}. Table~\ref{a0:tab:omega} gives exactly which moduli are reached. For the modular graph alone more is known: by the theorem of~\cite{EHLMNS} for large groups, $\Mk(G)$ is connected for every $k$ above a bound of the order of $10^{694}$, primes included; by~\cite{GoelM2}, for every $k\ge 3024$. For $k=44$ the group theorem gives the connectivity of $\Mk[44](G)$ for every bridgeless $G$; the connectivity of $\Ik[44](G)$ is a case of Problem~2.6 of~\cite{EHLMNS}. Section~\ref{a11:sec} explains where the method stops, and Section~\ref{a12:sec} lists open problems. \begin{table}[ht] \centering\small \caption{The moduli $k$ for which this paper proves that $\Mk(G)$ and $\Ik(G)$ are connected for every finite bridgeless loopless multigraph $G$ \textup{(}Corollary~\ref{a9:cor:table}; ``covered'' in Definition~\ref{a9:def:covered}\textup{)}.}\label{a0:tab:omega} \begin{tabular}{@{}p{0.30\textwidth}p{0.62\textwidth}@{}} \hline \rule{0pt}{2.4ex}$k$ & reached exactly when\\[1pt] \hline \rule{0pt}{2.4ex}prime power $p^e$ & $e\ge 6$ \textup{(}no prime\textup{)}\\ $pq$, $p\ne q$ primes & $p\ge 43$ and $q\ge 43$\\ $\Omega(k)=3$, not a prime power & Proposition~\ref{prop:omega3}: $p^2q$ by the rules $(\alpha)$, $(\beta)$, $(\gamma)$ there; every odd $pqr$ except $105$; every $2pq$ except $30$, $42$, $70$, $110$, $182$, $286$, $506$, $646$, $1406$, $1798$\\ $\Omega(k)\ge 4$, not a prime power & $k\notin\{24,36,54\}$\\[1pt] \hline \end{tabular} \end{table} \begin{table}[ht] \centering\small \caption{One graph $G$ \textup{(}finite, bridgeless, loopless\textup{)}: the moduli $k$ for which this paper proves that $\Mk(G)$ and $\Ik(G)$ are connected. $c(G)$ is the number of edges of a longest cycle, $n$ the number of vertices.} \label{a0:tab:graph} \begin{tabular}{@{}p{0.50\textwidth}p{0.24\textwidth}p{0.16\textwidth}@{}} \hline \rule{0pt}{2.4ex}condition on $G$ & every $k$ with & where\\[1pt] \hline \rule{0pt}{2.4ex}none & $k\ge\max(48,c(G)+4)$ & Cor.~\ref{cor:pergraph}\\ $c(G)\le 39$ & $k\ge 40$ & Cor.~\ref{cor:pergraph}\\ at most $189$ edges \textup{(}at most $235$ edges\textup{)} & $k\ge 40$ \textup{(}$k\ge 48$\textup{)} & Cor.~\ref{cor:C189}\\ at most $149$ vertices \textup{(}at most $187$ vertices\textup{)} & $k\ge 40$ \textup{(}$k\ge 48$\textup{)} & Cor.~\ref{cor:N149}\\ $n\ge 150$ vertices & $k\ge 2n/\ln n+4$ & Cor.~\ref{cor:N149}\\ every edge on a cycle with at most $8$ edges & $k\ge 40$ & Cor.~\ref{cor:SC1}\\ connected, diameter at most $3$ & $k\ge 40$ & Cor.~\ref{cor:diam}\\ all edges but at most $40$ on cycles with at most $8$ edges & $k\ge 40$ & Cor.~\ref{cor:SC2}\\[1pt] \hline \end{tabular} \end{table} \subsection*{The method} \emph{From groups to integers.} A non-zero element $z$ of $\Z_k$ is \emph{liftable} if, for every loopless $G$ and every move $f\to f+z\chi_C$ of $\Mk(G)$, all integer lifts of the two flows lie in one component of $\Ik(G)$. Section~\ref{a1:sec} shows that $\pm 1$, $\pm 2$ and $\pm q$ for every divisor $q0$. \end{theorem} \noindent Theorems~\ref{q:euler} and~\ref{q:chebyshev} are used only in Corollary~\ref{cor:density}. \section{Conventions; lifting to integers; liftable steps}\label{a1:sec}\label{sec:flows} \subsection*{Graphs, flows and the reconfiguration graphs}\label{a1:conventions} Graphs are finite multigraphs. Loops are allowed, unless the graph is called loopless. A \emph{cycle} is a connected subgraph in which every vertex has degree~$2$; a loop is a cycle of length~$1$, and two parallel edges form a cycle of length~$2$. An edge that lies on no cycle is a \emph{bridge}; a graph is \emph{bridgeless} if it has no bridge, that is, if every edge lies on a cycle. A graph without edges is bridgeless. A multigraph is \emph{$j$-edge-connected} if, for every partition of its vertex set into two non-empty sets, at least $j$ edges have one end in each set. Every graph has a fixed reference orientation: every edge has a tail and a head \textup{(}for a loop they are the same vertex\textup{)}. Let $x$ be a map from $E(G)$ to an abelian group. Its \emph{boundary} at a vertex $v$ is \[ (\partial x)(v)\;=\sum_{e\,:\,v\text{ is the head of }e}x(e)\;-\sum_{e\,:\,v\text{ is the tail of }e}x(e). \] A loop at $v$ is in both sums, so it adds nothing. The map $x$ is a \emph{flow} if $\partial x=0$ \textup{(}conservation at every vertex\textup{)}. An \emph{integer flow} is a flow with values in $\Z$. Groups are finite abelian groups, if nothing else is said. For a group $\Gam$, a \emph{$\Gam$-flow} of $G$ is a flow $E(G)\to\Gam$; it is \emph{nowhere zero} if no value is $0$. The \emph{support} $\supp(x)$ is the set of the edges $e$ with $x(e)\ne 0$. For a cycle $C$ with a direction, $\chi_C$ is its signed indicator: $\chi_C(e)=1$ if $C$ passes the edge $e$ from the tail to the head \textup{(}\emph{forward}\textup{)}, $\chi_C(e)=-1$ if $C$ passes $e$ from the head to the tail, and $\chi_C(e)=0$ if $e$ is not on $C$. So $\chi_C$ is an integer flow, and $\lambda\chi_C$ is a $\Gam$-flow for every $\lambda$ in $\Gam$. If the reference orientation of one edge is reversed and the value of every flow on this edge is replaced by its negative, then flows stay flows, and nothing else changes. No statement of this paper depends on the reference orientation, and we change it freely inside proofs. $\Fl(G,\Gam)$ is the graph on the nowhere-zero $\Gam$-flows of $G$; two flows are adjacent if their difference is $\lambda\chi_C$ for a cycle $C$ of $G$ and $\lambda\ne 0$ \textup{(}a \emph{move}\textup{)}. $\Mk(G)=\Fl(G,\Z_k)$. $\Ik(G)$ is the graph on the integer flows $F$ of $G$ with $1\le|F(e)|\le k-1$ for every edge $e$; two of them are adjacent if their difference is $\lambda\chi_C$ with an integer $\lambda\ne 0$. An \emph{integer lift} of a $\Z_k$-flow $f$ is a vertex $F$ of $\Ik(G)$ with $F=f$ modulo $k$. These are the three \emph{reconfiguration graphs}. In each of the three graphs, two different vertices are adjacent if and only if the support of their difference is the edge set of a cycle: a flow whose support is a cycle $C$ has, by conservation at the vertices of $C$, the form $\lambda\chi_C$. A graph $G$ without edges has exactly one flow, the empty map; it is a vertex of each of the three reconfiguration graphs. A reconfiguration graph that has no vertex counts as connected. In this section $G$ is a finite multigraph, and loops are allowed. Only Definition~\ref{def:liftable}, Lemma~\ref{lem:liftable} and Corollary~\ref{a1:4p} speak of loopless graphs. \subsection*{The cycle decomposition}\label{a1:cycledec-sec} \begin{lemma}[Cycle decomposition]\label{lem:cycledec}\label{a1:cycledec} Let $G$ be a multigraph. \begin{condlist}{(a)} \item[\textup{(a)}] Let $A$ be an abelian group, finite or not, and let $T_0$ be a spanning forest of $G$ \textup{(}a spanning tree in every component of $G$\textup{)}. For an edge $e$ outside $T_0$ let $C_e$ be the fundamental cycle of $e$ in $T_0$, directed along $e$. Then every $A$-flow $h$ of $G$ is \[ h=\sum_{e\notin E(T_0)}h(e)\,\chi_{C_e}, \] and this is the only way to write $h$ as a sum $\sum_{e\notin E(T_0)}x_e\chi_{C_e}$ with $x_e$ in $A$. In particular every $A$-flow of $G$ is a sum of flows $x\chi_C$ with $x$ in $A$ and $C$ a cycle of $G$. \item[\textup{(b)}] \textup{(}The signed form.\textup{)} Every integer flow $h$ of $G$ is a sum \[ h=\chi_{O_1}+\dots+\chi_{O_j}\qquad(j\ge 0) \] of signed indicators of directed cycles $O_1,\dots,O_j$ of $G$ \textup{(}a cycle can occur several times\textup{)}, such that every $O_i$ passes each of its edges in the direction of the sign of $h$: $\chi_{O_i}(e)\,h(e)>0$ for every edge $e$ of $O_i$. Hence, for every edge $e$: exactly $|h(e)|$ of the cycles contain $e$; every sum of some of the numbers $\chi_{O_1}(e),\dots,\chi_{O_j}(e)$ lies between $0$ and $h(e)$; and all cycles lie in $\supp(h)$. If all values of $h$ are in $\{-1,0,1\}$, then $O_1,\dots,O_j$ are pairwise edge-disjoint. \end{condlist} \end{lemma} \begin{proof} (a) Put $h'=h-\sum_{e\notin E(T_0)}h(e)\chi_{C_e}$. This is an $A$-flow. The cycle $C_e$ contains $e$ and no other edge outside $T_0$, and $\chi_{C_e}(e)=1$. \textup{(}A loop is not in $T_0$, and it is its own fundamental cycle.\textup{)} So $h'$ is $0$ on every edge outside $T_0$. Suppose that $h'\ne 0$. The edges with $h'\ne 0$ form a forest with at least one edge. It has a vertex that meets exactly one of these edges. Conservation at this vertex says that the value of $h'$ on this edge is $0$, a contradiction. So $h'=0$. The sum $\sum x_e\chi_{C_e}$ has the value $x_e$ on the edge $e$ outside $T_0$; so the coefficients are determined by the flow. (b) Induction on $\sum_e|h(e)|$. If this sum is $0$, take $j=0$. Otherwise reverse the reference orientation of every edge $e$ with $h(e)<0$; now $h\ge 0$. If a loop has a positive value, let $O$ be this loop, passed forward. Otherwise use conservation: at every vertex, the sum of $h$ over the edges that enter is equal to the sum over the edges that leave \textup{(}loops are left out on both sides\textup{)}. So the head of an edge with a positive value is the tail of an edge with a positive value. Start with an edge with a positive value and go on in this way. The walk does not end, so it comes back to a vertex that it has seen. This gives a directed cycle $O$ that passes all its edges forward, and $h>0$ on all its edges. Now $h-\chi_O$ is an integer flow with $h-\chi_O\ge 0$ and with a smaller sum. By induction it is a sum of signed indicators of directed cycles that pass their edges forward. Add $\chi_O$. In the first reference orientation, ``forward'' is the direction of the sign of $h(e)$. For a fixed edge $e$, all non-zero numbers $\chi_{O_i}(e)$ have the sign of $h(e)$, and their sum is $h(e)$. This gives the three consequences. If $|h(e)|\le 1$ for all $e$, every edge is on at most one of the cycles. \end{proof} \subsection*{Rounding, integer lifts, and the fibres}\label{a1:lifting-sec} \begin{lemma}[Rounding]\label{lem:rounding}\label{a1:rounding} Let $x$ be a map from $E(G)$ to the real interval $[0,1]$ such that $(\partial x)(v)$ is an integer for every vertex $v$. Then there is a map $z\colon E(G)\to\{0,1\}$ with $\partial z=\partial x$ and with $z(e)=x(e)$ for every edge $e$ with $x(e)$ in $\{0,1\}$. \end{lemma} \begin{proof} Call an edge $e$ fractional if $00$ be the least number such that $x+\delta\chi_C$ has the value $0$ or $1$ on some edge of $C$; it exists, because all values of $x$ on $C$ are strictly between $0$ and $1$. The map $x+\delta\chi_C$ has values in $[0,1]$ and the same boundary as $x$, because $\partial\chi_C=0$. The values on the edges that are not fractional have not changed, and the number of fractional edges is smaller. Repeat this until no edge is fractional. \end{proof} \begin{corollary}[Integer lifts]\label{cor:lifting}\label{a1:lifting} Let $k\ge 2$ and let $f$ be a $\Z_k$-flow of $G$; zeros are allowed. Then there is an integer flow $F$ of $G$ with $F=f$ modulo $k$, with $|F(e)|\le k-1$ for every edge $e$, and with $F(e)=0$ exactly for the edges $e$ with $f(e)=0$. In particular every nowhere-zero $\Z_k$-flow of $G$ has an integer lift. \end{corollary} \begin{proof} For every edge $e$ let $r(e)$ in $\{0,\dots,k-1\}$ be the residue of $f(e)$. Then $\partial r=\partial f=0$ modulo $k$, so the map $x=r/k$ has values in $[0,1)$ and an integer boundary. Lemma~\ref{lem:rounding} gives $z\colon E(G)\to\{0,1\}$ with $\partial z=\partial x$ and with $z(e)=0$ if $r(e)=0$. Put $F=r-kz$. Then $\partial F=\partial r-k\,\partial x=0$, and $F=f$ modulo $k$. If $r(e)=0$, then $F(e)=0$. If $r(e)\ne 0$, then $F(e)$ is $r(e)$ or $r(e)-k$; the first number is in $[1,k-1]$ and the second one is in $[-(k-1),-1]$. \end{proof} Corollary~\ref{cor:lifting} is Tutte's lifting theorem in the form of \cite[Theorem~2.3]{EHLMNS}. \begin{lemma}[Connected fibres]\label{lem:fibres}\label{a1:fibres} Let $k\ge 2$ and let $f$ be a nowhere-zero $\Z_k$-flow of $G$. Then the integer lifts of $f$ induce a connected subgraph of $\Ik(G)$. \end{lemma} \begin{proof} Let $F$ and $F'$ be integer lifts of $f$. On every edge $e$, both $F(e)$ and $F'(e)$ are in $\{r(e),\,r(e)-k\}$, where $r(e)$ in $\{1,\dots,k-1\}$ is the residue of $f(e)$. So $h=(F'-F)/k$ is an integer flow with values in $\{-1,0,1\}$. By Lemma~\ref{lem:cycledec}~(b), $h=\chi_{O_1}+\dots+\chi_{O_j}$ with pairwise edge-disjoint directed cycles. Put $F_i=F+k\,(\chi_{O_1}+\dots+\chi_{O_i})$. On every edge, $F_i$ has the value of $F$ or the value of $F'$. So every $F_i$ is an integer lift of $f$, $F_0=F$, $F_j=F'$, and $F_i-F_{i-1}=k\chi_{O_i}$. This is a path from $F$ to $F'$ in $\Ik(G)$ through integer lifts of $f$. \end{proof} Lemma~\ref{lem:fibres} is \cite[Lemma~5.5]{EHLMNS}. \subsection*{The divisor extension}\label{a1:divext-sec} Let $k=mq$ with integers $m,q\ge 2$. Reduction modulo $q$ is a homomorphism from $\Z_k$ onto $\Z_q$; so the \emph{reduction modulo $q$} of a $\Z_k$-flow, taken edge by edge, is a $\Z_q$-flow. The multiples of $q$ in $\Z_k$ form the subgroup $q\Z_k$, and $qj\mapsto j$ modulo $m$ is an isomorphism from $q\Z_k$ onto $\Z_m$. For a $\Z_k$-flow $y$ with all values in $q\Z_k$ we write $y/q$ for its image, a $\Z_m$-flow. The next two proofs use the same setting. \smallskip \noindent\textbf{Setting.} $w$ is a $\Z_q$-flow of $G$, and $E_0$ is the set of the edges $e$ with $w(e)=0$. By Corollary~\ref{cor:lifting} there is an integer flow $W$ of $G$ with $W=w$ modulo $q$, with $|W(e)|\le q-1$, and with $W(e)=0$ exactly on $E_0$. Reverse the reference orientation of every edge with $W(e)<0$. So from now on \[ 1\le W(e)\le q-1\quad\text{for every edge }e\notin E_0,\qquad W(e)=0\quad\text{for every edge }e\in E_0. \] A \emph{state} is a nowhere-zero $\Z_k$-flow of $G$ whose reduction modulo $q$ is $w$. \smallskip \noindent\textbf{Claim 1} \textup{(}the standard lift of a state\textup{)}. \emph{For every state $h$ there is an integer flow $L$ of $G$ with $|L(e)|\le m-1$ for every edge $e$, such that $F=W+qL$ is an integer lift of $h$. For every edge $e$ in $E_0$: $L(e)\ne 0$, and $h(e)=qL(e)$ modulo $k$.} \smallskip \noindent\emph{Proof.} The $\Z_k$-flow $h-W$ has the reduction $0$ modulo $q$, so all its values are in $q\Z_k$, and $y=(h-W)/q$ is a $\Z_m$-flow. By Corollary~\ref{cor:lifting} there is an integer flow $L$ with $L=y$ modulo $m$, with $|L(e)|\le m-1$, and with $L(e)=0$ exactly where $y(e)=0$. Put $F=W+qL$. This is an integer flow. The residue of $qL(e)$ modulo $k$ depends only on the residue of $L(e)$ modulo $m$; so $qL=h-W$ modulo $k$, and $F=h$ modulo $k$. Let $e\notin E_0$. Then $F(e)=W(e)$ modulo $q$, and this is not $0$; so $F(e)\ne 0$. And $1-q(m-1)\le F(e)\le q-1+q(m-1)$, so $|F(e)|\le k-1$. Let $e\in E_0$. Then $W(e)=0$ and $h(e)\ne 0$, so $y(e)\ne 0$ and $L(e)\ne 0$. So $F(e)=qL(e)$ is not $0$, and $|F(e)|\le q(m-1)4n_H-6$, that is $3m_H\ge 4n_H-5$. \smallskip \emph{\textup{(X4)}.} The graph $H-V'$ has $n_H-|V'|\ge 3$ vertices, fewer than $H$. So it is not dense: $3\,|E(H-V')|\le 4\,(n_H-|V'|)-6$. With \textup{(X3)}, the number of the edges of $H$ with an end in $V'$ is $m_H-|E(H-V')|\ge(4\,|V'|+1)/3$. \smallskip \emph{Step 1: $n_H\ge 6$, $m_H>n_H$, and every vertex of $H$ has degree at least $2$.} We have $m_H>(4/3)\,n_H-2\ge n_H-1$, so $m_H\ge n_H$, and $H$ contains a cycle. It has at least $6$ edges, so $n_H\ge 6$. Then $(4/3)\,n_H-2\ge n_H$, so $m_H>n_H$. By \textup{(X4)} for a set $V'$ with one vertex, more than $4/3$ edges meet this vertex. \smallskip \emph{Step 2: $H$ is connected.} Suppose that $H$ is the disjoint union of two graphs $H_1$, $H_2$ with $n_1$, $n_2$ vertices and $m_1$, $m_2$ edges. By Step~1 every vertex has degree at least $2$, so both graphs contain a cycle, and $n_1,n_2\ge 6$. Both have fewer vertices than $H$, so they are not dense: $m_i\le(4/3)\,n_i-2$. Then $m_H\le(4/3)\,n_H-4$, a contradiction. \smallskip \emph{Step 3: the partitions with at most two edges.} Let $V(H)$ be the disjoint union of two non-empty sets $V_1$, $V_2$ such that at most two edges of $H$ join $V_1$ and $V_2$. Let $H_i$ be the subgraph of $H$ induced on $V_i$, with $n_i$ vertices and $m_i$ edges. If $m_i\le(4/3)\,n_i-2$ for $i=1$ and for $i=2$, then $m_H\le(4/3)\,n_H-4+2$, a contradiction. So $m_i>(4/3)\,n_i-2$ for one $i$. This $H_i$ has fewer vertices than $H$, so it is not dense; hence $n_i\le 2$. A graph with at most $2$ vertices and without parallel edges has no cycle. So $n_i=1$ and $m_i=0$, or $n_i=2$ and $m_i=1$. Every vertex of $V_i$ has degree at least $2$ in $H$, and at most two edges leave $V_i$. So exactly two edges leave $V_i$, and every vertex of $V_i$ has degree exactly $2$ in $H$. Result: \emph{exactly two edges join $V_1$ and $V_2$, and one of the two sets has at most $2$ vertices, all of degree $2$ in $H$.} \smallskip \emph{Step 4: the threads.} Let $V_0$ be the set of the vertices of $H$ of degree at least $3$. It is not empty: $H$ is connected, every degree is at least $2$, and $m_H>n_H$. Because $H$ is connected and $V_0$ is not empty, $H$ is the union of paths and cycles of the following kind \textup{(}we call them \emph{threads} here\textup{)}: the two ends of a thread are in $V_0$ \textup{(}they are equal if the thread is a cycle\textup{)}, its interior vertices have degree $2$ in $H$, every edge of $H$ is on exactly one thread, and every vertex of degree $2$ is an interior vertex of exactly one thread. Let $I$ be the set of the interior vertices of a thread, and let $I$ be not empty. The first and the last edge of the thread are the only edges between $I$ and $V(H)\setminus I$. The set $V(H)\setminus I$ contains a vertex of degree at least $3$. So by Step~3, $|I|\le 2$. Hence every thread has at most $3$ edges. A thread that is a cycle would be a cycle with at most $3$ edges; there is none. So every thread is a path with two different ends in $V_0$. Let $H_0$ be the multigraph with the vertex set $V_0$ in which every thread is replaced by one edge between its ends. $H_0$ is loopless, and $H$ is a subdivision of $H_0$ in which every edge of $H_0$ is replaced by a path with at most $3$ edges. \smallskip \emph{Step 5: $H_0$ is $3$-edge-connected and has at least two vertices.} A thread has two different ends, so $|V_0|\ge 2$. Let $V_0$ be the disjoint union of two non-empty sets $V'_0$, $V''_0$ such that at most two edges of $H_0$ join $V'_0$ and $V''_0$ \textup{(}possibly none\textup{)}. Put the interior vertices of every thread on the side of the first end of the thread. This is a partition of $V(H)$ into two sets; at most two edges of $H$ join them \textup{(}for every thread between $V'_0$ and $V''_0$ its last edge\textup{)}; and both sets contain a vertex of degree at least $3$. This contradicts Step~3. \smallskip Steps~4 and~5 give \textup{(X1)}. \textup{(X2)}: a cycle of $H_0$ becomes a cycle of $H$ when its edges are replaced by their paths; it has at least $6$ edges; two parallel edges of $H_0$ are a cycle of $H_0$, and each of the two paths has at most $3$ edges. \textup{(X3)}, second part: let $j$ be the number of the vertices of degree $2$ of $H$. Then $n_H=n_0+j$ and $m_H=m_0+j$, and $3\,(m_0+j)\ge 4\,(n_0+j)-5$ gives $j\le 3m_0-4n_0+5$. \end{proof} Part~(a) of Lemma~\ref{lem:extraction} is the extraction lemma of \cite[Lemma~6.1]{EHLMNS}. The proof above treats the case of a cycle that is a thread explicitly. \begin{remark}[What the later sections use]\label{a2:rem-extraction} The proofs of the later sections use of a good subgraph $H$ only the two lines of Definition~\ref{def:good}. In the case \textup{(SUB)} this is \textup{(X1)}: $H_0$ is loopless and $3$-edge-connected, it has at least two vertices, and every edge of $H_0$ is replaced by a path with at most $3$ edges. So every good subgraph serves, and Lemma~\ref{lem:extraction}~(a) is all that the proofs need. The equivalent form of (a): a loopless multigraph with $n\ge 3$ vertices that contains no good subgraph has at most $(4/3)\,n-2$ edges. Part~(b) says more. Whenever the lemma is used for a graph $G$ without a cycle with at most $5$ edges, the good subgraph can be chosen as a dense subgraph with the least number of vertices, and then it has the properties \textup{(X2)}, \textup{(X3)} and \textup{(X4)} in addition. These three properties are not used in the proofs. They limit the edges of $H_0$ that are replaced by paths with $3$ edges, and the conditions \condS{} and \condNR{} of Definition~\ref{def:counts} speak of these edges. The bound in \textup{(X3)} is attained. Let $G$ consist of two vertices joined by three paths with $3$ edges each. It has $8$ vertices and $9>(4/3)\cdot 8-2$ edges, and no cycle with fewer than $6$ edges. A subgraph with $j\le 7$ vertices has at most $j$ edges if $j\ge 6$, and at most $j-1$ edges if $j\le 5$; so it is not dense. Hence $H=G$ in Lemma~\ref{lem:extraction}~(b), with $n_0=2$, $m_0=3$ and $6=3m_0-4n_0+5$ vertices of degree $2$. \end{remark} \subsection*{The truncated cubic reduction}\label{a2:reduction-sec} \begin{definition}[Truncated cubic graph]\label{a2:tc} A \emph{truncated cubic $3$-edge-connected graph} is a graph $Q=Q^+-v$, where $Q^+$ is a cubic $3$-edge-connected graph on at least four vertices and $v$ is a vertex of $Q^+$. \end{definition} Such a graph is simple and connected; three of its vertices have degree $2$ and all others have degree $3$ \textup{(}Lemma~\ref{app:count}~(a)\textup{)}. A \emph{cut vertex} of a connected graph is a vertex whose deletion leaves a graph that is not connected. A \emph{block} of a graph is a maximal connected subgraph without a cut vertex. A graph with two vertices and one or more edges between them has no cut vertex. We use the standard facts: every edge of a graph lies in exactly one block, and every cycle lies in one block. \begin{lemma}[Truncated cubic reduction]\label{lem:reduction}\label{a2:reduction} \begin{condlist}{(a)} \item[\textup{(a)}] Let $H_0$ be a loopless $3$-edge-connected multigraph on at least two vertices. Then every block $K$ of $H_0$ is loopless and $3$-edge-connected, has at least two vertices, and has no cut vertex. \item[\textup{(b)}] Let $K$ be a loopless $3$-edge-connected multigraph on at least two vertices without a cut vertex. Then there is a truncated cubic $3$-edge-connected graph $Q_K$ with these properties: $E(K)$ is a subset of $E(Q_K)$; the edges of $Q_K$ that are not in $E(K)$ form pairwise disjoint cycles; and $K$ is obtained from $Q_K$ by the contraction of each of these cycles to one vertex, that is, by the contraction of the edges of $Q_K$ that are not in $E(K)$. \end{condlist} \end{lemma} \begin{proof} (a) $H_0$ is connected and loopless and has an edge at every vertex; so a block has an edge, it has at least two vertices, and it is loopless. It has no cut vertex by definition. Let $V(K)$ be the disjoint union of two non-empty sets $V_1$, $V_2$. For a vertex $x$ of $K$ let $V[x]$ be the set of the vertices $y$ of $H_0$ that are joined to $x$ by a path without an edge of $K$ \textup{(}so $x$ is in $V[x]$\textup{)}. Every vertex of $H_0$ is in some $V[x]$: take a path to a vertex of $K$ and stop at the first vertex of $K$. No vertex is in $V[x]$ and in $V[x']$ with $x\ne x'$: otherwise there is a path without an edge of $K$ between two different vertices of $K$, and with no other vertex in $K$; the graph $K$ together with this path is connected, has no cut vertex, and is larger than $K$. An edge $yy'$ of $H_0$ that is not in $K$ has both ends in one set $V[x]$: a path from $x$ to $y$ without an edge of $K$, together with this edge, shows that $y'$ is in $V[x]$. So the edges of $H_0$ between the union of the $V[x]$ with $x$ in $V_1$ and the union of the $V[x]$ with $x$ in $V_2$ are exactly the edges of $K$ between $V_1$ and $V_2$. There are at least three of them, because $H_0$ is $3$-edge-connected. (b) \emph{Step 1.} Add to $K$ a new vertex $v$ and three new edges from $v$ to vertices of $K$, not all three to the same vertex. Call the result $K^+$. It is loopless. It has no cut vertex: for a vertex $u$ of $K$ the graph $K-u$ is connected, and $v$ has a neighbour other than $u$; so $K^+-u$ is connected; and $K^+-v=K$ is connected. It is $3$-edge-connected: let $V(K^+)$ be the disjoint union of two non-empty sets; if both contain vertices of $K$, at least three edges of $K$ join them; if not, one of them is $\{v\}$, and three edges join them. So every vertex of $K^+$ has degree at least $3$. A neighbour of $v$ has degree at least $3$ in $K$, so it has degree at least $4$ in $K^+$. \emph{Step 2.} For every vertex $u\ne v$ of $K^+$ of degree $j\ge 4$ take a cycle $O_u$ of length $j$ with new vertices and new edges. Replace $u$ by $O_u$: the $j$ edges at $u$ end now at the $j$ vertices of $O_u$, one edge at each vertex. Call the result $K^c$. It is cubic and loopless, the cycles $O_u$ are pairwise disjoint, and the contraction of every $O_u$ to one vertex gives $K^+$ back. Every vertex of $O_u$ has exactly one edge that is not on $O_u$, and the other end of this edge is not on $O_u$, because $K^+$ is loopless. \emph{Step 3: $K^c$ is $3$-edge-connected.} Let $V(K^c)$ be the disjoint union of two non-empty sets $V_1$, $V_2$ such that at most two edges join them. First case: every cycle $O_u$ is in one of the two sets. Then the contraction of the cycles gives two non-empty sets of vertices of $K^+$ with the same edges between them; this contradicts Step~1. Second case: some cycle $O_u$ has vertices in both sets. Then at least two edges of $O_u$ join the two sets. So exactly two edges join them, both are on $O_u$, and every other cycle $O_{u'}$ is in one of the two sets. A vertex of $O_u$ in $V_1$ has a neighbour outside $O_u$, and this neighbour is in $V_1$; the same for $V_2$. Now contract all cycles other than $O_u$ and delete $O_u$. The result is $K^+-u$. Its vertex set is split into two non-empty sets, which come from $V_1$ and from $V_2$, with no edge between them. So $K^+-u$ is not connected; this contradicts Step~1. \emph{Step 4.} By Step~1 the ends in $K$ of the three edges at $v$ have degree at least $4$ in $K^+$. So in $K^c$ the three edges at $v$ end at three different vertices, and $K^c$ has at least four vertices. Put $Q_K=K^c-v$. This is a truncated cubic $3$-edge-connected graph. Its edges are the edges of $K$ and the edges of the cycles $O_u$. The contraction of every $O_u$ to one vertex gives $K^+-v=K$. \end{proof} \subsection*{Threads and the auxiliary graph}\label{a2:threads-sec}\label{sec:frames} In the rest of this section $H$ is a subdivision as in Definition~\ref{def:good}~\textup{(SUB)}, and $A$ is an abelian group. \textup{(}In the later sections $A$ is the quotient $\Gam/B$ of a group $\Gam$ by a subgroup $B$.\textup{)} \begin{definition}[Threads and the auxiliary graph]\label{def:threads}\label{a2:threads} For an edge $t$ of $H_0$, the path $\thr{t}$ of $H$ that replaces $t$ is the \emph{thread} of $t$, and $\len(t)\in\{1,2,3\}$ is its number of edges. Every thread is directed as a path; its edges and the edge $t$ have this direction as reference orientation. Let $K_1,\dots,K_r$ be the blocks of $H_0$. For every block $K_b$ let $Q_b$ be a truncated cubic $3$-edge-connected graph \textup{(}a cubic $3$-edge-connected graph on at least four vertices minus one vertex\textup{)} such that $E(K_b)$ is a subset of $E(Q_b)$ and $K_b$ is obtained from $Q_b$ by the contraction of the other edges of $Q_b$. $Q$ is the disjoint union of the $Q_b$. The edges of $H_0$ are the \emph{original} edges of $Q$; the other edges of $Q$ are \emph{expansion} edges, and $\len(t)=0$ for an expansion edge $t$. For an $A$-flow $Y$ of $Q$, $\pi(Y)$ is the $A$-flow of $H$ that has the value $Y(t)$ on every edge of $\thr{t}$, for every original edge $t$. \end{definition} The graphs $Q_b$ exist by Lemma~\ref{lem:reduction}. We fix them, one for every block, with disjoint vertex sets. A vertex $x$ of $K_b$ is a set $V_x$ of vertices of $Q_b$: a component of the graph formed by the expansion edges of $Q_b$. The map $\pi(Y)$ is defined in the same way for every abelian group in the place of $A$, also for $\Z$; Lemma~\ref{a2:flows}~(c) says that it is a flow. \begin{lemma}[The flows of $H$, of $H_0$ and of $Q$]\label{a2:flows} Let $A$ be an abelian group, finite or not. \begin{condlist}{(a)} \item[\textup{(a)}] Every cycle of $H$ is a union of threads. If $O$ is a cycle of $H$ with a direction, then $\chi_O$ is constant, $1$ or $-1$, on the edges of each thread of $O$. Every $A$-flow of $H$ is constant on every thread. So the $A$-flows of $H$ are the maps that have the value $h_0(t)$ on every edge of $\thr{t}$, for an $A$-flow $h_0$ of $H_0$. \item[\textup{(b)}] The restriction of an $A$-flow of $H_0$ to a block $K_b$ is an $A$-flow of $K_b$. \item[\textup{(c)}] For every $A$-flow $Y$ of $Q$, the restriction of $Y$ to the original edges is an $A$-flow of $H_0$, and $\pi(Y)$ is an $A$-flow of $H$. Every $A$-flow of $H$ is $\pi(Y)$ for some $A$-flow $Y$ of $Q$. \item[\textup{(d)}] Let $C$ be a cycle of $Q$ with a direction. Then there are pairwise edge-disjoint directed cycles $O_1,\dots,O_j$ of $H$ \textup{(}$j\ge 0$\textup{)} such that $\pi(x\chi_C)=x\,(\chi_{O_1}+\dots+\chi_{O_j})$ for every $x$ in $A$. \end{condlist} \end{lemma} \begin{proof} (a) An interior vertex of a thread has degree $2$ in $H$, and the thread is directed as a path. So a cycle that contains one edge of a thread contains the whole thread and passes it in one direction; this gives the first two statements. And conservation at an interior vertex says that its two edges have the same value. For a map that is constant on every thread, conservation at a vertex of $H_0$ is the same condition in $H$ and in $H_0$. (b) By Lemma~\ref{lem:cycledec}~(a) an $A$-flow of $H_0$ is a sum of flows $x\chi_C$ with cycles $C$ of $H_0$. Every cycle lies in one block. So the restriction to $K_b$ is the sum of the terms with $C$ in $K_b$. (c) Let $x$ be a vertex of $K_b$. Add the conservation conditions of $Y$ at the vertices of $V_x$. Every edge with both ends in $V_x$ is in this sum with both signs. What is left is conservation at $x$ for the restriction of $Y$ to $E(K_b)$. So this restriction is an $A$-flow of $K_b$. At a vertex of $H_0$, conservation is the sum of the conservation conditions in the blocks that contain this vertex. So the restriction of $Y$ to the original edges is an $A$-flow of $H_0$, and by (a) $\pi(Y)$ is an $A$-flow of $H$. Now let an $A$-flow of $H$ be given. By (a) and (b) it comes from an $A$-flow $h_0$ of $H_0$ whose restriction to every block is a flow of the block. Let $x$ be a vertex of $K_b$. For a vertex $y$ in $V_x$ let $\nu(y)$ be the boundary at $y$ of the map that is $h_0$ on the original edges and $0$ on the expansion edges. The sum of $\nu(y)$ over $y$ in $V_x$ is the boundary of $h_0$ at $x$ in $K_b$, which is $0$. The expansion edges connect $V_x$; choose a spanning tree of $V_x$ that consists of expansion edges. There are values on the edges of this tree whose boundary at every $y$ in $V_x$ is $-\nu(y)$. \textup{(}Induction on $|V_x|$: for one vertex, $\nu=0$. Otherwise let $y$ be a vertex that meets only one edge $yy'$ of the tree; the value on this edge is fixed by the condition at $y$; delete $y$ and add $\nu(y)$ to $\nu(y')$.\textup{)} Give all other expansion edges the value $0$. Do this for every $x$ and every $b$. The result is an $A$-flow $Y$ of $Q$ that is equal to $h_0$ on the original edges; so $\pi(Y)$ is the given flow. (d) By (c), used for the group $\Z$, the map $\pi(\chi_C)$ is an integer flow of $H$. Its values are in $\{-1,0,1\}$. By Lemma~\ref{lem:cycledec}~(b) it is $\chi_{O_1}+\dots+\chi_{O_j}$ with pairwise edge-disjoint directed cycles of $H$. And $\pi(x\chi_C)=x\,\pi(\chi_C)$ edge by edge. \end{proof} \subsection*{Frames}\label{a2:frames-sec} \begin{definition}[$2$-joins and $2$-constructions]\label{a2:twoC} A \emph{$2$-join} of two graphs $U'$ and $U''$ with disjoint vertex sets is a graph that consists of $U'$, of $U''$ and of exactly two new edges, each with one end in $U'$ and one end in $U''$ \textup{(}the two new edges can be parallel\textup{)}. A graph is \emph{$2$-constructible} if it has one vertex and no edge, or if it is a $2$-join of two $2$-constructible graphs. A \emph{$2$-construction} of a $2$-constructible graph $U_0$ fixes one way to obtain $U_0$. If $U_0$ has more than one vertex, it names two graphs $U'_0$, $U''_0$ of which $U_0$ is a $2$-join, and it contains a $2$-construction of $U'_0$ and a $2$-construction of $U''_0$. The \emph{stages} of the $2$-construction are $U_0$ and, if $U_0$ has more than one vertex, the stages of the $2$-constructions of $U'_0$ and of $U''_0$. So the stages are subgraphs of $U_0$, and the stages with one vertex are the vertices of $U_0$. A stage $U$ with more than one vertex is a \emph{node}; it stands for the $2$-join that makes it. The two stages $U'$, $U''$ that it joins are its \emph{operands}, and its two new edges are the \emph{edges of the node}. \end{definition} \begin{definition}[Frame]\label{def:frame}\label{a2:frame} A \emph{frame} of $H$ consists of the following, for every component $Q_b$ of $Q$: \begin{condlist}{(F3)} \item[\textup{(F1)}] a \emph{well colouring} of $Q_b$: every edge is blue or red, the blue edges form a spanning tree $T_b$ of $Q_b$, and the graph $Q_b/\red$ \textup{(}its vertices are the components of the red edges, its edges are the blue edges\textup{)} is $2$-constructible; \item[\textup{(F2)}] a $2$-construction of $Q_b/\red$ from single vertices; its $2$-joins are the \emph{nodes}, and the two graphs that a node joins are its \emph{operands}; \item[\textup{(F3)}] for every node $i$, names $e_i$ and $f_i$ for its two new edges. The set $N_i=\{e_i,f_i\}$ is the \emph{pair} of the node $i$. \end{condlist} The nodes of all components are numbered $1,\dots,s$: component after component, and in every component every node after all nodes that are subgraphs of its two operands. $T$ is the union of the trees $T_b$; its edge set is the disjoint union of the pairs $N_1,\dots,N_s$. Every truncated cubic $3$-edge-connected graph has a well colouring \textup{(}Lemma~\ref{app:wellcolouring}\textup{)}, so every $H$ has a frame. The names in \textup{(F3)} are free: at every node the two names can be exchanged. \end{definition} In \textup{(F1)}, ``the components of the red edges'' are the \emph{red components}: the components of the graph with the vertex set $V(Q_b)$ and the red edges. The ends of a blue edge in $Q_b/\red$ are the red components of its two ends. \smallskip \noindent\textbf{Notation for a frame.} Let a frame of $H$ be given. For a stage $U$ of the $2$-construction of $Q_b/\red$, $V_U$ is the union of the red components that are the vertices of $U$, and $Q_U$ is the subgraph of $Q_b$ induced on $V_U$, the \emph{graph of $U$}. For a node $i$, $U_i$ is its stage, and $U'_i$, $U''_i$ are its operands. A node $h$ is \emph{below} the node $i$ if $h\ne i$ and $U_h$ is a subgraph of $U_i$; then $U_h$ lies in $U'_i$ or in $U''_i$ and is a stage of its $2$-construction \textup{(}two stages are disjoint or nested, Lemma~\ref{app:count}~(b), and $U_h\ne U_i$\textup{)}, and $hi$, then $C_l$ does not contain $f_i$. \textup{(}It can contain $e_i$.\textup{)} \item[\textup{(O5)}] For every abelian group $A$, every $A$-flow of $Q$ is a sum $x_1\chi_{C_1}+\dots+x_s\chi_{C_s}$ with $x_i$ in $A$, in exactly one way. \item[\textup{(O6)}] $\HP$ is connected and contains every vertex of $H$ that is not an interior vertex of a free thread; and the cycle $\Deps$ exists for every free edge $\eps$. \end{condlist} \end{lemma} In \textup{(O1)}, ``$\Tg$ is a spanning tree of the graph $Q_U$ of a stage $U$'' means: the edges of $\Tg$ in $Q_U$ form a spanning tree of $Q_U$. This holds for every stage, also for the stages with one vertex. \begin{proof} \textup{(O1)} The red edges form a forest by \textup{(G1)}. Let one edge $g_i$ in every pair $N_i$ be chosen. For a stage $U$ let $\Tg_U$ be the graph with the vertex set $V_U$ whose edges are the red edges with both ends in $V_U$ and the edges $g_h$ of the nodes $h$ with $U_h$ a subgraph of $U$. We show by induction on the $2$-construction that $\Tg_U$ is a spanning tree of $Q_U$. If $U$ has one vertex, then $V_U$ is one red component; it is connected by its red edges, and they form a forest; so it is a tree. Let $U=U_i$ be a node. By induction $\Tg_{U'_i}$ and $\Tg_{U''_i}$ are trees; by \textup{(G4)} their vertex sets are disjoint with the union $V_{U_i}$, and $g_i$ has one end in each of them. A red edge with both ends in $V_{U_i}$ has both ends in one red component, so in $V_{U'_i}$ or in $V_{U''_i}$. A node $h$ with $U_h$ a subgraph of $U_i$ is $i$, or $U_h$ is a subgraph of $U'_i$ or of $U''_i$. So $\Tg_{U_i}$ is the union of the two trees and the edge $g_i$: a spanning tree of $Q_{U_i}$. For $U=Q_b/\red$ this is the statement on $Q_b$. \emph{Consequence.} For every stage $U$ and two vertices of $V_U$, the path of $\Tg$ between them lies in $Q_U$: it is the path of the tree $\Tg_U$. \smallskip \textup{(O2)} By \textup{(G2)} the edges of $Q$ outside $\Te$ are $f_1,\dots,f_s$. So $C_i$ consists of $f_i$ and of the path of $\Te$ between the ends of $f_i$. Both ends are in $V_{U_i}$, so by the consequence of \textup{(O1)} this path lies in $Q_{U_i}$. By \textup{(G4)} one end of $f_i$ is in $V_{U'_i}$ and the other one is in $V_{U''_i}$, and the only edges of $Q_{U_i}$ between these two sets are $e_i$ and $f_i$. The path does not contain $f_i$. So it contains $e_i$. We note the result as \textup{($\ast$)}: \emph{$C_i$ is a cycle of $Q_{U_i}$; it consists of $f_i$, of $e_i$, of a path of $\Te$ in $Q_{U'_i}$ and of a path of $\Te$ in $Q_{U''_i}$.} \smallskip \textup{(O3)} Let $li$. \item[\textup{(c)}] $\Delta_i=\chi_{C_i^{f}}-\chi_{C_i^{e}}$ is an integer flow of $Q$. It is $0$ on $N_i$ and outside $Q_{U_i}$. So it is an integer flow of the graph $Q_{U'_i}\cup Q_{U''_i}$, whose edges are red edges and edges of pairs $N_h$ with $h$ below $i$. In particular $\Delta_i$ is $0$ on $N_i\cup N_{i+1}\cup\dots\cup N_s$. For every abelian group $A$ and every $x$ in $A$, the $A$-flow $x\Delta_i$ is a sum of flows $x'\chi_C$ with $x'$ in $A$ and $C$ a cycle of $Q_{U'_i}\cup Q_{U''_i}$. \end{condlist} \end{lemma} \begin{proof} (a) The proof of \textup{(O2)}, with the tree $T^{f}$ in the place of $\Te$ and with the names $e_i$ and $f_i$ exchanged, gives the first two sentences. By \textup{($\ast$)} in the proof of Lemma~\ref{lem:official}, the cycle $C_i^{e}$ has the same form, with paths of $\Te$. Let both cycles pass $f_i$ forward, say from its end in $V_{U'_i}$ to its end in $V_{U''_i}$ \textup{(}the other case is the same\textup{)}. After $f_i$ each of the two cycles stays in $Q_{U''_i}$ until it passes $e_i$, from the end of $e_i$ in $V_{U''_i}$ to its end in $V_{U'_i}$; then it goes back in $Q_{U'_i}$. So both pass $e_i$ in the same direction. (b) Let $h$ be below $i$. All edges of $C_i^{e}$ other than $f_i$ are in $\Te$, and $f_h$ is not in $\Te$. All edges of $C_i^{f}$ other than $e_i$ are in $T^{f}$, and $e_h$ is not in $T^{f}$. Let $h\ne i$ be not below $i$. Both cycles are cycles of $Q_{U_i}$, and by \textup{(G3)} the pair $N_h$ has no edge in $Q_{U_i}$. A node $h>i$ is not below $i$. (c) $\Delta_i$ is a difference of two integer flows. It is $0$ on $N_i$ by (a), and outside $Q_{U_i}$ because both cycles are in $Q_{U_i}$. By \textup{(G4)} it is therefore $0$ outside $Q_{U'_i}\cup Q_{U''_i}$; so it is an integer flow of this graph. By \textup{(G3)} the edges of this graph are red edges and edges of pairs $N_h$ with $U_h$ a subgraph of $U'_i$ or of $U''_i$, that is with $h$ below $i$. The last sentence is Lemma~\ref{lem:cycledec}~(a) for the $A$-flow $x\Delta_i$ of the graph $Q_{U'_i}\cup Q_{U''_i}$. \end{proof} \subsection*{Lists and counts}\label{a2:lists-sec} In this subsection $\Gam$ is a group, $B$ is a subgroup, $A=\Gam/B$, and $x\mapsto\quo{x}$ is the quotient map. The \emph{$A$-coordinate} of a $\Gam$-flow $f$ is the $A$-flow $u$ with the values $u(e)=\quo{f(e)}$. The \emph{$A$-part} of an element $x$ of $\Gam$ is $\quo{x}$. \begin{definition}[Lists; $H$-good flows]\label{def:lists}\label{a2:lists} Let a frame of $H$ be given. A \emph{list assignment} $\Lam$ gives every blue edge $t$ of $Q$ a set $\Lam(t)$ of elements of $A$, with $\Lam(t)$ empty for every expansion edge. $\PL{\Lam}$ is the set of the $A$-flows $Y$ of $Q$ with $Y(t)\notin\Lam(t)$ for every blue edge $t$. Let $G$ be a multigraph that contains $H$, and $f$ a nowhere-zero $\Gam$-flow of $G$ with $A$-coordinate $u$. In the case \textup{(SUB)}, $f$ is \emph{$H$-good} if $u(e)\ne 0$ for every edge $e$ of every protected thread; then \[ \Lam_f(t)=\{\,-u(e) : e\in E(\thr{t})\,\}\qquad\textup{for every original blue edge $t$.} \] So $|\Lam_f(t)|\le\len(t)$, $0$ is in $\PL{\Lam_f}$, and for an $A$-flow $Y$ of $Q$: $Y$ is in $\PL{\Lam_f}$ if and only if $u+\pi(Y)$ is non-zero on all protected threads. \textup{(}$u+\pi(Y)$ means: add $\pi(Y)$ on $E(H)$ and nothing outside $E(H)$.\textup{)} In the case \textup{(CYC)}, $f$ is \emph{$H$-good} if $u(e)\ne 0$ for every edge $e$ of $H$. \end{definition} The three claims after the display are clear: the thread $\thr{t}$ has $\len(t)$ edges; no element $-u(e)$ of a list is $0$; and $Y(t)\ne -u(e)$ for all edges $e$ of $\thr{t}$ says that $u+\pi(Y)$ is not $0$ on $\thr{t}$. \begin{definition}[The counts; counted frame]\label{def:counts}\label{a2:counts} Let a frame of $H$ be given. The \emph{counts} for $A$ and $B$ are the following inequalities. \begin{condlist}{(C4)} \item[\Cone] $2\,\len(e_i)+\len(f_i)<|A|$ for every node $i$ \textup{(}the walk lemma\textup{)}. \item[\Ctwo] $\len(e_i)+\len(f_i)+\max\{\len(e_i),\len(f_i)\}<|A|$ for every node $i$ \textup{(}the reverse choice for a step with non-zero $A$-part\textup{)}. \item[\Cthree] $\len(e_i)+\len(f_i)+2<|A|$ for every node $i$ \textup{(}the reverse choice for a step in $B$\textup{)}. \item[\Cfour] $\len(\eps)<|B|$ for every free edge $\eps$ \textup{(}the preparation in $B$\textup{)}. \end{condlist} The frame is \emph{counted} \textup{(}for $A$ and $B$\textup{)} if \Cone--\Cfour{} hold. Two conditions on a frame that do not use the groups: \begin{condlist}{(NR)} \item[\condS] no pair $N_i$ consists of two original edges whose threads both have $3$ edges; \item[\condNR] no free thread has $3$ edges \textup{(}every original edge whose thread has $3$ edges is blue\textup{)}. \end{condlist} \end{definition} \begin{remark}\label{rem:counts}\label{a2:rem-counts} The left sides of \Cone, \Ctwo, \Cthree, \Cfour{} are at most $9$, $9$, $8$, $3$. So every frame is counted if $|A|\ge 10$ and $|B|\ge 4$. If the names are chosen with $\len(e_i)\le\len(f_i)$ for every $i$, then \Ctwo{} implies \Cone. With these names: a frame with \condS{} is counted if $|A|\ge 9$ and $|B|\ge 4$ \textup{(}left sides at most $7$, $8$, $7$, $3$\textup{)}; a frame with \condNR{} is counted if $|A|\ge 10$ and $|B|\ge 3$ \textup{(}the left side of \Cfour{} is at most $2$\textup{)}. \end{remark} \section{Step systems and the master theorem}\label{a3:sec} This section proves the master theorem in its two forms (Theorems~\ref{thm:master} and~\ref{thm:masterframe}), three corollaries, and the integer form (Theorem~\ref{thm:Z}). All proofs are complete here. What is taken from other sections is cited at the place of use, with the property that is used: liftable steps (Definition~\ref{def:liftable}, Lemma~\ref{lem:liftable}); good subgraphs (Definition~\ref{def:good}) and the extraction lemma (Lemma~\ref{lem:extraction}); threads, the auxiliary graph, frames, official cycles, lists and counts (Definitions~\ref{def:threads}, \ref{def:frame}, \ref{def:official}, \ref{def:lists}, \ref{def:counts} and Lemma~\ref{lem:official}). The averaging conditions \AV{} and \AVpp{} are hypotheses in this section; Lemma~\ref{lem:AVG} proves them for products. Two rules hold in every proof of this section. \begin{condlist}{(b)} \item[\textup{(a)}] Every use of $|A|$ or of $|B|$, other than in the hypotheses of Lemmas~\ref{lem:reverse} and~\ref{lem:walk}, names the count that it uses: \Czero{} of Theorem~\ref{thm:master}, or one of \Cone--\Cfour{} of Definition~\ref{def:counts}; every use of the bound $\len(t)\le 3$ names \textup{(i)}. Remark~\ref{a3:rem:countuses} lists the places. \item[\textup{(b)}] \RI{} with six deleted elements, the count \Cone{} and the walk lemma (Lemma~\ref{lem:walk}) are used only in the proof of Lemma~\ref{lem:L1}. Every later proof uses Lemma~\ref{lem:L1} only through its conclusion. This is why the frame form of the theorem holds. \end{condlist} \subsection*{Step systems} Throughout, $\Gam$ is a finite abelian group, $B$ a subgroup, $A=\Gam/B$, and $x\mapsto\quo{x}$ is the quotient map. For a $\Gam$-flow $f$ of a multigraph the $A$-flow $u=\quo{f}$ (edge by edge) is the \emph{$A$-coordinate} of $f$. \begin{definition}[Step system]\label{def:stepsystem} A \emph{step system} is a set $\Sig$ of non-zero elements of $\Gam$ with $\Sig=-\Sig$. Put \[ \SigB=\Sig\cap B,\qquad \SigA=\{\,\quo{\lambda} : \lambda\in\Sig\,\}\setminus\{0\}, \] and for every $s$ in $\SigA$ fix one $\lift(s)$ in $\Sig$ with $\quo{\lift(s)}=s$. A \emph{$\Sig$-move} of a multigraph $G$ is a move $f\to f+\lambda\chi_C$ of $\Fl(G,\Gam)$ with $\lambda$ in $\Sig$. Two flows are \emph{$\Sig$-joined} if a sequence of $\Sig$-moves leads from one to the other. \end{definition} So a $\Sig$-move leads from a nowhere-zero flow to a nowhere-zero flow. The reverse of a $\Sig$-move is a $\Sig$-move, because $\Sig=-\Sig$. A flow is $\Sig$-joined to itself (the empty sequence). \begin{definition}[The conditions on a step system]\label{def:conditions} \begin{condlist}{(R3$^*$)} \item[\RI] For every set $X$ of at most $6$ elements of $A$, any two elements of $A\setminus X$ are joined by a walk in $A\setminus X$ all of whose steps are in $\SigA$. \item[\RIm] The same for every set $X$ of at most $5$ elements of $A$. \item[\RII] For every set $X$ of at most $2$ elements of $B$, any two elements of $B\setminus X$ are joined by a walk in $B\setminus X$ all of whose steps are in $\SigB$. \item[\RIII] Any two non-zero elements of $\Gam$ are joined by a walk in $\Gam\setminus\{0\}$ all of whose steps are in $\Sig$. \item[\AV] For every loopless $3$-edge-connected multigraph $G$ with $n\ge 2$ vertices and $m$ edges, every nowhere-zero $\Gam$-flow of $G$ is $\Sig$-joined to a nowhere-zero $\Gam$-flow whose $A$-coordinate has at most $m/9$ zeros. \item[\AVpp] For every loopless $3$-edge-connected multigraph $G$ with $n\ge 2$ vertices, every nowhere-zero $\Gam$-flow of $G$ is $\Sig$-joined to a nowhere-zero $\Gam$-flow $f'$ such that the multigraph $(V(G),\supp(\quo{f'}))$ contains a good subgraph. \end{condlist} \end{definition} A \emph{step} of a walk is the difference of two consecutive terms. \RI{} implies \RIm. \RI{} or \RIm{} with $X$ empty says: every element of $A$ is a sum of elements of $\SigA$. \RII{} with $X$ empty says: every element of $B$ is a sum of elements of $\SigB$. \medskip \noindent\textbf{Five elementary facts.} Here $G$ is a multigraph, $f$ a $\Gam$-flow of $G$ and $u=\quo{f}$. An \emph{integer flow} of $G$ is a map $E(G)\to\Z$ with conservation at every vertex. \begin{condlist}{(E5)} \item[\textup{(E1)}] $f(e)\ne 0$ if and only if $u(e)\ne 0$, or $u(e)=0$ and $f(e)$ is an element of $B$ other than $0$. \textup{(}If $u(e)=0$, then $f(e)$ is in $B$.\textup{)} \item[\textup{(E2)}] If $y$ is in $B$ and $C$ is a cycle of $G$, then $f+y\chi_C$ has the $A$-coordinate $u$. \item[\textup{(E3)}] \emph{Cycle decomposition} \textup{(}Lemma~\ref{lem:cycledec}\textup{)}. Every flow of $G$ with values in an abelian group is a sum of flows $x\chi_C$, where $C$ is a cycle of $G$ and $x$ is in the group. Every integer flow of $G$ with values in $\{0,1,-1\}$ is a sum $\chi_{O_1}+\dots+\chi_{O_\nu}$ with pairwise edge-disjoint cycles $O_1,\dots,O_\nu$ of $G$ \textup{(}$\nu=0$ for the zero flow\textup{)}. \item[\textup{(E4)}] Every $A$-flow of $G$ is the $A$-coordinate of some $\Gam$-flow of $G$. \item[\textup{(E5)}] \emph{Contraction.} Let $G'$ be obtained from $G$ in this way: the vertices of each class of a partition of $V(G)$ are identified to one vertex, and some edges that have both ends in one class are deleted. Then the restriction of a flow of $G$ to $E(G')$ is a flow of $G'$ \textup{(}values in any abelian group\textup{)}. \end{condlist} \noindent\emph{Proofs.} (E1) and (E2) hold because $B$ is the kernel of the quotient map. (E3) The first statement is Lemma~\ref{lem:cycledec}~(a). The second one is Lemma~\ref{lem:cycledec}~(b): for an integer flow with values in $\{0,1,-1\}$ the cycles of the signed form are pairwise edge-disjoint. (E4) By (E3) the $A$-flow is a sum $\sum_r a_r\chi_{C_r}$. Choose $x_r$ in $\Gam$ with $\quo{x_r}=a_r$. The $\Gam$-flow $\sum_r x_r\chi_{C_r}$ has this $A$-coordinate. (E5) Add the conservation equations of $G$ over the vertices of one class. An edge with both ends in the class enters the class once and leaves it once, so it drops out. What is left is the conservation equation of $G'$ at the vertex made from the class.\qed \begin{lemma}\label{lem:AVtoAVpp} \AV{} implies \AVpp. \textup{(}A loopless multigraph with $n\ge 3$ vertices and more than $(4/3)\,n-2$ edges contains a good subgraph; for $n=2$ the support has two parallel edges.\textup{)} \end{lemma} \begin{proof} Let $G$ be loopless and $3$-edge-connected with $n\ge 2$ vertices and $m$ edges. Every vertex has degree at least $3$, so $m\ge 3n/2$. Let $f'$ be the flow that \AV{} gives, with $A$-coordinate $u'$. Then \[ |\supp(u')|\ \ge\ m-m/9\ \ge\ (8/9)(3/2)\,n\ =\ (4/3)\,n\ >\ (4/3)\,n-2 . \] Let $n\ge 3$. The multigraph $(V(G),\supp(u'))$ is loopless and has $n$ vertices and more than $(4/3)\,n-2$ edges. By Lemma~\ref{lem:extraction}~(a) it contains a cycle with at most $5$ edges or a subdivision of a loopless $3$-edge-connected multigraph on at least two vertices in which every edge is replaced by a path with at most $3$ edges. The cycle has at least $2$ vertices, because the multigraph is loopless. This is a good subgraph (Definition~\ref{def:good}). Let $n=2$. Then $m\ge 3$, so $\supp(u')$ has at least $8m/9>2$ edges. $G$ is loopless, so two of them are parallel. They form a cycle with $2$ edges and $2$ vertices, a good subgraph of the kind (CYC). \end{proof} \subsection*{The subdivision: what is used} From here to the end of the proof of Lemma~\ref{lem:P}, $H$ is a subdivision as in Definition~\ref{def:good}~(SUB), with the graphs $H_0$, $K_b$, $Q_b$, $Q$ of Definition~\ref{def:threads}, and a frame of $H$ is given (Definition~\ref{def:frame}). The proofs use the following properties of these objects, and no other property. \begin{condlist}{(iii)} \item[\textup{(i)}] \emph{Threads} \textup{(Definition~\ref{def:threads})}. Every edge of $H$ lies on exactly one thread $\thr{t}$, where $t$ is an edge of $H_0$, and $1\le\len(t)\le 3$. The interior vertices of a thread have degree $2$ in $H$; the other vertices of $H$ are the vertices of $H_0$. $H_0$ is connected and loopless, every edge of $H_0$ lies in exactly one block $K_b$, and every cycle of $H_0$ lies in one block. \item[\textup{(ii)}] \emph{The auxiliary graph} \textup{(Definition~\ref{def:threads})}. $E(K_b)$ is a subset of $E(Q_b)$, and $K_b$ is obtained from $Q_b$ by the contraction of the expansion edges: the vertices of $K_b$ are the components of the subgraph of $Q_b$ formed by all vertices and the expansion edges, and an original edge joins the components of its two ends. $\len(t)=0$ for an expansion edge $t$. \item[\textup{(iii)}] \emph{The frame} \textup{(Definition~\ref{def:frame})}. The blue edges of $Q_b$ form a spanning tree $T_b$ of $Q_b$. Every blue edge of $Q$ lies in exactly one pair $N_i$. A \emph{stage} is a graph $U$ of the $2$-construction \textup{(}Definition~\ref{a2:twoC}\textup{)}; its vertices are components of the red edges. $V_U$ is the union of these components, and $Q_U$ is the subgraph of $Q$ induced on $V_U$. If $U'$ and $U''$ are the two operands of the node $i$, then $V_{U'}$ and $V_{U''}$ are disjoint, and each of the edges $e_i$, $f_i$ has one end in $V_{U'}$ and the other end in $V_{U''}$ \textup{(}a $2$-join adds two edges, each with one end in each of the two graphs; Lemma~\ref{app:operands}~(c)\textup{)}. The names $e_i$, $f_i$ can be exchanged at every node; the result is a frame again. \item[\textup{(iv)}] \emph{Official cycles} \textup{(Definition~\ref{def:official}, Lemma~\ref{lem:official})}. The statements \textup{(O1)--(O6)}. Of \textup{(O1)} we use, with $Q_U$ as in the notation for a frame after Definition~\ref{def:frame} and the paragraph after Lemma~\ref{lem:official}: for every choice of one edge $g_i$ in every pair, $\Tg$ is a spanning tree of every component $Q_b$; and for every stage $U$, the edges of $\Te$ in $Q_U$ form a spanning tree of $Q_U$ \textup{(}the proof of \textup{(O1)} shows this for every stage, by induction on the $2$-construction, from Lemmas~\ref{app:count} and~\ref{app:operands}\textup{)}. The blue edges of $\Tg$ are the edges $g_i$. The cycle $\Deps$ contains $\thr{\eps}$ and no other free thread, and it is directed along $\thr{\eps}$. \item[\textup{(v)}] \emph{Lists and counts} \textup{(Definitions~\ref{def:lists}, \ref{def:counts})}. A list assignment is empty on every expansion edge. An $H$-good flow is nowhere zero. For an $H$-good flow $f$ with $A$-coordinate $u$: $|\Lam_f(t)|\le\len(t)$; $0$ is in $\PL{\Lam_f}$; and an $A$-flow $Y$ of $Q$ is in $\PL{\Lam_f}$ if and only if $u+\pi(Y)$ is non-zero on every edge of every protected thread. Here and below, $u+\pi(Y)$ means: add $\pi(Y)$ on $E(H)$ and nothing outside $E(H)$. \end{condlist} Whenever $H$ is a subgraph of a multigraph $G$, the reference orientation of $G$ on $E(H)$ is the direction of the threads. This is no restriction: a change of the reference orientation of an edge changes the sign of all flow values on this edge and nothing else. For a flow $Y$ of $Q$, with values in $A$ or in $\Z$, $\pi(Y)$ has the value $Y(t)$ on every edge of $\thr{t}$, for every original edge $t$. Lemma~\ref{a2:flows} describes the flows of $H$ and of $Q$. Below we use its parts \textup{(a)}, \textup{(c)} and \textup{(d)}: every cycle of $H$ is a union of threads, and for a cycle $O$ of $H$ with a direction, $\chi_O$ is constant, $1$ or $-1$, on the edges of each thread of $O$; every flow of $H$ is constant on the edges of each thread; $\pi(Y)$ is an $A$-flow of $H$ for every $A$-flow $Y$ of $Q$, and every $A$-flow of $H$ is $\pi(Y)$ for some $A$-flow $Y$ of $Q$; and for every cycle $C$ of $Q$ with a direction there are pairwise edge-disjoint directed cycles $O_1,\dots,O_\nu$ of $H$ \textup{(}$\nu=0$ is possible\textup{)} with $\pi(x\chi_C)=x\,(\chi_{O_1}+\dots+\chi_{O_\nu})$ for every $x$ in $A$. \subsection*{The reverse choice and the walk lemma} \begin{lemma}[Reverse choice]\label{lem:reverse} Let $\Lam$ be a list assignment. \begin{condlist}{(a)} \item[\textup{(a)}] If $|\Lam(e_i)|+|\Lam(f_i)|<|A|$ for every node $i$, then for every $A$-flow $Y_0$ of $Q$ there are $x_1,\dots,x_s$ in $A$ with $Y_0+x_1\chi_{C_1}+\dots+x_s\chi_{C_s}$ in $\PL{\Lam}$. \item[\textup{(b)}] Let $E'$ be a set of red edges of $Q$, and for every $\eps$ in $E'$ let $\Phi(\eps)$ be a set of elements of $A$, not all of $A$. Let $i(\eps)$ be the least $i$ with $\eps$ on $C_i$, if there is one. If for every node $i$ \[ |\Lam(e_i)|+|\Lam(f_i)|+\sum_{\eps\in E',\ i(\eps)=i}|\Phi(\eps)|\ <\ |A|, \] then there is $Y$ in $\PL{\Lam}$ with $Y(\eps)\notin\Phi(\eps)$ for every $\eps$ in $E'$. \end{condlist} \end{lemma} \begin{proof} Every blue edge of $Q$ lies in exactly one pair \textup{(iii)}. By (O2) the cycle $C_i$ contains $e_i$ and $f_i$; so $\chi_{C_i}$ has the value $1$ or $-1$ on each of them. By (O3) no cycle $C_l$ with $li}x_l\chi_{C_l}$. For an edge $t$ of $N_i$ the flow $Y=Y_0+x_1\chi_{C_1}+\dots+x_s\chi_{C_s}$ has the value \[ Y(t)=Z_i(t)+x_i\,\chi_{C_i}(t), \] whatever $x_{i-1},\dots,x_1$ are (O3). Since $\chi_{C_i}(t)$ is $1$ or $-1$, the condition $Y(t)\notin\Lam(t)$ forbids exactly $|\Lam(t)|$ values of $x_i$. The two edges of $N_i$ together forbid at most $|\Lam(e_i)|+|\Lam(f_i)|<|A|$ values. So $x_i$ can be chosen. In the end $Y(t)\notin\Lam(t)$ for every blue edge $t$. (b) Let $E'_0$ be the set of the edges of $E'$ that lie on no official cycle. For $\eps$ in $E'_0$ choose $y_\eps$ in $A$ outside $\Phi(\eps)$. The blue edges form a spanning tree of the component of $Q$ that contains $\eps$ \textup{(iii)}. Let $F_\eps$ be the cycle formed by $\eps$ and the path of this tree between the ends of $\eps$, directed along $\eps$. Its only red edge is $\eps$. Put $Y_0=\sum_{\eps\in E'_0}y_\eps\chi_{F_\eps}$; so $Y_0(\eps)=y_\eps$ for every $\eps$ in $E'_0$. Choose $x_s,\dots,x_1$ as in (a), for the flow $Y=Y_0+x_1\chi_{C_1}+\dots+x_s\chi_{C_s}$, with one more condition on $x_i$: $Y(\eps)\notin\Phi(\eps)$ for every $\eps$ in $E'$ with $i(\eps)=i$. For such an $\eps$ the value $Y(\eps)=Z_i(\eps)+x_i\,\chi_{C_i}(\eps)$ does not depend on $x_{i-1},\dots,x_1$, because no cycle $C_l$ with $li$. By (O4), $C_{l_r}$ does not contain $f_i$. So $X_i^f(Y_r)=X_i^f(Y_{r-1})$, and \[ |X_i(Y_{r-1})\cup X_i(Y_r)|\ \le\ |X_i^e(Y_{r-1})|+|X_i^e(Y_r)|+|X_i^f(Y_{r-1})|\ =\ 2\,|\Lam(e_i)|+|\Lam(f_i)|\ <\ |A|. \] The last inequality is the second hypothesis of the lemma; for $\Lam=\Lam_f$ it is the count \Cone, see \textup{(5)}. Choose $c_r$ outside $X_i(Y_{r-1})\cup X_i(Y_r)$.\label{a3:use:walk:C1} \end{condlist} In \textup{(3b)} and \textup{(3c)}: $c_{r-1}$ and $c_r$ are outside $X_i(Y_{r-1})$, a set of at most $6$ elements by the first hypothesis of the lemma. By \RI{} there is a walk from $c_{r-1}$ to $c_r$ in $A\setminus X_i(Y_{r-1})$ with steps in $\SigA$.\label{a3:use:walk:R1} Add the flows $Y_{r-1}+c\chi$ for the terms $c$ of this walk after the first term. They are in $\PL{\Lam_i}$ by $(*)$, and two consecutive ones differ by $\sigma\chi_{C_i}$ with $\sigma$ in $\SigA$. Then add $Y_r+c_r\chi$. It is in $\PL{\Lam_i}$ by $(*)$, because $c_r\notin X_i(Y_r)$; it differs from the term before it, $Y_{r-1}+c_r\chi$, by $\sigma_r\chi_{C_{l_r}}$. \item[\textup{(4)}] \emph{The end of the step.} The sequence has reached $Y_n+c_n\chi$ with $c_n\notin X_i(Y_n)$. Also $0\notin X_i(Y_n)$ by $(*)$, because $Y_n=Y'$ is in $\PL{\Lam_i}$. By \RI{} there is a walk from $c_n$ to $0$ in $A\setminus X_i(Y_n)$ with steps in $\SigA$.\label{a3:use:walk:R1end} Add the flows $Y_n+c\chi$ for its terms after the first term. The last one is $Y'$. This proves Claim($i$). \item[\textup{(5)}] \emph{The case $\Lam=\Lam_f$.} $|\Lam_f(t)|\le\len(t)\le 3$ for every blue edge $t$ \textup{(v)}, \textup{(i)}. So $|\Lam_f(e_i)|+|\Lam_f(f_i)|\le 6$, and $2\,|\Lam_f(e_i)|+|\Lam_f(f_i)|\le 2\,\len(e_i)+\len(f_i)<|A|$ by \Cone.\label{a3:use:walk:C1f}\qedhere \end{condlist} \end{proof} \subsection*{A change of the \texorpdfstring{$A$}{A}-coordinate inside \texorpdfstring{$H$}{H}} Lemma~\ref{lem:L1} is put together from three parts: the walk lemma, which gives a sequence of steps $\sigma\chi_{C_l}$; Lemma~\ref{a3:lem:step}, which makes one such step in $G$; and Lemma~\ref{a3:lem:prepB}, which prepares the free threads for the step. Lemmas~\ref{a3:lem:prepB} and~\ref{a3:lem:step} do not use \RI, \Cone{} or the walk lemma, and Lemma~\ref{a3:lem:step} holds for every cycle $C$ of $Q$. \begin{lemma}[Preparation in $B$]\label{a3:lem:prepB} Assume \RII, and let the frame have \Cfour. Let $G$ be a multigraph that contains $H$, and $f$ an $H$-good $\Gam$-flow of $G$ with $A$-coordinate $u$. Let $E^{\circ}$ be a set of free edges. For every $\eps$ in $E^{\circ}$ put \[ W_\eps=\{\,-f(e) : e\in E(\thr{\eps}),\ u(e)=0\,\}, \] and let $T_\eps$ be a set of at most $\len(\eps)$ elements of $B$ that contains $W_\eps$. Then $f$ is $\Sig$-joined, by $\Sig$-moves $y\chi_{\Deps}$ with $y$ in $\SigB$ and $\eps$ in $E^{\circ}$, to an $H$-good flow $f^{\circ}$ with $A$-coordinate $u$ such that for every $\eps$ in $E^{\circ}$ \[ f^{\circ}=f+y_\eps\ \text{ on } E(\thr{\eps}),\qquad\text{with an element } y_\eps \text{ of } B \text{ outside } T_\eps . \] $f^{\circ}$ is equal to $f$ outside $E(H)$, and on every free thread $\thr{\eps}$ with $\eps$ not in $E^{\circ}$. \end{lemma} \begin{proof} $W_\eps$ is a subset of $B$ by (E1), and $0$ is not in $W_\eps$, because $f$ is nowhere zero. \begin{condlist}{(2)} \item[\textup{(1)}] \emph{One free edge $\eps$.} If $0$ is not in $T_\eps$, put $y_\eps=0$ and make no move. Let $0$ be in $T_\eps$. By \Cfour, $|T_\eps|\le\len(\eps)<|B|$.\label{a3:use:prepB:C4} So there is $y_\eps$ in $B$ outside $T_\eps$. $0$ is in $T_\eps$ and not in $W_\eps$, so $|W_\eps|\le|T_\eps|-1\le\len(\eps)-1\le 2$; the last step holds because a thread has at most $3$ edges \textup{(i)}. By \RII{} there is a walk $0=z_0,z_1,\dots,z_\nu=y_\eps$ in $B\setminus W_\eps$ with steps in $\SigB$.\label{a3:use:prepB:R2} Make the moves $(z_r-z_{r-1})\chi_{\Deps}$, $r=1,\dots,\nu$. After the $r$-th move the flow is $f+z_r\chi_{\Deps}$. Its $A$-coordinate is $u$ (E2). It is nowhere zero. Indeed, $\Deps$ is a union of threads (Lemma~\ref{a2:flows}~(a)); it contains $\thr{\eps}$ and no other free thread \textup{(iv)}; so its edges outside $\thr{\eps}$ lie on protected threads. An edge $e$ of a protected thread has $u(e)\ne 0$, because $f$ is $H$-good. An edge $e$ of $\thr{\eps}$ with $u(e)=0$ has the value $f(e)+z_r$, because $\Deps$ is directed along $\thr{\eps}$; this is not $0$, because $z_r$ is not in $W_\eps$. The other edges of $\thr{\eps}$ have $u(e)\ne 0$. The edges outside $\Deps$ do not change. With (E1): every move is a $\Sig$-move. The result $f+y_\eps\chi_{\Deps}$ is $H$-good, it is equal to $f+y_\eps$ on $E(\thr{\eps})$, and it is equal to $f$ outside $E(\Deps)$: on every other free thread and outside $E(H)$. \item[\textup{(2)}] \emph{All edges of $E^{\circ}$, one after the other.} Step~(1) for $\eps$ does not change the $A$-coordinate, and it changes no value on a free thread other than $\thr{\eps}$. So when the turn of $\eps$ comes, the flow at hand is $H$-good with $A$-coordinate $u$, it is still equal to $f$ on $\thr{\eps}$, its set $W_\eps$ is the set $W_\eps$ of the statement, and Step~(1) can be made with the same $T_\eps$. Later steps do not change the values on $\thr{\eps}$.\qedhere \end{condlist} \end{proof} \begin{lemma}[One step inside $H$]\label{a3:lem:step} Assume \RII, and let the frame have \Cfour. Let $G$ be a multigraph that contains $H$, and $f$ an $H$-good $\Gam$-flow of $G$ with $A$-coordinate $u$. Let $C$ be a cycle of $Q$ with a direction and $\sigma$ an element of $\SigA$ such that $u'=u+\pi(\sigma\chi_C)$ is non-zero on every edge of every protected thread. Then $f$ is $\Sig$-joined, by $\Sig$-moves on cycles of $H$, to an $H$-good flow with $A$-coordinate $u'$ that is equal to $f$ outside $E(H)$. \end{lemma} \begin{proof} Put $\gamma=\lift(\sigma)$; so $\gamma$ is in $\Sig$ and $\quo{\gamma}=\sigma$. By Lemma~\ref{a2:flows}~(d) and~(a), \[ u'=u+\sigma\,(\chi_{O_1}+\dots+\chi_{O_\nu})\quad\text{on } E(H), \] with pairwise edge-disjoint cycles $O_1,\dots,O_\nu$ of $H$; every $O_j$ is a union of threads, and $\chi_{O_j}$ is constant, $1$ or $-1$, on each of its threads. A thread lies on at most one $O_j$. For a free edge $\eps$ put \[ \delta_\eps=\gamma\cdot(\text{the value of }\chi_{O_j}\text{ on }\thr{\eps})\ \text{ if } \thr{\eps} \text{ lies on } O_j,\qquad \delta_\eps=0\ \text{ if } \thr{\eps} \text{ lies on no } O_j. \] So $\delta_\eps$ is an element of $\Gam$ with \[ \quo{\delta_\eps}=u'(e)-u(e)\quad\text{for every edge } e \text{ of } \thr{\eps}. \tag{$**$} \] \begin{condlist}{(ii)} \item[\textup{(i)}] \emph{Preparation in $B$.} For every free edge $\eps$ let $W_\eps$ be as in Lemma~\ref{a3:lem:prepB}, and \[ T_\eps=W_\eps\cup\{\,-f(e)-\delta_\eps : e\in E(\thr{\eps}),\ u'(e)=0\,\}. \] $T_\eps$ is a subset of $B$: if $u'(e)=0$, then $\quo{f(e)+\delta_\eps}=u(e)+u'(e)-u(e)=0$ by $(**)$. Every edge $e$ of $\thr{\eps}$ gives at most one element of $T_\eps$. Indeed, let $u(e)=0$ and $u'(e)=0$. Then $\quo{\delta_\eps}=0$ by $(**)$. If $\thr{\eps}$ were on some $O_j$, then $\quo{\delta_\eps}$ would be $\sigma$ or $-\sigma$, which is not $0$. So $\thr{\eps}$ lies on no $O_j$, $\delta_\eps=0$, and the two elements $-f(e)$ and $-f(e)-\delta_\eps$ are equal. Hence $|T_\eps|\le\len(\eps)$. Lemma~\ref{a3:lem:prepB}, with $E^{\circ}$ the set of all free edges, gives an $H$-good flow $f^{\circ}$ with $A$-coordinate $u$, equal to $f$ outside $E(H)$, with $f^{\circ}=f+y_\eps$ on $E(\thr{\eps})$ and $y_\eps\notin T_\eps$.\label{a3:use:step:prepB} So for every edge $e$ of a free thread $\thr{\eps}$: \[ \textup{(T)}\qquad \text{if } u'(e)=0,\ \text{ then } f^{\circ}(e)+\delta_\eps\ne 0 . \] \textup{(}$-f(e)-\delta_\eps$ is in $T_\eps$, so it is not $y_\eps$.\textup{)} \item[\textup{(ii)}] \emph{The step.} Make the moves $\gamma\chi_{O_1},\dots,\gamma\chi_{O_\nu}$, in this order. After the first $j$ of them an edge $e$ of $H$ carries the value $f^{\circ}(e)+\gamma\chi_{O}(e)$, with the $A$-coordinate $u(e)+\sigma\chi_O(e)=u'(e)$, if $e$ lies on a cycle $O$ among $O_1,\dots,O_j$; and it carries the value $f^{\circ}(e)$, with the $A$-coordinate $u(e)$, if not. These values are not $0$: \begin{condlist}{--} \item[--] on a protected thread, $u(e)\ne 0$ because $f$ is $H$-good, and $u'(e)\ne 0$ by hypothesis; use (E1); \item[--] on a free thread $\thr{\eps}$ that lies on one of $O_1,\dots,O_j$, the value is $f^{\circ}(e)+\delta_\eps$; it is not $0$ by (E1) if $u'(e)\ne 0$, and by \textup{(T)} if $u'(e)=0$; \item[--] on every other free thread the value is $f^{\circ}(e)$, and $f^{\circ}$ is nowhere zero. \end{condlist} The edges outside $E(H)$ do not change. So all these moves are $\Sig$-moves on cycles of $H$. After the last one every edge $e$ of $H$ has the $A$-coordinate $u'(e)$; for an edge on no $O_j$ note that $u'(e)=u(e)$. The result is nowhere zero and its $A$-coordinate $u'$ is non-zero on the protected threads: it is $H$-good. It is equal to $f$ outside $E(H)$.\qedhere \end{condlist} \end{proof} \begin{lemma}[A change of the $A$-coordinate inside $H$]\label{lem:L1} Assume \RI{} and \RII, and let the frame have \Cone{} and \Cfour. Let $G$ be a multigraph that contains $H$, $f$ an $H$-good $\Gam$-flow of $G$ with $A$-coordinate $u$, and $Y$ a flow in $\PL{\Lam_f}$. Then $f$ is $\Sig$-joined, by $\Sig$-moves on cycles of $H$, to an $H$-good flow with $A$-coordinate $u+\pi(Y)$ that is equal to $f$ outside $E(H)$. \end{lemma} \begin{proof} $0$ and $Y$ are in $\PL{\Lam_f}$ \textup{(v)}. The frame has \Cone, so the walk lemma (Lemma~\ref{lem:walk}, its last sentence) gives a sequence $0=Y_0,Y_1,\dots,Y_n=Y$ in $\PL{\Lam_f}$ with $Y_r-Y_{r-1}=\sigma_r\chi_{C_{l_r}}$, $\sigma_r$ in $\SigA$.\label{a3:use:L1:walk} We build $H$-good flows $f=f_0,f_1,\dots,f_n$ of $G$, each $\Sig$-joined to the one before it by $\Sig$-moves on cycles of $H$ and equal to $f$ outside $E(H)$, such that $f_r$ has the $A$-coordinate $u_r=u+\pi(Y_r)$. Let $f_{r-1}$ be built. Then \[ u_{r-1}+\pi(\sigma_r\chi_{C_{l_r}})=u+\pi(Y_{r-1})+\pi(Y_r-Y_{r-1})=u_r , \] and $u_r$ is non-zero on every edge of every protected thread, because $Y_r$ is in $\PL{\Lam_f}$ \textup{(v)}. So Lemma~\ref{a3:lem:step}, for the flow $f_{r-1}$, the cycle $C_{l_r}$ and $\sigma_r$, gives $f_r$; its hypotheses \RII{} and \Cfour{} are assumed.\label{a3:use:L1:step} The flow $f_n$ has the $A$-coordinate $u+\pi(Y)$. \end{proof} \noindent In the rest of this section we write \condLone{} for the conclusion of Lemma~\ref{lem:L1}, for a given subdivision $H$ with a given frame: \emph{for every multigraph $G$ that contains $H$, every $H$-good $\Gam$-flow $f$ of $G$ with $A$-coordinate $u$, and every $Y$ in $\PL{\Lam_f}$, the flow $f$ is $\Sig$-joined, by $\Sig$-moves on cycles of $H$, to an $H$-good flow with $A$-coordinate $u+\pi(Y)$ that is equal to $f$ outside $E(H)$.} By Lemma~\ref{lem:L1}, \condLone{} holds if \RI{} and \RII{} hold and the frame has \Cone{} and \Cfour. \subsection*{The path} \begin{lemma}[The path]\label{lem:P} Let $p\ne p'$ be vertices of $H$. There is a path $J$ of $H$ from $p$ to $p'$ such that, for every node $i$, at most $\max\{\len(e_i),\len(f_i)\}$ edges of $J$ lie on the threads of the edges of $N_i$ \textup{(}both threads together; so at most $3$\textup{)}. $J$ can contain any number of free threads. \end{lemma} \begin{proof} An expansion edge has no thread. So ``the threads of the edges of $N_i$'' are the threads of the original edges of $N_i$; there are two, one or none of them. \begin{condlist}{(4)} \item[\textup{(1)}] \emph{The subgraph $H_g$.} Let $g=(g_1,\dots,g_s)$ be a choice of one edge $g_i$ in every pair $N_i$. Let $H_g$ be the subgraph of $H$ formed by the vertices of $H_0$ and the threads of all original edges of the trees $\Tg$ of all components $Q_b$. Then: \begin{condlist}{(1c)} \item[\textup{(1a)}] $H_g$ is connected. Reason: $\Tg$ is a spanning tree of $Q_b$ \textup{(iv)}. Under the contraction of the expansion edges \textup{(ii)} it becomes a connected subgraph of $K_b$ that contains all vertices of $K_b$; its edges are the original edges of $\Tg$. Any two vertices of $H_0$ are joined by a path of $H_0$; the two ends of an edge of this path lie in one block $K_b$ \textup{(i)}, and they are joined by original edges of $\Tg$. So the original edges of the trees $\Tg$ form a connected subgraph of $H_0$ on all vertices of $H_0$. Replace these edges by their threads. \item[\textup{(1b)}] A vertex of $H$ is outside $H_g$ only if it is an interior vertex of the thread of an original edge that is in some pair $N_i$ and is not $g_i$. Reason: $\Tg$ contains all red edges and all edges $g_i$, and every blue edge is in a pair \textup{(iii)}. \item[\textup{(1c)}] A path of $H_g$ has, on the threads of the edges of $N_i$, only edges of the thread of $g_i$: at most $\len(g_i)\le\max\{\len(e_i),\len(f_i)\}$ edges. Reason: $g_i$ is the only edge of $N_i$ in $\Tg$ \textup{(iv)}. \end{condlist} \item[\textup{(2)}] \emph{Case 1: $p$ and $p'$ are interior vertices of the same thread $\thr{t}$.} Let $J$ be the part of $\thr{t}$ between them. A thread has at most $3$ edges \textup{(i)}, so at most $2$ interior vertices; hence $J$ has one edge. If $t$ is in a pair $N_i$, then $J$ has $1\le\len(t)\le\max\{\len(e_i),\len(f_i)\}$ edge on the threads of $N_i$. $J$ has no edge on the threads of the other pairs. \item[\textup{(3)}] \emph{Case 2: not Case 1, and there is no pair $N_i$ such that $p$ is an interior vertex of the thread of one edge of $N_i$ and $p'$ an interior vertex of the thread of the other edge.} A vertex is an interior vertex of at most one thread. So, by the case, every pair $N_i$ has at most one edge whose thread has $p$ or $p'$ as an interior vertex. If there is such an edge, let it be $g_i$; if not, put $g_i=e_i$. By \textup{(1b)}, $p$ and $p'$ are in $H_g$. By \textup{(1a)} there is a path $J$ of $H_g$ from $p$ to $p'$. By \textup{(1c)} it is as stated. \item[\textup{(4)}] \emph{Case 3: $p$ is an interior vertex of $\thr{t}$ and $p'$ an interior vertex of $\thr{t'}$, where $t\ne t'$ are the two edges of one pair $N_i$.} Let $U'$, $U''$ be the two operands of the node $i$. By \textup{(iii)}, $t$ has an end $x_1$ in $V_{U'}$ and an end in $V_{U''}$, and $t'$ has an end $x_2$ in $V_{U'}$ and an end in $V_{U''}$. So each of the threads $\thr{t}$, $\thr{t'}$ has one end \emph{on the side of $U'$} \textup{(}the vertex of $H_0$ that comes from $x_1$, from $x_2$\textup{)} and one end on the side of $U''$. Let $c$ be the number of edges of $\thr{t}$ between $p$ and the end on the side of $U'$, and $c'$ the same for $\thr{t'}$ and $p'$. The numbers of edges to the ends on the side of $U''$ are $\len(t)-c$ and $\len(t')-c'$. The two sums $c+c'$ and $(\len(t)-c)+(\len(t')-c')$ add up to $\len(t)+\len(t')$. So one of them is at most $(\len(t)+\len(t'))/2\le\max\{\len(t),\len(t')\}$. Let it be $c+c'$; the other case is the same with $U'$ and $U''$ exchanged. By \textup{(iv)} the edges of $\Te$ in $Q_{U'}$ form a spanning tree of $Q_{U'}$. It contains a path $R$ from $x_1$ to $x_2$. The edges $t$, $t'$ are not edges of $Q_{U'}$: each has an end outside $V_{U'}$. So $R$ contains neither $t$ nor $t'$, and every blue edge of $R$ is an edge $e_l$ with $l\ne i$. Contract the expansion edges and replace the original edges of $R$ by their threads. The result $L$ is a connected subgraph of $H$ \textup{(}one vertex, if $R$ has no original edge\textup{)}. It contains the ends of $\thr{t}$ and of $\thr{t'}$ on the side of $U'$. It has no edge on $\thr{t}$ or $\thr{t'}$. For a pair $N_l$ with $l\ne i$ it has edges on the thread of $e_l$ only. Let $J$ be a path from $p$ to $p'$ in the union of $L$, the part of $\thr{t}$ from $p$ to its end on the side of $U'$, and the part of $\thr{t'}$ from $p'$ to its end on the side of $U'$. This union is connected, so $J$ exists. On the threads of $N_i$ the path $J$ has at most $c+c'\le\max\{\len(e_i),\len(f_i)\}$ edges. On the threads of a pair $N_l$, $l\ne i$, it has at most $\len(e_l)\le\max\{\len(e_l),\len(f_l)\}$ edges. \end{condlist} The three cases cover all pairs $p\ne p'$. The bound ``at most $3$'' holds because $\len(t)\le 3$ \textup{(i)}. \end{proof} \subsection*{The lift of one move of the contracted graph} Now $H$ is a cycle or a subdivision. If $H$ is a cycle of a multigraph $G$, a nowhere-zero $\Gam$-flow $f$ of $G$ is \emph{$H$-good} if $\quo{f}(e)\ne 0$ for every edge $e$ of $H$ (Definition~\ref{def:lists}). \begin{lemma}[The lift of one move of the contracted graph]\label{lem:L2} Assume $|A|\ge 8$, \RI{} and \RII. Let $G$ be a bridgeless multigraph and $H$ a subgraph of $G$ that is a cycle with at most $5$ edges \textup{(}case \textup{CYC)}, or a subdivision with a counted frame \textup{(}case \textup{SUB)}. Let $G^*=G/H$ be the multigraph obtained from $G$ by the identification of $V(H)$ to one vertex and the deletion of $E(H)$. Let $f$ be an $H$-good $\Gam$-flow of $G$ with restriction $f^*$ to $G^*$, and let $g^*=f^*+\lambda\chi_{C^*}$ be the result of a $\Sig$-move of $G^*$. Then $f$ is $\Sig$-joined to an $H$-good $\Gam$-flow $g$ of $G$ whose restriction to $G^*$ is $g^*$. \textup{(}The frame form: the same holds with \RIm{} in the place of \RI{} and, in the place of \Cone, the conclusion of Lemma~\textup{\ref{lem:L1}} for this $H$ and all $f$, $Y$.\textup{)} \end{lemma} \begin{proof} We prove the frame form. It contains the first form: \RI{} implies \RIm, and for a subdivision with a counted frame \condLone{} holds by Lemma~\ref{lem:L1}. So we assume: $|A|\ge 8$; \RIm; \RII; and in the case SUB the frame has \Ctwo, \Cthree, \Cfour, and \condLone{} holds. Let $u$ be the $A$-coordinate of $f$. \begin{condlist}{(5)} \item[\textup{(1)}] \emph{The contracted graph.} $E(G^*)=E(G)\setminus E(H)$. Let $v^*$ be the vertex of $G^*$ made from $V(H)$. By (E5) the restriction of a flow of $G$ to $E(G^*)$ is a flow of $G^*$. $C^*$ is a cycle of $G^*$ with a direction, $\lambda$ is in $\Sig$, and $f^*$ and $g^*$ are nowhere zero. \item[\textup{(2)}] \emph{The cycle $C$.} If $C^*$ does not contain $v^*$, its edges form a cycle of $G$. If $C^*$ contains $v^*$, its edges form in $G$ a path between two vertices $p$, $p'$ of $H$ whose other vertices are outside $V(H)$, or, if $p=p'$, a cycle of $G$. \textup{(}$C^*$ is a loop at $v^*$, or it has exactly two edges at $v^*$.\textup{)} If the edges of $C^*$ form a cycle of $G$, direct it as $C^*$ and put $g=f+\lambda\chi_{C^*}$. This flow is equal to $g^*$ on $E(G^*)$ and to $f$ on $E(H)$. So it is nowhere zero, the move is a $\Sig$-move, $g$ is $H$-good, and its restriction is $g^*$. From now on the edges of $C^*$ form a path between $p\ne p'$. For every path $J$ of $H$ from $p$ to $p'$ the union $C=C^*\cup J$ is a cycle of $G$, because all vertices of $J$ are in $V(H)$. Direct $C$ so that $\chi_C=\chi_{C^*}$ on $E(G^*)$. The path $J$ is chosen below. In each case we reach an $H$-good flow $f'$ that is equal to $f$ outside $E(H)$, and then make the move $g=f'+\lambda\chi_C$. On $E(G^*)$ the flow $g$ is equal to $f^*+\lambda\chi_{C^*}=g^*$; so it is not $0$ there, and the restriction of $g$ is $g^*$. It remains to look at the edges of $H$. \item[\textup{(3)}] \emph{Case \textup{CYC}.} Direct the cycle $H$. Let $J$ be an arc of $H$ between $p$ and $p'$ with at most $2$ edges; it exists because $H$ has at most $5$ edges. $\quo{\lambda}=0$. Put $f'=f$. By (E2) the move $\lambda\chi_C$ does not change the $A$-coordinate, which is non-zero on $E(H)$. So $g$ is nowhere zero (E1) and $H$-good. $\quo{\lambda}\ne 0$. Put \begin{align*} X &= \{\,c\in A : u+c\chi_H \text{ has a zero on } E(H)\,\},\\ X' &= \{\,c\in A : u+c\chi_H+\quo{\lambda}\chi_C \text{ has a zero on } E(J)\,\}. \end{align*} Every edge of $H$ excludes one value of $c$, because $\chi_H$ is $1$ or $-1$ on it. So $|X|\le 5$, $|X'|\le 2$, and $0$ is not in $X$, because $f$ is $H$-good. By the hypothesis $|A|\ge 8$ \textup{(}it is \Czero{} of Theorem~\ref{thm:master}\textup{)}, $|X\cup X'|\le 5+2<|A|$; choose $c$ outside $X\cup X'$.\label{a3:use:L2:C0} By \RIm{} there is a walk $0=c_0,c_1,\dots,c_\nu=c$ in $A\setminus X$ with steps $d_r=c_r-c_{r-1}$ in $\SigA$.\label{a3:use:L2:R1m} Make the moves $\lift(d_r)\chi_H$, $r=1,\dots,\nu$. After the $r$-th move the $A$-coordinate is $u+c_r\chi_H$; it is non-zero on $E(H)$, because $c_r$ is not in $X$; outside $E(H)$ nothing changes. So these are $\Sig$-moves (E1). The result $f'$ is $H$-good and equal to $f$ outside $E(H)$. Now $g=f'+\lambda\chi_C$ has, on $E(H)$, the $A$-coordinate $u+c\chi_H$ outside $J$ and $u+c\chi_H+\quo{\lambda}\chi_C$ on $J$. Both are non-zero, because $c$ is not in $X$ and not in $X'$. So $g$ is nowhere zero and $H$-good. \item[\textup{(4)}] \emph{Case \textup{SUB}, $\quo{\lambda}\ne 0$.} Let $J$ be the path of Lemma~\ref{lem:P}, and let $j_i$ be the number of edges of $J$ on the threads of the edges of $N_i$. So $j_i\le\max\{\len(e_i),\len(f_i)\}$. \begin{condlist}{(4c)} \item[\textup{(4a)}] \emph{The protected threads.} For an original blue edge $t$ put \[ \Lam_1(t)=\Lam_f(t)\cup\{\,-u(e)-\quo{\lambda}\chi_C(e) : e\in E(\thr{t})\cap E(J)\,\}, \] and let $\Lam_1$ be empty on the expansion edges. Then, for every node $i$, \[ |\Lam_1(e_i)|+|\Lam_1(f_i)|\ \le\ \len(e_i)+\len(f_i)+j_i\ \le\ \len(e_i)+\len(f_i)+\max\{\len(e_i),\len(f_i)\}\ <\ |A| \] by \textup{(v)} and \Ctwo.\label{a3:use:L2:C2} By Lemma~\ref{lem:reverse}~(a), with $Y_0=0$, there is $Y$ in $\PL{\Lam_1}$. It is in $\PL{\Lam_f}$, because $\Lam_1$ contains $\Lam_f$. By \condLone{}, $f$ is $\Sig$-joined to an $H$-good flow $f_1$ with $A$-coordinate $u_1=u+\pi(Y)$ that is equal to $f$ outside $E(H)$.\label{a3:use:L2:L1a} For an edge $e$ of $J$ on a protected thread $\thr{t}$: $u_1(e)+\quo{\lambda}\chi_C(e)=u(e)+Y(t)+\quo{\lambda}\chi_C(e)\ne 0$, because $Y(t)$ is not in $\Lam_1(t)$. \item[\textup{(4b)}] \emph{The free threads.} Let $E^{\circ}$ be the set of the free edges $\eps$ such that $\thr{\eps}$ has an edge on $J$. Their number is not bounded. For $\eps$ in $E^{\circ}$ put \begin{align*} W_\eps &= \{\,-f_1(e) : e\in E(\thr{\eps}),\ u_1(e)=0\,\},\\ T_\eps &= W_\eps\cup\{\,-f_1(e)-\lambda\chi_C(e) : e\in E(\thr{\eps})\cap E(J),\ u_1(e)+\quo{\lambda}\chi_C(e)=0\,\}. \end{align*} $T_\eps$ is a subset of $B$: the $A$-coordinate of $f_1(e)+\lambda\chi_C(e)$ is $u_1(e)+\quo{\lambda}\chi_C(e)$. Every edge $e$ of $\thr{\eps}$ gives at most one element of $T_\eps$: for an edge of $J$, $\chi_C(e)$ is $1$ or $-1$ and $\quo{\lambda}\ne 0$, so $u_1(e)=0$ and $u_1(e)+\quo{\lambda}\chi_C(e)=0$ exclude each other. Hence $|T_\eps|\le\len(\eps)$. By Lemma~\ref{a3:lem:prepB} \textup{(}it uses \RII{} and \Cfour\textup{)}, $f_1$ is $\Sig$-joined to an $H$-good flow $f_2$ with $A$-coordinate $u_1$, equal to $f_1$ outside $E(H)$, with $f_2=f_1+y_\eps$ on $E(\thr{\eps})$ and $y_\eps\notin T_\eps$, for every $\eps$ in $E^{\circ}$.\label{a3:use:L2:prepB} \item[\textup{(4c)}] \emph{The move.} Put $f'=f_2$ and $g=f_2+\lambda\chi_C$. On an edge $e$ of $J$ the new $A$-coordinate is $u_1(e)+\quo{\lambda}\chi_C(e)$. If $e$ is on a protected thread, this is not $0$ by \textup{(4a)}. If $e$ is on a free thread $\thr{\eps}$ and this is $0$, then $-f_1(e)-\lambda\chi_C(e)$ is in $T_\eps$, so it is not $y_\eps$, and $g(e)=f_1(e)+y_\eps+\lambda\chi_C(e)\ne 0$. The edges of $H$ outside $J$ do not change. So $g$ is nowhere zero (E1), the move is a $\Sig$-move, and $g$ is $H$-good: on the protected threads its $A$-coordinate is $u_1$ outside $J$ and $u_1+\quo{\lambda}\chi_C$ on $J$. \end{condlist} \item[\textup{(5)}] \emph{Case \textup{SUB}, $\quo{\lambda}=0$.} So $\lambda$ is in $\SigB$. \begin{condlist}{(5c)} \item[\textup{(5a)}] \emph{The path $J$.} A thread has at most $3$ edges \textup{(i)}. So every interior vertex of a thread is next to an end of the thread, and two interior vertices of one thread are next to each other. If $p$ and $p'$ are interior vertices of the same free thread, $J$ is the edge of this thread between them. Otherwise: if $p$ is an interior vertex of a free thread, let $q$ be an end of this thread that is next to $p$, and let $J$ start with the edge from $p$ to $q$; if not, put $q=p$. In the same way $p'$ gives $q'$, and $J$ ends with the edge from $q'$ to $p'$ if $q'\ne p'$. By (O6), $q$ and $q'$ are in $\HP$, and $\HP$ is connected; between $q$ and $q'$ the path $J$ runs inside $\HP$. \textup{(}An interior vertex of a free thread is not in $\HP$; so $J$ is a path.\textup{)} A \emph{free piece} of $J$ is the part of $J$ on one free thread. Hence: $J$ has at most two free pieces; they lie on different free threads; \emph{each has exactly one edge}; and all other edges of $J$ are on protected threads. \item[\textup{(5b)}] \emph{The $A$-coordinate on $J$.} Let $E'$ be the set of the free edges $\eps$ such that $\thr{\eps}$ has a free piece of $J$; so $|E'|\le 2$. For $\eps$ in $E'$ let $e_\eps$ be the edge of this free piece, and $\Phi(\eps)=\{-u(e_\eps)\}$: one element, not all of $A$ by the hypothesis $|A|\ge 8$ \textup{(}\Czero\textup{)}.\label{a3:use:L2:C0phi} For every node $i$, \[ |\Lam_f(e_i)|+|\Lam_f(f_i)|+\sum_{\eps\in E',\ i(\eps)=i}|\Phi(\eps)|\ \le\ \len(e_i)+\len(f_i)+2\ <\ |A| \] by \textup{(v)} and \Cthree.\label{a3:use:L2:C3} By Lemma~\ref{lem:reverse}~(b) there is $Y$ in $\PL{\Lam_f}$ with $Y(\eps)\ne -u(e_\eps)$ for every $\eps$ in $E'$. By \condLone{}, $f$ is $\Sig$-joined to an $H$-good flow $f_1$ with $A$-coordinate $u_1=u+\pi(Y)$ that is equal to $f$ outside $E(H)$.\label{a3:use:L2:L1b} $u_1$ is non-zero on the protected threads, and on a free piece $u_1(e_\eps)=u(e_\eps)+Y(\eps)\ne 0$. So $u_1$ is non-zero on every edge of $J$. \item[\textup{(5c)}] \emph{The move.} Put $f'=f_1$ and $g=f_1+\lambda\chi_C$. By (E2) the $A$-coordinate does not change; it is non-zero on $J$. So $g$ is nowhere zero (E1) and $H$-good. The group $B$ and the condition \RII{} are not used in this case, except inside \condLone.\qedhere \end{condlist} \end{condlist} \end{proof} \subsection*{The master theorem} \begin{theorem}[The master theorem]\label{thm:master} Let $\Gam$ be a finite abelian group, $B$ a subgroup, $A=\Gam/B$, and $\Sig$ a step system. Assume: \begin{condlist}{(H2)} \item[\Hone] the step conditions \RI, \RII, \RIII, and the averaging condition \AVpp; \item[\Htwo] the counts: \begin{condlist}{(C0)} \item[\Czero] $|A|\ge 8$; \item[] and in \AVpp{} the good subgraph can always be chosen to be a cycle with at most $5$ edges, or a subdivision that has a counted frame, that is a frame with \Cone, \Ctwo, \Cthree, \Cfour. \end{condlist} \end{condlist} Then on every connected bridgeless multigraph $G$ \textup{(}loops allowed\textup{)} every nowhere-zero $\Gam$-flow is $\Sig$-joined to every $\Gam$-flow whose $A$-coordinate is nowhere zero. Hence any two nowhere-zero $\Gam$-flows of a bridgeless multigraph are $\Sig$-joined, and $\Fl(G,\Gam)$ is connected for every finite bridgeless multigraph $G$. \end{theorem} \begin{theorem}[The master theorem, frame form]\label{thm:masterframe} The conclusion of Theorem~\textup{\ref{thm:master}} holds also if, in \Hone, \RI{} is replaced by \RIm, and, in \Htwo, \Cone{} is replaced by \begin{condlist}{(L1)} \item[\condLone] the conclusion of Lemma~\textup{\ref{lem:L1}} holds for the subdivisions $H$ and the frames of \Htwo, for every multigraph $G$ that contains $H$. \end{condlist} \textup{(}\RI{} for six deleted elements and \Cone{} are used only in the walk lemma, and the walk lemma is used only in Lemma~\textup{\ref{lem:L1}}.\textup{)} \end{theorem} \begin{proof}[Proof of Theorems~\ref{thm:master} and~\ref{thm:masterframe}] The hypotheses of Theorem~\ref{thm:master} imply those of Theorem~\ref{thm:masterframe}: \RI{} implies \RIm, and \condLone{} holds by Lemma~\ref{lem:L1}, which uses \RI, \RII, \Cone{} and \Cfour.\label{a3:use:M:L1} So let the hypotheses of the frame form hold: \RIm, \RII, \RIII, \AVpp, \Czero, and the good subgraph in \AVpp{} can be chosen \emph{admissible}: a cycle with at most $5$ edges, or a subdivision with a frame that has \Ctwo, \Cthree, \Cfour{} and \condLone. For an admissible $H$ Lemma~\ref{lem:L2} holds in its frame form. A \emph{target} of a multigraph is a $\Gam$-flow whose $A$-coordinate is nowhere zero. A target is nowhere zero (E1). \smallskip \noindent\textsc{Claim.} On every connected bridgeless multigraph $G$, every nowhere-zero $\Gam$-flow is $\Sig$-joined to every target. \begin{condlist}{(4)} \item[\textup{(1)}] \emph{The claim gives the theorem.} The first statement is the claim. Let $G$ be a bridgeless multigraph. It has a nowhere-zero $A$-flow, because $|A|\ge 6$ by \Czero\label{a3:use:M:C0target} \textup{(}Theorem~\ref{q:flows}, the theorems of Seymour and of Tutte: every bridgeless multigraph, loops allowed, has a nowhere-zero flow with values in any abelian group of order at least $6$\textup{)}. By (E4) it is the $A$-coordinate of a $\Gam$-flow $h$: a target. A cycle of $G$ lies in one component of $G$, and a $\Sig$-move of a component is a $\Sig$-move of $G$. So, component after component, the claim joins every nowhere-zero $\Gam$-flow of $G$ to $h$. The reverse of a $\Sig$-move is a $\Sig$-move; so any two nowhere-zero $\Gam$-flows are $\Sig$-joined through $h$. $\Sig$-moves are moves of $\Fl(G,\Gam)$; so $\Fl(G,\Gam)$ is connected. \item[\textup{(2)}] \emph{The induction.} We prove the claim by induction on the number $n$ of vertices of $G$; for each $n$ first for the loopless graphs, then for the graphs with loops. A connected loopless multigraph with one vertex has no edge and only the empty flow. A connected bridgeless loopless multigraph with $n\ge 2$ has a cut with exactly $2$ edges or is $3$-edge-connected. So three cases remain: \textup{(a)}, \textup{(b)}, \textup{(c)}. In all of them $f$ is a nowhere-zero $\Gam$-flow and $h$ a target of $G$. \item[\textup{(a)}] \emph{$G$ has a loop.} Let $G^-$ be $G$ without its loops. It is connected, bridgeless and loopless, and it has $n$ vertices; so the claim holds for $G^-$ \textup{(}the loopless graphs with $n$ vertices come first\textup{)}. The restrictions of $f$ and $h$ to $G^-$ are a nowhere-zero flow and a target. A $\Sig$-move of $G^-$ is a $\Sig$-move of $G$: the values on the loops do not change. So $f$ is $\Sig$-joined to the flow that is equal to $h$ on $E(G^-)$ and to $f$ on the loops. Now let $e$ be a loop, with the values $x=f(e)$ and $x'=h(e)$. Both are non-zero; $x'$ because $\quo{x'}\ne 0$. By \RIII{} there is a walk from $x$ to $x'$ in $\Gam\setminus\{0\}$ with steps in $\Sig$.\label{a3:use:M:R3} A loop is a cycle with one edge. The moves $\lambda\chi_e$, for the steps $\lambda$ of the walk, are $\Sig$-moves: the value on $e$ is never $0$, and no other edge changes. Do this for every loop. The result is $h$. \item[\textup{(b)}] \emph{$G$ is loopless and has a cut with exactly two edges $e_1$, $e_2$.} Let $G/e_1$ be obtained from $G$ by the identification of the two ends of $e_1$ and the deletion of $e_1$. It is connected, it has $n-1$ vertices, and it is bridgeless \textup{(}a cycle of $G$ through an edge $b\ne e_1$ becomes a closed trail of $G/e_1$ through $b$, and a closed trail through $b$ contains a cycle through $b$\textup{)}; it can have loops. By induction the claim holds for $G/e_1$. By (E5) the restriction of a flow of $G$ to $E(G/e_1)$ is a flow of $G/e_1$. Every flow of $G/e_1$ is the restriction of exactly one flow of $G$: the value on $e_1$ is fixed by conservation at one end of $e_1$, and conservation at the other end then follows from conservation at the vertex of $G/e_1$ made from the two ends. In a flow of $G$ the value on $e_1$ is the value on $e_2$ or its negative \textup{(}conservation over one side of the cut\textup{)}. So a flow of $G$ is nowhere zero if and only if its restriction is, and it is a target if and only if its restriction is. Let $g'\to g'+\lambda\chi_{C'}$ be a $\Sig$-move of $G/e_1$. The edges of $C'$ form a cycle of $G$, or a path of $G$ between the two ends of $e_1$; in the second case add $e_1$. This gives a cycle $C$ of $G$ with $\chi_C=\chi_{C'}$ on $E(G/e_1)$. If $g$ is the flow of $G$ with restriction $g'$, then $g+\lambda\chi_C$ is the flow of $G$ with restriction $g'+\lambda\chi_{C'}$. Both are nowhere zero. So every $\Sig$-move of $G/e_1$ lifts to a $\Sig$-move of $G$, and the claim for $G/e_1$ gives the claim for $G$. \item[\textup{(c)}] \emph{$G$ is loopless and $3$-edge-connected, $n\ge 2$.} By \AVpp{} and \Htwo, $f$ is $\Sig$-joined to a nowhere-zero flow $f'$ with $A$-coordinate $u'$ such that $(V(G),\supp(u'))$ contains an admissible good subgraph $H$.\label{a3:use:M:AVpp} If $H$ is a subdivision, fix a frame of $H$ as in \Htwo. $u'$ is non-zero on $E(H)$, so $f'$ is $H$-good. $H$ has at least $2$ vertices (Definition~\ref{def:good}). So $G^*=G/H$ has fewer vertices than $G$. It is connected. It is bridgeless: the edges outside $E(H)$ of a cycle of $G$ through an edge $b$ of $G^*$ form a closed trail of $G^*$ through $b$, and it contains a cycle through $b$. It can have loops. By induction the claim holds for $G^*$. The restriction of $f'$ to $G^*$ is nowhere zero, and the restriction $h^*$ of $h$ is a target of $G^*$. So there are $\Sig$-moves of $G^*$ that lead from the restriction of $f'$ through flows $g_0,g_1,\dots,g_\nu=h^*$. Lemma~\ref{lem:L2}, used $\nu$ times, gives $H$-good flows $f'=f_0,f_1,\dots,f_\nu$ of $G$, each $\Sig$-joined to the one before it, such that the restriction of $f_r$ to $G^*$ is $g_r$.\label{a3:use:M:L2} So $f_\nu$ is $H$-good and equal to $h$ outside $E(H)$. Let $u_\nu$ be its $A$-coordinate. \emph{End, case \textup{CYC}.} Direct the cycle $H$. The $A$-flow $\quo{h}-u_\nu$ is $0$ outside $E(H)$, so it is $c\chi_H$ with $c$ in $A$. The set $X=\{\,c'\in A : u_\nu+c'\chi_H \text{ has a zero on } E(H)\,\}$ has at most $5$ elements. $0$ is not in $X$, because $f_\nu$ is $H$-good; $c$ is not in $X$, because $\quo{h}$ is nowhere zero. By \RIm{} there is a walk from $0$ to $c$ in $A\setminus X$ with steps $d_r$ in $\SigA$.\label{a3:use:M:R1m} The moves $\lift(d_r)\chi_H$ are $\Sig$-moves: after each of them the $A$-coordinate is non-zero on $E(H)$, and nothing changes outside $E(H)$. The result $f''$ has the $A$-coordinate $\quo{h}$ and is equal to $h$ outside $E(H)$. So $h-f''=y\chi_H$ with $\quo{y}=0$, that is with $y$ in $B$. By \RII{} with $X$ empty, $y$ is a sum of elements of $\SigB$.\label{a3:use:M:R2cyc} The moves on $H$ with these elements are $\Sig$-moves: the $A$-coordinate stays $\quo{h}$ (E2), which is nowhere zero (E1). The result is $h$. \emph{End, case \textup{SUB}.} The $A$-flow $\quo{h}-u_\nu$ is $0$ outside $E(H)$, so it is an $A$-flow of $H$. By Lemma~\ref{a2:flows}~(c) there is an $A$-flow $Y$ of $Q$ with $\pi(Y)=\quo{h}-u_\nu$. $Y$ is in $\PL{\Lam_{f_\nu}}$, because $u_\nu+\pi(Y)=\quo{h}$ has no zero \textup{(v)}. By \condLone{}, $f_\nu$ is $\Sig$-joined to a flow $f''$ with $A$-coordinate $\quo{h}$ that is equal to $f_\nu$, hence to $h$, outside $E(H)$.\label{a3:use:M:L1end} So $h-f''$ is a flow of $H$ with values in $B$. By (E3) it is a sum of flows $y\chi_O$ with $O$ a cycle of $H$ and $y$ in $B$, and by \RII{} with $X$ empty every $y$ is a sum of elements of $\SigB$.\label{a3:use:M:R2sub} Make these moves one by one. They are $\Sig$-moves: the $A$-coordinate stays $\quo{h}$ (E2), which is nowhere zero (E1). The result is $h$.\qedhere \end{condlist} \end{proof} \begin{remark}[Where the deletions are used]\label{rem:deletions} \RI: the walk lemma deletes at most $\len(e_i)+\len(f_i)\le 6$ elements of $A$; the case CYC of Lemma~\ref{lem:L2} and the end of the proof of Theorem~\ref{thm:master} in the case CYC delete at most $5$. \RII: the preparation in $B$ \textup{(}Lemma~\ref{lem:L1}, and Lemma~\ref{lem:L2} for a step with non-zero $A$-part\textup{)} deletes at most $\len(\eps)-1\le 2$ elements of $B$; the end of the proof uses only that $\SigB$ generates $B$. \RIII{} is used for loops only. \Czero{} is the count $5+2<|A|$ of the case CYC; the target flow needs $|A|\ge 6$. \end{remark} \begin{remark}[Where the counts are used]\label{a3:rem:countuses} The proofs of this section use the order of $A$, the order of $B$ and the numbers $\len(t)$ at the following places, and at no other place. $j_i$ is the number of edges of the path $J$ on the threads of the edges of $N_i$. \begin{condlist}{(C0)} \item[\Czero] Lemma~\ref{lem:L2}, case CYC: at most $5+2$ values of $c$ are excluded. Case SUB, $\quo{\lambda}=0$: the set $\Phi(\eps)$ of one element is not all of $A$. Theorem~\ref{thm:master}: the target needs $|A|\ge 6$. \item[\Cone] The walk lemma: an offset $c_r$ outside a set of at most $2\,|\Lam_f(e_i)|+|\Lam_f(f_i)|\le 2\,\len(e_i)+\len(f_i)$ elements. It is used only through Lemma~\ref{lem:L1}. \item[\Ctwo] Lemma~\ref{lem:L2}, case SUB, $\quo{\lambda}\ne 0$: the reverse choice for lists with $\len(e_i)+\len(f_i)+j_i$ elements at the node $i$, and $j_i\le\max\{\len(e_i),\len(f_i)\}$ by Lemma~\ref{lem:P}. \item[\Cthree] Lemma~\ref{lem:L2}, case SUB, $\quo{\lambda}=0$: the reverse choice for lists with $\len(e_i)+\len(f_i)$ elements and at most two free edges with one excluded value each. \item[\Cfour] Lemma~\ref{a3:lem:prepB}: an element of $B$ outside a set of at most $\len(\eps)$ elements. It is used in Lemma~\ref{a3:lem:step}, hence in Lemma~\ref{lem:L1}, and in Lemma~\ref{lem:L2}, case SUB, $\quo{\lambda}\ne 0$. \end{condlist} The bound $\len(t)\le 3$ is used for: at most $6$ deleted elements in the walk lemma; at most $2$ deleted elements in Lemma~\ref{a3:lem:prepB}; the free pieces with one edge in Lemma~\ref{lem:L2}, case SUB, $\quo{\lambda}=0$; Case~1 of Lemma~\ref{lem:P}. The frame form uses \Czero, \Ctwo, \Cthree, \Cfour{} and, in the place of \Cone, the hypothesis \condLone. \end{remark} \subsection*{Three corollaries} Each corollary is Theorem~\ref{thm:master} together with a check of \Htwo. By Remark~\ref{a3:rem:countuses} this check is a check of the five inequalities \Czero--\Cfour. \begin{corollary}[No condition on the colouring]\label{cor:i} Let $|A|\ge 10$ and $|B|\ge 4$, and let $\Sig$ be a step system with \RI, \RII, \RIII{} and \AVpp. Then the conclusion of Theorem~\textup{\ref{thm:master}} holds. \end{corollary} \begin{proof} \Hone{} is assumed. \Czero: $|A|\ge 10\ge 8$. Let $H$ be a subdivision that \AVpp{} gives. It has a frame (Definition~\ref{def:frame}: every truncated cubic $3$-edge-connected graph has a well colouring, Lemma~\ref{app:wellcolouring}). In every frame $\len(t)\le 3$ for all $t$. So the left sides of \Cone, \Ctwo, \Cthree{} are at most $2\cdot 3+3=9$, $3+3+3=9$ and $3+3+2=8$; all are below $10\le|A|$. The left side of \Cfour{} is at most $3<4\le|B|$. So every frame is counted, and \Htwo{} holds. \end{proof} \begin{corollary}[Quotient of order $9$, condition \condS]\label{cor:ii} Let $|A|\ge 9$ and $|B|\ge 4$, and let $\Sig$ be a step system with \RI, \RII, \RIII{} and with \AVpp{} in this form: the good subgraph can always be chosen to be a cycle with at most $5$ edges, or a subdivision that has a frame with \condS. Then the conclusion of Theorem~\textup{\ref{thm:master}} holds. \end{corollary} \begin{proof} \Hone{} is assumed. \Czero: $|A|\ge 9\ge 8$. Let $H$ be a subdivision with a frame that has \condS. Exchange the names at the nodes so that $\len(e_i)\le\len(f_i)$ for every node $i$; the result is a frame \textup{(iii)}, and \condS{} does not depend on the names. If $\len(e_i)=3$, then $\len(f_i)=3$, and $N_i$ consists of two original edges whose threads have $3$ edges; \condS{} excludes this. So $\len(e_i)\le 2$ and $\len(f_i)\le 3$ for every $i$. The left sides: \Cone{} at most $2\cdot 2+3=7$; \Ctwo{} at most $2+3+3=8$; \Cthree{} at most $2+3+2=7$; all are below $9\le|A|$. \Cfour: at most $3<4\le|B|$. So this frame is counted, and \Htwo{} holds. \end{proof} \begin{corollary}[Subgroup of order $3$, condition \condNR]\label{cor:iii} Let $|A|\ge 10$ and $|B|=3$, and let $\Sig$ be a step system with \RI, \RII, \RIII{} and with \AVpp{} in this form: the good subgraph can always be chosen to be a cycle with at most $5$ edges, or a subdivision that has a frame with \condNR. Then the conclusion of Theorem~\textup{\ref{thm:master}} holds. \end{corollary} \begin{proof} \Hone{} is assumed. \Czero: $|A|\ge 10\ge 8$. Let $H$ be a subdivision with a frame that has \condNR. The left sides of \Cone, \Ctwo, \Cthree{} are at most $9$, $9$, $8$, as in the proof of Corollary~\ref{cor:i}; all are below $10\le|A|$. By \condNR{} every free thread has at most $2$ edges; so the left side of \Cfour{} is at most $2<3=|B|$. So this frame is counted, and \Htwo{} holds. \end{proof} \begin{remark}\label{rem:open} Corollaries~\ref{cor:ii} and~\ref{cor:iii} are conditional: no statement of this paper says that a frame with \condS, or a frame with \condNR, exists for every subdivision that the averaging step gives, so as they stand they give no new modulus and no new group. \end{remark} \subsection*{The integer form} \begin{theorem}[The integer form]\label{thm:Z} Let $k=ab$ with integers $a,b\ge 2$, $\Gam=\Z_k$, $B=a\Z_k$ \textup{(}the multiples of $a$; $b$ elements\textup{)} and $A=\Z_a$ \textup{(}reduction modulo $a$\textup{)}. Let $\Sig$ be a step system all of whose elements are liftable, and let $\Gam$, $B$, $\Sig$ satisfy the hypotheses of Theorem~\textup{\ref{thm:master}} or of Theorem~\textup{\ref{thm:masterframe}}. Then \begin{condlist}{(a)} \item[\textup{(a)}] $\Mk(G)$ is connected for every finite bridgeless multigraph $G$ \textup{(}loops allowed\textup{)}; \item[\textup{(b)}] $\Ik(G)$ is connected for every finite bridgeless loopless multigraph $G$. \end{condlist} \end{theorem} \begin{proof} The quotient $\Z_k/a\Z_k$ is $\Z_a$, and the quotient map is the reduction modulo $a$. \Czero{} gives $a\ge 8$, so $k\ge 16$. (a) $\Mk(G)=\Fl(G,\Z_k)$. It is connected by Theorem~\ref{thm:master} or Theorem~\ref{thm:masterframe}. (b) Let $G$ be loopless, and let $F$, $F'$ be two vertices of $\Ik(G)$. Their reductions $f$, $f'$ modulo $k$ are nowhere-zero $\Z_k$-flows of $G$, because $1\le|F(e)|\le k-1$. By Theorem~\ref{thm:master} or Theorem~\ref{thm:masterframe} there are $\Sig$-moves of $G$ that lead from $f$ through flows $f=f_0,f_1,\dots,f_\nu=f'$. For $r\ge 1$ the step from $f_{r-1}$ to $f_r$ is a move $f_{r-1}\to f_{r-1}+\lambda\chi_C$ of $\Mk(G)$ with a liftable $\lambda$. By Definition~\ref{def:liftable}, all integer lifts of $f_{r-1}$ and all integer lifts of $f_r$ lie in one component of $\Ik(G)$. Every $f_r$ has an integer lift (Lemma~\ref{lem:liftable}~(a)). So this is the same component for all $r$. It contains $F$ and $F'$. For $\nu=0$ use Lemma~\ref{lem:liftable}~(a): all integer lifts of one flow lie in one component. Liftable steps are used only for the $\Sig$-moves of the given loopless graph $G$. Graphs with loops occur only inside the induction in the proof of Theorem~\ref{thm:master}, where all flows have values in $\Gam$. \end{proof} \section{Averaging in a product}\label{a4:sec} This section proves Lemma~\ref{lem:AVG} and, as a first consequence, a theorem on groups \textup{(}Theorem~\ref{thm:G10}\textup{)}. Lemma~\ref{lem:AVG} gives the averaging conditions \AV{} and \AVpp{} of Definition~\ref{def:conditions} for every step system that contains generators of the two factors of a product, if $(|B|-1)/(|\Gam|-1)<1/9$. The subgroup $B$ need not be a direct factor: the proof uses it only through this ratio. The notation is that of Definition~\ref{def:stepsystem}: $\Gam$ is a finite abelian group, $B$ a subgroup, $A=\Gam/B$, $x\mapsto\quo{x}$ the quotient map, and the $A$-coordinate of a $\Gam$-flow $f$ is the $A$-flow $\quo{f}$. A \emph{zero} of the $A$-coordinate of $f$ is an edge $e$ with $\quo{f(e)}=0$. \begin{lemma}[Averaging in a product]\label{lem:AVG}\label{a4:lem:AVG} Let $\Gam=\Gam_1\times\Gam_2$ with both factors non-trivial, and let $B$ be a subgroup of $\Gam$ with \[ \frac{|B|-1}{|\Gam|-1}<\frac19 \qquad\textup{(true for every subgroup of index at least $9$).} \] Let $\Sig$ be a step system that contains a set of generators of $\Gam_1\times 0$ and a set of generators of $0\times\Gam_2$. Then on every multigraph $G$ with $m$ edges, every nowhere-zero $\Gam$-flow is $\Sig$-joined to a nowhere-zero $\Gam$-flow whose $A$-coordinate has at most $m/9$ zeros. In particular \AV{} and \AVpp{} hold. \textup{(}$B$ need not be a direct factor, and it need not be one of the two factors.\textup{)} \end{lemma} \begin{proof}[Proof of Lemma~\ref{lem:AVG}] Let $m$ be the number of edges of $G$ and $f$ a nowhere-zero $\Gam$-flow of $G$. If $m=0$, then $f$ itself has no zero. Let $m\ge 1$, and put $g=|\Gam|$. We write an element $x$ of $\Gam$ as $x=(x_{(1)},x_{(2)})$ with $x_{(1)}$ in $\Gam_1$ and $x_{(2)}$ in $\Gam_2$, and a $\Gam$-flow $\varphi$ as $\varphi=(\varphi_{(1)},\varphi_{(2)})$; here $\varphi_{(i)}$ is a $\Gam_i$-flow. Put $\Sig_1=\Sig\cap(\Gam_1\times 0)$ and $\Sig_2=\Sig\cap(0\times\Gam_2)$. The given set of generators of $\Gam_1\times 0$ is a subset of $\Sig_1$, and $\Sig_1=-\Sig_1$ because $\Sig=-\Sig$. So every element of $\Gam_1\times 0$ is a finite sum of elements of $\Sig_1$ (the empty sum for $0$). In the same way every element of $0\times\Gam_2$ is a finite sum of elements of $\Sig_2$. For a nowhere-zero $\Gam$-flow $\varphi$ of $G$, let $G\langle\varphi_{(2)}\rangle$ be the spanning subgraph of $G$ with the edge set $\supp(\varphi_{(2)})$, and $G\langle\varphi_{(1)}\rangle$ the one with the edge set $\supp(\varphi_{(1)})$. A $\Gam_1$-flow of $G\langle\varphi_{(2)}\rangle$, with the value $0$ on all other edges, is a $\Gam_1$-flow of $G$; and in the same way for $\Gam_2$. \begin{condlist}{(6)} \item[\textup{(1)}] \emph{Rounds.} A \emph{round of type~$1$} replaces a nowhere-zero $\Gam$-flow $\varphi$ by $(\varphi_{(1)}+\xi,\ \varphi_{(2)})$, where $\xi$ is a $\Gam_1$-flow of $G\langle\varphi_{(2)}\rangle$. A \emph{round of type~$2$} replaces $\varphi$ by $(\varphi_{(1)},\ \varphi_{(2)}+\xi)$, where $\xi$ is a $\Gam_2$-flow of $G\langle\varphi_{(1)}\rangle$. In a \emph{random} round, $\xi$ is chosen uniformly at random in the finite group of these flows. \item[\textup{(2)}] \emph{The result of a round is nowhere zero and $\Sig$-joined to $\varphi$.} Take type~$1$; type~$2$ is the same with the coordinates exchanged. Let $e$ be an edge. If $e$ is in $\supp(\varphi_{(2)})$, the second coordinate of the new value is $\varphi_{(2)}(e)\ne 0$. If not, then $\xi(e)=0$ and the value is $\varphi(e)\ne 0$. So the result is nowhere zero. By the cycle decomposition (Lemma~\ref{lem:cycledec}~(a), for the graph $G\langle\varphi_{(2)}\rangle$ and the group $\Gam_1$), \[ \xi=z_1\chi_{C_1}+\dots+z_\nu\chi_{C_\nu} \] with cycles $C_1,\dots,C_\nu$ of $G\langle\varphi_{(2)}\rangle$, each with a direction, and $z_r$ in $\Gam_1$. Every $(z_r,0)$ is a sum of elements of $\Sig_1$. Add these elements one at a time, each one times $\chi_{C_r}$, for $r=1,\dots,\nu$. Every flow in this sequence is $(\varphi_{(1)}+\xi',\ \varphi_{(2)})$, where $\xi'$ is a $\Gam_1$-flow that is $0$ outside $\supp(\varphi_{(2)})$; as above, it is nowhere zero. So every addition is a $\Sig$-move, and the last flow is the result of the round. \item[\textup{(3)}] \emph{The law of one edge after one random round.} Define two matrices $\Pi_1$, $\Pi_2$ with rows and columns indexed by $\Gam\setminus\{0\}$: \begin{align*} \Pi_1(x,y)&=1/|\Gam_1|\ \text{ if } x_{(2)}=y_{(2)}\ne 0, & \Pi_1(x,x)&=1\ \text{ if } x_{(2)}=0, & \Pi_1(x,y)&=0\ \text{ otherwise;}\\ \Pi_2(x,y)&=1/|\Gam_2|\ \text{ if } x_{(1)}=y_{(1)}\ne 0, & \Pi_2(x,x)&=1\ \text{ if } x_{(1)}=0, & \Pi_2(x,y)&=0\ \text{ otherwise.} \end{align*} \emph{Claim:} if $\varphi'$ is the result of a random round of type~$i$ applied to $\varphi$, then for every edge $e$ and every $y$ in $\Gam\setminus\{0\}$ \[ \Pr[\,\varphi'(e)=y\,]=\Pi_i(\varphi(e),y). \] Take type~$1$. If $e$ is not in $\supp(\varphi_{(2)})$, then $\xi(e)=0$, $\varphi'(e)=\varphi(e)$, and $\varphi(e)_{(2)}=0$: this is the second case of the definition of $\Pi_1$. Let $e$ be in $\supp(\varphi_{(2)})$. First, $e$ lies on a cycle of $G\langle\varphi_{(2)}\rangle$. Indeed, suppose it does not. Then $e$ is not a loop, because a loop is a cycle. Let $X$ be the vertex set of the component of $G\langle\varphi_{(2)}\rangle-e$ that contains one end of $e$. The other end of $e$ is not in $X$: otherwise a path of $G\langle\varphi_{(2)}\rangle-e$ between the two ends, together with $e$, is a cycle through $e$. So $e$ is the only edge of $G\langle\varphi_{(2)}\rangle$ with exactly one end in $X$. Add the conservation equations of $\varphi_{(2)}$ at the vertices of $X$: an edge with both ends in $X$ enters $X$ once and leaves it once, so it drops out. The sum is $\pm\varphi_{(2)}(e)$ plus the values of $\varphi_{(2)}$ on the other edges of $G$ with exactly one end in $X$; these edges are not in $\supp(\varphi_{(2)})$. So $\varphi_{(2)}(e)=0$, a contradiction. Hence $e$ lies on a cycle $C$ of $G\langle\varphi_{(2)}\rangle$. For every $x$ in $\Gam_1$ the flow $x\chi_C$ has the value $x$ or $-x$ on $e$. So the map $\xi\mapsto\xi(e)$ is a homomorphism of the group of the $\Gam_1$-flows of $G\langle\varphi_{(2)}\rangle$ onto $\Gam_1$. All its fibres are cosets of its kernel, so they have the same size, and $\xi(e)$ is uniform on $\Gam_1$. So $\varphi'(e)=(\varphi(e)_{(1)} +\xi(e),\ \varphi(e)_{(2)})$ is uniform on the $|\Gam_1|$ elements $y$ with $y_{(2)}=\varphi(e)_{(2)}$; these elements are not $0$. This is the first case of the definition of $\Pi_1$. \item[\textup{(4)}] \emph{The chain.} Put $f^{(0)}=f$. For $r\ge 0$ let $f^{(r+1)}$ be the result of a random round applied to $f^{(r)}$, of type~$1$ if $r$ is even and of type~$2$ if $r$ is odd, with a new independent choice. This is a finite probability space, and every sequence of choices has positive probability. By \textup{(2)}, every $f^{(r)}$ is a nowhere-zero $\Gam$-flow that is $\Sig$-joined to $f$, for every sequence of choices. Fix an edge $e$, and let $\mu_r$ be the law of $f^{(r)}(e)$: a row vector indexed by $\Gam\setminus\{0\}$, with non-negative entries and sum $1$. If $\Pr[f^{(r)}=\varphi]>0$, then under the condition $f^{(r)}=\varphi$ the law of $f^{(r+1)}(e)$ is the row $\Pi_i(\varphi(e),\cdot)$, by \textup{(3)}. Summing over $\varphi$ gives $\mu_{r+1}=\mu_r\Pi_i$, with $i=1$ for even $r$ and $i=2$ for odd $r$. So, with $\Pi=\Pi_1\Pi_2$, \[ \mu_{2h}=\mu_0\Pi^h\qquad\text{for every integer } h\ge 0, \] where $\mu_0$ has the entry $1$ at $f(e)$. Only the law of one edge is used, not the joint law of two edges. \item[\textup{(5)}] \emph{Mixing.} The matrices $\Pi_1$, $\Pi_2$ have non-negative entries and row sums $1$. They are symmetric: for $x\ne y$ the condition $x_{(2)}=y_{(2)}\ne 0$ is symmetric in $x$ and $y$, and the same holds for $\Pi_2$. So their column sums are $1$ too, and the same holds for $\Pi$. Let $\eta$ be the row vector with all entries $1/(g-1)$. Then $\eta\Pi=\eta$. \emph{Claim: every entry of $\Pi^3$ is positive.} Four facts, for $x$, $y$ in $\Gam\setminus\{0\}$: \begin{condlist}{(iii)} \item[\textup{(i)}] $\Pi(x,x)>0$. If $x_{(2)}\ne 0$: $\Pi_1(x,x)=1/|\Gam_1|$, and $\Pi_2(x,x)$ is $1/|\Gam_2|$ or $1$. If $x_{(2)}=0$, then $x_{(1)}\ne 0$: $\Pi_1(x,x)=1$ and $\Pi_2(x,x)=1/|\Gam_2|$. \item[\textup{(ii)}] If $x_{(2)}\ne 0$ and $y_{(1)}\ne 0$, then $\Pi(x,y)>0$: $\Pi_1$ leads from $x$ to $(y_{(1)},x_{(2)})$, and $\Pi_2$ leads from there to $y$, because $y_{(1)}\ne 0$. \item[\textup{(iii)}] If $x_{(2)}=0$, then $\Pi(x,x')>0$ for $x'=(x_{(1)},z)$ and every $z$ in $\Gam_2$: $\Pi_1$ keeps $x$, and $\Pi_2$ leads to $x'$, because $x_{(1)}\ne 0$. \item[\textup{(iv)}] If $y_{(1)}=0$, then $\Pi(x'',y)>0$ for $x''=(z,y_{(2)})$ and every $z$ in $\Gam_1$: $\Pi_1$ leads from $x''$ to $y$, because $y_{(2)}\ne 0$, and $\Pi_2$ keeps $y$, because $y_{(1)}=0$. \end{condlist} Let $x$, $y$ be given. There is $x'$ with $x'_{(2)}\ne 0$ and $\Pi(x,x')>0$: take $x'=x$ by (i) if $x_{(2)}\ne 0$, and otherwise $x'=(x_{(1)},z)$ with $z\ne 0$ by (iii); such a $z$ exists because $\Gam_2$ is not trivial. If $y_{(1)}\ne 0$, then $\Pi(x',y)>0$ by (ii), and $\Pi^3(x,y)\ge\Pi(x,x')\,\Pi(x',y)\,\Pi(y,y)>0$ by (i). If $y_{(1)}=0$, choose $z\ne 0$ in $\Gam_1$ (it exists because $\Gam_1$ is not trivial) and put $x''=(z,y_{(2)})$. Then $\Pi(x',x'')>0$ by (ii), and $\Pi(x'',y)>0$ by (iv); so $\Pi^3(x,y)\ge\Pi(x,x')\,\Pi(x',x'')\,\Pi(x'',y)>0$. \emph{A bound.} Every positive entry of $\Pi_i$ is $1/|\Gam_i|$ or $1$, so it is at least $1/|\Gam_i|$. A positive entry of $\Pi$ is a sum of products $\Pi_1(x,z)\Pi_2(z,y)$, one of which is positive; so it is at least $1/(|\Gam_1|\,|\Gam_2|)=1/g$. In the same way every entry of $\Pi^3$, which is positive, is at least $1/g^3$. Put \[ \delta=(g-1)/g^3,\qquad\text{so } 0<\delta<1, \] and let $\Pi_{\mathrm u}$ be the matrix with all entries $1/(g-1)$. The matrix $\Pi^3-\delta\Pi_{\mathrm u}$ has non-negative entries \textup{(}each is at least $1/g^3-\delta/(g-1)=0$\textup{)} and row sums $1-\delta$. So $\Pi^3=\delta\Pi_{\mathrm u}+(1-\delta)\Pi_{\mathrm r}$ with a matrix $\Pi_{\mathrm r}$ that has non-negative entries and row sums $1$. From $\eta\Pi^3=\eta$ and $\eta\Pi_{\mathrm u}=\eta$ we get $\eta\Pi_{\mathrm r}=\eta$. For a row vector $v$ put $\|v\|=\sum_y|v(y)|$. If $R$ has non-negative entries and row sums $1$, then $\|vR\|\le\|v\|$. Let $\mu$ be a row vector with non-negative entries and sum $1$. Then $\mu\Pi_{\mathrm u}=\eta$, and \[ \mu\Pi^3-\eta=\delta\eta+(1-\delta)\,\mu\Pi_{\mathrm r}-\eta=(1-\delta)\,(\mu-\eta)\,\Pi_{\mathrm r}, \] and so $\|\mu\Pi^3-\eta\|\le(1-\delta)\,\|\mu-\eta\|$. The vector $\mu\Pi^3$ again has non-negative entries and sum $1$. By induction, for every integer $j\ge 0$, \[ \|\mu\Pi^{3j}-\eta\|\le(1-\delta)^j\,\|\mu-\eta\|\le 2\,(1-\delta)^j. \] \item[\textup{(6)}] \emph{Zeros.} Every $f^{(r)}$ is nowhere zero. So an edge $e$ is a zero of the $A$-coordinate of $f^{(r)}$ if and only if $f^{(r)}(e)$ is in $B\setminus\{0\}$. Let $j\ge 0$. After $6j$ rounds, that is $3j$ pairs of rounds, the law of $f^{(6j)}(e)$ is $\mu_{6j}=\mu_0\Pi^{3j}$ by \textup{(4)}. Let $\mathcal{E}_e$ be the event that $e$ is a zero of the $A$-coordinate of $f^{(6j)}$. By \textup{(5)}, \begin{align*} \Pr[\mathcal{E}_e] &=\sum_{y\in B\setminus\{0\}}\mu_{6j}(y) \le\sum_{y\in B\setminus\{0\}}\Bigl(\frac{1}{g-1}+\Bigl|\mu_{6j}(y)-\frac{1}{g-1}\Bigr|\Bigr)\\ &\le\frac{|B|-1}{|\Gam|-1}+\|\mu_{6j}-\eta\| \le\frac{|B|-1}{|\Gam|-1}+2\,(1-\delta)^j. \end{align*} By hypothesis $(|B|-1)/(|\Gam|-1)<1/9$. Fix $j$ so large that $2\,(1-\delta)^j<1/9-(|B|-1)/(|\Gam|-1)$. Then every edge is a zero with probability less than $1/9$. By linearity of expectation, the expected number of zeros of the $A$-coordinate of $f^{(6j)}$ is less than $m/9$. So some sequence of choices gives a flow $f^{(6j)}$ with fewer than $m/9$ zeros. By \textup{(4)} it is a nowhere-zero $\Gam$-flow that is $\Sig$-joined to $f$. This proves the first statement. \end{condlist} \AV{} is the first statement for the loopless $3$-edge-connected multigraphs with at least two vertices. \AVpp{} follows from \AV{} by Lemma~\ref{lem:AVtoAVpp}. The group $B$ is used only in step \textup{(6)}, through its order; it need not be a direct factor. \end{proof} \begin{remark}[The estimate behind Lemma~\ref{lem:AVG}]\label{rem:avground} Steps \textup{(1)}--\textup{(5)} and the first display of step \textup{(6)} of the proof of Lemma~\ref{lem:AVG} do not use the hypothesis $(|B|-1)/(|\Gam|-1)<1/9$. They show: let $\Gam=\Gam_1\times\Gam_2$ with both factors non-trivial, let $B$ be any subgroup of $\Gam$, and let $\Sig$ be as in Lemma~\ref{lem:AVG}. Then for every multigraph $G$, every nowhere-zero $\Gam$-flow $f$ of $G$ and every integer $j\ge 0$, every outcome of the random flow $f^{(6j)}$ of the proof is a nowhere-zero $\Gam$-flow that is $\Sig$-joined to $f$, and every edge of $G$ is a zero of the $A$-coordinate of $f^{(6j)}$ with probability at most \[ \frac{|B|-1}{|\Gam|-1}+2\,(1-\delta)^j,\qquad \delta=\frac{|\Gam|-1}{|\Gam|^3}. \] Part~II of~\cite{GoelS1} uses this estimate also at the ratio $1/9$ \cite[Lemma~14.3]{GoelS1}. \end{remark} \begin{remark}[The ratio]\label{a4:rem:ratio} Put $a=|A|$ and $b=|B|$, so $|\Gam|=ab$. The condition $(b-1)/(ab-1)<1/9$ is the inequality $9b-91$. \end{remark} \begin{remark}[Internal direct sums]\label{a4:rem:internal} Lemma~\ref{lem:AVG} speaks only of the group $\Gam$, its subgroup $B$, the set $\Sig$ and flows; an isomorphism of groups carries all of them along. So the lemma applies to a group $\Gam$ with two non-trivial subgroups $\Gam_1$, $\Gam_2$ such that $\Gam_1\cap\Gam_2=\{0\}$ and $\Gam_1+\Gam_2=\Gam$: the map $(x_1,x_2)\mapsto x_1+x_2$ is an isomorphism of $\Gam_1\times\Gam_2$ onto $\Gam$, and $\Sig$ must contain a set of generators of $\Gam_1$ and a set of generators of $\Gam_2$. For $\Gam=\Z_k$ with $k=cc'$, where $c$, $c'\ge 2$ are coprime, take $\Gam_1=c'\Z_k$ and $\Gam_2=c\Z_k$. Then $\Gam_1$ has order $c$ and is generated by $c'$, and $\Gam_2$ has order $c'$ and is generated by $c$. Their intersection is $\{0\}$, because its order divides $c$ and $c'$; so $|\Gam_1+\Gam_2|=cc'=k$. \end{remark} \subsection*{A consequence for groups} \begin{theorem}[The group theorem for a subgroup of index at least $10$]\label{thm:G10} Let $\Gam$ be a finite abelian group that is not cyclic of prime-power order, and let $|\Gam|$ have a divisor $d$ with $4\le d\le|\Gam|/10$. Then $\Fl(G,\Gam)$ is connected for every finite bridgeless multigraph $G$ \textup{(}loops allowed\textup{)}. The smallest orders are $40$, $44$, $48$, $50$. \textup{(}This is Corollary~\ref{cor:i} with $\Sig=\Gam\setminus\{0\}$ and a subgroup $B$ of order $d$; \AVpp{} by Lemma~\ref{lem:AVG}.\textup{)} \end{theorem} \begin{proof} $|\Gam|\ge 10\,d\ge 40$. The group $\Gam$ is a direct product of cyclic groups of prime-power order. It is not cyclic of prime-power order and not trivial, so there are at least two factors, and $\Gam=\Gam_1\times\Gam_2$ with both factors non-trivial. Let $B$ be a subgroup of $\Gam$ of order $d$; it exists, because $d$ divides $|\Gam|$. Put $A=\Gam/B$. Then $|B|=d\ge 4$ and $|A|=|\Gam|/d\ge 10$. Put $\Sig=\Gam\setminus\{0\}$. This is a step system. Every move of $\Fl(G,\Gam)$ is a $\Sig$-move. Here $\SigB=B\setminus\{0\}$, and $\SigA=A\setminus\{0\}$, because every non-zero element of $A$ is the image of a non-zero element of $\Gam$. So \RI, \RII{} and \RIII{} hold with walks of one step: two different elements of $A\setminus X$, of $B\setminus X$, or of $\Gam\setminus\{0\}$, differ by an element of $\SigA$, of $\SigB$, or of $\Sig$. The set $\Sig$ contains all non-zero elements of $\Gam_1\times 0$ and of $0\times\Gam_2$, and the index of $B$ is $|A|\ge 10$; so \AVpp{} holds by Lemma~\ref{lem:AVG}. Corollary~\ref{cor:i} gives the connectivity of $\Fl(G,\Gam)$. The orders: an order $n$ of such a group has a divisor $d$ with $4\le d\le n/10$, so $n\ge 40$. For $40\le n\le 50$ such a divisor exists exactly for $n=40$, $44$, $48$ \textup{(}$d=4$\textup{)} and $n=50$ \textup{(}$d=5$\textup{)}; for these $n$ the cyclic group $\Z_n$ is not of prime-power order. \end{proof} For the cyclic group $\Z_k$ the theorem is a statement on $\Mk(G)=\Fl(G,\Z_k)$ only. It says nothing about the integer graph $\Ik(G)$: Theorem~\ref{thm:Z} needs a step system of liftable elements, and the lemmas of Section~\ref{a1:sec} do not show that every element of $\Z_k\setminus\{0\}$ is liftable \textup{(}Remark~\ref{a8:rem:master}\textup{)}. \section{The moduli \texorpdfstring{$40$, $48$ and $66$}{40, 48 and 66}; the divisor criterion}\label{a5:sec} This section proves that $\Mk(G)$ and $\Ik(G)$ are connected for every finite bridgeless loopless multigraph $G$ when $k=40$, $k=48$ or $k=66$ (Theorems~\ref{thm:k40} and~\ref{thm:k48}, Corollary~\ref{cor:k66}), and Criterion~\ref{crit:F10} for $k=ab$ with $a\ge 10$ and a composite $b\ge 4$. Every result comes from Theorem~\ref{thm:master}, in the form of Corollary~\ref{cor:i}, and from Theorem~\ref{thm:Z}. Lemma~\ref{a5:lem:route} says which hypotheses must be checked; for each modulus they are checked one by one. Criterion~\ref{crit:F10} uses the theorems of Cauchy and Davenport and of Mader and Watkins, but only in its last sentence; the proofs for $40$, $48$ and $66$ use neither of them. \subsection*{Setting} Throughout this section $k=ab$ with integers $a,b\ge 2$, $\Gam=\Z_k$, $B=a\Z_k$ \textup{(}the multiples of $a$; $b$ elements\textup{)} and $A=\Z_a$; the quotient map is the reduction modulo $a$. This is the setting of Theorem~\ref{thm:Z}. For an integer $z$ we write $z$ also for its residue in $\Z_k$. Because $a$ divides $k$, the image in $A$ of the residue of $z$ is the residue of $z$ modulo $a$. Let $D$ be a set of non-zero elements of $\Z_a$ with $D=-D$. The \emph{graph on $\Z_a$ with the step set $D$} has the vertex set $\Z_a$; two vertices $x$, $y$ are adjacent if $y-x$ is in $D$. It \emph{stays connected after the deletion of at most $6$ elements} if for every set $X$ of at most $6$ elements of $\Z_a$, any two elements of $\Z_a\setminus X$ are joined by a walk in $\Z_a\setminus X$ all of whose steps are in $D$. For $D=\SigA$ this is condition \RI{} of Definition~\ref{def:conditions}. \subsection*{The master theorem for \texorpdfstring{$\Z_k$}{Z\_k} with a quotient of order at least \texorpdfstring{$10$}{10}} \begin{lemma}[The master theorem for $\Z_k$ with a quotient of order at least $10$]\label{a5:lem:route} Let $k=ab$ with integers $a\ge 10$ and $b\ge 4$, $\Gam=\Z_k$, $B=a\Z_k$ and $A=\Z_a$. Let $\Sig$ be a step system with the following three properties. \begin{condlist}{(c)} \item[\textup{(a)}] Every element of $\Sig$ is liftable. \item[\textup{(b)}] $\Sig$ has the properties \RI, \RII{} and \RIII. \item[\textup{(c)}] $\Z_k$ has two non-trivial subgroups $\Gam_1$ and $\Gam_2$ whose orders are coprime and have the product $k$, and $\Sig$ contains a generator of $\Gam_1$ and a generator of $\Gam_2$. \end{condlist} Then $\Gam$, $B$ and $\Sig$ satisfy the hypotheses of Theorem~\ref{thm:master}. Hence $\Mk(G)$ and $\Ik(G)$ are connected for every finite bridgeless loopless multigraph $G$, and $\Mk(G)$ is connected also for every finite bridgeless multigraph $G$ with loops. \end{lemma} \begin{proof} \emph{The averaging condition.} The subgroups of $\Z_k$ are cyclic; so by (c) the set $\Sig$ contains a set of generators of $\Gam_1$ and a set of generators of $\Gam_2$. The order of $\Gam_1\cap\Gam_2$ divides the two coprime orders, so $\Gam_1\cap\Gam_2=\{0\}$, and $|\Gam_1+\Gam_2|=|\Gam_1|\,|\Gam_2|=k$, so $\Gam_1+\Gam_2=\Z_k$. By Remark~\ref{a4:rem:internal}, Lemma~\ref{lem:AVG} applies to these two factors. Its ratio condition holds: \[ \frac{|B|-1}{|\Gam|-1}=\frac{b-1}{ab-1}<\frac1a\le\frac1{10}<\frac19 ; \] the first inequality is $a(b-1)1$. So \AVpp{} holds by Lemma~\ref{lem:AVG}. \emph{\Hone.} \RI, \RII{} and \RIII{} hold by (b), and \AVpp{} holds. \emph{\Htwo.} \Czero: $|A|=a\ge 10\ge 8$. Let $H$ be a good subgraph that \AVpp{} gives. If $H$ is a cycle with at most $5$ edges, nothing is to be checked. If $H$ is a subdivision, it has a frame (Lemma~\ref{app:wellcolouring}; see Definition~\ref{def:frame}). Every frame of $H$ is counted, because $|A|=a\ge 10$ and $|B|=b\ge 4$: the left sides of \Cone, \Ctwo, \Cthree, \Cfour{} are at most $9$, $9$, $8$, $3$ (Remark~\ref{rem:counts}). So \Htwo{} holds. (This is the proof of Corollary~\ref{cor:i}.) \emph{Conclusion.} By (a), every element of $\Sig$ is liftable. So Theorem~\ref{thm:Z} applies: part~(a) gives $\Mk(G)$ for every finite bridgeless multigraph $G$, loops allowed, and part~(b) gives $\Ik(G)$ for every finite bridgeless loopless multigraph $G$. \end{proof} \subsection*{The moduli \texorpdfstring{$40$, $48$ and $66$}{40, 48 and 66}} For these three moduli, every non-zero element of $A$ except two is the image of a step. The following lemma gives \RI{} in this case. \begin{lemma}[At most two non-steps]\label{a5:lem:twononsteps} Let $a\ge 10$, and let $D$ be a set of non-zero elements of $\Z_a$ with $D=-D$ and $|D|\ge a-3$. Then the graph on $\Z_a$ with the step set $D$ stays connected after the deletion of at most $6$ elements. \end{lemma} \begin{proof} Let $D^{\mathrm c}$ be the set of the non-zero elements of $\Z_a$ that are not in $D$. Then $|D^{\mathrm c}|\le 2$ and $D^{\mathrm c}=-D^{\mathrm c}$. Let $X$ be a set of at most $6$ elements of $\Z_a$, and suppose that two elements of $\Z_a\setminus X$ are not joined by a walk in $\Z_a\setminus X$ with steps in $D$. Let $U$ be the set of the elements of $\Z_a\setminus X$ that are joined to the first of them, and $V=\Z_a\setminus(X\cup U)$. Both are not empty, and no step of $D$ leads from $U$ to $V$. So $v-u$ is in $D^{\mathrm c}$ for all $u$ in $U$ and $v$ in $V$. For a fixed $u$ this gives $|V|\le|D^{\mathrm c}|\le 2$, and for a fixed $v$ it gives $|U|\le 2$. But $|U|+|V|=|\Z_a\setminus X|\ge a-6\ge 4$. Hence $a=10$ and $|U|=|V|=|D^{\mathrm c}|=2$. The group $\Z_a$ has at most one non-zero element $x$ with $x=-x$ (namely $a/2$, if $a$ is even). So $D^{\mathrm c}=\{d_0,-d_0\}$ with $d_0\ne -d_0$. Write $U=\{u_1,u_2\}$. Then $V=u_1+D^{\mathrm c}=u_2+D^{\mathrm c}$. The element $u_2+d_0$ is in $u_1+D^{\mathrm c}$ and differs from $u_1+d_0$; so $u_2+d_0=u_1-d_0$. In the same way $u_2-d_0=u_1+d_0$. Subtracting the two equations gives $4d_0=0$ in $\Z_{10}$. So $5$ divides $2d_0$, hence $5$ divides $d_0$, and $2d_0=0$ in $\Z_{10}$, that is $d_0=-d_0$. This is a contradiction. \end{proof} \begin{theorem}[The modulus $40$]\label{thm:k40}\label{a5:thm:k40} $\Mk[40](G)$ and $\Ik[40](G)$ are connected for every finite bridgeless loopless multigraph $G$. \end{theorem} \begin{proof} Here $k=40$, $a=10$, $b=4$, $\Gam=\Z_{40}$, $B=10\Z_{40}=\{0,10,20,30\}$ and $A=\Z_{10}$. We check the hypotheses of Lemma~\ref{a5:lem:route}. \begin{condlist}{(Product)} \item[\textup{(Set)}] $\Sig=\{\pm 1,\pm 2,\pm 4,\pm 5,\pm 8,\pm 10,20\}$, a set of $13$ elements of $\Z_{40}$. They are not $0$, and $\Sig=-\Sig$ because $-20=20$. So $\Sig$ is a step system. \item[\textup{(Lifts)}] $\pm 1$ are liftable by Lemma~\ref{lem:liftable}~(b). The numbers $2$, $4$, $5$, $8$, $10$, $20$ are divisors of $40$ smaller than $40$; so $\pm 2$, $\pm 4$, $\pm 5$, $\pm 8$, $\pm 10$ and $20$ are liftable by Lemma~\ref{lem:liftable}~(d). This is hypothesis~(a) of Lemma~\ref{a5:lem:route}. \item[\textup{(}$\SigA$\textup{)}] The residues modulo $10$ of $1,-1,2,-2,4,-4,5,-5,8,-8$ are $1,9,2,8,4,6,5,5,8,2$; those of $\pm 10$ and $20$ are $0$. So $\SigA=\{1,2,4,5,6,8,9\}$: all non-zero elements of $\Z_{10}$ except $3$ and $7$. \item[\textup{(}$\SigB$\textup{)}] $\SigB=\Sig\cap B=\{10,20,30\}=B\setminus\{0\}$. \item[\RI] $\SigA=-\SigA$ and $|\SigA|=7=a-3$. Lemma~\ref{a5:lem:twononsteps}. With \RII{} and \RIII{} below, this is hypothesis~(b). \item[\RII] Two different elements of $B$ differ by an element of $B\setminus\{0\}=\SigB$. So for every set $X$, any two elements of $B\setminus X$ are joined by a walk of one step. \item[\RIII] $1$ is in $\Sig$. For $1\le x6$. So the deletion of a set $X$ of at most $6$ elements leaves a connected graph on $\Z_a\setminus X$; a path in it is a walk in $\Z_a\setminus X$ with steps in $D$. The proof uses $a$ only through the fact that $\Z_a$ has a set $D$ as in the lemma; such a set exists only if $a-1\ge|D|\ge 9$, that is $a\ge 10$. No larger lower bound on $a$ is used. \end{proof} \begin{remark}[Nine steps for $a\le 12$ without a quoted theorem]\label{a5:rem:ninesmall} For $a=10$, $11$, $12$ Theorem~\ref{q:MW} is not needed in Lemma~\ref{lem:ninesteps}: there $|D|\ge 9\ge a-3$, and Lemma~\ref{a5:lem:twononsteps} gives the same conclusion. \end{remark} \begin{criterion}[The divisor criterion]\label{crit:F10}\label{a5:crit:F10} Let $k$ be not a prime power, and $k=ab$ with $a\ge 10$ and a composite number $b\ge 4$. Let $D$ be the set of the non-zero residues modulo $a$ of $\pm 1$, $\pm 2$ and $\pm q$, for all divisors $q$ of $k$ with $1\le q= 13}: the double step}\label{a6:sec} This section proves Theorem~\ref{a6:thm:4p}: for every prime $p\ge 13$ and $k=4p$, the graphs $\Mk(G)$ and $\Ik(G)$ are connected for every finite bridgeless loopless multigraph $G$ \textup{(}$\Mk(G)$ also with loops\textup{)}. The theorem is Theorem~\ref{thm:Z} together with the frame form of the master theorem, Theorem~\ref{thm:masterframe}. The step system $\Sig$ of this section has only six $A$-parts: $\pm 1$, $\pm 2$, $\pm 4$ modulo $p$. If six elements of $A$ are deleted, one element can be isolated (Remark~\ref{a6:rem:R1}). So \RI{} fails, and the walk lemma and Lemma~\ref{lem:L1} of Section~\ref{a3:sec} cannot be used. The frame form asks instead for \RIm, which holds (Lemma~\ref{a6:lem:V}), and for the conclusion \condLone{} of Lemma~\ref{lem:L1}, which Lemma~\ref{a6:lem:L14p} proves. Its proof walks in the flows of the auxiliary graph that avoid the lists, with ordinary steps and with \emph{double steps} (Lemma~\ref{a6:lem:walk4p}). Lemma~\ref{a6:lem:DS2} makes a double step in the graph. A double step leaves an isolated value through a middle flow that has exactly one zero on the protected threads. It has two routes, and its step $\pm 1$ has two lifts, $\pm 1$ and $\pm(1+2p)$. A parity argument in $B$ shows that one of the four choices works. Two conventions of Section~\ref{a3:sec} hold in this section. If $H$ is a subgraph of a multigraph $G$, the reference orientation of $G$ on $E(H)$ is the direction of the threads. And $u+\pi(Y)$ means: add $\pi(Y)$ on $E(H)$ and nothing outside $E(H)$. \subsection*{The setting} Throughout this section $p$ is a prime with $p\ge 13$, and \[ k=4p,\qquad \Gam=\Z_k,\qquad B=p\Z_k=\{0,p,2p,3p\},\qquad A=\Gam/B=\Z_p, \] where the quotient map $x\mapsto\quo{x}$ is the reduction modulo $p$. So $k=ab$ with $a=p$ and $b=4$, as in Theorem~\ref{thm:Z}. As in Section~\ref{a2:sec}, the $A$-part of $x$ in $\Gam$ is $\quo{x}$. A \emph{protected edge} is an edge of a protected thread. The step system of this section is \[ \Sig=\{\pm 1,\ \pm(1+2p),\ \pm 2,\ \pm 4,\ \pm p,\ 2p\}\subseteq\Gam . \] \begin{condlist}{(S6)} \item[\textup{(S1)}] \emph{The group $B$.} $B$ is cyclic of order $4$, generated by $p$. Its only element of order $2$ is $2p$. So $y+2p\ne y$ for $y$ in $B$, $2p+2p=0$, and $2p\,\xi=2p$ for every odd integer $\xi$. For $x$ in $\Gam$: if $\quo{x}\ne 0$, then $x\ne 0$; if $\quo{x}=0$, then $x$ is in $B$. Adding an element of $B$ does not change the $A$-part. \item[\textup{(S2)}] \emph{Small integers.} An integer $\xi$ with $1\le|\xi|\le 12$ is not $0$ modulo $p$, because $p\ge 13$. \item[\textup{(S3)}] \emph{$\Sig$ is a step system of liftable elements.} $0$ is not in $\Sig$: $1+2p$ is odd, and $1$, $2$, $4$, $p$, $2p$ and their negatives are not multiples of $4p$. $\Sig=-\Sig$, because $-2p=2p$. Every element of $\Sig$ is liftable (Definition~\ref{def:liftable}), by Corollary~\ref{a1:4p}; in detail, by Lemma~\ref{lem:liftable}: $\pm 1$ by~(b); $\pm(1+2p)$ by~(e); $\pm 2$ by~(c), and also by~(d); $\pm 4$, $\pm p$, $2p$ by~(d), because $4$, $p$, $2p$ are divisors of $k$ smaller than $k$, $-p=3p$ and $-2p=2p$. \item[\textup{(S4)}] \emph{$\SigB$, $\SigA$ and the lifts.} The elements $\pm1$, $\pm(1+2p)$, $\pm2$, $\pm4$ are $\pm 1$, $\pm 2$, $\pm 4$ modulo $p$, so they are not in $B$ (S2). Hence $\SigB=\Sig\cap B=\{p,2p,3p\}=B\setminus\{0\}$. The $A$-parts are \[ \SigA=\{1,-1,2,-2,4,-4\}\subseteq\Z_p \] \textup{(}the $A$-part of $1+2p$ is $1$\textup{)}. These six elements are different and non-zero: they and their differences are integers $\xi$ with $1\le|\xi|\le 8$ (S2). The fixed lifts (Definition~\ref{def:stepsystem}) are $\lift(\sigma)=\sigma$, the integer $\sigma$ in $\{\pm1,\pm2,\pm4\}$ read modulo $k$. The elements $\pm(1+2p)$ are used only in the double step (Lemma~\ref{a6:lem:DS2}). \item[\textup{(S5)}] \emph{The two lifts of $\pm 1$.} Let $\mu_1$ be $1$ or $-1$. The elements $\mu_1$ and $\mu_1(1+2p)$ of $\Sig$ both have the $A$-part $\mu_1$, and $\mu_1(1+2p)-\mu_1=2p\,\mu_1=2p$ by (S1). \item[\textup{(S6)}] \emph{Condition \RII.} Let $X$ be a set of at most $2$ elements of $B$. Two elements of $B\setminus X$ differ by an element of $B\setminus\{0\}=\SigB$: they are joined by a walk with one step. So \RII{} holds. Also $|B|=4$. \end{condlist} \subsection*{Six steps modulo \texorpdfstring{$p$}{p}} The proof of the next lemma uses two quoted theorems on sums of sets in $\Z_p$: the theorem of Cauchy and Davenport (Theorem~\ref{q:CD}) and the theorem of Vosper (Theorem~\ref{q:vosper}). For subsets $\mathcal U$, $\mathcal V$ of $\Z_p$ we write $\mathcal U+\mathcal V=\{\,x+x' : x\in\mathcal U,\ x'\in\mathcal V\,\}$. \begin{lemma}[Six steps modulo $p$]\label{lem:V}\label{a6:lem:V} Let $X$ be a set of at most $6$ elements of $A=\Z_p$, and consider the graph on $A\setminus X$ in which $x$ and $x'$ are adjacent if $x'-x$ is in $\SigA=\{\pm1,\pm2,\pm4\}$. \begin{condlist}{(a)} \item[\textup{(a)}] If $|X|\le 5$, this graph is connected. So \RIm{} holds for $\Sig$. \item[\textup{(b)}] If $|X|=6$ and $X\ne c+\SigA$ for every $c$ in $A$, this graph is connected. \item[\textup{(c)}] If $X=c+\SigA$, then $c$ is not in $X$, no other element $c'$ has $X=c'+\SigA$, and the graph has exactly two components: $\{c\}$ and $A\setminus(X\cup\{c\})$. \end{condlist} \end{lemma} \begin{proof} Put $\Sigma^0_A=\SigA\cup\{0\}$; it has $7$ elements (S4). Let $\Omega$ be the vertex set of a component of the graph, and assume $\Omega\ne A\setminus X$. \begin{condlist}{(5)} \item[\textup{(1)}] $\Omega+\Sigma^0_A\subseteq\Omega\cup X$. Reason: for $x$ in $\Omega$ and $\sigma$ in $\Sigma^0_A$, the element $x+\sigma$ is in $X$, or it is a vertex that is equal or adjacent to $x$, hence in $\Omega$. So $|\Omega+\Sigma^0_A|\le|\Omega|+|X|$. Some vertex is not in $\Omega$, so $\Omega\cup X\ne A$ and $|\Omega+\Sigma^0_A|\le p-1$. \item[\textup{(2)}] By the theorem of Cauchy and Davenport, $|\Omega+\Sigma^0_A|\ge\min\{p,\ |\Omega|+6\}$. By (1) this minimum is not $p$; so $|\Omega+\Sigma^0_A|\ge|\Omega|+6$. With (1): $|X|\ge 6$. This proves (a): if $|X|\le 5$, no such $\Omega$ exists. If $|X|=6$, then $|\Omega+\Sigma^0_A|=|\Omega|+6$, and $\Omega+\Sigma^0_A=\Omega\cup X$, because the two sets have the same number of elements \textup{(}$\Omega$ and $X$ are disjoint\textup{)}. From now on $|X|=6$. \item[\textup{(3)}] $\Sigma^0_A$ is not an arithmetic progression. Suppose that $\Sigma^0_A=\{\,b'+r d : r=0,1,\dots,6\,\}$ with $d\ne 0$. The sum of the seven elements is $0$, because $\SigA=-\SigA$; it is also $7b'+21d=7(b'+3d)$. Since $p\ne 7$, $b'=-3d$, and $\Sigma^0_A=\{\,r d : -3\le r\le 3\,\}$. Let $x$ be the inverse of $d$ in $\Z_p$. Then $x\,\Sigma^0_A=\{-3,\dots,3\}$, so $x$, $2x$ and $4x$ are in $\{\pm1,\pm2,\pm3\}$. If $x=\pm1$, then $4x=\pm 4$; if $x=\pm 2$, then $2x=\pm 4$; if $x=\pm 3$, then $2x=\pm 6$. But $\pm4$ and $\pm6$ are not in $\{\pm1,\pm2,\pm3\}$: the differences are integers $\xi$ with $1\le|\xi|\le 9$ (S2). This is a contradiction. \item[\textup{(4)}] By (2), $|\Omega+\Sigma^0_A|=|\Omega|+|\Sigma^0_A|-1$. If $|\Omega|\ge 2$ and $|\Omega|+6\le p-2$, the theorem of Vosper says that $\Sigma^0_A$ is an arithmetic progression, against (3). So $|\Omega|=1$, or $|\Omega|+6\ge p-1$; in the second case $|\Omega|+6=p-1$ by (1). \item[\textup{(5)}] If $|\Omega|=1$, say $\Omega=\{c\}$, then (2) gives $\{c\}\cup(c+\SigA)=\{c\}\cup X$. Here $c$ is not in $X$ (it is a vertex) and not in $c+\SigA$ ($0$ is not in $\SigA$). So $X=c+\SigA$. If $|\Omega|=p-7$, then $|\Omega\cup X|=p-1$, so exactly one element $c$ of $A$ is outside $\Omega\cup X$. It is a vertex. Its component is not $\Omega$, and it lies in $A\setminus(\Omega\cup X)=\{c\}$. So $\{c\}$ is a component, and the first case, for this component, gives $X=c+\SigA$. \end{condlist} (b) By (5), if the graph is not connected, then $X=c+\SigA$ for some $c$. (c) Let $X=c+\SigA$. Then $c$ is not in $X$, because $0$ is not in $\SigA$. If also $X=c'+\SigA$, then the sum of the elements of $X$ is $6c=6c'$, so $c=c'$ by (S2). All neighbours $c+\sigma$ of $c$ are in $X$, so $\{c\}$ is a component. The set $A\setminus(X\cup\{c\})$ has $p-7\ge 6$ elements; let $\Omega$ be a component that meets it. $\Omega\ne A\setminus X$, because $\{c\}$ is another component. By (4) and (5), $|\Omega|=1$ or $|\Omega|=p-7$. If $|\Omega|=1$, then (5) gives $\Omega=\{c'\}$ with $X=c'+\SigA$, so $c'=c$; but $\Omega$ meets $A\setminus(X\cup\{c\})$. So $|\Omega|=p-7$, and $\Omega\subseteq A\setminus(X\cup\{c\})$ is all of this set. Hence the components are $\{c\}$ and $A\setminus(X\cup\{c\})$. \end{proof} \begin{remark}[Condition \RI{} fails]\label{a6:rem:R1} Let $X=\SigA$. Then $0$ is not in $X$, every element $0+\sigma$ with $\sigma$ in $\SigA$ is in $X$, and $p-7\ge 6$ elements other than $0$ are outside $X$. So $0$ is isolated, and \RI{} is false for $\Sig$. Theorem~\ref{thm:master} and Corollary~\ref{cor:i} do not apply. By Lemma~\ref{a6:lem:V}, this is the only way in which six deleted elements disconnect $A$: $X=c+\SigA$, with the one isolated value $c$. \end{remark} \subsection*{Double steps on the auxiliary graph} From here to the end of the proof of Lemma~\ref{a6:lem:L14p}, $H$ is a subdivision as in Definition~\ref{def:good}~(SUB), with the graphs $H_0$, $Q$ of Definition~\ref{def:threads}, and a frame of $H$ is given (Definition~\ref{def:frame}). $C_1,\dots,C_s$ are the official cycles (Definition~\ref{def:official}). For a node $j$, $C_j^{e}=C_j$ and $C_j^{f}$ are the two cycles of the node $j$ (Definition~\ref{a2:twocycles-def}), and $\Delta_j=\chi_{C_j^{f}}-\chi_{C_j^{e}}$. We use three facts of Lemma~\ref{a2:twocycles}: \begin{condlist}{(TC3)} \item[\textup{(TC1)}] $\chi_{C_j^{e}}$ and $\chi_{C_j^{f}}$ are equal on $N_j$ (part (a)). \item[\textup{(TC2)}] If $h>j$, no edge of $N_h$ lies on $C_j^{e}$ or on $C_j^{f}$. If $ij$ is not below $j$.) \item[\textup{(TC3)}] $\Delta_j$ is $0$ on $N_j\cup N_{j+1}\cup\dots\cup N_s$. For every $x$ in $A$, the $A$-flow $x\Delta_j$ is a sum of flows $x'\chi_C$ with $x'$ in $A$ and $C$ a cycle of $Q$ that has no edge in $N_j\cup\dots\cup N_s$. (Part (c): the cycles $C$ lie in $Q_{U'_j}\cup Q_{U''_j}$, whose edges are red edges and edges of pairs $N_h$ with $h$ below $j$, so $hj$, the four flows are equal to $Z$. \item[\textup{(c)}] Let $i12$. \textup{(}This is the count $12j}(g)$, $E_{\ge j}(g)$ in the same way. The valuation of $g(e)$ does not depend on the reference orientation of $e$, because $\operatorname{val}(-x)=\operatorname{val}(x)$. Every edge lies in exactly one set $E_j(g)$, and $E_{\ge j}(g)=E_{>j-1}(g)$ for $j\ge 1$. \begin{lemma}[The flattening process]\label{lem:flatten}\label{a7:flatten} Let $1\le i\le N-1$, and let $\Sig$ be a step system of $\Z_k$ that contains $1$ and $p^j$ for $1\le j\le i-1$. Let $G$ be a finite loopless multigraph and $f$ a nowhere-zero $\Z_k$-flow of $G$. Then $f$ is $\Sig$-joined to a nowhere-zero $\Z_k$-flow $f'$ such that for every $j$ in $\{0,\dots,i-1\}$: \begin{condlist}{(a)} \item[\textup{(a)}] every cycle of $G$ with no edge in $E_j(f')$ has all its edges in $E_{j}(f')|\le n_j-1$, where $n_j$ is the number of components of the multigraph $(V(G),E_{j}(g)$, make the move above with these $j$ and $C$ \textup{(}in either direction of $C$\textup{)}. The sum of the valuations of all values of $g$ is a non-negative integer, and every move lowers it by at least $1$. So the process stops. Let $f'$ be the last flow. It is $\Sig$-joined to $f$. From now on $E_j$, $E_{j}$ are the sets of $f'$. \emph{\textup{(a)}.} Let $C$ be a cycle with no edge in $E_j$. The process has stopped, so $C$ has no edge in $E_{>j}$. Every edge has a valuation, so all edges of $C$ are in $E_{j}$; an edge of $E_{>j}$ joins the components of its two ends \textup{(}it is a loop of $G_j$ if they are the same component\textup{)}. We show that $G_j$ has no cycle; then $G_j$ is a forest with $n_j$ vertices, and $|E_{>j}|=|E(G_j)|\le n_j-1$. Suppose that $G_j$ has a cycle $O$, and let $e_1$ be an edge of $O$. Go once round $O$. At every vertex of $O$ \textup{(}a component of $(V(G),E_{j}$. This contradicts \textup{(a)}. \end{proof} \subsection*{Four levels give a good subgraph} \begin{lemma}[Four levels]\label{lem:VF4}\label{a7:VF4} Let $4\le i\le N-1$ \textup{(}so $N\ge 5$\textup{)}, and let $\Sig$ be a step system of $\Z_k$ that contains $1$ and $p^j$ for $1\le j\le i-1$. Let $G$ be a loopless $3$-edge-connected multigraph with $n\ge 2$ vertices, and $f$ a nowhere-zero $\Z_k$-flow of $G$. Then $f$ is $\Sig$-joined to a nowhere-zero $\Z_k$-flow $f'$ such that the multigraph \[ \bigl(V(G),\ \{\,e : f'(e)\notin p^i\Z_k\,\}\bigr) \] contains a good subgraph \textup{(}Definition~\ref{def:good}\textup{)}. So, for $\Gam=\Z_k$, $B=p^i\Z_k$, $A=\Gam/B$ and this $\Sig$, the condition \AVpp{} of Definition~\ref{def:conditions} holds. \end{lemma} \begin{proof} Let $f'$ be the flow of Lemma~\ref{a7:flatten} for this $i$, and let $E_j$, $E_{j}$ be the sets of $f'$. For $0\le j\le i$ let $n_j$ be the number of components of $(V(G),E_{j-1}$, and $j-1$ is in $\{0,\dots,i-1\}$. By Lemma~\ref{a7:flatten}~(b), \[ |E_{j-1}|\ \ge\ \tfrac32\,n-n_{j-1}+1 . \] \emph{Step 2: few edges.} Let a component of $(V(G),E_{0$. \subsection*{The steps \texorpdfstring{$\pm 2^j$}{+-2\^{}j} in \texorpdfstring{$\Z_{2^r}$}{Z\_\{2\^{}r\}}} \begin{lemma}[The powers of $2$]\label{lem:D}\label{a7:D} Let $r\ge 2$, and let $\Delta_r$ be the graph on $\Z_{2^r}$ in which $x$ and $y$ are adjacent if $y-x$ is $2^j$ or $-2^j$ for some $j$ with $0\le j\le r-1$. Then for every set $X$ of at most $2r-2$ elements of $\Z_{2^r}$, the graph $\Delta_r-X$ is connected. \end{lemma} \begin{proof} \emph{The degree.} Let $r'\ge 2$. In $\Z_{2^{r'}}$ the elements $\pm 2^j$, $0\le j\le r'-1$, are $2r'-1$ different non-zero elements: they are not $0$; $2^j\ne 2^l$ for $j0$ of them. \emph{Attached odd survivors.} An odd element $x$ has exactly two even neighbours, $x-1$ and $x+1$ \textup{(}the only odd step is $\pm 1$, and $x-1\ne x+1$\textup{)}. Call an odd element $x$ outside $X$ \emph{attached} if $x-1$ or $x+1$ is outside $X$. An attached element is joined to the connected set of the even survivors. If $x$ is not attached, then $x-1$ and $x+1$ are both in $X$. The even elements form a cycle of length $2^{r-1}\ge 4$ in which $y$ and $y+2$ are consecutive; so $\{x-1,x+1\}$ is an edge of this cycle with both ends in $X$, and different $x$ give different edges. The $w<2^{r-1}$ even elements of $X$ induce a union of paths in this cycle, with at most $\max\{0,w-1\}$ edges. So at most $\max\{0,w-1\}$ odd elements outside $X$ are not attached. \emph{The end.} If $w\le 1$, every odd element outside $X$ is attached, and $\Delta_r-X$ is connected. Let $w\ge 2$. There are at least $2^{r-1}-(|X|-w)\ge 2^{r-1}-2r+2+w$ odd elements outside $X$, and at most $w-1$ of them are not attached; so at least $2^{r-1}-2r+3$ of them are attached. In the odd class, which induces a copy of $\Delta_{r-1}$, every element has degree $2(r-1)-1=2r-3$, so it has exactly $(2^{r-1}-1)-(2r-3)=2^{r-1}-2r+2$ non-neighbours in the odd class other than itself. Let $x$ be an odd element outside $X$ that is not attached. The attached elements are at least $2^{r-1}-2r+3$ odd elements other than $x$, so one of them is a neighbour of $x$. So every element outside $X$ is joined to the even survivors, and $\Delta_r-X$ is connected. \end{proof} \subsection*{The theorem} \begin{theorem}[Prime powers]\label{thm:pp}\label{a7:pp} Let $p$ be a prime, $N\ge 6$ and $k=p^N$. Then \begin{condlist}{(a)} \item[\textup{(a)}] $\Mk(G)=\Fl(G,\Z_k)$ is connected for every finite bridgeless multigraph $G$ \textup{(}loops allowed\textup{)}; \item[\textup{(b)}] $\Ik(G)$ is connected for every finite bridgeless loopless multigraph $G$. \end{condlist} For example $k=64$, $128$, $256$, $729$, $15625$. \end{theorem} \begin{proof} We apply Theorem~\ref{thm:Z} with $\Gam=\Z_k$, $k=ab$, $B=a\Z_k$, $A=\Z_a$, and with the hypotheses of Theorem~\ref{thm:master}. The data of the two cases: \[ \begin{array}{l|l|l} & p=2 & p\text{ odd}\\ \hline a=|A| & 2^{N-2}\ \ (\ge 16) & p^4\ \ (\ge 81)\\ b=|B| & 4 & p^{N-4}\ \ (\ge p^2\ge 9)\\ i\text{ with }a=p^i & N-2 & 4\\ \Sig & \{\,\pm 2^j : 0\le j\le N-1\,\} & \{\pm 1,\pm 2\}\cup\{\,\pm p^j : 1\le j\le N-1\,\} \end{array} \] In both cases $B=a\Z_k=p^i\Z_k$, and $4\le i\le N-1$ \textup{(}for $p=2$ because $N\ge 6$\textup{)}. \begin{condlist}{(Counts)} \item[\textup{($\Sig$)}] \emph{A step system.} No element of $\Sig$ is $0$ in $\Z_k$: the integers $1$, $2$ and $p^j$ with $j\le N-1$ lie between $1$ and $k-1$. And $\Sig=-\Sig$. So $\Sig$ is a step system \textup{(}Definition~\ref{def:stepsystem}\textup{)}. \item[\textup{(Lift)}] \emph{Liftable.} The elements $\pm 1$ are liftable by Lemma~\ref{lem:liftable}~(b), $\pm 2$ by Lemma~\ref{lem:liftable}~(c), and $\pm p^j$ for $0\le j\le N-1$ by Lemma~\ref{lem:liftable}~(d), because $p^j$ is a divisor of $k$ with $1\le p^j2j\,|B|$. Let $G$ be a loopless $3$-edge-connected multigraph on at least two vertices, and for every edge $e$ of $G$ let $\Phi(e)$ be a set of at most $j$ elements of $\Gam$. Then $G$ has a $\Gam$-flow $w$ with $w(e)\notin\Phi(e)$ for every edge $e$. \end{lemma} \begin{proof} Use the frame and the notation above. Define a list assignment: $\Lam(t)=\Phi(t)+B=\{\,z+y : z\in\Phi(t),\ y\in B\,\}$ for every original blue edge $t$, and $\Lam(t)$ empty for every blue expansion edge. Then $|\Lam(t)|\le j\,|B|$, so $|\Lam(e_i)|+|\Lam(f_i)|\le 2j\,|B|<|\Gam|$ for every node $i$. By Lemma~\ref{lem:reverse}~(a) with $Y_0=0$ there is a $\Gam$-flow $Y$ of $Q$ with $Y(t)\notin\Lam(t)$ for every blue edge $t$. So $Y(t)+y\notin\Phi(t)$ for every original blue edge $t$ and every $y$ in $B$. Let $\eps$ be a free edge. The $|B|\ge j+1$ elements $Y(\eps)+y$, $y$ in $B$, are different, and at most $j$ of them are in $\Phi(\eps)$. Choose $y_\eps$ in $B$ with $Y(\eps)+y_\eps\notin\Phi(\eps)$. Put $Y'=Y+\sum_\eps y_\eps\chi_{F_\eps}$, the sum over all free edges. A free edge $\eps$ lies on $F_\eps$ and on no other cycle $F_{\eps'}$, so $Y'(\eps)=Y(\eps)+y_\eps\notin\Phi(\eps)$. On a blue edge $t$ the difference $Y'(t)-Y(t)$ is a sum of elements $\pm y_\eps$, so it is in $B$; hence $Y'(t)\notin\Phi(t)$ if $t$ is original. Every original edge is blue or free. By Lemma~\ref{a2:flows}~(c) the restriction $w$ of $Y'$ to the original edges is a $\Gam$-flow of $G$, and $w(e)\notin\Phi(e)$ for every edge $e$ of $G$. \end{proof} \begin{lemma}[Cyclic list avoidance]\label{lem:Bt}\label{a8:lem:Bt} Let $j\ge 1$ and $N>2j(2j+1)$ be integers. Let $G$ be a loopless $3$-edge-connected multigraph on at least two vertices, and for every edge $e$ of $G$ let $\Phi(e)$ be a set of at most $j$ elements of $\Z_N$. Then $G$ has a $\Z_N$-flow $w$ with $w(e)\notin\Phi(e)$ for every edge $e$. \end{lemma} \begin{proof} Use the frame and the notation above, with $\Gam=\Z_N$, and put $d=j+1$. For every original blue edge $t$ let $\Lam(t)$ be the set of the elements $z-y$ of $\Z_N$ with $z$ in $\Phi(t)$ and an integer $y$ with $|y|\le j$; for a blue expansion edge $\Lam(t)$ is empty. Then $|\Lam(t)|\le j(2j+1)$, so $|\Lam(e_i)|+|\Lam(f_i)|\le 2j(2j+1)6d=2\cdot 3\cdot|B|$. Lemma~\ref{lem:Ct} with $j=3$ gives $w_0$ with $w_0(t)\notin\Phi(t)$ for every edge $t$ of $H_0$. If $N\ge 43$, then $N>42=2\cdot 3\cdot(2\cdot 3+1)$, and Lemma~\ref{lem:Bt} with $j=3$ gives such a $w_0$. The flow of $H$ that has the value $w_0(t)$ on $\thr{t}$ avoids $z$. \end{proof} \subsection*{The theorem of two coprime factors}\label{a8:theorem-sec} From here on $a$, $b$ and $k=ab$ are as in the subsection `Guarded moves'. \begin{theorem}[Two coprime factors]\label{thm:twocoord}\label{a8:thm:twocoord} Let $a\ge 9$ and $b\ge 6$ be coprime integers such that $\Z_a$ and $\Z_b$ have one-value avoidance, and let $k=ab$. \begin{condlist}{(a)} \item[\textup{(a)}] On every bridgeless multigraph $G$ \textup{(}loops allowed\textup{)} any two nowhere-zero $\Z_k$-flows are joined by a sequence of guarded moves. In particular $\Mk(G)$ is connected. \item[\textup{(b)}] $\Ik(G)$ is connected for every finite bridgeless loopless multigraph $G$. \end{condlist} \end{theorem} \begin{proof} A \emph{target} of a multigraph is a $\Z_k$-flow $h$ such that $\rho_a(h)$ and $\rho_b(h)$ are both nowhere zero. A target is nowhere zero. \smallskip \noindent\textsc{Claim.} On every connected bridgeless multigraph $G$ \textup{(}loops allowed\textup{)}, every nowhere-zero $\Z_k$-flow is joined to every target by a sequence of guarded moves. \begin{condlist}{(4)} \item[\textup{(1)}] \emph{The claim gives the theorem.} Let $G$ be bridgeless. By Theorem~\ref{q:flows} \textup{(}Seymour, Tutte\textup{)}, every bridgeless multigraph, loops allowed, has a nowhere-zero flow with values in any abelian group of order at least $6$. So $G$ has a nowhere-zero $\Z_a$-flow $h_a$ and a nowhere-zero $\Z_b$-flow $h_b$, because $a\ge 9$ and $b\ge 6$. Then $h=\iota_a(h_a)+\iota_b(h_b)$ is a target. A cycle of $G$ lies in one component of $G$, and a guarded move of a component is a guarded move of $G$. So, component after component, the claim joins every nowhere-zero $\Z_k$-flow of $G$ to $h$ by guarded moves. The reverse of a guarded move is a guarded move. This gives (a), because guarded moves are moves of $\Mk(G)$. For (b) let $G$ be loopless, and let $F$, $F'$ be vertices of $\Ik(G)$. Their reductions $f$, $f'$ modulo $k$ are nowhere-zero $\Z_k$-flows, because $1\le|F(e)|\le k-1$. By (a) a sequence of guarded moves leads from $f$ to $f'$. By Lemma~\ref{a8:lem:guarded}~(b), all integer lifts of two consecutive flows of the sequence lie in one component of $\Ik(G)$. Every flow of the sequence has an integer lift, and all integer lifts of one flow lie in one component (Lemma~\ref{lem:liftable}~(a); $k\ge 54$). So all of them lie in one component, and it contains $F$ and $F'$. \item[\textup{(2)}] \emph{The induction.} We prove the claim by induction on the number $n$ of vertices of $G$; for each $n$ first for the loopless graphs, then for the graphs with loops. A connected loopless multigraph with one vertex has no edge and only the empty flow. A connected bridgeless loopless multigraph with $n\ge 2$ vertices has a cut with exactly $2$ edges or is $3$-edge-connected: a cut with one edge consists of a bridge. So three cases remain: \textup{(I)}, \textup{(II)}, \textup{(III)}. In all of them $f$ is a nowhere-zero $\Z_k$-flow and $h$ is a target of $G$. \item[\textup{(I)}] \emph{$G$ has a loop.} Let $G^-$ be $G$ without its loops. It is connected, bridgeless and loopless, and it has $n$ vertices; so the claim holds for $G^-$. The restrictions of $f$ and $h$ to $G^-$ are a nowhere-zero flow and a target. A guarded move of $G^-$ is a guarded move of $G$: its cycle has no loop, and the values on the loops do not change. So $f$ is joined by guarded moves to the flow that is equal to $h$ on $E(G^-)$ and to $f$ on the loops. Now let $e$ be a loop, directed, with the values $x=f(e)\ne 0$ and $x'=h(e)$; a loop is a cycle with one edge. If $\rho_b(x)\ne 0$, first add $\iota_a(\rho_a(x')-\rho_a(x))\,\chi_e$: a guarded $a$-move \textup{(}if it is not $0$\textup{)}, because $\rho_b(x)\ne 0$; the new value $x_1$ has $\rho_a(x_1)=\rho_a(x')\ne 0$. Then add $\iota_b(\rho_b(x')-\rho_b(x_1))\,\chi_e$: a guarded $b$-move, because $\rho_a(x_1)\ne 0$. The new value is $x'$. If $\rho_b(x)=0$, then $\rho_a(x)\ne 0$, and the two moves are made in the other order: first the $b$-move, guarded by $\rho_a(x)\ne 0$, then the $a$-move, guarded by $\rho_b(x')\ne 0$. No other edge changes. Do this for every loop. The result is $h$. \item[\textup{(II)}] \emph{$G$ is loopless and has a cut with exactly two edges $e_1$, $e_2$.} Let $G/e_1$ be obtained from $G$ by the identification of the two ends of $e_1$ and the deletion of $e_1$. It is connected and has $n-1$ vertices. It is bridgeless: if an edge $e\ne e_1$ lies on a cycle $O$ of $G$, then the edges of $O$ other than $e_1$ form a closed trail of $G/e_1$ through $e$, and every edge of a closed trail lies on a cycle of the trail. It can have loops. By induction the claim holds for $G/e_1$. The restriction of a flow of $G$ to $E(G/e_1)$ is a flow of $G/e_1$ \textup{(}add the two conservation equations at the ends of $e_1$\textup{)}, and every flow of $G/e_1$ is the restriction of exactly one flow of $G$: conservation at one end of $e_1$ fixes the value on $e_1$. In a flow of $G$, with values in any abelian group, the value on $e_1$ is the value on $e_2$ or its negative \textup{(}conservation over one side of the cut\textup{)}. So a flow of $G$ is nowhere zero, or a target, if and only if its restriction is. Let $g'\to g'+\lambda\chi_{C'}$ be a guarded move of $G/e_1$. The edges of $C'$ form a cycle of $G$, or a path of $G$ between the two ends of $e_1$; in the second case add $e_1$. This gives a cycle $C$ of $G$ with $\chi_C=\chi_{C'}$ on $E(G/e_1)$. In the second case the path crosses the cut and does not use $e_1$, so $C'$ contains $e_2$. Let $g$ be the flow of $G$ with restriction $g'$. Then $g+\lambda\chi_C$ is the flow of $G$ with restriction $g'+\lambda\chi_{C'}$, and $g\to g+\lambda\chi_C$ is a guarded move of the same kind: the residue that guards is not $0$ on the edges of $C'$, and, if $e_1$ is on $C$, also on $e_1$, because its value there is $\pm$ its value on $e_2$. So the claim for $G/e_1$ gives the claim for $G$. \item[\textup{(III)}] \emph{$G$ is loopless and $3$-edge-connected, $n\ge 2$.} Let $m$ be the number of edges. Every vertex has degree at least $3$, so $m\ge 3n/2$. By Lemma~\ref{lem:avgcoord}, $f$ is joined by guarded $a$-moves to a flow $f'$ such that $\rho_a(f')$ has at most $m/a\le m/9$ zeros. So $\supp(\rho_a(f'))$ has at least $(8/9)\,m\ge(4/3)\,n>(4/3)\,n-2$ edges. If $n\ge 3$, Lemma~\ref{lem:extraction}~(a) gives a good subgraph $H$ of the loopless multigraph $(V(G),\supp(\rho_a(f')))$. If $n=2$, then $m\ge 3$, and the support has at least $8m/9>2$ edges; two of them are parallel and form a good subgraph $H$ of the kind (CYC). In both cases $H$ is connected, it has at least two vertices, and $\rho_a(f')$ has no zero on $E(H)$. Let $G^*=G/H$ be obtained from $G$ by the identification of $V(H)$ to one vertex $v_H$ and the deletion of $E(H)$. It has fewer vertices than $G$, and it is connected. It is bridgeless: if an edge $e$ of $G^*$ lies on a cycle $O$ of $G$, the edges of $O$ outside $E(H)$ form a closed trail of $G^*$ through $e$, and every edge of a closed trail lies on a cycle of the trail. It can have loops. By induction the claim holds for $G^*$. The restriction of a flow of $G$ to $E(G^*)$ is a flow of $G^*$ \textup{(}add the conservation equations at the vertices of $H$; the edges of $H$ drop out\textup{)}. So the restriction of $f'$ is a nowhere-zero flow of $G^*$, and the restriction $h^*$ of $h$ is a target of $G^*$. So there are guarded moves of $G^*$ that lead from the restriction of $f'$ through flows $g_0,g_1,\dots,g_\nu=h^*$. \emph{The cycles.} For a cycle $C^*$ of $G^*$ we fix a cycle $C$ of $G$ with $\chi_C=\chi_{C^*}$ on $E(G^*)$ and $E(C)\subseteq E(C^*)\cup E(H)$. If $C^*$ does not pass $v_H$, its edges form a cycle of $G$; take it. Otherwise $C^*$ passes $v_H$ once, and its edges form, in $G$, a cycle or a path $P$ between two different vertices $v_1$, $v_2$ of $H$ whose inner vertices are not in $V(H)$; a loop of $G^*$ at $v_H$ is such a path with one edge, because $G$ is loopless. Add a path of $H$ between $v_2$ and $v_1$; $H$ is connected. Direct $C$ along $C^*$. \emph{The invariant.} We build flows $x_0=f',x_1,\dots,x_\nu$ of $G$, each joined to the one before it by guarded moves, such that the restriction of $x_r$ to $E(G^*)$ is $g_r$ and $\rho_a(x_r)$ has no zero on $E(H)$. Such a flow is nowhere zero. $x_0=f'$ has these properties. Let $x=x_{r-1}$ be built, and let $g_r=g_{r-1}+\lambda\chi_{C^*}$, with the cycle $C$ of $C^*$. \emph{A guarded $b$-move of $G^*$} \textup{(}$\lambda$ in $a\Z_k$, $\rho_a(g_{r-1})$ has no zero on $C^*$\textup{)}. Then $\rho_a(x)$ has no zero on $E(C)$: not on $E(H)$ by the invariant, and not on $E(C^*)$, where $x$ is equal to $g_{r-1}$. So $x\to x+\lambda\chi_C$ is a guarded $b$-move. Put $x_r=x+\lambda\chi_C$. It has the residues of $x$ modulo $a$, and its restriction to $E(G^*)$ is $g_r$. \emph{A guarded $a$-move of $G^*$} \textup{(}$\lambda$ in $b\Z_k$, $\rho_b(g_{r-1})$ has no zero on $C^*$\textup{)}. \begin{condlist}{(iii)} \item[\textup{(i)}] $\Z_b$ has one-value avoidance. So there is a $\Z_b$-flow $w_b$ of $H$ with $w_b(e)\ne-\rho_b(x)(e)$ for every edge $e$ of $H$. Extend it by $0$ to a flow of $G$. By Lemma~\ref{a8:lem:guarded}~(a), with $a$ and $b$ exchanged and $E'=E(H)$ \textup{(}$\rho_a(x)$ has no zero there\textup{)}, $x$ is joined by guarded $b$-moves to $x'=x+\iota_b(w_b)$. Now $\rho_b(x')$ has no zero on $E(H)$; $\rho_a(x')=\rho_a(x)$; and $x'=x$ outside $E(H)$. \item[\textup{(ii)}] $\Z_a$ has one-value avoidance. So there is a $\Z_a$-flow $w_a$ of $H$ with $w_a(e)\ne-\rho_a(x')(e)-\rho_a(\lambda)\chi_C(e)$ for every edge $e$ of $H$. Extend it by $0$. By Lemma~\ref{a8:lem:guarded}~(a) with $E'=E(H)$ \textup{(}$\rho_b(x')$ has no zero there\textup{)}, $x'$ is joined by guarded $a$-moves to $x''=x'+\iota_a(w_a)$. Now $\rho_b(x'')=\rho_b(x')$, and $x''=x$ outside $E(H)$. \textup{(}$\rho_a(x'')$ can have zeros on $E(H)$.\textup{)} \item[\textup{(iii)}] $\rho_b(x'')$ has no zero on $E(C)$: not on $E(H)$ by (i), and not on $E(C^*)$, where $x''$ is equal to $g_{r-1}$. So $x''\to x''+\lambda\chi_C$ is a guarded $a$-move. Put $x_r=x''+\lambda\chi_C$. Its restriction to $E(G^*)$ is $g_{r-1}+\lambda\chi_{C^*}=g_r$. On $E(H)$, $\rho_a(x_r)=\rho_a(x')+w_a+\rho_a(\lambda)\chi_C$, which has no zero by the choice of $w_a$. \end{condlist} \emph{The end.} The flow $x_\nu$ is equal to $h$ outside $E(H)$, and $\rho_a(x_\nu)$ has no zero on $E(H)$. So $\rho_a(x_\nu)$ has no zero at all, because $\rho_a(h)$ has none. By Lemma~\ref{a8:lem:guarded}~(a), with $a$ and $b$ exchanged and $E'=E(G)$, $x_\nu$ is joined by guarded $b$-moves to the flow $x'$ with $\rho_b(x')=\rho_b(h)$ and $\rho_a(x')=\rho_a(x_\nu)$ \textup{(}add $\iota_b$ of the $\Z_b$-flow $\rho_b(h)-\rho_b(x_\nu)$\textup{)}. Now $\rho_b(x')=\rho_b(h)$ has no zero. By Lemma~\ref{a8:lem:guarded}~(a) with $E'=E(G)$, $x'$ is joined by guarded $a$-moves to the flow with the residues $\rho_a(h)$ and $\rho_b(h)$, that is to $h$. Together: $f$ is joined to $f'$, to $x_\nu$, and to $h$ by guarded moves.\qedhere \end{condlist} \end{proof} \begin{corollary}[Two admitted factors]\label{cor:enlarged}\label{a8:cor:enlarged} Call an integer $N\ge 2$ an \emph{admitted factor} if $N=de$ with integers $d\ge 4$ and $e\ge 7$, or if $N\ge 43$. \begin{condlist}{(a)} \item[\textup{(a)}] Let $k=ab$ with coprime admitted factors $a$ and $b$. Then $\Mk(G)$ is connected for every finite bridgeless multigraph $G$ \textup{(}loops allowed\textup{)}, and $\Ik(G)$ is connected for every finite bridgeless loopless multigraph $G$. \item[\textup{(b)}] Every multiple of a product of two coprime admitted factors is again such a product. \item[\textup{(c)}] In particular \textup{(a)} holds for every multiple of $1120=32\cdot 35$, for $k=pq$ with different primes $p,q\ge 43$, and for $k=p^2q$ with different primes $p\ge 7$ and $q\ge 43$. \end{condlist} \end{corollary} \begin{proof} (a) An admitted factor is at least $4\cdot 7=28$. So $a\ge 9$ and $b\ge 6$. By Corollary~\ref{cor:Cprime}, $\Z_a$ and $\Z_b$ have one-value avoidance. Theorem~\ref{thm:twocoord} gives the claim. (b) Let $k=ab$ with coprime admitted factors $a$, $b$, and let $k'$ be a multiple of $k$. For every prime $p$ that divides $k'/k$, let $p^{v}$ be the largest power of $p$ that divides $k'/k$. Put it to $b$ if $p$ divides $b$, and to $a$ otherwise. This gives $k'=a'b'$, where $a'$ is a multiple of $a$ and $b'$ is a multiple of $b$. A prime that divides $a'$ divides $a$ or was put to $a$; in both cases it does not divide $b$, and it was not put to $b$. So $a'$ and $b'$ are coprime. A multiple of an admitted factor is an admitted factor: a multiple of $de$ is $de'$ with a multiple $e'$ of $e$, so $e'\ge 7$; and a multiple of a number $N\ge 43$ is at least $43$. (c) $32=4\cdot 8$ and $35=5\cdot 7$ are coprime admitted factors; use (b). A prime $p\ge 43$ is an admitted factor. For a prime $p\ge 7$, $p^2=p\cdot p$ with $p\ge 4$ and $p\ge 7$ is an admitted factor. \end{proof} \begin{remark}[The admitted factors]\label{a8:rem:admitted} The admitted factors below $43$ are $28$, $32$, $35$, $36$, $40$, $42$. So the admitted factors are the integers $N\ge 28$ other than $29$, $30$, $31$, $33$, $34$, $37$, $38$, $39$, $41$. The smallest product of two coprime admitted factors is $1120$. Indeed, let $ab<1120$ with admitted factors $a\le b$. Then $a^2<1120$ gives $a\le 33$, so $a$ is $28$ or $32$, and $b<1120/28=40$ gives $b$ in $\{28,32,35,36\}$; of these pairs only $32$, $35$ is coprime, and $32\cdot 35$ is not smaller than $1120$. Every multiple of $1120$ is also a multiple of $4$ from $52$ on, so Theorem~\ref{thm:bases} gives it as well. The two lemmas give one-value avoidance only for the admitted factors; other orders are not treated. \end{remark} \begin{remark}[The master theorem for these moduli]\label{a8:rem:master} Let $a\ge 10$ and $b\ge 4$ be coprime and $k=ab$. The connectivity of $\Mk(G)$ in Theorem~\ref{thm:twocoord}~(a) then also follows from Theorem~\ref{thm:master}. Put $\Gam=\Z_k$, $B=a\Z_k$ \textup{(}order $b$\textup{)}, $A=\Z_a$, and $\Sig=\Gam\setminus\{0\}$. Then $\SigA=A\setminus\{0\}$ and $\SigB=B\setminus\{0\}$, so \RI, \RII{} and \RIII{} hold with walks of one step. By the Chinese remainder theorem $\Z_k=\Z_a\times\Z_b$; the element $b$ of $\Sig$ generates the factor $\Z_a\times 0$ and the element $a$ generates $0\times\Z_b$, and $(|B|-1)/(|\Gam|-1)=(b-1)/(ab-1)<1/9$ because $a\ge 10$. So Lemma~\ref{lem:AVG} gives \AV{} and \AVpp. And $|A|=a\ge 10$, $|B|=b\ge 4$: Corollary~\ref{cor:i} applies. This is a special case of Theorem~\ref{thm:G10}, for $\Gam=\Z_k$. Theorem~\ref{thm:Z} does not give the integer graphs $\Ik(G)$ in this way, because it asks that every element of $\Sig=\Gam\setminus\{0\}$ is liftable (Definition~\ref{def:liftable}), and this is not shown. For $k=pq$ a smaller $\Sig$ does not help either. Let $k=pq$ with different primes $p,q\ge 5$. The elements that Lemma~\ref{lem:liftable} shows to be liftable are $\pm 1$, $\pm 2$, $\pm p$, $\pm q$: in part~(e), $c=1$ modulo $p$ and modulo $q$ means $c=1$ modulo $k$. With $B=p\Z_k$, the only ones of them in $B$ are $\pm p$. The map $jp\mapsto j$ identifies $B$ with $\Z_q$ and $\pm p$ with the steps $\pm 1$, and $\Z_q$ without the two elements $1$, $3$ is not connected by these steps. So \RII{} fails; the same holds for $B=q\Z_k$. The guarded moves do not need liftable steps: Lemma~\ref{a8:lem:guarded}~(b) lifts every guarded move, whatever its step. \end{remark} \section{Every multiple of four from 52 on; the moduli by their number of prime factors}\label{a9:sec} This section collects the integer moduli. Theorem~\ref{thm:bases} gives $k=40$, $k=48$ and every multiple of $4$ from $52$ on. Theorem~\ref{thm:omega4} gives every $k$ with at least four prime factors that is not a prime power, except $24$, $36$ and $54$. Proposition~\ref{prop:omega3} and Corollary~\ref{a9:cor:table} say exactly which $k$ these results reach \textup{(}Definition~\ref{a9:def:covered}\textup{)}, by the number of prime factors. Corollary~\ref{cor:density}: the moduli $k$ for which $\Mk(G)$ and $\Ik(G)$ are connected for every finite bridgeless loopless multigraph $G$ have natural density one. $\Omega(k)$ is the number of prime factors of $k$ counted with multiplicity, $\omega(k)$ the number of different prime factors, and $\tau(a)$ the number of positive divisors of $a$. For a set $D$ of non-zero elements of $\Z_a$ with $D=-D$, the \emph{graph on $\Z_a$ with the step set $D$} has the vertex set $\Z_a$; two vertices $x$, $y$ are adjacent if $y-x$ is in $D$. The \emph{sign class} of an element $x$ is $\{x,-x\}$. For a split $k=ab$, $D$ always denotes the step set of Criterion~\ref{crit:F10}: the non-zero residues modulo $a$ of $\pm 1$, $\pm 2$ and $\pm q$, for all divisors $q$ of $k$ with $1\le q15$, then $m\ge 21$ and $2d_0\le 2\sqrt{m}q$: for $pq,r$. Put $a=pq\ge 15$ and $b=pr\ge 15$. The eight residues $\pm 1$, $\pm 2$, $\pm p$, $\pm q$ modulo $pq$ are different. The residues $\pm r$ are two more: $r$ is a unit modulo $pq$, so not $\pm p$, $\pm q$; and $3\le rp$\textup{)}. So $|D|\ge 10$. \emph{Type $uvwz$, $u2$; with $6\le b4$, Chebyshev's inequality \textup{(}Theorem~\ref{q:chebyshev}\textup{)} gives \[ \delta_y=\Pr[X\le 4]\ \le\ \Pr\bigl[\,|X-\mu_y|\ge\mu_y-4\,\bigr]\ \le\ \frac{\mu_y}{(\mu_y-4)^2}. \] The sum of $1/p$ over all primes diverges \textup{(}Euler; Theorem~\ref{q:euler}\textup{)}, so $\mu_y$ tends to infinity, and $\delta_y$ tends to $0$. For every $y$ the upper density of $T$ is at most $\delta_y$. So $T$ has density $0$, and $S^*$ has density $1$. \end{proof} \begin{remark}[Moduli that are not covered]\label{a9:rem:notcovered} The moduli that are not covered include the primes, the prime powers $p^e$ with $e\le 5$, the values $24$, $36$, $54$ and the eleven products of three different primes of Proposition~\ref{prop:omega3}. For $k\ge 6$ in these cases, the connectivity of $\Ik(G)$ for all graphs is open \textup{(}Section~\ref{a12:sec}\textup{)}. For example $k=44=4\cdot 11$ is not covered (Proposition~\ref{prop:omega3}~(i): $4q$ is covered only for $q\ge 13$): it is smaller than $52$ and is not $40$ or $48$; its only split for Criterion~\ref{crit:F10} is $a=11$, $b=4$, with $D=\{\pm 1,\pm 2,\pm 4\}$ modulo $11$; and $44$ is not the product of two coprime admitted factors. \textup{(}The modular graph $\Mk(G)$ with $k=44$ is connected by Theorem~\ref{thm:G10}.\textup{)} \end{remark} \section{One graph: larger moduli, few edges, few vertices, short cycles}\label{a10:sec} Theorem~\ref{thm:bases} gives moduli $k$ for which $\Ik(G)$ and $\Mk(G)$ are connected for \emph{every} finite bridgeless loopless multigraph $G$: $k=40$, $k=48$ and every multiple of $4$ from $52$ on. We call them the \emph{bases}. This section fixes one graph $G$ and gives \emph{every} $k$ from a bound on, prime numbers $k$ included. The bound depends on $G$: \begin{condlist}{(d)} \item[\textup{(a)}] on the length of a longest cycle: every $k\ge\max(48,c(G)+4)$, and every $k\ge 40$ if every cycle has at most $39$ edges (Corollary~\ref{a10:pergraph}); \item[\textup{(b)}] on the number of edges: every $k\ge 40$ if $G$ has at most $189$ edges (Corollary~\ref{a10:C189}); \item[\textup{(c)}] on the number of vertices: every $k\ge 40$ if $G$ has at most $149$ vertices (Corollary~\ref{a10:N149}); \item[\textup{(d)}] on short cycles: every $k\ge 40$ if every edge lies on a cycle with at most $8$ edges, or if $G$ is connected with diameter at most $3$ (Corollaries~\ref{a10:SC1}, \ref{a10:diam}, \ref{a10:SC2}). \end{condlist} All four go up one level at a time, from $k-1$ to $k$, starting at a base. This section does \emph{not} prove that $\Ik(G)$ is connected for every bridgeless $G$ and every large $k$. \subsection*{Setting} In this section $G$ is a finite bridgeless loopless multigraph, and $k\ge 3$ is an integer, unless something else is said. The conventions are those of Section~\ref{sec:flows}. In particular $\Ik(G)$ is the graph on the integer flows $F$ of $G$ with $1\le|F(e)|\le k-1$ for every edge $e$, and $F$, $F'$ are adjacent if $F'-F=\lambda\chi_C$ for a cycle $C$ with a direction and an integer $\lambda\ne 0$ (a move). For a flow $F$ of $\Ik(G)$, $G_F$ is the orientation of $G$ in which $F$ is positive: every edge is directed so that its value is in $[1,k-1]$. We change the reference orientation freely (Section~\ref{sec:flows}). In a statement about one flow $F$ the values are read in $G_F$; an edge of $G$ with this direction is an \emph{arc}, and its \emph{value} $F(e)$ is its size $|F(e)|$. An arc is a \emph{top} if its value is $k-1$, a \emph{$1$-arc} if its value is $1$, and a \emph{middle arc} if its value is in $[2,k-2]$. For a set $X$ of vertices, $\operatorname{in}(X)$ and $\operatorname{out}(X)$ are the numbers of arcs of $G_F$ that enter $X$ and that leave $X$; $\operatorname{in}_v(X)$ and $\operatorname{out}_v(X)$ count only the arcs of value $v$. The sum of the conservation equations over the vertices of $X$ gives \[ \sum_{e\text{ leaves }X}F(e)\;=\;\sum_{e\text{ enters }X}F(e)\qquad\text{(the flow out of $X$ is the flow into $X$).} \] By Lemma~\ref{lem:cycledec}~(b), applied to $F$ with the reference orientation $G_F$, every arc of $G_F$ lies on a \emph{directed cycle} of $G_F$, that is a cycle that passes all its arcs in their direction. \emph{Joined} means: in the same component of $\Ik(G)$, for the $k$ of the context. A flow of $\Ik(G)$ \emph{descends} if it is joined to a flow of $\Ik[k-1](G)$. $c(G)$ is the number of edges of a longest cycle of $G$, and $c(G)=0$ if $G$ has no cycle. For an integer $k_0\ge 2$ put \[ \sigma(k_0)=\sum_{\lambda=1}^{k_0-1}\Bigl\lceil\frac{k_0}{\lambda}\Bigr\rceil . \] One quoted theorem is used: Hoffman's circulation theorem, Theorem~\ref{q:hoffman}. \begin{lemma}[One level]\label{a10:level} Let $G$ be any finite multigraph and $k\ge 3$. \begin{condlist}{(b)} \item[\textup{(a)}] The vertices of $\Ik[k-1](G)$ are the flows of $\Ik(G)$ with all sizes at most $k-2$, and two of them are adjacent in $\Ik[k-1](G)$ if and only if they are adjacent in $\Ik(G)$. \item[\textup{(b)}] If $\Ik[k-1](G)$ is connected and every flow of $\Ik(G)$ descends, then $\Ik(G)$ is connected. \end{condlist} \end{lemma} \begin{proof} (a) holds by the definitions: the adjacency is the same rule in both graphs. (b) If $\Ik[k-1](G)$ has no vertex, then no flow of $\Ik(G)$ descends, so $\Ik(G)$ has no vertex and is connected. Otherwise, by (a), the connected graph $\Ik[k-1](G)$ lies in one component of $\Ik(G)$, and every flow of $\Ik(G)$ is joined to it. \end{proof} \begin{lemma}[From integers to residues]\label{a10:image} Let $G$ be any finite multigraph and $k\ge 2$. If $\Ik(G)$ is connected, then $\Mk(G)$ is connected. So each statement of this section that $\Ik(G)$ is connected gives that $\Mk(G)$ is connected. \end{lemma} \begin{proof} Let $f$, $f'$ be vertices of $\Mk(G)$. By Corollary~\ref{cor:lifting} they have integer lifts $F$, $F'$. Take a path $F=F_0,F_1,\dots,F_\nu=F'$ in $\Ik(G)$, and let $f_r$ be the reduction of $F_r$ modulo $k$. It is a nowhere-zero $\Z_k$-flow, because $1\le|F_r(e)|\le k-1$. If $F_r-F_{r-1}=\lambda\chi_C$, then $f_r-f_{r-1}$ is $\lambda\chi_C$ modulo $k$: either $f_r=f_{r-1}$, or $f_{r-1}$ and $f_r$ are adjacent in $\Mk(G)$. So $f=f_0$ and $f'=f_\nu$ are joined in $\Mk(G)$. \end{proof} \begin{lemma}[Same orientation]\label{a10:sameor} Let $F$ and $T$ be flows of $\Ik(G)$ with $G_T=G_F$. Then $F$ and $T$ are joined, by moves of the form $\chi_O$. \end{lemma} \begin{proof} Use the reference orientation $G_F$. By Lemma~\ref{lem:cycledec}~(b), $T-F=\chi_{O_1}+\dots+\chi_{O_j}$, where every directed cycle $O_r$ passes its edges in the direction of the sign of $T-F$. So on every edge $e$, every partial sum $F+\chi_{O_1}+\dots+\chi_{O_r}$ has a value between $F(e)$ and $T(e)$, that is in $[1,k-1]$. All partial sums are in $\Ik(G)$, and two consecutive ones differ by a move. \end{proof} \subsection*{Larger moduli on one graph} \begin{lemma}[Top-value reduction]\label{lem:top}\label{a10:top} Let $F$ be a flow of $\Ik(G)$ with a top $e$, and let $C$ be a directed cycle of $G_F$ through $e$. Let $\lambda$ be an integer with $1\le\lambda\le k-2$ that is not the value of any arc of $C$. Then $F-\lambda\chi_C$ is a flow of $\Ik(G)$ that is adjacent to $F$ \textup{(}$\chi_C$ is read in $G_F$, so it is $1$ on the arcs of $C$\textup{)}, and its tops are the tops of $F$ that are not on $C$. \end{lemma} \begin{proof} An arc of $C$ has a value $v$ with $1\le v\le k-1$ and $v\ne\lambda$. Its new value $v-\lambda$ is not $0$, and $1-\lambda\le v-\lambda\le k-1-\lambda$; so $|v-\lambda|\le\max\{\lambda-1,k-1-\lambda\}\le k-2$. The arcs outside $C$ keep their values. So $F-\lambda\chi_C$ is in $\Ik(G)$, no arc of $C$ is a top of it, and the tops outside $C$ do not change. It is adjacent to $F$ because $\lambda\ne 0$. \end{proof} \begin{theorem}[Larger moduli on one graph]\label{thm:L}\label{a10:L} Let $k_0\ge 2$ be an integer with $k_0\ge c(G)+1$ such that $\Ik[k_0](G)$ is connected. Then $\Ik(G)$ and $\Mk(G)$ are connected for every $k\ge k_0$. \end{theorem} \begin{proof} Induction on $k$; for $k=k_0$ this is the hypothesis and Lemma~\ref{a10:image}. Let $k>k_0$, so $k\ge 3$, and let $\Ik[k-1](G)$ be connected. A flow of $\Ik(G)$ without a top is in $\Ik[k-1](G)$. Let $F$ be a flow of $\Ik(G)$ with a top $e$. Take a directed cycle $C$ of $G_F$ through $e$. It has at most $c(G)\le k_0-1\le k-2$ arcs, so at most $k-3$ arcs other than $e$. The value of $e$ is $k-1$. So at most $k-3$ of the $k-2$ integers $1,\dots,k-2$ are values of arcs of $C$, and some $\lambda$ in $[1,k-2]$ is not. By Lemma~\ref{a10:top}, $F$ is adjacent to a flow with fewer tops. Repeat this with the new flow and its own orientation. The number of tops goes down at every step; so $F$ is joined to a flow without tops, that is a flow of $\Ik[k-1](G)$. So every flow of $\Ik(G)$ descends, and $\Ik(G)$ is connected by Lemma~\ref{a10:level}~(b). $\Mk(G)$ is connected by Lemma~\ref{a10:image}. \end{proof} \begin{corollary}[One graph: the bound by the longest cycle]\label{cor:pergraph}\label{a10:pergraph} Let $G$ be a finite bridgeless loopless multigraph, and $c=c(G)$. Then $\Ik(G)$ and $\Mk(G)$ are connected for every $k\ge\max(48,\,c+4)$. If $c\le 39$, they are connected for every $k\ge 40$. Since $c\le|V(G)|$, this holds in particular for every $k\ge\max(48,\,|V(G)|+4)$. \end{corollary} \begin{proof} Let $k_0$ be the least multiple of $4$ with $k_0\ge\max(48,c+1)$. It is a base, so $\Ik[k_0](G)$ is connected by Theorem~\ref{thm:bases}, and $k_0\ge c+1$. If $c+1\le 48$, then $k_0=48$; otherwise $k_0\le(c+1)+3=c+4$. So $k_0\le\max(48,c+4)$, and Theorem~\ref{a10:L} gives every $k\ge k_0$. If $c\le 39$, take the base $k_0=40\ge c+1$ in Theorem~\ref{a10:L}. \end{proof} \subsection*{One missing value; few edges} \begin{theorem}[One missing value]\label{thm:V}\label{a10:V} Let $\lambda$ be an integer with $1\le\lambda\le k-2$, and let $F$ be a flow of $\Ik(G)$ with no arc of size $\lambda$. Then $F$ is joined, by moves of the form $-\lambda\chi_O$ with directed cycles $O$ of $G_F$, to a flow with all sizes at most $k-2$. In particular $F$ descends. \end{theorem} \begin{proof} \emph{Claim \textup{($*$)}. Let $F$ be any flow of $\Ik(G)$ and $1\le\lambda\le k-2$. Let $Y$ be an integer flow of $G$ with values in $\{0,1\}$ in the orientation $G_F$, with $Y(e)=1$ on every top and $Y(e)=0$ on every arc of value $\lambda$. Then $F$ is joined, by moves $-\lambda\chi_O$ with directed cycles $O$ of $G_F$, to a flow with all sizes at most $k-2$.} Proof of the claim. Use the reference orientation $G_F$, and write $v(e)=F(e)$, so $1\le v(e)\le k-1$. By Lemma~\ref{lem:cycledec}~(b), $Y=\chi_{O_1}+\dots+\chi_{O_\nu}$ with pairwise edge-disjoint directed cycles $O_1,\dots,O_\nu$ of $G_F$ \textup{(}$Y$ has values in $\{0,1\}$\textup{)}, and every arc with $Y(e)=1$ is on exactly one of them. Put $F_r=F-\lambda\,(\chi_{O_1}+\dots+\chi_{O_r})$ for $r=0,\dots,\nu$. An arc on one of $O_1,\dots,O_r$ has in $F_r$ the value $v(e)-\lambda$. It is not $0$, because $Y(e)=1$ and so $v(e)\ne\lambda$. And $v(e)-\lambda\le k-1-\lambda\le k-2$, $\lambda-v(e)\le \lambda-1\le k-3$. Every other arc keeps its value. So every $F_r$ is in $\Ik(G)$, and $F_r-F_{r-1}= -\lambda\chi_{O_r}$ is a move. In $F_\nu$ an arc on some $O_r$ has a size at most $k-2$, and an arc on no $O_r$ has $Y(e)=0$; so it is not a top of $F$, and its size $v(e)$ is at most $k-2$. This proves the claim. Now let $F$ have no arc of size $\lambda$. In the orientation $G_F$ put $x(e)=F(e)/(k-1)$. Then $0(\text{sum of $u$ over the arcs that enter $X$}), \] that is $\operatorname{out}_{k-1}(X)>\operatorname{in}(X)-\operatorname{in}_\lambda(X)$. All values are in $[1,k-1]$, and the flow out of $X$ is the flow into $X$: \[ (k-1)\operatorname{out}_{k-1}(X)\ \le\ \lambda\operatorname{in}_\lambda(X)+(k-1)\bigl(\operatorname{in}(X) -\operatorname{in}_\lambda(X)\bigr)\ \le\ \lambda\operatorname{in}_\lambda(X)+(k-1)\bigl(\operatorname{out}_{k-1}(X)-1\bigr). \] So $\lambda\operatorname{in}_\lambda(X)\ge k-1$. \end{proof} \begin{corollary}[The count of the edges]\label{cor:V3}\label{a10:V3} Let $F$ be a flow of $\Ik(G)$ that does not descend. Then for every $\lambda$ with $1\le\lambda\le k-2$ the flow $F$ has at least $\lceil(k-1)/\lambda\rceil$ arcs of size $\lambda$, and it has a top. So $|E(G)|\ge 1+\sigma(k-1)$. \end{corollary} \begin{proof} $F$ is not joined to any flow with all sizes at most $k-2$, because such a flow is in $\Ik[k-1](G)$. Corollary~\ref{a10:V2} gives the arcs of size $\lambda$, for every $\lambda$. Arcs of different sizes are different arcs. $F$ has a top, because $F$ is not in $\Ik[k-1](G)$. So $|E(G)|\ge 1+\sum_{\lambda=1}^{k-2}\lceil(k-1)/\lambda\rceil=1+\sigma(k-1)$. \end{proof} \begin{corollary}[One level at a time]\label{cor:Citer}\label{a10:Citer} Let $k_0\ge 3$, let $\Ik[k_0](G)$ be connected, and let $|E(G)|\le\sigma(k_0)$. Then $\Ik(G)$ and $\Mk(G)$ are connected for every $k\ge k_0$. \end{corollary} \begin{proof} First, $\sigma(k+1)\ge\sigma(k)$ for $k\ge 2$: for $\lambda\le k-1$ the term $\lceil(k+1)/\lambda\rceil$ is at least $\lceil k/\lambda\rceil$, and there is one more term. Induction on $k$; $k=k_0$ is the hypothesis. Let $k>k_0$, and let $\Ik[k-1](G)$ be connected. If a flow of $\Ik(G)$ does not descend, Corollary~\ref{a10:V3} gives $|E(G)|\ge 1+\sigma(k-1)\ge 1+\sigma(k_0)$, a contradiction. So every flow descends, and Lemma~\ref{a10:level}~(b) gives the step. $\Mk(G)$: Lemma~\ref{a10:image}. \end{proof} \begin{corollary}[At most $189$ edges]\label{cor:C189}\label{a10:C189} Let $G$ be a finite bridgeless loopless multigraph. \begin{condlist}{(c)} \item[\textup{(a)}] If $G$ has at most $189$ edges, then $\Ik(G)$ and $\Mk(G)$ are connected for every $k\ge 40$. \item[\textup{(b)}] If $G$ has at most $235$ edges, then they are connected for every $k\ge 48$. \item[\textup{(c)}] In general, they are connected for every $k\ge k_0$, for every base $k_0$ with $\sigma(k_0)\ge|E(G)|$. \end{condlist} \end{corollary} \begin{proof} (c) is Corollary~\ref{a10:Citer} with Theorem~\ref{thm:bases}. (a) and (b) are (c) with $\sigma(40)=189$ and $\sigma(48)=235$. The terms $\lceil 40/\lambda\rceil$ and $\lceil 48/\lambda\rceil$ are: \begin{center}\small \setlength{\tabcolsep}{3.6pt} \begin{tabular}{@{}l|ccccccccccc@{}} $\lambda$ & $1$ & $2$ & $3$ & $4$ & $5$ & $6$ & $7$ & $8$, $9$ & $10,\dots,13$ & $14,\dots,19$ & $20,\dots,39$\\ \hline $\lceil 40/\lambda\rceil$ & $40$ & $20$ & $14$ & $10$ & $8$ & $7$ & $6$ & $5$ & $4$ & $3$ & $2$ \end{tabular} \smallskip \begin{tabular}{@{}l|cccccccccccc@{}} $\lambda$ & $1$ & $2$ & $3$ & $4$ & $5$ & $6$ & $7$ & $8$, $9$ & $10$, $11$ & $12,\dots,15$ & $16,\dots,23$ & $24,\dots,47$\\ \hline $\lceil 48/\lambda\rceil$ & $48$ & $24$ & $16$ & $12$ & $10$ & $8$ & $7$ & $6$ & $5$ & $4$ & $3$ & $2$ \end{tabular} \end{center} So $\sigma(40)=40+20+14+10+8+7+6+2\cdot 5+4\cdot 4+6\cdot 3+20\cdot 2=115+16+18+40=189$, and $\sigma(48)=48+24+16+12+10+8+7+2\cdot 6+2\cdot 5+4\cdot 4+8\cdot 3+24\cdot 2=147+16+24+48=235$. \end{proof} \subsection*{Few vertices} In this subsection $k\ge 4$. For a flow $F$ of $\Ik(G)$ let $\Phi(F)=\sum_e|F(e)|$, the sum of the sizes. A \emph{failure} \textup{(}for $G$ and $k$\textup{)} is a component of $\Ik(G)$ that contains no flow of $\Ik[k-1](G)$. Put \[ S(k)=\sum_{\lambda=2}^{k-2}\Bigl\lceil\frac{k-1}{\lambda}\Bigr\rceil=\sigma(k-1)-(k-1). \] \begin{lemma}[A potential]\label{lem:N1}\label{a10:N1} Let $\mathcal{U}$ be a component of $\Ik(G)$, and let $F$ be a flow of $\mathcal{U}$ with the least $\Phi$ in $\mathcal{U}$. Then there is a map $\theta\colon V(G)\to\Z$ such that for every arc $e$ of $G_F$ from $x$ to $y$: \begin{align*} \theta(y)-\theta(x)&=1&&\text{if $e$ is a middle arc;}\\ \theta(y)-\theta(x)&\le 1&&\text{if $e$ is a $1$-arc;}\\ \theta(y)-\theta(x)&\ge 1&&\text{if $e$ is a top.} \end{align*} \end{lemma} \begin{proof} Let $R$ be the directed multigraph on $V(G)$ with the following arcs and costs. Every arc $e$ of $G_F$ from $x$ to $y$ gives an arc $x\to y$ of cost $+1$ if $F(e)\le k-2$, and an arc $y\to x$ of cost $-1$ if $F(e)\ge 2$. A middle arc gives both. \emph{Every directed cycle of $R$ has a cost of at least $0$.} Let $O$ be a directed cycle of $R$ \textup{(}distinct vertices; $R$ has no loop, because $G$ has none\textup{)}. If $O$ uses both arcs that come from one arc $e$ of $G_F$, then after the first of them $O$ is at an end of $e$, and the only arc of $O$ that leaves this vertex is the second one; so $O$ consists of these two arcs, and its cost is $0$. Otherwise $O$ uses pairwise different edges of $G$ and passes pairwise different vertices, so it is a cycle $C$ of $G$ with a direction \textup{(}two parallel edges give a cycle with $2$ edges\textup{)}. Put $F'=F+\chi_C$, with $\chi_C$ read in $G_F$. If $O$ uses the arc $x\to y$ of $e$, then $C$ passes $e$ in its direction and $F'(e)=F(e)+1\le k-1$. If $O$ uses the arc $y\to x$ of $e$, then $C$ passes $e$ against its direction and $F'(e)=F(e)-1\ge 1$. All other values are equal. So $F'$ is in $\Ik(G)$, positive on $G_F$, and adjacent to $F$; so $F'$ is in $\mathcal{U}$, and $\Phi(F')-\Phi(F)$ is the cost of $O$. Since $F$ has the least $\Phi$ in $\mathcal{U}$, the cost is at least $0$. \emph{The potential.} For a vertex $y$ let $\theta(y)$ be the least cost of a directed path of $R$ that ends at $y$ \textup{(}the path with the one vertex $y$ and no arc has cost $0$; there are finitely many paths\textup{)}. Let $x\to y$ be an arc of $R$ with cost $\kappa$, and let $P$ be a path that ends at $x$ with cost $\theta(x)$. If $y$ is not on $P$, then $P$ followed by the arc is a path that ends at $y$, so $\theta(y)\le\theta(x)+\kappa$. If $y$ is on $P$, let $P_1$ be the part of $P$ up to $y$ and $P_2$ the part from $y$ to $x$. Then $P_2$ followed by the arc $x\to y$ is a directed cycle of $R$, so $\operatorname{cost}(P_2)+\kappa\ge 0$, and $\theta(y)\le\operatorname{cost}(P_1)=\theta(x)-\operatorname{cost} (P_2)\le\theta(x)+\kappa$. In both cases $\theta(y)\le\theta(x)+\kappa$. An arc $e$ of $G_F$ from $x$ to $y$ with $F(e)\le k-2$ gives $\theta(y)-\theta(x)\le 1$. If $F(e)\ge 2$, the arc $y\to x$ of cost $-1$ gives $\theta(x)\le\theta(y)-1$. A middle arc has both; a $1$-arc has the first \textup{(}$1\le k-2$\textup{)}; a top has the second \textup{(}$k-1\ge 2$\textup{)}. \end{proof} \begin{lemma}[A forest of middle arcs]\label{lem:N2}\label{a10:N2} Every component $\mathcal{U}$ of $\Ik(G)$ contains a flow $F^*$ that has the least $\Phi$ in $\mathcal{U}$ and whose middle arcs contain no cycle of $G$. \end{lemma} \begin{proof} Among the flows of $\mathcal{U}$ with the least $\Phi$, take a flow $F$ with the least number of middle arcs. Suppose that $C$ is a cycle of $G$ all of whose edges are middle arcs of $F$. Give $C$ a direction, and take $\theta$ from Lemma~\ref{a10:N1}. Every arc of $C$ has $\theta(y)-\theta(x)=1$. The sum of $\theta(y)-\theta(x)$ over the arcs that $C$ passes in their direction, minus the same sum over the arcs that $C$ passes against their direction, is $0$, because it is a sum of differences of $\theta$ once round $C$. So $C$ passes as many arcs in their direction as against it. $C$ has at least $2$ edges, so it passes at least one arc in its direction. Put $F_j=F+j\chi_C$ \textup{(}$\chi_C$ read in $G_F$\textup{)} for $j=0,1,2,\dots$, and let $j_0\ge 1$ be the least $j$ such that $F_j$ has the value $1$ or $k-1$ on some arc of $C$. It exists, because the value of an arc that $C$ passes in its direction grows by $1$ at every step. For $jk_0$, and let $\Ik[k-1](G)$ be connected. Then $S(k)\ge S(k_0+1)\ge n$, so by Theorem~\ref{a10:N} there is no failure for $G$ and $k$: every flow of $\Ik(G)$ descends. Lemma~\ref{a10:level}~(b) gives the step, and Lemma~\ref{a10:image} gives $\Mk(G)$. (a) $S(41)=\sigma(40)-40=149$ and $S(49)=\sigma(48)-48=187$ \textup{(}Corollary~\ref{a10:C189}\textup{)}. Use (b) with the bases $40$ and $48$. (c) $S(k_0+1)=\sum_{\lambda=2}^{k_0-1}\lceil k_0/\lambda\rceil\ge k_0\bigl(\frac12+\dots+\frac1{k_0-1}\bigr)\ge k_0(\ln k_0-1)$, because $1+\frac12+\dots+\frac1{k_0-1}\ge\int_1^{k_0}\frac{dx}{x}=\ln k_0$. (d) Put $\eta=2n/\ln n$, and let $k_0$ be the least multiple of $4$ with $k_0\ge\eta$; so $k_0<\eta+4$. The function $\xi/\ln\xi$ grows for $\xi\ge 3$, and $\ln 150<5.02$; so $\eta\ge 300/5.02>59$, and $k_0\ge 60$ is a base. The function $\xi(\ln\xi-1)$ grows for $\xi\ge 1$, so $k_0(\ln k_0-1)\ge\eta(\ln\eta-1)$. And $\eta(\ln\eta-1)\ge n$ means $2(\ln 2+\ln n-\ln\ln n-1)\ge\ln n$, that is \[ \ln n-2\ln\ln n\ \ge\ 2-2\ln 2 . \] Here $\ln n\ge\ln 150>5$. The function $\xi-2\ln\xi$ grows for $\xi>2$, and at $\xi=5$ it is $5-2\ln 5>1.7$, while $2-2\ln 2<0.62$. So $k_0(\ln k_0-1)\ge n$, and (c) gives every $k\ge k_0$, in particular every $k\ge\eta+4$. \end{proof} \subsection*{Short cycles} In this subsection $F$ is a flow of $\Ik(G)$. A \emph{lift} of $F$ is a flow $\widetilde F$ of $\Ik(G)$ with $\widetilde F=F$ modulo $k$ \textup{(}edge by edge\textup{)}. Let $\Psi(F)$ be the number of arcs of $G_F$ that are $1$-arcs or tops. An edge $e$ is counted in $\Psi(F)$ if and only if $F(e)$ is $1$ or $-1$ modulo $k$; so $\Psi(F)$ depends only on $F$ modulo $k$. \emph{Residues.} Let $C$ be a cycle of $G$ with a direction. For an arc $e$ of $G_F$ on $C$ put $r(e)=F(e)$ if $C$ passes $e$ in its direction, and $r(e)=k-F(e)$ if $C$ passes $e$ against its direction. So $1\le r(e)\le k-1$, and $r(e)$ is the value of $F$ on $e$ measured in the direction of $C$, taken modulo $k$. It is the same for all lifts of $F$. If the direction of $C$ is reversed, $r(e)$ becomes $k-r(e)$. Write $C_{<\lambda}$ and $C_{>\lambda}$ for the sets of the arcs $e$ of $C$ with $r(e)<\lambda$ and with $r(e)>\lambda$. For a set $X$ of vertices and an arc $e$ of the cut of $X$ \textup{(}the edges with one end in $X$\textup{)} put $r_X(e)=F(e)$ if $e$ leaves $X$ and $r_X(e)=k-F(e)$ if $e$ enters $X$. If $C$ passes the arc $e$ of the cut \emph{into} $X$, then $r_X(e)=k-r(e)$; if $C$ passes $e$ \emph{out of} $X$, then $r_X(e)=r(e)$. \textup{(}Check the four cases: $e$ in the direction of $C$ or against it, and $e$ entering or leaving $X$ in $G_F$.\textup{)} \begin{lemma}[Lifts]\label{lem:lifts}\label{a10:lifts} \begin{condlist}{(b)} \item[\textup{(a)}] The lifts of $F$ are exactly the flows $F-kY$, where $Y$ is an integer flow of $G$ with values in $\{0,1\}$ in the orientation $G_F$. All lifts of $F$ are joined to $F$. \item[\textup{(b)}] For every set $X$ of vertices, $k\operatorname{in}(X)$ is the sum of $r_X(e)$ over the arcs $e$ of the cut of $X$. \end{condlist} \end{lemma} \begin{proof} (a) Let $\widetilde F$ be a lift, read in $G_F$. On an arc $e$ the number $\widetilde F(e)$ is $F(e)$ modulo $k$ and lies in $[-(k-1),k-1]\setminus\{0\}$; so it is $F(e)$ or $F(e)-k$. So $Y=(F-\widetilde F)/k$ is an integer flow with values in $\{0,1\}$. Conversely, for such a $Y$ the flow $F-kY$ has on every arc the value $F(e)$ in $[1,k-1]$ or $F(e)-k$ in $[-(k-1),-1]$; so it is a lift of $F$. The lifts of $F$ are the integer lifts of the reduction of $F$ modulo $k$, so they are joined by Lemma~\ref{lem:fibres}. (b) The flow out of $X$ is the flow into $X$. So the sum of $r_X$ is $\sum_{e\text{ leaves }X}F(e)+\sum_{e\text{ enters }X}\bigl(k-F(e)\bigr)=k\operatorname{in}(X)$. \end{proof} \begin{theorem}[A step after a change of lift]\label{thm:R}\label{a10:R} Let $C$ be a cycle of $G$ with a direction, and $\lambda$ an integer with $1\le\lambda\le k-1$ such that $r(e)\ne\lambda$ for every arc $e$ of $C$. The following are equivalent: \begin{condlist}{(ii)} \item[\textup{(i)}] some lift $\widetilde F$ of $F$ has $\widetilde F-\lambda\chi_C$ in $\Ik(G)$; \item[\textup{(ii)}] for every set $X$ of vertices, the number of arcs of $C_{<\lambda}$ that $C$ passes into $X$ is at most $\operatorname{in}(X)$. \end{condlist} If \textup{(i)} holds, then $F$ is joined to $\widetilde F-\lambda\chi_C$, and this flow is $F-\lambda\chi_C$ modulo $k$. \end{theorem} \begin{proof} Measure every value on an arc $e$ of $C$ in the direction of $C$. Measured so, $F$ has a value that is $r(e)$ modulo $k$. A lift $\widetilde F$ has a value that is $r(e)$ modulo $k$ and whose absolute value is in $[1,k-1]$; so it has the value $r(e)$ or $r(e)-k$. After the step it has $r(e)-\lambda$ or $r(e)-k-\lambda$. The first number is not $0$ and lies in $[-(k-2),k-2]$. The second is negative, and it is at least $-(k-1)$ exactly if $r(e)\ge\lambda+1$. The values outside $C$ do not change. So $\widetilde F-\lambda\chi_C$ is in $\Ik(G)$ if and only if $\widetilde F$ has the value $r(e)$, measured in the direction of $C$, on every arc $e$ of $C_{<\lambda}$. Write $\widetilde F=F-kY$ as in Lemma~\ref{a10:lifts}~(a). Let $C^+$ be the set of the arcs of $C_{<\lambda}$ that $C$ passes in their direction, and $C^-$ the set of those that $C$ passes against their direction. On an arc of $C^+$, $F$ has the value $r(e)$ along $C$, and $\widetilde F$ has it if and only if $Y(e)=0$. On an arc of $C^-$, $F$ has the value $-F(e)=r(e)-k$ along $C$, and $\widetilde F$ has the value $r(e)$ if and only if $Y(e)=1$. So \textup{(i)} holds if and only if there is an integer flow $Y$ in $G_F$ with $l\le Y\le u$, where $l=u=0$ on $C^+$, $l=u=1$ on $C^-$, and $l=0$, $u=1$ on all other arcs. By Theorem~\ref{q:hoffman} this holds if and only if for every $X$: \[ (\text{number of arcs of $C^-$ that leave $X$})\ \le\ \operatorname{in}(X)-(\text{number of arcs of $C^+$ that enter $X$}). \] An arc of $C^-$ that leaves $X$ is passed by $C$ into $X$, and so is an arc of $C^+$ that enters $X$; and every arc of $C_{<\lambda}$ that $C$ passes into $X$ is of one of these two kinds. So this is \textup{(ii)}. The last sentence: $F$ is joined to $\widetilde F$ by Lemma~\ref{a10:lifts}~(a), and $\widetilde F\to\widetilde F-\lambda\chi_C$ is a move. \end{proof} \begin{corollary}[A sufficient condition]\label{a10:R1} Let $C$ and $\lambda$ be as in Theorem~\ref{a10:R}. If the sum of $r(e)-1$ over the arcs $e$ of $C_{<\lambda}$ is less than $k$, then \textup{(ii)} of Theorem~\ref{a10:R} holds. In particular \textup{(ii)} holds for $\lambda=1$ \textup{(}$C_{<1}$ is empty\textup{)} and for $\lambda=2$ \textup{(}every arc of $C_{<2}$ has $r(e)=1$\textup{)}. \end{corollary} \begin{proof} Fix $X$. The cycle $C$ passes arcs of the cut of $X$ into $X$ as often as out of $X$; say $j$ times each. Let $j'$ of the $j$ arcs that $C$ passes into $X$ be in $C_{<\lambda}$. By Lemma~\ref{a10:lifts}~(b), and because $r_X\ge 1$ on every arc of the cut, \begin{align*} k\operatorname{in}(X)\ &\ge\sum_{\substack{e\in C_{<\lambda}\\ \text{passed into }X}}\bigl(k-r(e)\bigr)+(j-j')+j \ =\ j'k-\sum_{\substack{e\in C_{<\lambda}\\ \text{passed into }X}}\bigl(r(e)-1\bigr)+2(j-j')\\ &\ge\ j'k-\sum_{e\in C_{<\lambda}}\bigl(r(e)-1\bigr)\ >\ j'k-k . \end{align*} \textup{(}The $j'$ arcs of $C_{<\lambda}$ passed into $X$ have $r_X=k-r(e)$; the other $j-j'$ arcs passed into $X$, the $j$ arcs passed out of $X$, and the arcs of the cut that are not on $C$ have $r_X\ge 1$, so they add at least $(j-j')+j$; and every term $r(e)-1$ is at least $0$.\textup{)} So $\operatorname{in}(X)>j'-1$, that is $\operatorname{in}(X)\ge j'$. \end{proof} \begin{theorem}[The cleaning step]\label{thm:cut}\label{a10:clean} Let $e_0$ be a $1$-arc or a top of $F$, and let $C$ be a cycle through $e_0$, directed so that $r(e_0)=1$ \textup{(}in the direction of a $1$-arc, against the direction of a top\textup{)}. \begin{condlist}{(b)} \item[\textup{(a)}] Let $\lambda$ be an integer with $3\le\lambda\le k-3$ such that no arc of $C$ has $r(e)$ in $\{\lambda-1,\lambda,\lambda+1\}$, and such that the sum of $r(e)-1$ over $C_{<\lambda}$ is less than $k$, or the sum of $k-1-r(e)$ over $C_{>\lambda}$ is less than $k$. Then $F$ is joined to a flow $F'$ with $F'=F-\lambda\chi_C$ modulo $k$ and $\Psi(F')\le\Psi(F)-1$. \item[\textup{(b)}] Let $h\ge 0$ be an integer with $3h^2\lambda}$ is less than $k$. Let $C'$ be $C$ with the other direction; its residues are $k-r(e)$, none of them is $k-\lambda$, and $3\le k-\lambda\le k-3$. The arcs with $k-r(e)\lambda}$, and the sum of $(k-r(e))-1$ over them is less than $k$. Theorem~\ref{a10:R} and Corollary~\ref{a10:R1} for $C'$ and $k-\lambda$ give $F'$ joined to $F$ with $F'=F-(k-\lambda)\chi_{C'}=F+(k-\lambda)\chi_C=F-\lambda\chi_C$ modulo $k$. The count. An edge outside $C$ keeps its value modulo $k$. An arc $e$ of $C$ has in $F'$ the value $r(e)-\lambda$ modulo $k$, measured in the direction of $C$. It is counted in $\Psi(F')$ if and only if $r(e)-\lambda$ is $1$ or $-1$ modulo $k$. Since $r(e)-\lambda$ lies in $[4-k,k-4]$, this means $r(e)=\lambda+1$ or $r(e)=\lambda-1$, which is excluded. So no edge of $C$ is counted in $\Psi(F')$, while $e_0$ is counted in $\Psi(F)$. (b) First case: at most $h$ arcs of $C$ have $r(e)$ in $I_{\mathrm{low}}$. Look at the $3h+1$ integers $\lambda$ in $[3,3h+3]$. An arc with $r(e)$ in $I_{\mathrm{low}}$ has $r(e)$ in $\{\lambda-1,\lambda, \lambda+1\}$ for at most $3$ of them. An arc with $r(e)=1$ or $r(e)\ge 3h+5$ has this for none of them, because $\lambda-1\ge 2$ and $\lambda+1\le 3h+4$. So at most $3h$ values of $\lambda$ are excluded, and some $\lambda$ in $[3,3h+3]$ has no arc of $C$ with $r(e)$ in $\{\lambda-1,\lambda,\lambda+1\}$. For this $\lambda$, an arc of $C_{<\lambda}$ has $r(e)=1$, or $2\le r(e)\le\lambda-2$; the arcs of the second kind have $r(e)$ in $I_{\mathrm{low}}$, so there are at most $h$ of them, each with $r(e)-1\le\lambda-3\le 3h$. So the sum of $r(e)-1$ over $C_{<\lambda}$ is at most $3h^2\lambda}$ has $r(e)=k-1$, or $\lambda+2\le r(e)\le k-2$; the arcs of the second kind have $r(e)$ in $I_{\mathrm{high}}$, so there are at most $h$ of them, each with $k-1-r(e)\le k-3-\lambda\le 3h$. So the sum of $k-1-r(e)$ over $C_{>\lambda}$ is at most $3h^2(k-2)\operatorname{in}(X)$. Then $\operatorname{out}(X)\ge 1$, the flow out of $X$ is positive, so is the flow into $X$, and $\operatorname{in}(X)\ge 1$; hence $\operatorname{out}(X)\ge k-1$. Every arc that leaves $X$ and is not a $1$-arc has a value of at least $2$: \[ (k-1)\operatorname{in}(X)\ \ge\ \text{flow into }X\ =\ \text{flow out of }X\ \ge\ \operatorname{out}_1(X) +2\bigl(\operatorname{out}(X)-\operatorname{out}_1(X)\bigr). \] With $\operatorname{in}(X)\le(\operatorname{out}(X)-1)/(k-2)$ this gives \begin{align*} \operatorname{out}_1(X)\ &\ge\ 2\operatorname{out}(X)-\frac{(k-1)(\operatorname{out}(X)-1)}{k-2} \ =\ \frac{(k-3)\operatorname{out}(X)+(k-1)}{k-2}\\ &\ge\ \frac{(k-3)(k-1)+(k-1)}{k-2}\ =\ k-1 . \end{align*} Also the flow into $X$ is at least $\operatorname{out}(X)>(k-2)\operatorname{in}(X)$, so some arc that enters $X$ has a value greater than $k-2$: it is a top. So the cut of $X$ contains at least $k$ arcs that are $1$-arcs or tops of $F'$. By (a) none of them is short. This contradicts the hypothesis. So $F'$, and hence every flow, descends. (c) Take $h=3$. For every $k\ge 41$: $27