Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 902 · variants.f_two

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

It is easy to check that f(1)=3f(1)=3 and f(2)=7f(2)=7.

This is the statement for f(2)f(2).

Subjects:Combinatorics (math.CO)
MSC classes:05
Cite as:NS.03577 [math.CO] · NS.03577v1 for this version
Declaration:Erdos902.erdos_902.variants.f_two
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:28d16aaaec2a87aacdb5ba8b554ac799b3b6e168a1a1ff9a80431058fcb757e8
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/902.lean

Formal statement

theorem erdos_902.variants.f_two : f 2 = 7
Show the full Challenge.lean (177 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 902

*References:*
- [erdosproblems.com/902](https://www.erdosproblems.com/902)
- [Er63c] Erdős, P., *On a problem in graph theory*. Math. Gaz. 47 (1963), 220-223.
  [PDF](https://www.renyi.hu/~p_erdos/1963-08.pdf)
- [Er82e] Erdős, Paul, *Some of my favourite problems which recently have been solved*.
  (1982), 59-79.
- [SzSz65] Szekeres, E. and Szekeres, G., *On a problem of Schütte and Erdős*. Math. Gaz. 49
  (1965), 290-293.
-/

@[expose] public section

open Filter Asymptotics

namespace Erdos902

/-- `HasPropertyS G n` is Schütte's property $S_n$ [Er63c]: every set `E` of `n` vertices is
dominated by a vertex outside it, that is, some vertex `x ∉ E` has an edge to every vertex of
`E`. -/
def HasPropertyS {V : Type*} (G : Digraph V) (n : ℕ) : Prop :=
  ∀ E : Finset V, E.card = n → ∃ x ∉ E, ∀ e ∈ E, G.Adj x e

/-- $f(n)$: the least number of vertices of a tournament with property $S_n$.

A tournament with fewer than $n$ vertices has no set of $n$ vertices, so it has property $S_n$
vacuously; the condition `n ≤ m` excludes this case. -/
noncomputable def f (n : ℕ) : ℕ :=
  sInf {m : ℕ | n ≤ m ∧ ∃ G : Digraph (Fin m), G.IsTournament ∧ HasPropertyS G n}

/-- The cyclic tournament on three vertices, `a → a + 1`, has property $S_1$, so
$f(1) \leq 3$. -/
@[category test, AMS 5]
theorem f_one_le : f 1 ≤ 3 := by
  refine Nat.sInf_le ⟨by norm_num, ⟨fun a b => b = a + 1⟩, ⟨by decide, by decide⟩, ?_⟩
  intro E hE
  obtain ⟨a, rfl⟩ := Finset.card_eq_one.1 hE
  have key : ∀ a : Fin 3, a + 2 ≠ a ∧ a = a + 2 + 1 := by decide
  refine ⟨a + 2, by simp [(key a).1], fun e he => ?_⟩
  rw [Finset.mem_singleton.1 he]
  exact (key a).2

/-- Erdős's tournament on seven vertices [Er63c], with `a → a + 1, a + 2, a + 4` modulo $7$,
has property $S_2$, so $f(2) \leq 7$. -/
@[category test, AMS 5]
theorem f_two_le : f 2 ≤ 7 := by
  refine Nat.sInf_le ⟨by norm_num, ⟨fun a b => b - a ∈ ({1, 2, 4} : Finset (Fin 7))⟩,
    ⟨by decide, by decide⟩, ?_⟩
  intro E hE
  obtain ⟨a, b, hab, rfl⟩ := Finset.card_eq_two.1 hE
  have key : ∀ a b : Fin 7, a ≠ b → ∃ x, x ≠ a ∧ x ≠ b ∧
      a - x ∈ ({1, 2, 4} : Finset (Fin 7)) ∧ b - x ∈ ({1, 2, 4} : Finset (Fin 7)) := by
    decide
  obtain ⟨x, hxa, hxb, ha, hb⟩ := key a b hab
  refine ⟨x, by simp [hxa, hxb], fun e he => ?_⟩
  rcases Finset.mem_insert.1 he with rfl | he
  · exact ha
  · rw [Finset.mem_singleton.1 he]
    exact hb

def erdos_902.answer : ℕ → ℝ := sorry

/--
Let $f(n)$ be minimal such that there is a tournament (a complete directed graph) on $f(n)$
vertices such that every set of $n$ vertices is dominated by at least one other vertex.
Estimate $f(n)$.
-/
@[category research open, question value, AMS 5]
theorem erdos_902 : (fun n ↦ (f n : ℝ)) =Θ[atTop] erdos_902.answer := by
  sorry

/--
It is easy to check that $f(1)=3$ and $f(2)=7$.

This is the statement for $f(1)$.
-/
@[category research solved, AMS 5]
theorem erdos_902.variants.f_one : f 1 = 3 := by
  refine le_antisymm f_one_le (le_csInf ⟨3, ?_⟩ ?_)
  · refine ⟨by norm_num, ⟨fun a b => b = a + 1⟩, ⟨by decide, by decide⟩, ?_⟩
    intro E hE
    obtain ⟨a, rfl⟩ := Finset.card_eq_one.1 hE
    have key : ∀ a : Fin 3, a + 2 ≠ a ∧ a = a + 2 + 1 := by decide
    refine ⟨a + 2, by simp [(key a).1], fun e he => ?_⟩
    rw [Finset.mem_singleton.1 he]
    exact (key a).2
  · rintro m ⟨hm, G, hG, hS⟩
    by_contra! hm3
    interval_cases m
    · obtain ⟨x, hx, -⟩ := hS {0} rfl
      exact hx (by simp [Subsingleton.elim x 0])
    · have h01 := hG.2 0 1 (by decide)
      by_cases h : G.Adj 0 1
      · obtain ⟨x, hx, hx0⟩ := hS {0} rfl
        have hx1 : x = 1 := by fin_cases x <;> simp_all
        subst hx1
        exact h01.1 h (hx0 0 (by simp))
      · obtain ⟨x, hx, hx1⟩ := hS {1} rfl
        have hx0 : x = 0 := by fin_cases x <;> simp_all
        subst hx0
        exact h (hx1 1 (by simp))

/--
It is easy to check that $f(1)=3$ and $f(2)=7$.

This is the statement for $f(2)$.
-/
@[category research solved, AMS 5]
theorem erdos_902.variants.f_two : f 2 = 7 := by
  sorry

/--
Erdős [Er63c] proved
$$2^{n+1}-1 \leq f(n) \ll n^22^n.$$

This is the lower bound.
-/
@[category research solved, AMS 5]
theorem erdos_902.variants.erdos_lower (n : ℕ) : 2 ^ (n + 1) - 1 ≤ f n := by
  sorry

/--
Erdős [Er63c] proved
$$2^{n+1}-1 \leq f(n) \ll n^22^n.$$

This is the upper bound, in the form proved in [Er63c, (2)]:
$\limsup_n f(n)2^{-n}n^{-2} \leq \log 2$.
-/
@[category research solved, AMS 5]
theorem erdos_902.variants.erdos_upper :
    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop, (f n : ℝ) ≤ (Real.log 2 + ε) * n ^ 2 * 2 ^ n := by
  sorry

/--
Szekeres and Szekeres [SzSz65] proved that $f(3)=19$ and
$$n2^n \ll f(n).$$

This is the statement for $f(3)$.
-/
@[category research solved, AMS 5]
theorem erdos_902.variants.szekeres_f_three : f 3 = 19 := by
  sorry

/--
Szekeres and Szekeres [SzSz65] proved that $f(3)=19$ and
$$n2^n \ll f(n).$$

This is the lower bound.
-/
@[category research solved, AMS 5]
theorem erdos_902.variants.szekeres_lower :
    ∃ c > (0 : ℝ), ∀ᶠ n : ℕ in atTop, c * n * 2 ^ n ≤ (f n : ℝ) := by
  sorry

end Erdos902

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos902.erdos_902.variants.f_two with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_f_two : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-902--erdos-902-variants-f-two      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-902--erdos-902-variants-f-two
nosorry submit erdos-902--erdos-902-variants-f-two nosorry/erdos-902--erdos-902-variants-f-two/Solution.lean --wait

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.