Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

One binary coloring matches an outgoing edge at all but one vertex

Proved
GuardAugmentation.exists_near_coloring

by yousofy · Oct 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

boolean-functionsformal-proofsensitivity-separation-213303

Let VVV be finite, and let RRR be a relation such that every pair of distinct vertices is related in at least one direction. For any Boolean edge labeling ℓ\ellℓ, there are a vertex coloring ccc and a set B⊆VB\subseteq VB⊆V with

∣B∣≤1,∀x∉B, ∃y: R(x,y) and ℓ(x,y)=c(y).|B|\le1,\qquad \forall x\notin B,\ \exists y:\ R(x,y)\ \text{and}\ \ell(x,y)=c(y).∣B∣≤1,∀x∈/B, ∃y: R(x,y) and ℓ(x,y)=c(y).

The statement also includes the empty vertex type. This coloring is used to absorb guard vertices while losing at most one vertex.

Preamble
import Definitions.Def_SensitivityCampaign
import Definitions.Def_SensitivitySeparation
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.Order.BigOperators.Group.Finset
import Mathlib.Combinatorics.Hall.Finite
import Mathlib.Data.Finset.Prod
import Mathlib.Tactic.Linarith
import Definitions.Def_Sensitivity213303_CandidateCoherence
import Definitions.Def_Sensitivity213303_GuardAugmentation
import Definitions.Def_Sensitivity213303_TournamentHighRows

namespace CandidateCoherence
end CandidateCoherence
namespace MinmaxLocal
end MinmaxLocal
namespace TournamentHighRows
end TournamentHighRows
set_option autoImplicit false
set_option maxHeartbeats 3000000
namespace GuardAugmentation
end GuardAugmentation
open GuardAugmentation
open scoped Classical
open Finset MinmaxLocal TournamentHighRows CandidateCoherence
variable {V X : Type} [Fintype V] [DecidableEq V]
Formal statement
theorem GuardAugmentation.exists_near_coloring (R : V → V → Prop)
    (ht : ∀ x y, x ≠ y → R x y ∨ R y x) (label : V → V → Bool) :
    ∃ (color : V → Bool) (bad : Finset V), bad.card ≤ 1 ∧
      ∀ x, x ∉ bad → ∃ y, R x y ∧ label x y = color y := by sorry
Source
Original Lean formalization for the Prove2Me sensitivity campaign, GuardAugmentation, lines 76–97; source SHA256 9f7c8a76b829f98117ee0347abbe7f6abea6b1067f3dac3c6ba994ff5ed748fe.

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