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 838 · variants.erdos_bounds

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:

Erdős proved in [Er78c] that there exist constants c1,c2>0c_1,c_2>0 such that nc1log⁡n<f(n)<nc2log⁡n.n^{c_1\log n}<f(n)< n^{c_2\log n}. Here log⁡\log is the natural logarithm (another base only changes the constants), and n≥2n\geq 2.

Subjects:Metric Geometry (math.MG)
MSC classes:52
Cite as:NS.03372 [math.MG] · NS.03372v1 for this version
Declaration:Erdos838.erdos_838.variants.erdos_bounds
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:0cf280915080ee2e54dd4ef618ade126430d2d2b8dcf44201cb55166e50a6ca4
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/838.lean

Formal statement

theorem erdos_838.variants.erdos_bounds :
    ∃ c₁ c₂ : ℝ, 0 < c₁ ∧ 0 < c₂ ∧ ∀ n : ℕ, 2 ≤ n →
      (n : ℝ) ^ (c₁ * Real.log n) < f n ∧ (f n : ℝ) < (n : ℝ) ^ (c₂ * Real.log n)
Show the full Challenge.lean (97 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 838

*References:*
- [erdosproblems.com/838](https://www.erdosproblems.com/838)
- [Er78c] Erdős, P., *Some more problems on elementary geometry*. Austral. Math. Soc. Gaz. 5
  (1978), 52-54. [PDF](https://www.renyi.hu/~p_erdos/1978-44.pdf)
-/

@[expose] public section

open Filter Asymptotics EuclideanGeometry

namespace Erdos838

/-- The number of convex subsets determined by a finite set $P$ of points of $\mathbb{R}^2$: the
subsets of $P$ that are in convex position (`ConvexIndep`). The empty set, the singletons and the
pairs count as convex. This shifts the count by exactly $1+n+\binom{n}{2}$ for $|P|=n$ compared
with counting only subsets of size at least $3$, and does not affect the asymptotics below. -/
noncomputable def numConvexSubsets (P : Finset ℝ²) : ℕ :=
  Set.ncard {S : Finset ℝ² | S ⊆ P ∧ ConvexIndep (S : Set ℝ²)}

/-- $f(n)$: the least number of convex subsets determined by $n$ points of $\mathbb{R}^2$ with no
three on a line. Such point sets exist for every $n$ (for example $n$ points on a parabola), so
the `sInf` is a true minimum. -/
noncomputable def f (n : ℕ) : ℕ :=
  sInf {m : ℕ | ∃ P : Finset ℝ², P.card = n ∧ NonTrilinear (P : Set ℝ²) ∧
    numConvexSubsets P = m}

/-- Any set of $n$ points with no three on a line gives the upper bound $f(n)\leq$ (its number of
convex subsets). -/
@[category API, AMS 52]
theorem f_le {n : ℕ} {P : Finset ℝ²} (hcard : P.card = n) (hP : NonTrilinear (P : Set ℝ²)) :
    f n ≤ numConvexSubsets P :=
  Nat.sInf_le ⟨P, hcard, hP, rfl⟩

def erdos_838.parts.i.answer : ℕ → ℝ := sorry

/--
Let $f(n)$ be maximal such that any $n$ points in $\mathbb{R}^2$, with no three on a line,
determine at least $f(n)$ different convex subsets. Estimate $f(n)$ - in particular, does there
exist a constant $c$ such that
$$\lim \frac{\log f(n)}{(\log n)^2}=c?$$

A question of Erdős and Hammer [Er78c, pp. 52-53]. This is the first part. We read "estimate" as
asking for an asymptotic formula for $\log f(n)$.
-/
@[category research open, question value, AMS 52]
theorem erdos_838.parts.i :
    (fun n : ℕ ↦ Real.log (f n)) ~[atTop] erdos_838.parts.i.answer := by
  sorry

/--
Let $f(n)$ be maximal such that any $n$ points in $\mathbb{R}^2$, with no three on a line,
determine at least $f(n)$ different convex subsets. Estimate $f(n)$ - in particular, does there
exist a constant $c$ such that
$$\lim \frac{\log f(n)}{(\log n)^2}=c?$$

A question of Erdős and Hammer [Er78c, p. 53]. This is the second part.
-/
@[category research open, question, AMS 52]
theorem erdos_838.parts.ii :
    ∃ c : ℝ, Tendsto (fun n : ℕ ↦ Real.log (f n) / Real.log n ^ 2) atTop (nhds c) := by
  sorry

/--
Erdős proved in [Er78c] that there exist constants $c_1,c_2>0$ such that
$$n^{c_1\log n}<f(n)< n^{c_2\log n}.$$
Here $\log$ is the natural logarithm (another base only changes the constants), and $n\geq 2$.
-/
@[category research solved, AMS 52]
theorem erdos_838.variants.erdos_bounds :
    ∃ c₁ c₂ : ℝ, 0 < c₁ ∧ 0 < c₂ ∧ ∀ n : ℕ, 2 ≤ n →
      (n : ℝ) ^ (c₁ * Real.log n) < f n ∧ (f n : ℝ) < (n : ℝ) ^ (c₂ * Real.log n) := by
  sorry

end Erdos838

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

nosorry desk erdos-838--erdos-838-variants-erdos-bounds      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-838--erdos-838-variants-erdos-bounds
nosorry submit erdos-838--erdos-838-variants-erdos-bounds nosorry/erdos-838--erdos-838-variants-erdos-bounds/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.