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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:VCₙ dimension of convex sets in ℝⁿ, ℝⁿ⁺¹, ℝⁿ⁺²

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

Every convex set in R2\mathbb R^2 has VC dimension at most 3.

Subjects:Combinatorics (math.CO); Metric Geometry (math.MG)
MSC classes:05, 52
Cite as:NS.07217 [math.CO] · NS.07217v1 for this version
Declaration:VCDimConvex.hasAddVCDimAtMost_three_of_convex_r2
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:7d607f778215d74a7590a89b3e97ad753f82772c25cf441daefebec709bf2aa6
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Other/VCDimConvex.lean

Formal statement

lemma hasAddVCDimAtMost_three_of_convex_r2 {C : Set ℝ²} (hC : Convex ℝ C) : HasAddVCDimAtMost C 3
Show the full Challenge.lean (106 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# VCₙ dimension of convex sets in ℝⁿ, ℝⁿ⁺¹, ℝⁿ⁺²

In the literature it is known that every convex set in ℝ² has VC dimension at most 3,
and there exists a convex set in ℝ³ with infinite VC dimension (even more strongly,
which shatters an infinite set).

This file states that every convex set in ℝⁿ has finite VCₙ dimension, constructs a convex set in
ℝⁿ⁺² with infinite VCₙ dimension (even more strongly, which n-shatters an infinite set),
and conjectures that every convex set in ℝⁿ⁺¹ has finite VCₙ dimension.
-/

@[expose] public section

open scoped EuclideanGeometry Pointwise

namespace VCDimConvex

/-  ### What's known in the literature -/

/-- Every convex set in $\mathbb R^2$ has VC dimension at most 3. -/
@[category research solved, AMS 5 52]
lemma hasAddVCDimAtMost_three_of_convex_r2 {C : Set ℝ²} (hC : Convex ℝ C) : HasAddVCDimAtMost C 3 :=
  sorry

/-- There exists a set in $\mathbb R^3$ shattering an infinite set. -/
@[category research solved, AMS 5 52]
lemma exists_infinite_convex_r3_shatters :
    ∃ A C : Set ℝ³, A.Infinite ∧ Convex ℝ C ∧ Shatters {t +ᵥ C | t : ℝ³} A := sorry

/-  ### What's not in the literature -/

/-- There exists a set of infinite $\mathrm{VC}_n$ dimension in $\mathbb R^{n + 2}$. -/
@[category research solved, AMS 5 52]
lemma exists_convex_rn_add_two_vc_n_forall_not_hasAddVCNDimAtMost (n : ℕ) :
    ∃ C : Set (Fin (n + 2) → ℝ), Convex ℝ C ∧ ∀ d, ¬ HasAddVCNDimAtMost C n d := sorry

/-  ### Conjectures -/

set_option linter.style.formal_proof_palomar false in
/-- Not every convex set in $\mathbb R^3$ has
$\mathrm{VC}_2$ dimension at most 1. -/
@[category research solved, AMS 5 52,
  formal_proof using lean4 at
    "https://github.com/KitaKen1/vcdim-convex-counterexample/blob/ad7ffff1514843c886633f5408c6456dfb2e2a49/formal-conjectures-v4.27.0/VCDimConvexCounterexample.lean"]
lemma hasAddVCNDimAtMost_two_one_of_convex_r3 :
    ¬ ∀ {C : Set ℝ³} (hC : Convex ℝ C),
      HasAddVCNDimAtMost C 2 1 := sorry

/-- Every convex set in $\mathbb R^3$ has $\mathrm{VC}_2$ dimension at most 2. -/
@[category research open, AMS 5 52]
lemma hasAddVCNDimAtMost_two_two_of_convex_r3 {C : Set ℝ³} (hC : Convex ℝ C) :
    HasAddVCNDimAtMost C 2 2 := sorry

set_option linter.style.formal_proof_palomar false in
/-- For every $n \ge 1$ there exists some $d$ such that every convex set in $\mathbb R^{n + 1}$ has
$\mathrm{VC}_n$ dimension at most $d$.

This holds with the explicit bound $d = 2^{8(n + 2)^n} - 1$; see
[Kitamura's Lean formalization](https://github.com/KitaKen1/vcdim-convex-finite-bound).
-/
@[category research solved, AMS 5 52,
  formal_proof using lean4 at
    "https://github.com/KitaKen1/vcdim-convex-finite-bound/blob/9d7685c7c7c8c8e82f47d59da5495a8d5374db99/lean/VCDimConvexBoundFC.lean#L14-L17"]
lemma exists_hasAddVCNDimAtMost_n_of_convex_rn_add_one (n : ℕ) (hn : 1 ≤ n) :
    ∃ d : ℕ, ∀ C : Set (Fin (n + 1) → ℝ), Convex ℝ C → HasAddVCNDimAtMost C n d := sorry

/-- For every $n \ge 1$ there exists some $d$ such that every convex set in $\mathbb R^{n + 1}$ has
$\mathrm{VC}_n$ dimension at most $d$.

The bound can be taken to be $d = c^n$ for some constant $c \ge 2$ independent of $n$.
-/
@[category research open, AMS 5 52]
lemma exists_exponential_bound_hasAddVCNDimAtMost_n_of_convex_rn_add_one :
    ∃ c : ℕ, 2 ≤ c ∧ ∀ (n : ℕ) (hn : 1 ≤ n),
      ∀ C : Set (Fin (n + 1) → ℝ), Convex ℝ C → HasAddVCNDimAtMost C n (c ^ n) := sorry

/-- Is it true that, for all $n$, every convex set in $\mathbb R^{n + 1}$ has
$\mathrm{VC}_n$ dimension at most 3? -/
@[category research open, question, AMS 5 52]
lemma hasAddVCNDimAtMost_n_two_of_convex_rn_add_one :
    ∀ ⦃n : ℕ⦄, n ≠ 0 → ∀ ⦃C : Set (EuclideanSpace ℝ (Fin (n + 1)))⦄,
      Convex ℝ C → HasAddVCNDimAtMost C n 3 := by
  sorry

end VCDimConvex

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

nosorry fetch other-vcdimconvex
nosorry submit other-vcdimconvex nosorry/other-vcdimconvex/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.