op869_exposed_colors_forbidden
In a proper set-valued coloring, if each forbidden color appears on a neighbor of every vertex of T, then no vertex of T uses any forbidden color.
Statement
theorem op869_exposed_colors_forbidden {X γ : Type} [DecidableEq X] [DecidableEq γ] (G : SimpleGraph X) (colors : X → Finset γ) (T : Finset X) (forbidden : Finset γ) (hproper : ∀ x y, G.Adj x y → Disjoint (colors x) (colors y)) (hexposure : ∀ c ∈ forbidden, ∀ x ∈ T, ∃ y, G.Adj x y ∧ c ∈ colors y) : Disjoint forbidden (T.biUnion colors)
- Source
- Online edge connection in arXiv:2610.41516 Lemma 2.5.
- Verified
- 18 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
The proof proceeds by contradiction. If some forbidden color c were assigned to a vertex x ∈ T, the exposure hypothesis would guarantee a neighbor y of x that also receives c. However, this means adjacent vertices x and y share the color c, directly contradicting that the coloring is proper.
Assume for contradiction that some forbidden color is used by a vertex in T.
To show that the forbidden colors and the union of color sets over T are disjoint, we apply Finset.disjoint_left.mpr, reducing the goal to showing that no color can belong to both sets. We then introduce an arbitrary color c ∈ forbidden and assume that c also belongs to ⋃ x ∈ T, colors x.
uses
Finset.disjoint_left.mprapply Finset.disjoint_left.mpr intro c hc hct
There exist adjacent vertices x ∈ T and y that both contain color c.
Unpacking membership in the union via Finset.mem_biUnion.mp yields a vertex x ∈ T such that c ∈ colors x. The exposure hypothesis (hexposure) then ensures that x has a neighbor y with c ∈ colors y.
uses
Finset.mem_biUnion.mpobtain ⟨x, hx, hcx⟩ := Finset.mem_biUnion.mp hct obtain ⟨y, hxy, hcy⟩ := hexposure c hc x hx
Contradiction: adjacent vertices cannot share any colors.
Since x and y are adjacent, the properness hypothesis (hproper) guarantees that colors x and colors y are disjoint. By Finset.disjoint_left.mp, this contradicts having c ∈ colors x and c ∈ colors y simultaneously.
uses
Finset.disjoint_left.mpexact Finset.disjoint_left.mp (hproper x y hxy) hcx hcy
Finset.disjoint_left.mpr- Two finite sets are disjoint if no element of the first set belongs to the second set.
Finset.mem_biUnion.mp- If an element belongs to the union of a family of sets indexed by a finite set, then it belongs to the member set for at least one index.
Finset.disjoint_left.mp- If two finite sets are disjoint, an element of the first set cannot belong to the second set.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- Adjacency to color representatives excludes their colors from a whole simulated block. -/theorem op869_exposed_colors_forbidden {X γ : Type} [DecidableEq X] [DecidableEq γ] (G : SimpleGraph X) (colors : X → Finset γ) (T : Finset X) (forbidden : Finset γ) (hproper : ∀ x y, G.Adj x y → Disjoint (colors x) (colors y)) (hexposure : ∀ c ∈ forbidden, ∀ x ∈ T, ∃ y, G.Adj x y ∧ c ∈ colors y) : Disjoint forbidden (T.biUnion colors) := by apply Finset.disjoint_left.mpr intro c hc hct obtain ⟨x, hx, hcx⟩ := Finset.mem_biUnion.mp hct obtain ⟨y, hxy, hcy⟩ := hexposure c hc x hx exact Finset.disjoint_left.mp (hproper x y hxy) hcx hcy