Erdős Problem 619 #
References:
- erdosproblems.com/619
- [EGR98] Erdős, Paul and Gyárfás, András and Ruszinkó, Miklós, How to decrease the diameter of triangle-free graphs. Combinatorica 18 (1998), 493-501.
- [Er99] Erdős, Paul, A selection of problems and results in combinatorics. Combin. Probab. Comput. 8 (1999), 1-6.
For a graph $G$, minNewEdges r G is the smallest number of edges that need to be added
to $G$ so that it has diameter at most $r$, while preserving the property of being
triangle-free. Erdős, Gyárfás and Ruszinkó denote this quantity by $h_r(G)$ in [EGR98].
Adding edges is formalised as passing to a supergraph H ≥ G on the same vertex set, the
number of added edges being the (finite) cardinality of the edge set of H \ G. We use
the extended diameter SimpleGraph.ediam (valued in ℕ∞) so that disconnected
supergraphs, which have infinite diameter, do not qualify. If no triangle-free supergraph
of G of diameter at most r exists, then minNewEdges r G = 0 by the Nat.sInf
convention on the empty set; erdos_619.variants.add_edges_diam_three shows this
degenerate case does not occur for connected triangle-free G when 3 ≤ r.
Equations
Instances For
Erdős Problem 619 [EGR98, Er99]: For a triangle-free graph $G$ let $h_r(G)$ be the smallest number of edges that need to be added to $G$ so that it has diameter $r$ (while preserving the property of being triangle-free). Is it true that there exists a constant $c>0$ such that if $G$ is a connected graph on $n$ vertices then $h_4(G)<(1-c)n$?
The answer is no: for every $\eta>0$ there exist connected triangle-free graphs on
$n$ vertices with $h_4(G)\geq(1-\eta)n$, so no such constant $c$ exists. The original proof
was generated by Claude Fable 5; the Lean formalization was sketched by Fable and
implemented by GPT 5.5 with Codex (see the linked formal_proof).
Erdős, Gyárfás and Ruszinkó [EGR98]: every connected triangle-free graph on a finite
vertex set can be extended, by adding edges, to a triangle-free graph of diameter at
most $3$. This shows that the infimum defining minNewEdges r G ranges over a nonempty
set for every 3 ≤ r.
Erdős, Gyárfás and Ruszinkó [EGR98]: $h_3(G) \leq n$ for every connected triangle-free graph $G$ on $n$ vertices.
Erdős, Gyárfás and Ruszinkó [EGR98]: $h_5(G) \leq \frac{n-1}{2}$ for every connected triangle-free graph $G$ on $n$ vertices.
Erdős, Gyárfás and Ruszinkó [EGR98]: there is a constant $c > 0$ such that for every $n$ there exist connected triangle-free graphs $G$ on $n$ vertices with $h_3(G) \geq n - c$.
A triangle-free graph that already has diameter at most r needs no new edges.
The graph with a single vertex is triangle-free and has diameter 0, so it needs no
new edges to reach diameter at most 4.