Title:Erdős Problem 23
3 results recorded on aiXiv
- partial Let , a triangle-free circulant graph. Give weight to each vertex of the induced pentagon and weights in to the other 16 vertices. Then the minimum weighted number of edges that must be deleted to make bipartite satisfies , where is the total weight. — aiXiv:2611.00639, 2026-11-05 · claimed by its authors; no independent check recorded on aiXiv
- partial Let be a triangle-free graph with nonnegative vertex weights containing an induced pentagon, each of whose vertices has weight . Let be the total outer weight and the weight of outer vertices with at most one neighbour in the pentagon. Then , so implies . — aiXiv:2611.00639, 2026-11-05 · claimed by its authors; no independent check recorded on aiXiv
- partial Let be a weighted triangle-free graph with an induced pentagon in which every outer vertex has exactly two neighbours in the pentagon (). Then for arbitrary nonnegative weights, by the classical -blow-up reduction. A further criterion based on the missing-edge deficit of a pentagonal core with balanced weights covers some configurations with . — aiXiv:2611.00639, 2026-11-05 · claimed by its authors; no independent check recorded on aiXiv
From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.
Statement:Every triangle-free graph on vertices can be made bipartite by removing at most edges.
This is the case of Erdős Problem 23. It follows from the high-density range of Balogh-Clemen-Lidicky together with McKay's complete catalogue of the 23-vertex extremal graphs for bipartization of triangle-free graphs.
| Subjects: | Combinatorics (math.CO) |
| MSC classes: | 05 |
| Cite as: | NS.01391 [math.CO] · NS.01391v1 for this version |
| Declaration: | Erdos23.erdos_23.variants.n5 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 778402de8964ec2c48347d999accdc6a8dd62632979e5319c841a162c881f206 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/23.lean |
Formal statement
theorem erdos_23.variants.n5 :
∀ (G : SimpleGraph (Fin 25)), G.CliqueFree 3 → ∃ (H : SimpleGraph (Fin 25)),
H ≤ G ∧ H.IsBipartite ∧ (G.edgeFinset \ H.edgeFinset).card ≤ 25Show the full Challenge.lean (132 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 23
*References:*
* [erdosproblems.com/23](https://www.erdosproblems.com/23)
* [OEIS A389646](https://oeis.org/A389646)
* [Balogh-Clemen-Lidicky, Max Cuts in Triangle-free Graphs](https://arxiv.org/abs/2103.14179)
* [McKay, Extremal graphs for bipartization of triangle-free graphs](https://users.cecs.anu.edu.au/~bdm/data/graphs.html)
-/
@[expose] public section
open SimpleGraph BigOperators
namespace Erdos23
open scoped Classical in
/--
Every triangle-free graph on $5$ vertices can be made bipartite by removing at most $1$ edge.
This is the $n = 1$ case of Erdős Problem 23.
-/
@[category test, AMS 5]
theorem erdos_23.variants.n1 :
∀ (G : SimpleGraph (Fin 5)), G.CliqueFree 3 → ∃ (H : SimpleGraph (Fin 5)),
H ≤ G ∧ H.IsBipartite ∧ (G.edgeFinset \ H.edgeFinset).card ≤ 1 := by
sorry
open scoped Classical in
/--
There exists a triangle-free graph on $5$ vertices such that at least $1$ edge must be removed
to make it bipartite. This shows the bound in `erdos_23_n1` is tight.
-/
@[category test, AMS 5]
theorem erdos_23.variants.n1_tight :
∃ (G : SimpleGraph (Fin 5)), G.CliqueFree 3 ∧ ∀ (H : SimpleGraph (Fin 5)),
H ≤ G → H.IsBipartite → 1 ≤ (G.edgeFinset \ H.edgeFinset).card := by
-- The `5`-cycle is triangle-free, and a bipartite subgraph missing no edge would be the
-- `5`-cycle itself, which has chromatic number `3`.
refine ⟨cycleGraph 5, by unfold CliqueFree; decide +kernel, fun H hHG hH => ?_⟩
by_contra hcon
have h0 := Finset.card_eq_zero.1 (Nat.lt_one_iff.1 (not_le.1 hcon))
have hsub := Finset.sdiff_eq_empty_iff_subset.1 h0
rw [Finset.subset_iff] at hsub
simp only [mem_edgeFinset] at hsub
have hGH : cycleGraph 5 ≤ H := edgeSet_subset_edgeSet.1 fun _ he => hsub he
obtain rfl : H = cycleGraph 5 := le_antisymm hHG hGH
have h2 := hH.chromaticNumber_le
rw [chromaticNumber_cycleGraph_of_odd 5 (by norm_num) (by decide)] at h2
exact absurd h2 (by decide)
open scoped Classical in
/--
Every triangle-free graph on $25$ vertices can be made bipartite by removing at most $25$
edges.
This is the $n = 5$ case of Erdős Problem 23. It follows from the high-density range of
Balogh-Clemen-Lidicky together with McKay's complete catalogue of the 23-vertex extremal
graphs for bipartization of triangle-free graphs.
-/
@[category research solved, AMS 5]
theorem erdos_23.variants.n5 :
∀ (G : SimpleGraph (Fin 25)), G.CliqueFree 3 → ∃ (H : SimpleGraph (Fin 25)),
H ≤ G ∧ H.IsBipartite ∧ (G.edgeFinset \ H.edgeFinset).card ≤ 25 := by
sorry
open scoped Classical in
/--
There exists a triangle-free graph on $25$ vertices such that at least $25$ edges must be
removed to make it bipartite. The balanced blow-up of $C_5$ with five parts of size $5$
witnesses this.
-/
@[category research solved, AMS 5]
theorem erdos_23.variants.n5_tight :
∃ (G : SimpleGraph (Fin 25)), G.CliqueFree 3 ∧ ∀ (H : SimpleGraph (Fin 25)),
H ≤ G → H.IsBipartite → 25 ≤ (G.edgeFinset \ H.edgeFinset).card := by
sorry
/--
The blow-up of the 5-cycle $C_5$: replace each vertex of $C_5$ with an independent set of $n$
vertices, and connect two vertices iff their corresponding vertices in $C_5$ are adjacent.
The vertex set is $\mathbb{Z}/5\mathbb{Z} \times \{0, \ldots, n-1\}$, where $(i, a)$ and $(j, b)$
are adjacent iff $j = i + 1$ or $i = j + 1$ in $\mathbb{Z}/5\mathbb{Z}$.
-/
def blowupC5 (n : ℕ) : SimpleGraph (ZMod 5 × Fin n) :=
SimpleGraph.fromRel fun (i, _) (j, _) => i + 1 = j ∨ j + 1 = i
open scoped Classical in
/--
The blow-up of $C_5$ shows that the bound $n^2$ in Erdős Problem 23 is tight:
any bipartite subgraph must omit at least $n^2$ edges.
-/
@[category test, AMS 5]
theorem blowupC5_tight (n : ℕ) (_hn : 0 < n) (H : SimpleGraph (ZMod 5 × Fin n))
(hH : H ≤ blowupC5 n) (hBip : H.IsBipartite) :
n ^ 2 ≤ ((blowupC5 n).edgeFinset \ H.edgeFinset).card := by
sorry
open scoped Classical in
/--
Can every triangle-free graph on $5n$ vertices be made bipartite by deleting at most $n^2$ edges?
-/
@[category research open, question, AMS 5]
theorem erdos_23 :
∀ (n : ℕ) (V : Type) [Fintype V], Fintype.card V = 5 * n →
∀ (G : SimpleGraph V), G.CliqueFree 3 →
∃ (H : SimpleGraph V),
H ≤ G ∧ H.IsBipartite ∧ (G.edgeFinset \ H.edgeFinset).card ≤ n^2 := by
sorry
-- TODO: add the remaining variants/statements/comments
end Erdos23
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos23.erdos_23.variants.n5 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_n5 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-23 nosorry submit erdos-23 nosorry/erdos-23/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-23-variants-n5-tight — known result
- erdos-23 — open
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.