Catalog.Sparsity.UniformQuasiWideness

Verification

Definition

A vertex subset \(A \subseteq V(G)\) in a graph \(G\) is distance-\(r\) independent if any two different vertices \(a, b \in A\) are at distance larger than \(r\).

For a graph \(G\) and \(S \subseteq V(G)\), the graph \(G - S\) is obtained by removing all vertices of \(S\) and their incident edges. The vertex set remains \(V(G)\); vertices of \(S\) become isolated with no adjacencies.

A class of graphs \(\mathcal{C}\) is called uniformly quasi-wide if for every \(r \in \mathbb{N}\) there exists a function \(N_r \colon \mathbb{N} \to \mathbb{N}\) and a constant \(s_r \in \mathbb{N}\) such that for all \(m \in \mathbb{N}\), \(G \in \mathcal{C}\), and \(A \subseteq V(G)\) with \(|A| \geq N_r(m)\), there exists \(S \subseteq V(G)\) with \(|S| \leq s_r\) and \(B \subseteq A \setminus S\) with \(|B| \geq m\) such that \(B\) is distance-\(r\) independent in \(G - S\).

Review notes

Scope. This entry bundles three informally-introduced notions with the main Definition 3.1: distance-\(r\) independence, the vertex deletion \(G - S\), and uniform quasi-wideness itself. The source introduces the first two in its preliminaries and only uses them here and in the proofs of Lemmas 3.3 / 3.4; co-locating them keeps the contract self-contained and avoids a thin “preliminaries” bucket. Catalog.Sparsity.Preliminaries retains only GraphClass.

DistIndependent. The walk-based formulation A.Pairwise (fun u v => ∀ (p : G.Walk u v), r < p.length) ensures that unreachable vertex pairs are always considered distance-\(r\) independent for every \(r\), matching the source convention that unreachable vertices have infinite distance. Mathlib’s SimpleGraph.dist returns \(0\) for unreachable pairs, which would give the wrong answer.

deleteVerts. We define deleteVerts G S as a SimpleGraph V (same vertex type) where adjacency requires both endpoints to lie outside \(S\). This avoids subtype coercions that would arise from G.induce Sc. The trade-off is that deleted vertices remain in the type but become isolated.

UniformlyQuasiWide. The Lean definition follows the source closely. The key encoding choices:

  • The threshold function \(N_r\) is existentially quantified as N : ℕ → ℕ. The source writes \(N_r(m)\); we write N m after fixing \(r\).
  • The separator bound \(s_r\) is existentially quantified as s : ℕ.
  • The set \(B \subseteq A \setminus S\) is encoded as ↑B ⊆ ↑A \(\setminus\) ↑S, lifting Finset to Set for the set difference.
  • Distance-\(r\) independence of \(B\) in \(G - S\) uses DistIndependent (deleteVerts G ↑S) r ↑B, now defined locally in this entry.

The source quantifies over “all \(m \in \mathbb{N}\), \(G \in \mathcal{C}\), and \(A \subseteq V(G)\) with \(|A| \geq N_r(m)\),” which we mirror exactly with the Lean binder order: \(m\), then type-polymorphic \(G\) with \(C\;G\), then \(A\) with the cardinality hypothesis.

Catalog/Sparsity/UniformQuasiWideness/Contract.lean (full)

1import Mathlib.Combinatorics.SimpleGraph.Walk.Basic
2import Catalog.Sparsity.Preliminaries.Contract
3
4open Catalog.Sparsity.Preliminaries
5
6namespace Catalog.Sparsity.UniformQuasiWideness
7
8/-- A set `A` of vertices is distance-`r` independent in `G` when every two
9 distinct vertices in `A` have no walk of length ≤ `r` between them. -/
10def DistIndependent {V : Type} (G : SimpleGraph V) (r : ℕ) (A : Set V) : Prop :=
11 A.Pairwise (fun u v => ∀ (p : G.Walk u v), r < p.length)
12
13/-- `deleteVerts G S` removes all edges incident to vertices in `S`, keeping
14 the vertex type `V` unchanged. This models `G - S`. -/
15def deleteVerts {V : Type} (G : SimpleGraph V) (S : Set V) : SimpleGraph V where
16 Adj u v := G.Adj u v ∧ u ∉ S ∧ v ∉ S
17 symm _ _ h := ⟨h.1.symm, h.2.2, h.2.1
18 loopless := ⟨fun v h => G.loopless.irrefl v h.1
19
20/-- A class `C` of graphs is uniformly quasi-wide if for every radius `r`
21 there exist a threshold function `N` and a separator size bound `s` such
22 that in every graph `G ∈ C`, every vertex set `A` of size at least `N(m)`
23 contains a subset `B` of size at least `m` that is distance-`r` independent
24 after removing at most `s` vertices. (Def 3.1) -/
25def UniformlyQuasiWide (C : GraphClass) : Prop :=
26 ∀ r : ℕ, ∃ (N : ℕ → ℕ) (s : ℕ),
27 ∀ (m : ℕ) {V : Type} [DecidableEq V] [Fintype V] (G : SimpleGraph V),
28 C G → ∀ (A : Finset V), N m ≤ A.card →
29 ∃ (S : Finset V) (B : Finset V),
30 S.card ≤ s ∧
31 ↑B ⊆ ↑A \ ↑S ∧
32 m ≤ B.card ∧
33 DistIndependent (deleteVerts G ↑S) r ↑B
34
35end Catalog.Sparsity.UniformQuasiWideness
36

Dependencies