One binary coloring matches an outgoing edge at all but one vertex
ProvedGuardAugmentation.exists_near_coloringboolean-functionsformal-proofsensitivity-separation-213303
Let be finite, and let be a relation such that every pair of distinct vertices is related in at least one direction. For any Boolean edge labeling , there are a vertex coloring and a set with
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 sorrySource
Original Lean formalization for the Prove2Me sensitivity campaign, GuardAugmentation, lines 76–97; source SHA256 9f7c8a76b829f98117ee0347abbe7f6abea6b1067f3dac3c6ba994ff5ed748fe.