op309_total_edge_dom_iff_independent_uncovered_and_no_isolated
An edge set totally dominates the edges of a simple graph exactly when its uncovered vertices are independent and every selected edge has a different selected edge sharing an endpoint.
Statement
theorem op309_total_edge_dom_iff_independent_uncovered_and_no_isolated {V : Type*} [DecidableEq V] (G : SimpleGraph V) (R : Finset G.edgeSet) : (∀ e : G.edgeSet, ∃ f ∈ R, G.lineGraph.Adj e f) ↔ (∀ a b : V, (∀ f ∈ R, a ∉ f.1) → (∀ f ∈ R, b ∉ f.1) → ¬ G.Adj a b) ∧ (∀ e ∈ R, ∃ f ∈ R, G.lineGraph.Adj e f)
- Source
- Uncovered-vertex characterization for the local P3 switch in OP-309.
- Verified
- 29 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Used by 1
- op309_cubic_twentyfour_no_leafclean_p3_forestNo cubic graph on 24 vertices has a totally dominating P3 forest whose leaf boundary edges all meet uncovered vertices.
The proof, explained
The equivalence is proved in two directions. For the forward direction, assuming R totally dominates all edges of G, an edge connecting two uncovered vertices would have to share an endpoint with a dominating edge in R, contradicting that both endpoints are uncovered; moreover, edges in R have neighbors in R directly by applying domination to edges in R. For the backward direction, an edge e ∈ R is dominated by the second condition, while for an edge e ∉ R with endpoints a and b, at least one endpoint must be incident to an edge in R (lest both be uncovered and adjacent, violating independence), and any such incident edge is distinct from e and shares that endpoint.
To prove the equivalence, we first consider the forward direction: assuming R totally dominates all edges of G, we split the goal into showing that uncovered vertices are independent and no edge in R is isolated.
We enable classical reasoning and split the logical equivalence into two directions. For the forward direction, we assume that every edge of G is adjacent in the line graph to some edge in R. We then split the conclusion into its two conjuncts: that uncovered vertices form an independent set, and that every selected edge in R has an adjacent selected edge.
classical constructor · intro hdom constructor
The uncovered vertices form an independent set: no two vertices not incident to any edge in R can be adjacent in G.
Suppose for contradiction that vertices a and b are adjacent in G, yet neither is incident to any edge in R. We form the edge e = s(a, b). By total domination, e is adjacent in the line graph to some edge f ∈ R, meaning e and f share a common vertex w. Since e = s(a, b), w must be either a or b. But this implies that either a or b belongs to f ∈ R, directly contradicting the assumption that both vertices are uncovered by R.
uses
G.mem_edgeSet,SimpleGraph.lineGraph_adj_iff_exists.mp,Sym2.mem_iff· intro a b ha hb hab let e : G.edgeSet := ⟨s(a,b), (G.mem_edgeSet).mpr hab⟩ obtain ⟨f,hf,hef⟩ := hdom e obtain ⟨w,hw,hwf⟩ := (SimpleGraph.lineGraph_adj_iff_exists.mp hef).2 have hw' : w = a ∨ w = b := by simpa [e, Sym2.mem_iff] using hw rcases hw' with rfl | rfl · exact ha f hf hwf · exact hb f hf hwf
Every edge in R is adjacent in the line graph to another edge in R.
Given any edge e ∈ R, since e is an edge of G, the total edge domination hypothesis directly yields an edge f ∈ R adjacent to e in the line graph.
· intro e he exact hdom e
For the reverse direction, assuming both conditions hold, any edge e ∈ R is adjacent to an edge in R.
We assume both conditions: uncovered vertices are independent, and every edge in R is adjacent to another edge in R. Given an arbitrary edge e of G, we perform a case split on whether e ∈ R. If e ∈ R, the second hypothesis immediately provides an adjacent edge f ∈ R.
· rintro ⟨hind,hselected⟩ e by_cases he : e ∈ R · exact hselected e heAn edge e ∉ R can be written as an unordered pair of adjacent endpoints a and b.
In the remaining case where e ∉ R, we use induction on unordered pairs to write e as s(a, b) for vertices a, b ∈ V. Since e is an edge of G, its endpoints a and b are adjacent in G.
uses
Sym2.ind,G.mem_edgeSet· have hpair : ∃ a b : V, e.1 = s(a,b) := by refine Sym2.ind (fun a b => ?_) e.1 exact ⟨a,b,rfl⟩ obtain ⟨a,b,hab⟩ := hpair have hadj : G.Adj a b := (G.mem_edgeSet).mp (hab ▸ e.2)
If endpoint a is incident to an edge in R, that edge dominates e in the line graph.
We branch on whether endpoint a is covered by some edge in R. If there is an edge f ∈ R incident to a, then e and f are adjacent in the line graph: they are distinct because e ∉ R while f ∈ R, and they share the vertex a (since a ∈ e = s(a, b) and a ∈ f).
uses
SimpleGraph.lineGraph_adj_iff_exists.mprby_cases ha : ∃ f ∈ R, a ∈ f.1 · obtain ⟨f,hf,haf⟩ := ha refine ⟨f,hf,SimpleGraph.lineGraph_adj_iff_exists.mpr ⟨?_,a,?_,haf⟩⟩ · intro h exact he (h ▸ hf) · rw [hab] simp
If endpoint a is uncovered, endpoint b must be incident to an edge in R, which then dominates e in the line graph.
If no edge in R covers a, we show by contradiction that b must be covered by some edge in R: if b were also uncovered, then both endpoints of the edge s(a, b) would be uncovered, contradicting the hypothesis that uncovered vertices form an independent set. Taking an edge f ∈ R incident to b, e and f are adjacent in the line graph because e ≠ f (since e ∉ R and f ∈ R) and they share the vertex b.
uses
SimpleGraph.lineGraph_adj_iff_exists.mpr· have hb : ∃ f ∈ R, b ∈ f.1 := by by_contra hb apply hind a b ?_ ?_ hadj · intro f hf haf exact ha ⟨f,hf,haf⟩ · intro f hf hbf exact hb ⟨f,hf,hbf⟩ obtain ⟨f,hf,hbf⟩ := hb refine ⟨f,hf,SimpleGraph.lineGraph_adj_iff_exists.mpr ⟨?_,b,?_,hbf⟩⟩ · intro h exact he (h ▸ hf) · rw [hab] simp
G.mem_edgeSet- An unordered pair s(v, w) is in the edge set of G if and only if v and w are adjacent in G.
SimpleGraph.lineGraph_adj_iff_exists.mp- If two edges are adjacent in the line graph of G, then they are distinct and share at least one vertex.
SimpleGraph.lineGraph_adj_iff_exists.mpr- Two edges are adjacent in the line graph of G if they are distinct and share at least one vertex.
Sym2.mem_iff- An element belongs to an unordered pair s(a, b) if and only if it equals a or equals b.
Sym2.ind- Induction principle for unordered pairs: to prove a property for all elements of Sym2 V, it suffices to prove it for pairs of the form s(a, b).
- In Lean, an edge is represented as a term of G.edgeSet whose underlying value is an unordered pair in Sym2 V. Extracting endpoints a and b of an edge e is formally done using Sym2.ind.
- Adjacency in the line graph SimpleGraph.lineGraph requires edges to be distinct (e ≠ f) in addition to sharing an endpoint. When e ∉ R and f ∈ R, distinctness holds trivially because one is in R and the other is not.
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.
theorem op309_total_edge_dom_iff_independent_uncovered_and_no_isolated {V : Type*} [DecidableEq V] (G : SimpleGraph V) (R : Finset G.edgeSet) : (∀ e : G.edgeSet, ∃ f ∈ R, G.lineGraph.Adj e f) ↔ (∀ a b : V, (∀ f ∈ R, a ∉ f.1) → (∀ f ∈ R, b ∉ f.1) → ¬ G.Adj a b) ∧ (∀ e ∈ R, ∃ f ∈ R, G.lineGraph.Adj e f) := by classical constructor · intro hdom constructor · intro a b ha hb hab let e : G.edgeSet := ⟨s(a,b), (G.mem_edgeSet).mpr hab⟩ obtain ⟨f,hf,hef⟩ := hdom e obtain ⟨w,hw,hwf⟩ := (SimpleGraph.lineGraph_adj_iff_exists.mp hef).2 have hw' : w = a ∨ w = b := by simpa [e, Sym2.mem_iff] using hw rcases hw' with rfl | rfl · exact ha f hf hwf · exact hb f hf hwf · intro e he exact hdom e · rintro ⟨hind,hselected⟩ e by_cases he : e ∈ R · exact hselected e he · have hpair : ∃ a b : V, e.1 = s(a,b) := by refine Sym2.ind (fun a b => ?_) e.1 exact ⟨a,b,rfl⟩ obtain ⟨a,b,hab⟩ := hpair have hadj : G.Adj a b := (G.mem_edgeSet).mp (hab ▸ e.2) by_cases ha : ∃ f ∈ R, a ∈ f.1 · obtain ⟨f,hf,haf⟩ := ha refine ⟨f,hf,SimpleGraph.lineGraph_adj_iff_exists.mpr ⟨?_,a,?_,haf⟩⟩ · intro h exact he (h ▸ hf) · rw [hab] simp · have hb : ∃ f ∈ R, b ∈ f.1 := by by_contra hb apply hind a b ?_ ?_ hadj · intro f hf haf exact ha ⟨f,hf,haf⟩ · intro f hf hbf exact hb ⟨f,hf,hbf⟩ obtain ⟨f,hf,hbf⟩ := hb refine ⟨f,hf,SimpleGraph.lineGraph_adj_iff_exists.mpr ⟨?_,b,?_,hbf⟩⟩ · intro h exact he (h ▸ hf) · rw [hab] simp