{
  "id": "7217",
  "ident": "NS.07217",
  "slug": "other-vcdimconvex",
  "title": "VCₙ dimension of convex sets in ℝⁿ, ℝⁿ⁺¹, ℝⁿ⁺²",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Every convex set in $\\mathbb R^2$ has VC dimension at most 3.",
  "subjects": [
    "math.CO",
    "math.MG",
    "msc:05",
    "msc:52"
  ],
  "tags": [],
  "collection": "other",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "VCDimConvex.hasAddVCDimAtMost_three_of_convex_r2",
  "statement_lean": "lemma hasAddVCDimAtMost_three_of_convex_r2 {C : Set ℝ²} (hC : Convex ℝ C) : HasAddVCDimAtMost C 3",
  "challenge_source": "/-\nCopyright 2025 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# VCₙ dimension of convex sets in ℝⁿ, ℝⁿ⁺¹, ℝⁿ⁺²\n\nIn the literature it is known that every convex set in ℝ² has VC dimension at most 3,\nand there exists a convex set in ℝ³ with infinite VC dimension (even more strongly,\nwhich shatters an infinite set).\n\nThis file states that every convex set in ℝⁿ has finite VCₙ dimension, constructs a convex set in\nℝⁿ⁺² with infinite VCₙ dimension (even more strongly, which n-shatters an infinite set),\nand conjectures that every convex set in ℝⁿ⁺¹ has finite VCₙ dimension.\n-/\n\n@[expose] public section\n\nopen scoped EuclideanGeometry Pointwise\n\nnamespace VCDimConvex\n\n/-  ### What's known in the literature -/\n\n/-- Every convex set in $\\mathbb R^2$ has VC dimension at most 3. -/\n@[category research solved, AMS 5 52]\nlemma hasAddVCDimAtMost_three_of_convex_r2 {C : Set ℝ²} (hC : Convex ℝ C) : HasAddVCDimAtMost C 3 :=\n  sorry\n\n/-- There exists a set in $\\mathbb R^3$ shattering an infinite set. -/\n@[category research solved, AMS 5 52]\nlemma exists_infinite_convex_r3_shatters :\n    ∃ A C : Set ℝ³, A.Infinite ∧ Convex ℝ C ∧ Shatters {t +ᵥ C | t : ℝ³} A := sorry\n\n/-  ### What's not in the literature -/\n\n/-- There exists a set of infinite $\\mathrm{VC}_n$ dimension in $\\mathbb R^{n + 2}$. -/\n@[category research solved, AMS 5 52]\nlemma exists_convex_rn_add_two_vc_n_forall_not_hasAddVCNDimAtMost (n : ℕ) :\n    ∃ C : Set (Fin (n + 2) → ℝ), Convex ℝ C ∧ ∀ d, ¬ HasAddVCNDimAtMost C n d := sorry\n\n/-  ### Conjectures -/\n\nset_option linter.style.formal_proof_palomar false in\n/-- Not every convex set in $\\mathbb R^3$ has\n$\\mathrm{VC}_2$ dimension at most 1. -/\n@[category research solved, AMS 5 52,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/vcdim-convex-counterexample/blob/ad7ffff1514843c886633f5408c6456dfb2e2a49/formal-conjectures-v4.27.0/VCDimConvexCounterexample.lean\"]\nlemma hasAddVCNDimAtMost_two_one_of_convex_r3 :\n    ¬ ∀ {C : Set ℝ³} (hC : Convex ℝ C),\n      HasAddVCNDimAtMost C 2 1 := sorry\n\n/-- Every convex set in $\\mathbb R^3$ has $\\mathrm{VC}_2$ dimension at most 2. -/\n@[category research open, AMS 5 52]\nlemma hasAddVCNDimAtMost_two_two_of_convex_r3 {C : Set ℝ³} (hC : Convex ℝ C) :\n    HasAddVCNDimAtMost C 2 2 := sorry\n\nset_option linter.style.formal_proof_palomar false in\n/-- For every $n \\ge 1$ there exists some $d$ such that every convex set in $\\mathbb R^{n + 1}$ has\n$\\mathrm{VC}_n$ dimension at most $d$.\n\nThis holds with the explicit bound $d = 2^{8(n + 2)^n} - 1$; see\n[Kitamura's Lean formalization](https://github.com/KitaKen1/vcdim-convex-finite-bound).\n-/\n@[category research solved, AMS 5 52,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/vcdim-convex-finite-bound/blob/9d7685c7c7c8c8e82f47d59da5495a8d5374db99/lean/VCDimConvexBoundFC.lean#L14-L17\"]\nlemma exists_hasAddVCNDimAtMost_n_of_convex_rn_add_one (n : ℕ) (hn : 1 ≤ n) :\n    ∃ d : ℕ, ∀ C : Set (Fin (n + 1) → ℝ), Convex ℝ C → HasAddVCNDimAtMost C n d := sorry\n\n/-- For every $n \\ge 1$ there exists some $d$ such that every convex set in $\\mathbb R^{n + 1}$ has\n$\\mathrm{VC}_n$ dimension at most $d$.\n\nThe bound can be taken to be $d = c^n$ for some constant $c \\ge 2$ independent of $n$.\n-/\n@[category research open, AMS 5 52]\nlemma exists_exponential_bound_hasAddVCNDimAtMost_n_of_convex_rn_add_one :\n    ∃ c : ℕ, 2 ≤ c ∧ ∀ (n : ℕ) (hn : 1 ≤ n),\n      ∀ C : Set (Fin (n + 1) → ℝ), Convex ℝ C → HasAddVCNDimAtMost C n (c ^ n) := sorry\n\n/-- Is it true that, for all $n$, every convex set in $\\mathbb R^{n + 1}$ has\n$\\mathrm{VC}_n$ dimension at most 3? -/\n@[category research open, question, AMS 5 52]\nlemma hasAddVCNDimAtMost_n_two_of_convex_rn_add_one :\n    ∀ ⦃n : ℕ⦄, n ≠ 0 → ∀ ⦃C : Set (EuclideanSpace ℝ (Fin (n + 1)))⦄,\n      Convex ℝ C → HasAddVCNDimAtMost C n 3 := by\n  sorry\n\nend VCDimConvex\n",
  "statement_hash": "7d607f778215d74a7590a89b3e97ad753f82772c25cf441daefebec709bf2aa6",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}