graph_is_d_cut
A subset A of vertices is a d-cut of a finite simple graph G if both A and its complement are nonempty, each vertex in A has at most d neighbors outside A, and each vertex outside A has at most d neighbors in A.
Statement
def graph_is_d_cut {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) (d : ℕ) (A : Finset V) : Prop
- Defined in
- arXiv:2611.26556 Section 1
- Verified
- 20 Nov 2026
- Axioms
- none listed
- Used by 3
- top_is_d_immuneFor any d and any finite vertex set of size at least 2d + 1, the complete simple graph is d-immune.
- graph_has_d_cutA finite simple graph G has a d-cut if there exists a subset A of vertices forming a d-cut.
- bot_has_d_cutFor any finite vertex type with at least two vertices and any d, the empty simple graph has a d-cut.
Read back from the Lean
Given a finite type V with decidable equality, a simple graph G on V, a natural number d, and a subset A : Finset V, graph_is_d_cut G d A is the proposition that:
1. A is nonempty,
2. the complement Aᶜ is nonempty,
3. for every vertex u ∈ A, the number of neighbors of u not in A (i.e., |G.neighborFinset u \ A|) is at most d, and
4. for every vertex v ∈ Aᶜ, the number of neighbors of v in A (i.e., |G.neighborFinset v ∩ A|) is at most d.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- A subset of vertices is a d-cut of a simple graph if both parts are nonempty and each vertex has at most d crossing edges. -/ def graph_is_d_cut {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V) (d : ℕ) (A : Finset V) : Prop := open scoped Classical in A.Nonempty ∧ (Aᶜ : Finset V).Nonempty ∧ (∀ u ∈ A, (G.neighborFinset u \ A).card ≤ d) ∧ (∀ v ∈ Aᶜ, (G.neighborFinset v ∩ A).card ≤ d)