One binary coloring matches an outgoing edge at all but one vertex
ProvedSensitivity213981Formal.GuardAugmentation.exists_near_coloringboolean-functionssensitivitysensitivity-213981-formal
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_Sensitivity213981Formal_GuardAugmentation import Definitions.Def_Sensitivity213981Formal_Namespaces import Definitions.Def_SensitivityCampaign import Definitions.Def_SensitivitySeparation import Lean.Elab.Tactic.Omega import Mathlib.Algebra.BigOperators.Group.Finset.Basic import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Combinatorics.Hall.Finite import Mathlib.Data.Finset.Card import Mathlib.Data.Finset.Lattice.Fold import Mathlib.Data.Finset.Prod import Mathlib.Data.Fintype.Basic import Mathlib.Data.Fintype.Pi import Mathlib.Data.Fintype.Powerset import Mathlib.Tactic.Linarith set_option autoImplicit false set_option maxHeartbeats 0 set_option maxRecDepth 200000
Formal statement
theorem Sensitivity213981Formal.GuardAugmentation.exists_near_coloring :
∀ {V : Type} [Fintype.{0} V] [DecidableEq.{1} V] (R : V → V → Prop)
(ht : ∀ (x y : V), @Ne.{1} V x y → Or (R x y) (R y x)) (label : V → V → Bool),
@Exists.{1} (V → Bool) fun (color : V → Bool) =>
@Exists.{1} (Finset.{0} V) fun (bad : Finset.{0} V) =>
And
(@LE.le.{0} Nat instLENat (@Finset.card.{0} V bad)
(@OfNat.ofNat.{0} Nat (nat_lit 1) (instOfNatNat (nat_lit 1))))
(∀ (x : V),
Not
(@Membership.mem.{0, 0} V (Finset.{0} V)
(@SetLike.instMembership.{0, 0} (Finset.{0} V) V (@Finset.instSetLike.{0} V)) bad x) →
@Exists.{1} V fun (y : V) => And (R x y) (@Eq.{1} Bool (label x y) (color y))) := by sorrySource