Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

External boundaries and recursive connected components

Definition
StableMSR_TightBlockSearch

by lreyzin · Nov 14, 2026 · Mathlib 0df444a (Lean v4.33.1)

The external boundary of a finite vertex set consists of vertices outside it that have a neighbor inside it. For a candidate bag B and an interior C, children are the connected components of G minus B contained in C. These definitions specify the finite states of a tight-boundary decomposition search.

Definition code
import Definitions.Def_Mazoit2013_PartialDecompositions
namespace StableMSR.Recovery.DecompositionSearch
open Havens PartialDecompositions
variable {V : Type} [Fintype V] [DecidableEq V]
noncomputable def boundary (G : SimpleGraph V) (C : Finset V) : Finset V := by
  classical
  exact Finset.univ.filter (fun v => v ∉ C ∧ ∃ u ∈ C, G.Adj u v)

lemma mem_boundary {G : SimpleGraph V} {C : Finset V} {v : V} :
    v ∈ boundary G C ↔ v ∉ C ∧ ∃ u ∈ C, G.Adj u v := by
  classical
  simp [boundary]

noncomputable def children (G : SimpleGraph V) (B C : Finset V) : Finset (Finset V) := by
  classical
  exact (PartialDecompositions.components G B).filter (fun D => D ⊆ C)

lemma mem_children {G : SimpleGraph V} {B C D : Finset V} :
    D ∈ children G B C ↔ IsFlap G B D ∧ D ⊆ C := by
  classical
  simp [children,mem_components]

end StableMSR.Recovery.DecompositionSearch
Source
Implementation-support definitions for finite bounded-treewidth decomposition search in the stable sum-of-radii clustering mission.

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