\documentclass[11pt,letterpaper]{article} \usepackage[T1]{fontenc} \usepackage{lmodern,microtype,amsmath,amssymb,amsthm} \usepackage[margin=1in]{geometry} \usepackage[hidelinks]{hyperref} \hypersetup{pdftitle={A Turan number with no asymptotic leading coefficient},pdfauthor={Yuanpei Wang and Xiamiao Zhao}} \newtheorem{theorem}{Theorem}[section] \newtheorem*{esconjecture}{Conjecture} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newcommand{\D}{\mathcal D} \newcommand{\FF}{\mathbb F} \DeclareMathOperator{\ex}{ex} \renewcommand{\qedsymbol}{\(\blacksquare\)} \setlength{\emergencystretch}{1em} \raggedbottom \title{A Tur\'an number with no asymptotic leading coefficient} \author{Yuanpei Wang\thanks{\raggedright Department of Mathematics, Shanghai University, Shanghai 200444, P.R. China. \href{mailto:boyuan@shu.edu.cn}{\texttt{boyuan@shu.edu.cn}}.} \qquad Xiamiao Zhao\thanks{\raggedright Department of Mathematical Sciences, Tsinghua University, Beijing 100084, P.R. China. \href{mailto:zxm23@mails.tsinghua.edu.cn}{\texttt{zxm23@mails.tsinghua.edu.cn}}.}} \date{} \makeatletter \renewcommand{\@maketitle}{% \begin{center} \let\footnote\thanks {\LARGE\@title\par}\vspace{1.9em} {\large\begin{tabular}[t]{c}\@author\end{tabular}\par} \end{center}\vspace{.3em}} \makeatother \pagestyle{plain} \begin{document} \maketitle \begin{abstract} We construct a family \(\D\) of two \(2\)-connected bipartite graphs, on six and twenty-two vertices, for which \(\ex(n,\D)=\Theta(n^{3/2})\) and \(\ex(n,\D)/n^{3/2}\) does not converge. This disproves the conjecture of Erd\H{o}s and Simonovits on the existence of an asymptotic leading coefficient for finite forbidden families. The upper limit is \(\sqrt3/2\), and the normalized extremal number approaches it along \(n_i\to\infty\) exactly when \(n_i\sim 3^{2j_i-1}\) for some integers \(j_i\). These vertex orders arise from the orders of a finite abelian group and a subgroup recovered from common neighbourhoods. We also determine the upper limit and the corresponding vertex orders for bipartite hosts. \end{abstract} \section{Introduction} For a finite family \(\mathcal F\) of graphs, let \(\ex(n,\mathcal F)\) be the maximum number of edges in an \(n\)-vertex graph containing no member of \(\mathcal F\) as a subgraph. All graphs are finite and simple. For a single forbidden bipartite graph \(H\), Erd\H{o}s and Simonovits \cite{ES70} asked whether \(\ex(n,H)/n^\alpha\) has a limit when \(\ex(n,H)=\Theta(n^\alpha)\). In 1982 they formulated the following conjecture for finite families. \begin{esconjecture}[Erd\H{o}s--Simonovits {\cite[Conjecture~2]{ES}}] For each finite family \(\mathcal F\) containing at least one bipartite graph, there are real constants \(\alpha_{\mathcal F}\ge1\) and \(\beta_{\mathcal F}>0\) such that \[ \lim_{n\to\infty}\frac{\ex(n,\mathcal F)}{n^{\alpha_{\mathcal F}}} =\beta_{\mathcal F}. \] \end{esconjecture} Erd\H{o}s and Simonovits suggested that the exponent should be rational. F\"uredi and Simonovits \cite{FS} later included rationality in the statement of the conjecture. Our example consists of the two graphs in \(\D=\{K_{2,4},F\}\). To define \(F\), take ten distinct points \(a,b,c,e,p,q,r,s,f,t\) and the six triples \[ abp,\quad epq,\quad qcf,\qquad bcr,\quad ers,\quad ast, \] where \(uvw\) denotes \(\{u,v,w\}\). For each triple add two new vertices, each joined to its three points. These twelve new vertices are all distinct. \begin{theorem}\label{thm:main} The family \(\D=\{K_{2,4},F\}\) consists of two \(2\)-connected bipartite graphs, on six and twenty-two vertices, and satisfies \(\ex(n,\D)=\Theta(n^{3/2})\). The sequence \(\ex(n,\D)/n^{3/2}\) does not converge, and \[ \limsup_{n\to\infty}\frac{\ex(n,\D)}{n^{3/2}}=\frac{\sqrt3}{2}. \] \end{theorem} \begin{theorem}\label{thm:orders} For this family and every sequence of integers \(n_i\to\infty\), \[ \frac{\ex(n_i,\D)}{n_i^{3/2}}\longrightarrow\frac{\sqrt3}{2} \quad\Longleftrightarrow\quad n_i=(1+o(1))\,3^{2j_i-1}\quad\text{for some positive integers }j_i. \] \end{theorem} The order estimate forces \(\alpha_{\D}=3/2\). Along the odd powers of three, Theorem~\ref{thm:orders} then forces \(\beta_{\D}=\sqrt3/2\). For \(n_i=3^{2i}\), the ratio \(n_i/3^{2j-1}\) is at most \(1/3\) or at least \(3\) for every integer \(j\). By the same theorem, the normalized extremal number stays a fixed positive distance below \(\sqrt3/2\) along the even powers of three. Thus no choice of \(\alpha_{\D},\beta_{\D}\) satisfies the conjecture. For \(K_{2,4}\) alone, F\"uredi \cite{Fur} proved that \(\ex(n,K_{2,4})=(\sqrt3/2+o(1))n^{3/2}\). Adding the single graph \(F\) preserves the exponent and the upper limit and restricts the orders along which that limit is approached. Both forbidden graphs contain a cycle, as in Verstra\"ete's formulation \cite{Ver}.\footnote{For unrestricted finite families, Lefkowitz observed that \(\ex(n,\{K_{1,2},2K_2\})=1\) for \(n\ge2\), since two distinct edges either meet or form a matching. Wigderson \cite{Wig} records this observation in connection with the compactness conjecture.} Whether a single forbidden bipartite graph containing a cycle can give such nonconvergence remains open. The inverse problem, commonly called the rational exponents conjecture, asks which exponents can be realized. For every prescribed rational \(r\in(1,2)\), one seeks a graph \(H_r\) with \(\ex(n,H_r)=\Theta(n^r)\). Bukh and Conlon \cite{BC} established the finite-family version. Conlon and coauthors \cite{CJJ} present the proof announced by Epoch AI for a single forbidden graph at each such exponent. The 1982 conjecture starts with a prescribed family and asks for a positive limit. For the family \(\D\), the rational exponent \(3/2\) gives the correct order of growth, while the normalized extremal number has no limit. For bipartite hosts, let \(z(n,\mathcal F)\) denote the corresponding maximum on \(n\) vertices in total, with arbitrary part sizes. \begin{proposition}\label{prop:bip} For the same family, \(z(n,\D)=\Theta(n^{3/2})\), and \(z(n,\D)/n^{3/2}\) does not converge. Its upper limit is \(\sqrt3/2^{3/2}\). For every sequence \(n_i\to\infty\), \[ \frac{z(n_i,\D)}{n_i^{3/2}}\longrightarrow\frac{\sqrt3}{2^{3/2}} \quad\Longleftrightarrow\quad n_i=(1+o(1))\,2\cdot3^{2j_i-1}\quad\text{for some positive integers }j_i. \] \end{proposition} The ordinary lower-bound graph is a colour class in a construction of Lazebnik and Mubayi \cite{LM}. The graph \(F\) comes from the ten-point squashed square of Kr\'al', M\'a\v{c}ajov\'a, P\'or and Sereni \cite{KMPS}, who used forbidden configurations to characterize affine Steiner triple systems. In our setting, a point completes a pair if the three points have at least two common neighbours. A pair can have up to three completions. Comparing two computations along the six triples of the squashed square forces almost every pair to have a unique completion. We recover a finite abelian group \(K\) on almost all points and show that typical neighbourhoods are close to cosets of subgroups \(J\le K\). The codegree bound forces exponent two or three, and \(|J|^2/|K|\to3\) determines the possible orders. For bipartite hosts the argument applies to one part, giving the factor of two in Proposition~\ref{prop:bip}. \section{The forbidden graphs and the lower bounds} The graph \(F\) has \(36\) edges. Its six defining triples form the configuration \(C_S^1\) of \cite{KMPS}. The correspondence with the labels in their Figure~4 is \[ (\xi,x_0,\gamma_1,\gamma_2,\alpha_1,\beta_1,\beta_2,\delta_1, x_{\alpha\beta},x_{\gamma\delta}) \longmapsto (b,e,c,r,s,a,p,q,t,f). \] Join two of the ten points of \(F\) when they lie in a common triple. In this auxiliary graph start with the cycle \(a,p,q,c,r,s,a\). Each of \(b,e\) has four neighbours on the cycle, and each of \(f,t\) has two. Thus deleting any one point leaves the auxiliary graph connected. Every surviving point adjacency can be realized in \(F\) through either of the two vertices for its triple, and every such vertex keeps a neighbour when a point is deleted. Deleting one of the twelve new vertices leaves its twin, so \(F\) is \(2\)-connected. \begin{proposition}\label{prop:construction} For every power \(q=3^j\), \(j\ge1\), put \(m_q=q^2/3\). There is a \(\D\)-free graph on \(m_q\) vertices with \(q(m_q-1)/2\) edges, and a \(\D\)-free bipartite graph on \(2m_q\) vertices with \(qm_q\) edges. Both have maximum degree at most \(q\). \end{proposition} \begin{proof} Write \(V=\FF_q\times(\FF_q/\FF_3)\), where the quotient is taken in the additive group. Denote the coset of \(u\in\FF_q\) by \(\bar u\). On two copies of \(V\) join \((x,Y)\) and \((a,B)\) when \[ Y+B=\overline{ax}. \] Denote the bipartite graph by \(B_q\). The relation is symmetric, so it also defines a simple graph \(P_q\) on one copy of \(V\) by joining distinct labels that satisfy it. The graph \(P_q\) is the zero-coset colour class in the construction of Lazebnik and Mubayi \cite{LM}, with uniformity two and additive subgroup \(\FF_3\). For each label there are \(q\) related labels, one for every choice of first coordinate. There are precisely \(q\) diagonal solutions in one copy, since for each \(x\), \(2Y=\overline{x^2}\) has one solution. This gives both edge counts and the degree bound. Distinct labels on the same side of \(B_q\) with equal first coordinate have no common neighbour. If \(P_i=(x_i,Y_i)\), \(i=1,2\), have \(x_1\ne x_2\), the first coordinate of a common neighbour ranges over a coset of \((x_1-x_2)^{-1}\FF_3\), and determines its second coordinate. Thus there are exactly three common neighbours. They all see \(P_3=-P_1-P_2\), by the defining equation and \(-2=1\) in characteristic three. Its first coordinate differs from \(x_1,x_2\). The relation is symmetric, so any two of the three common neighbours have precisely \(P_1,P_2,P_3\) in common. Consequently \(B_q\) avoids \(K_{2,4}\), and any three distinct points on one side with two common neighbours sum to zero. In a copy of \(F\), connectedness forces the ten point vertices to lie on one side of \(B_q\). Reading the three zero-sum equations for \(abp,epq,qcf\) in order gives \(f=e-a-b-c\). The equations for \(bcr,ers,ast\) give \(t=e-a-b-c\), contradicting the distinctness of \(f,t\). Thus \(B_q\) is \(\D\)-free. A copy of either forbidden graph in \(P_q\) would lift to \(B_q\) by placing its vertex classes in different copies of \(V\). \end{proof} \section{Pairs and their completions} Counting paths of length two, as in the proof of the K\H{o}v\'ari--S\'os--Tur\'an bound \cite{KST}, also yields information about degrees and codegrees near equality. Write \(N(v)\) for the neighbourhood of \(v\) and \(d(v)=|N(v)|\). The codegree of two distinct vertices is the number of their common neighbours. \begin{lemma}\label{lem:count} Every \(K_{2,4}\)-free graph on \(n\) vertices has at most \((\sqrt3/2)n^{3/2}+O(n)\) edges. If the graph is bipartite, the bound is \((\sqrt3/2^{3/2})n^{3/2}+O(n)\). Let \(G\) run through a sequence of \(K_{2,4}\)-free graphs approaching the relevant upper coefficient as \(n\to\infty\). In the ordinary case put \(S=W=V(G)\). In the bipartite case let \(S,W\) be its two parts. Put \(m=|S|\). Then \(|W|=(1+o(1))m\), and for each choice \(C=S,W\), \[ \sum_{v\in C}\bigl(d(v)-\sqrt{3m}\bigr)^2=o(m^2). \] In particular \(\Delta(G)=o(m)\), and all but \(o(m^2)\) unordered pairs of different vertices in each of \(S,W\) have codegree three. \end{lemma} \begin{proof} Every pair of distinct vertices has codegree at most three. Write \(M=e(G)\). Counting paths of length two by their middle vertex and by their unordered endpoints gives \[ \frac{2M^2}{n}-M\le\sum_v\binom{d(v)}2\le3\binom n2, \] where the first inequality is Cauchy--Schwarz. This yields the ordinary bound. For a bipartite graph with part sizes \(a\le b\), count paths whose middle vertex lies in the larger part to get \(M^2/b-M\le3a(a-1)\). Solving this quadratic inequality gives \(M\le\sqrt3\,a\sqrt b+b\). Since \(x\sqrt{1-x}\) is strictly increasing on \([0,1/2]\), the claimed bound follows by putting \(x=a/n\). When the normalized edge count tends to \(\sqrt3/2^{3/2}\), we must have \(a/n\to1/2\). For \(C=S\) or \(W\), let \(P\) be its opposite part in the bipartite case and \(V(G)\) in the ordinary case. Then \(|C|,|P|\sim m\). The sum of the degrees over \(C\) equals \(M\) in the bipartite case and \(2M\) in the ordinary case. In either case it is \((\sqrt3+o(1))m^{3/2}\). Counting paths with centre in \(C\) gives \[ \frac{1}{|C|}\Big(\sum_{v\in C}d(v)\Big)^2 \ \le\ \sum_{v\in C}d(v)^2 \ \le\ 3|P|(|P|-1)+\sum_{v\in C}d(v). \] Thus the second moment is \((3+o(1))m^2\). Expanding the squared differences in the statement proves the displayed estimate, which also bounds every individual degree by \(\sqrt{3m}+o(m)\). Finally the sum of the codegrees over the unordered pairs in \(P\) is \(\sum_{v\in C}\binom{d(v)}2=(3/2+o(1))m^2\). The difference from \(3\binom{|P|}2\) is \(o(m^2)\). Every pair of codegree less than three contributes at least one to the difference. \end{proof} A partial Steiner triple system on \(S\) is a collection of three-element subsets such that every pair lies in at most one triple. We write \(s(x,y)=z\) when \(\{x,y,z\}\) is a triple. Diagonal entries and pairs belonging to no triple are left undefined. Thus \(s\) is symmetric and, for fixed \(x\), the map \(y\mapsto s(x,y)\) is an involution on its domain. In particular every row is injective. \begin{lemma}\label{lem:completion} In the setting of Lemma~\ref{lem:count}, suppose also that \(G\) contains no \(F\). There is a partial Steiner triple system on \(S\) whose completion \(s(x,y)\) is defined on all but \(o(m^2)\) ordered pairs. For each of its triples, all three pairs have the same three common neighbours, adjacent to the entire triple. For all but \(o(m)\) choices of \(e\in S\), the row \(s(e,\cdot)\) has \(o(m)\) missing entries and \[ u\circ v=s(e,s(u,v)) \] is a symmetric partial operation with injective rows. It is defined on all but \(o(m^2)\) pairs, and on all but \(o(m^3)\) triples \((a,b,c)\) both products \((a\circ b)\circ c\) and \(a\circ(b\circ c)\) are defined and equal. \end{lemma} \begin{proof} For distinct \(x,y\in S\), let \(T(x,y)\) consist of the points \(z\in S\setminus\{x,y\}\) such that \(x,y,z\) have at least two common neighbours in \(W\). Put \(T(x,x)=\varnothing\). This relation is symmetric in the three points. Each pair has at most three common neighbours. Any two of them have at most one common neighbour in addition to \(x,y\), so \(|T(x,y)|\le3\). Call a pair of distinct points regular if it has three common neighbours and every two of these have three common neighbours themselves. By Lemma~\ref{lem:count}, only \(o(m^2)\) pairs fail the first condition. Each pair in \(W\) of codegree less than three accounts for at most three pairs of points, so only \(o(m^2)\) more fail the second. For a regular pair \(x,y\), any two of its common neighbours have a third common point besides \(x,y\), giving a member of \(T(x,y)\). In particular, \(T\) is nonempty on all but \(o(m^2)\) ordered pairs. For distinct \(x,y,z\in S\), let \(k(x,y,z)=\binom{d(x,y,z)}2/3\), where \(d(x,y,z)\) is their number of common neighbours. Set \(k=0\) on repeated points. These weights are symmetric. For fixed \(x,y\), each pair of their common neighbours contributes to at most one term of \(\sum_z3k(x,y,z)\). Thus the sum of the weights \(k(x,y,z)\) is at most one, with equality on every regular pair. At input \((x,y)\), choose \(z\) with probability \(k(x,y,z)\), assigning any remaining probability to an undefined output. Choose \(a,b,c,e\) independently and uniformly from \(S\). Apply the sampling rule with independent choices at the six steps below. \[ \begin{array}{lll} p\in T(a,b),& q\in T(e,p),& f\in T(q,c),\\ r\in T(b,c),& u\in T(e,r),& t\in T(a,u). \end{array} \] An expression with an undefined input is left undefined. To realize a choice, order its outputs and use three slots, giving each point \(z\) exactly \(3k(x,y,z)\) slots and leaving the others empty. Choose one slot uniformly. For a fixed slot and one fixed input, each defined output has at most three preimages by symmetry of \(T\). Call the set of generators appearing in an expression its support. Every generator of an expression occurs just once in it. With the slots and all but one generator in the support fixed, a given output has at most \(3^3=27\) preimages, since each expression involves at most three successive choices. At every step the two input expressions have disjoint nonempty supports. Leaving one generator in each support free, each ordered pair of input values occurs at most \(27^2\) times. The chance that both inputs are defined and form an irregular pair is therefore \(o(1)\) at each step. Regular pairs have no empty slots, so all six choices are defined with probability \(1-o(1)\). The only point expressions with the same support are \(f,t\). Expressions of different support coincide with probability at most \(27/m\), by varying a generator in their symmetric difference. Thus, with probability \(1-o(1)\), a discrepancy \(f\ne t\) would give ten distinct points. Each of the six triples has at least two and at most three common neighbours, which we call its witnesses. Write \(\Delta=\Delta(G)=o(m)\). If a point expression is a witness for a triple, it must be adjacent to each of its two input points. At least one input has different support from the point expression. Varying a generator in their symmetric difference bounds the probability of this adjacency by \(27\Delta/m\). For two triples whose output supports differ, choose a generator in one support and outside the other. The latter witness set is then fixed and has size at most three, whereas an input to the former triple takes any given value at most \(27\) times as that generator varies. The probability that the triples share a witness is at most \(81\Delta/m\). For the two remaining triples, with outputs \(f,t\), a shared witness would be adjacent to \(a,c,q\). Except when \(a=c\), fix \(a,c,e\) and vary \(b\). There are at most three common neighbours of \(a,c\), and each value of \(q\) has at most \(27\) preimages, giving the same bound. Outside an event of probability \(o(1)\), the six witness sets are therefore disjoint from each other and from the ten point labels. If \(f\ne t\), two witnesses per triple would then give a copy of \(F\). Hence \(f=t\) with probability \(1-o(1)\). Condition on the generators and all choices except the slot for \(f\). If the other expressions are defined and \(|T(q,c)|\ge2\), some output different from \(t\) has probability at least \(1/3\). It follows that the probability that \(q\) is defined and \(|T(q,c)|\ge2\) is \(o(1)\). By symmetry, \(\Pr(p=z)=m^{-2}\sum_{a,b}k(a,z,b)\le 1/m\) for each \(z\). Since \(e\) is independent of \(p\), the same bound gives \(\Pr(q=z)=m^{-1}\sum_{e,v}\Pr(p=v)k(e,z,v)\le1/m\). The probabilities \(\Pr(q=z)\) sum to \(1-o(1)\), so their total deficit from the uniform probabilities is \(o(1)\). As \(c\) is independent of \(q\), only \(o(m^2)\) ordered pairs have more than one completion. Take as triples all three-point sets with three common neighbours. Every pair in such a triple has exactly these three common neighbours. Any two of them already have the three points as their entire common neighbourhood, so the third point is its unique completion in \(T\). These triples therefore form a partial Steiner triple system. They cover every regular pair \(x,y\) for which \(T(x,y)=\{z\}\), since any two common neighbours of \(x,y\) have \(z\) as their third common point. The resulting partial operation \(s\) is consequently defined on all but \(o(m^2)\) pairs. In the six choices above, the probability of reaching an ordered input on which \(s\) is undefined, with both arguments defined, is \(o(1)\) by the same bound for arguments with disjoint supports. Wherever \(s\) is defined it is the unique original choice. Thus the six evaluations with \(s\) are defined and give \(f=t\) with probability \(1-o(1)\). To apply \(s(e,\cdot)\) once more, fix \(a,c,e\) and vary \(b\). The defined values of \(f\) are distinct, since each row of \(s\) is injective. The number of choices lost is at most the number of missing entries in row \(e\), which averages \(o(m)\). It follows that the claimed associativity test succeeds with probability \(1-o(1)\). Averaging over \(e\) gives the stated associativity and row estimates for all but \(o(m)\) choices of \(e\). For such an \(e\), composing with its row loses at most \(m\cdot o(m)\) defined products by row injectivity. Symmetry and partial row injectivity persist under this composition. \end{proof} \section{Recovering an abelian group} Gowers and Long \cite{GL} describe a result of Levi on recovering a group from an everywhere-defined cancellative operation that is associative on almost all triples. The following lemma gives a group for a symmetric partial operation defined on almost all pairs. \begin{lemma}\label{lem:group} Let $S$ be a set of size $m$, where $m\to\infty$, and let $\circ$ be a symmetric partial operation on $S$, defined on all but $o(m^2)$ ordered pairs. Suppose each partial map $x\mapsto a\circ x$ is injective. Suppose also that, for all but $o(m^3)$ triples $(a,b,x)\in S^3$, both sides of \[ (a\circ b)\circ x=a\circ(b\circ x) \] are defined and equal. Then there are a finite abelian group $K$ of order $(1+o(1))m$, a set $U\subseteq S$ of size $(1-o(1))m$, and an injection $\phi:U\to K$ such that, for all but $o(m^2)$ pairs $(a,b)\in S^2$, the labels $a,b,a\circ b$ belong to $U$ and $\phi(a\circ b)=\phi(a)+\phi(b)$. \end{lemma} \begin{proof} Call a pair $(a,b)$ good if $a\circ b$ is defined and both orders $(a,b),(b,a)$ pass the stated associativity test on all but $\delta m$ inputs. By averaging we may take $\delta=o(1)$ so that all but $o(m^2)$ pairs are good. A second averaging gives a set $U$ of $(1-o(1))m$ labels, each lying in good pairs with all but $o(m)$ labels, uniformly. Retain good pairs with both inputs and their output in $U$. Row injectivity ensures that each row in $U$ loses at most $|S\setminus U|$ entries through its output. Thus each retained row covers a proportion $1-o(1)$ of $U$. Complete each retained row to a permutation $A_a$ of $U$, and use normalized Hamming distance $d$ on permutations. Distinct rows have distance $1-o(1)$ by column injectivity. If $(a,b)$ is retained and $a\circ b=c$, then $d(A_aA_b,A_c)=o(1)$. Indeed, apart from the inputs failing associativity, each of $A_b(x),A_a(A_b(x)),A_c(x)$ uses a new entry on only $o(|U|)$ inputs. All error bounds below are uniform over words of bounded length in the permutations $A_a^{\pm1}$. For every such word $w$, \[ d(wA_x,A_{w(x)})=o(1)\qquad \text{for all but }o(|U|)\text{ choices of }x. \] For $w=A_a$ this is the preceding estimate on retained pairs. Substitution of $A_a^{-1}(x)$ gives the inverse case. Induction follows from the triangle inequality and the invariance of $d$ under left and right multiplication. For each $w$, call the inputs supplied by this induction good for $w$. Let $P$ consist of the words of length at most two, including the identity. For $u,v\in P$, choose an input good for both. If $u(x)=v(x)$ then $d(u,v)=o(1)$. If $u(x)\ne v(x)$, separation of rows gives $d(u,v)=1-o(1)$. Thus $d(u,v)<1/2$ defines an equivalence relation on $P$. Every bounded word $w$ is within $o(1)$ of an element of $P$. Indeed, at a good input $x$ the preceding estimate gives $d(w,A_{w(x)}A_x^{-1})=o(1)$. Multiply two classes by replacing the product of their representatives by such an element of $P$. Any choices differ by $o(1)$, by invariance and the triangle inequality. Both parenthesizations of a triple product are likewise within $o(1)$ of the same word. The classes form a group $K$, with identity and inverses induced by the corresponding words. The map $a\mapsto[A_a]$ is injective. For one representative $w$ per class the sets of pairs $(x,w(x))$ with $x$ good for $w$ are disjoint, since agreement at a common good input implies equivalence. Counting in $U^2$ gives $|U|\le |K|\le(1+o(1))|U|$. On every retained pair $[A_a][A_b]=[A_{a\circ b}]=[A_b][A_a]$. Hence each $[A_a]$ commutes with more than half of $K$ and is central. The centre itself contains more than half of $K$, so $K$ is abelian. \end{proof} \begin{lemma}\label{lem:affine} Let $s$ be a symmetric partial operation on $S$, defined on all but $o(m^2)$ ordered pairs, whose rows are injective and for which $s(b,w)=a$ implies $s(a,b)=w$ and $s(a,w)=b$. Suppose that for some $e\in S$ the operation $u\circ v=s(e,s(u,v))$ satisfies the hypotheses of Lemma~\ref{lem:group}. For the group $K$ and injection $\phi$ in that lemma, there is an element $h\in K$ such that \[ \phi(s(u,v))=h-\phi(u)-\phi(v) \] for all but $o(m^2)$ ordered pairs $(u,v)\in S^2$, with all terms defined. \end{lemma} \begin{proof} Write $\tau(w)=s(e,w)$ wherever this is defined. Given a pair $(b,w)$ for which $a=s(b,w)$ exists, the pairs $(a,b)$ and $(a,w)$ determine $(b,w)$ uniquely in each case by the hypotheses on $s$. Thus, for all but $o(m^2)$ choices of $(b,w)$, the conclusion of Lemma~\ref{lem:group} holds on both $(a,b)$ and $(a,w)$. It gives \[ \phi(a)+\phi(b)=\phi(\tau(w)),\qquad \phi(a)+\phi(w)=\phi(\tau(b)). \] Consequently $\phi(w)+\phi(\tau(w))=\phi(b)+\phi(\tau(b))$ for all but $o(m^2)$ pairs, with all four labels in the domain of $\phi$. Fix a $b$ for which this holds for all but $o(m)$ choices of $w$, and denote the common value by $h$. Now let $a=s(u,v)$. Each of the $o(m)$ exceptional values of $a$ occurs for at most $m$ ordered pairs $(u,v)$, by row injectivity. Hence for all but $o(m^2)$ pairs we have both $\phi(a)+\phi(\tau(a))=h$ and $\phi(\tau(a))=\phi(u\circ v)=\phi(u)+\phi(v)$, as required. \end{proof} \section{Neighbourhoods and the orders approaching the upper limits} If \(h-x-y\) lies in a set \(A\) for almost every pair \(x,y\in A\), then \(A\) differs from a coset by \(o(|A|)\) elements. \begin{lemma}\label{lem:subgroupsize} Let \(K\) be a finite abelian group, let \(A\subseteq K\) be nonempty, and let \(h\in K\). Suppose that for a proportion \(1-\varepsilon\) of the ordered pairs \((x,y)\in A^2\) we have \(h-x-y\in A\). If \(0\le\varepsilon<1/36\), there is a subgroup \(J\le K\) with \[ (1-\sqrt\varepsilon)|A|\ \le\ |J|\ \le\ \frac{|A|}{1-2\sqrt\varepsilon}. \] Moreover, some coset \(C\) of \(J\) satisfies \(|A\mathbin{\triangle}C|\le 5\sqrt\varepsilon\,|A|\). \end{lemma} \begin{proof} For \(a\in A\) consider the reflection \(R_a(x)=h-a-x\). Let \(A'\) be the set of \(a\in A\) for which at most \(\sqrt\varepsilon |A|\) elements \(x\in A\) satisfy \(R_a(x)\notin A\). Counting the exceptional pairs gives \(|A'|\ge(1-\sqrt\varepsilon)|A|\). The sets \(A\) and \(R_a(A)\) have equal size, so for \(a\in A'\) their symmetric difference has size at most \(2\sqrt\varepsilon |A|\). Put \(J=A'-A'\). Since \(R_aR_b(x)=x+b-a\), for \(j\in J\) we have \(|A\mathbin{\triangle}(A+j)|\le4\sqrt\varepsilon |A|\). For \(j,k\in J\), two applications of this bound give \(|A\mathbin{\triangle}(A+j+k)|\le8\sqrt\varepsilon |A|\). Consequently \[ |A'\cap(A'+j+k)|\ge |A\cap(A+j+k)|-2|A\setminus A'| \ge (1-6\sqrt\varepsilon)|A|>0. \] It follows that \(j+k\in A'-A'=J\). Since \(J\) contains zero and is closed under negation, it is a subgroup. A translate of \(A'\) lies in \(J\), proving the lower bound on \(|J|\). For each \(j\in J\), the intersection \(|A\cap(A+j)|\) is at least \((1-2\sqrt\varepsilon)|A|\). The sum of these intersection sizes over \(J\) counts a subset of the ordered pairs of elements of \(A\), according to their difference. Thus \((1-2\sqrt\varepsilon)|A||J|\le |A|^2\), proving the upper bound. For any \(a_0\in A'\), the coset \(C=a_0+J\) contains \(A'\). Hence \(|A\mathbin{\triangle}C|\le |J|-|A|+2|A\setminus A'|\le5\sqrt\varepsilon\,|A|\), since \(\sqrt\varepsilon<1/6\). \end{proof} \begin{proposition}\label{prop:size} Let \(G\) run through a sequence of \(\D\)-free graphs approaching the ordinary or bipartite upper coefficient of Lemma~\ref{lem:count}. With \(S,W,m\) as there, we have \(m=(1+o(1))3^{2j-1}\) for some sequence of positive integers \(j\). \end{proposition} \begin{proof} Fix an origin as in Lemma~\ref{lem:completion} and apply Lemmas~\ref{lem:group} and~\ref{lem:affine}. They give an injection \(\phi:U\to K\), where \(U\subseteq S\), \(|U|\sim|K|\sim m\), and \(K\) is abelian. We identify \(U\) with its image. For all but \(o(m^2)\) ordered pairs of points \(x,y\), the three labels \(x,y,s(x,y)\) are represented and \(s(x,y)=h-x-y\). By Lemma~\ref{lem:completion}, each such pair has three common neighbours, all of which see \(s(x,y)\). Call every pair failing any of these conclusions bad, including diagonal pairs. Put \(d=\sqrt{3m}\) and \(A_w=N(w)\cap U\). Each distinct bad pair occurs in at most three neighbourhoods, and diagonal pairs contribute only \(\sum_{w\in W}d(w)=O(m^{3/2})\) incidences. Thus \[ \sum_{w\in W}\#\{(x,y)\in N(w)^2:(x,y)\text{ is bad}\}=o(m^2). \] By this estimate and Lemma~\ref{lem:count}, all but \(o(m)\) centres \(w\) have \(d(w)=(1+o(1))d\) and \(o(m)\) bad pairs, uniformly after choosing the error thresholds to tend to zero sufficiently slowly. Call these centres good. Each unrepresented neighbour of a good centre gives \(d(w)\) bad ordered pairs with that first entry. Hence \(|A_w|=(1+o(1))d\). For every remaining ordered pair in \(A_w^2\), the point \(h-x-y=s(x,y)\) also belongs to \(A_w\). By Lemma~\ref{lem:subgroupsize}, there is a coset \(C_w\) of a subgroup \(J_w\le K\) with \(|A_w\mathbin\triangle C_w|=o(d)\) and \(|J_w|\sim d\), uniformly over the good centres. Fix a good centre \(w\). If \(x,y\) are independently uniform in \(C_w\), the point \(2y-x\) is uniform in \(C_w\), since for fixed \(y\) the map \(x\mapsto 2y-x\) permutes the coset. Hence \(2y-x\in A_w\) for all but \(o(d^2)\) pairs in \(A_w^2\). Indeed, pairs with an input in \(A_w\setminus C_w\) contribute \(o(d^2)\), and at most \(|C_w|\,|C_w\setminus A_w|\) pairs in \(C_w^2\) have their image outside \(A_w\). The exceptional centres together account for \(o(m^2)\) ordered pairs of neighbours, since for any \(E\subseteq W\) of size \(o(m)\), \[ \sum_{w\in E}d(w)^2\le 2d^2|E|+2\sum_{w\in W}(d(w)-d)^2=o(m^2). \] Summing over centres, for all but \(o(m^2)\) ordered point pairs \(x,y\), each of their three common neighbours sees all of \[ x,\quad y,\quad h-x-y,\quad 2y-x. \] The first three points are distinct. The four cannot all be distinct, since two of the common neighbours would then give a \(K_{2,4}\). In a simple graph a vertex adjacent to all four is distinct from each of them. As \(x\ne y\), we have \(2y-x\ne y\). It follows that \[ 2(y-x)=0\qquad\text{or}\qquad 3y=h. \] The represented labels have density \(1-o(1)\) in \(K\), so this alternative holds with probability \(1-o(1)\) for independent uniform \(x,y\in K\). Then \(y-x\) and \(y\) are independent and uniform. The solutions of \(2u=0\) form a subgroup, and the solutions of \(3y=h\) form either the empty set or a coset of a subgroup. If neither set were all of \(K\), each would have density at most \(1/2\) and both equations would fail with probability at least \(1/4\). Hence for large \(m\) either \(2K=0\), or \(3K=0\) and \(h=0\). For any good centre, \(|J_w|\sim\sqrt{3m}\) and \(|K|\sim m\), so \[ |J_w|^2/|K|\longrightarrow3. \] In a \(2\)-group this ratio is an integer power of two, precluding the first alternative along any infinite subsequence. Writing \(|K|=3^k\) and \(|J_w|=3^j\), we obtain \(3^{2j-k}\to3\), so \(2j-k=1\) eventually. This gives \(m\sim|K|=3^{2j-1}\). \end{proof} \begin{proof}[Proof of Theorems~\ref{thm:main} and~\ref{thm:orders} and Proposition~\ref{prop:bip}] Lemma~\ref{lem:count} gives the two upper bounds. For \(q=3^j\), Proposition~\ref{prop:construction} gives ordinary graphs at \(N=q^2/3\) and bipartite graphs at \(N=2q^2/3\) with normalized edge counts tending to the stated upper limits. In each case consecutive values of \(N\) have ratio nine. For every sufficiently large \(n\), taking the largest such \(N\le n\) and adding isolated vertices gives \(\Omega(n^{3/2})\) edges. This proves both order estimates and both upper limits. Suppose one of the normalized extremal numbers approaches its upper limit along \(n_i\to\infty\). For each \(i\) choose a graph with the corresponding maximum number of edges. Proposition~\ref{prop:size} gives \(m=(1+o(1))3^{2j_i-1}\), where \(m=n_i\) in the ordinary case and \(m=(1+o(1))n_i/2\) in the bipartite case. Conversely, suppose \(n_i=(1+o(1))N_i\) with \(N_i\) taken from the appropriate sequence of construction orders. For \(n_i\ge N_i\), add isolated vertices. For \(n_i