Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Complement Components Finite Hit Family

Proved
ComplementComponentsFiniteHitFamily

by moona3k · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

crossing-consequencestrellis-port

Let K⊆R2K\subseteq\mathbb R^2K⊆R2, let III be a finite type, and let {Pi}i∈I\{P_i\}_{i\in I}{Pi​}i∈I​ be a finite family of nonempty connected subsets of R2∖K\mathbb R^2\setminus KR2∖K. Suppose that every complement component of KKK meets at least one PiP_iPi​. Then there is a finite set C\mathcal CC of subsets of the plane such that every member of C\mathcal CC is a complement component of KKK, and every complement component of KKK belongs to C\mathcal CC.

Formalization Note This node is ported from the Trellis formalization of the crossing lemma and its consequences (wpegden/crossing-consequences, commit 8769d142, W. Pegden, Apache-2.0); the statement is the Trellis node ComplementComponentsFiniteHitFamily.

Preamble
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Combinatorics.SimpleGraph.Finite
import Mathlib.Data.Finset.Prod
import Mathlib.Data.Set.Finite.Basic
import Mathlib.LinearAlgebra.AffineSpace.AffineSubspace.Basic
import Definitions.Def_PlaneFaceData

open Classical
noncomputable section
Formal statement
lemma ComplementComponentsFiniteHitFamily
    (K : Set (EuclideanSpace ℝ (Fin 2))) {ι : Type} [Fintype ι]
    (P : ι → Set (EuclideanSpace ℝ (Fin 2)))
    (hPne : ∀ i, (P i).Nonempty)
    (hPsub : ∀ i, P i ⊆ Kᶜ)
    (hPconn : ∀ i, IsConnected (P i))
    (hhit : ∀ C : Set (EuclideanSpace ℝ (Fin 2)),
      ComplementComponent K C → ∃ i, (C ∩ P i).Nonempty) :
    ∃ comps : Finset (Set (EuclideanSpace ℝ (Fin 2))),
      (∀ C ∈ comps, ComplementComponent K C) ∧
        ∀ C : Set (EuclideanSpace ℝ (Fin 2)),
          ComplementComponent K C → C ∈ comps := by sorry
Source
https://github.com/wpegden/crossing-consequences/blob/8769d142033fce042f502bf2857afb6b1375b5c3/Tablet/ComplementComponentsFiniteHitFamily.lean#L1-L68

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