Title:Erdős Problem 794
Statement:Is it true that every -uniform hypergraph on vertices with at least edges must contain either a subgraph on vertices with edges or a subgraph on vertices with edges?
Harris has provided the following simple counterexample to the problem as stated: the -uniform graph on with edges, formed by taking edges by choosing one element each from , and then adding the edge .
| Subjects: | Combinatorics (math.CO) |
| MSC classes: | 05 |
| Tags: | question, formal_proof |
| Cite as: | NS.03230 [math.CO] · NS.03230v1 for this version |
| Declaration: | Erdos794.erdos_794 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | f73646f2317febe74d02a9f4e9add7f8854ee19e68a8977c9e17e03bad20138a |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/794.lean |
Formal statement
theorem erdos_794 :
¬ ∀ n : ℕ, ∀ H : Finset (Finset (Fin (3 * n))), H.IsUniform 3 →
n ^ 3 + 1 ≤ H.card → H.ContainsSubgraph 4 3 ∨ H.ContainsSubgraph 5 7Show the full Challenge.lean (129 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 794
*References:*
- [erdosproblems.com/794](https://www.erdosproblems.com/794)
- [Er69] Erdős, Paul, *Some applications of graph theory to number theory*. The Many Facets of
Graph Theory (Proc. Conf., Western Mich. Univ., Kalamazoo, Mich., 1968) (1969), 77-82.
- [FrFu84] Frankl, P. and Füredi, Z., *An exact result for $3$-graphs*. Discrete Math. (1984),
323-328.
-/
@[expose] public section
open Filter
namespace Erdos794
/-- The `3`-uniform hypergraph on `Fin 9` given by Harris: the `27` triples containing exactly
one vertex from each of the three parts `{0, 1, 2}`, `{3, 4, 5}`, `{6, 7, 8}`, together with the
triple `{0, 1, 2}`. A triple is a transversal of the three parts exactly when the three values
of `v ↦ v / 3` it produces are distinct. -/
def harrisHypergraph : Finset (Finset (Fin 9)) :=
insert {0, 1, 2}
(Finset.filter
(fun e : Finset (Fin 9) =>
(Finset.image (fun v : Fin 9 => (v : ℕ) / 3) e).card = 3)
(Finset.powersetCard 3 Finset.univ))
set_option linter.style.formal_proof_palomar false in
/--
Is it true that every $3$-uniform hypergraph on $3n$ vertices with at least $n^3+1$ edges must
contain either a subgraph on $4$ vertices with $3$ edges or a subgraph on $5$ vertices with $7$
edges?
Harris has provided the following simple counterexample to the problem as stated: the
$3$-uniform graph on $\{1,\ldots,9\}$ with $28$ edges, formed by taking $27$ edges by choosing
one element each from $\{1,2,3\},\{4,5,6\},\{7,8,9\}$, and then adding the edge $\{1,2,3\}$.
-/
@[category research solved, question, AMS 5, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos794.lean"]
theorem erdos_794 :
¬ ∀ n : ℕ, ∀ H : Finset (Finset (Fin (3 * n))), H.IsUniform 3 →
n ^ 3 + 1 ≤ H.card → H.ContainsSubgraph 4 3 ∨ H.ContainsSubgraph 5 7 := by
sorry
/--
Balogh has observed that this problem is probably misstated by Erdős - indeed, every graph with
$5$ vertices spanning $7$ edges contains a graph on $4$ vertices spanning $3$ edges, so the
second condition can be dropped.
-/
@[category research solved, AMS 5]
theorem erdos_794.variants.balogh {V : Type*} [DecidableEq V] (H : Finset (Finset V))
(hH : H.IsUniform 3) (h : H.ContainsSubgraph 5 7) : H.ContainsSubgraph 4 3 := by
obtain ⟨S, hS, hk⟩ := h
by_contra hcon
simp only [Finset.ContainsSubgraph, not_exists, not_and, not_le] at hcon
-- Each of the five `4`-subsets of `S` spans at most `2` edges.
have hub : ∑ T ∈ S.powersetCard 4, (H.filter (· ⊆ T)).card ≤ 10 := by
calc ∑ T ∈ S.powersetCard 4, (H.filter (· ⊆ T)).card ≤ ∑ T ∈ S.powersetCard 4, 2 :=
Finset.sum_le_sum fun T hT => by
have := hcon T (Finset.mem_powersetCard.1 hT).2
omega
_ = 10 := by simp [Finset.card_powersetCard, hS]
-- Each edge inside `S` lies in two of the `4`-subsets of `S`, so the double count is at
-- least `2 * 7`.
have hlb : 2 * (H.filter (· ⊆ S)).card ≤ ∑ T ∈ S.powersetCard 4, (H.filter (· ⊆ T)).card := by
calc 2 * (H.filter (· ⊆ S)).card = ∑ e ∈ H.filter (· ⊆ S), 2 := by simp [mul_comm]
_ ≤ ∑ e ∈ H.filter (· ⊆ S), ((S.powersetCard 4).filter (e ⊆ ·)).card := by
refine Finset.sum_le_sum fun e he => ?_
obtain ⟨heH, heS⟩ := Finset.mem_filter.1 he
have he3 := hH e heH
rw [show 4 = e.card + 1 by omega, Finset.card_filter_subset_powersetCard_card_add_one heS]
omega
_ = ∑ T ∈ S.powersetCard 4, (H.filter (· ⊆ T)).card := by
simp only [Finset.card_filter]
rw [Finset.sum_comm]
refine Finset.sum_congr rfl fun T hT => ?_
rw [Finset.sum_filter]
refine Finset.sum_congr rfl fun e _ => ?_
by_cases heT : e ⊆ T
· simp [heT, heT.trans (Finset.mem_powersetCard.1 hT).1]
· simp [heT]
omega
/--
Harris has provided the following simple counterexample to the problem as stated: the
$3$-uniform graph on $\{1,\ldots,9\}$ with $28$ edges, formed by taking $27$ edges by choosing
one element each from $\{1,2,3\},\{4,5,6\},\{7,8,9\}$, and then adding the edge $\{1,2,3\}$.
-/
@[category research solved, AMS 5]
theorem erdos_794.variants.harris :
harrisHypergraph.IsUniform 3 ∧ harrisHypergraph.card = 28 ∧
¬ harrisHypergraph.ContainsSubgraph 4 3 ∧ ¬ harrisHypergraph.ContainsSubgraph 5 7 := by
unfold Finset.IsUniform Finset.ContainsSubgraph
decide +kernel
/--
This problem is then now asking how many edges a $3$-uniform hypergraph can have before it
contains $K_4$ minus an edge, and whether the critical edge density is $2/9$. In fact there is a
construction of Frankl and Füredi [FrFu84] showing it must be at least $2/7$, which is the
conjectured truth (although Turán conjectured before [Er69] that the edge density was $1/4$, and
so likely there is simply a typo in this problem's statement).
-/
@[category research solved, AMS 5]
theorem erdos_794.variants.frankl_furedi (ε : ℝ) (hε : 0 < ε) :
∀ᶠ n : ℕ in atTop, ∃ H : Finset (Finset (Fin n)), H.IsUniform 3 ∧
¬ H.ContainsSubgraph 4 3 ∧ (2 / 7 - ε) * (n.choose 3 : ℝ) ≤ (H.card : ℝ) := by
sorry
end Erdos794
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos794.erdos_794 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_794 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-794 nosorry submit erdos-794 nosorry/erdos-794/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-794-variants-balogh — known result
- erdos-794-variants-harris — known result
- erdos-794-variants-frankl-furedi — known result
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.