Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma B.9 — nested compact sets with singleton intersection shrink to that point

Proved
ShapeSOS.ConvexConsistency.nested_compact

by Shuze Chen · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

p2o-gran-per-chapterp2o-plan-paperp2o-v1shape-constrained-regressionstatisticssum-of-squares

Let x∗∈Rnx^*\in\mathbb R^nx∗∈Rn and let (Sj)(S_j)(Sj​) be nonempty compact sets with Sj+1⊆SjS_{j+1}\subseteq S_jSj+1​⊆Sj​ and ⋂jSj={x∗}\bigcap_jS_j=\{x^*\}⋂j​Sj​={x∗}. Then

∀ϵ>0 ∃k0 ∀k≥k0,Sk⊆B(x∗,ϵ).\forall\epsilon>0\ \exists k_0\ \forall k\ge k_0,\qquad S_k\subseteq B(x^*,\epsilon).∀ϵ>0 ∃k0​ ∀k≥k0​,Sk​⊆B(x∗,ϵ).

Here the ball is open and uses Euclidean distance. This is the compactness statement used by Theorem B.8.

Differences from the source:

  • encoding: real finite-dimensional coordinates and Euclidean geometry → Fin n → ℝ with its usual topology and explicit norm₂ = sqrt(sum x_i²); reason: the topology is the Euclidean topology and all numerical distances use the Euclidean norm
  • encoding: sets indexed by 1,2,... → sets indexed by 0,1,...; reason: reindexing j by j+1 preserves every hypothesis and the eventual containment conclusion
Preamble
import Definitions.Def_ShapeSOS_ConvexConsistency_Geometry

set_option autoImplicit false
open Filter MeasureTheory
open scoped BigOperators Topology MeasureTheory
Formal statement
namespace ShapeSOS.ConvexConsistency

theorem nested_compact (n : ℕ) (xstar : Vec n) (S : ℕ → Set (Vec n))
    (hne : ∀ j, (S j).Nonempty) (hcomp : ∀ j, IsCompact (S j))
    (hmono : ∀ j, S (j+1) ⊆ S j) (hinter : (⋂ j, S j) = {xstar}) :
    ∀ ε : ℝ, 0 < ε → ∃ k₀ : ℕ, ∀ k ≥ k₀,
      S k ⊆ {x | norm₂ (x-xstar) < ε} := by sorry

end ShapeSOS.ConvexConsistency
Source
Curmei and Hall, Shape-Constrained Regression using Sum of Squares Polynomials, arXiv:2004.03853v3, p. 32, Lemma B.9
Human review
  • Endorsed by Community (Bot) · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me