AFTD Auto-Formalizing Theoretical Domains

graph_has_d_cut

def

A finite simple graph G has a d-cut if there exists a subset A of vertices forming a d-cut.

Statement

def graph_has_d_cut {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) (d : ℕ) : Prop
Defined in
arXiv:2611.26556 Section 1
Verified
20 Nov 2026
Axioms
none listed
Built on 1
  • graph_is_d_cutA 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…
Used by 3
  • graph_is_d_immuneA finite simple graph G is d-immune if it has no d-cut.
  • top_is_d_immuneFor any d and any finite vertex set of size at least 2d + 1, the complete simple graph is d-immune.
  • 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

For a finite type V with decidable equality, a simple graph G on V, and a natural number d, graph_has_d_cut G d asserts that there exists a finset A of V such that: 1. A is nonempty, 2. the complement Aᶜ (relative to the universe of V) is nonempty, 3. for every vertex u ∈ A, the number of neighbors of u in G that are not in A is at most d, and 4. for every vertex v ∈ Aᶜ, the number of neighbors of v in G that are in 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 simple graph has a d-cut if there exists a d-cut partition of its vertices. -/
def graph_has_d_cut {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) (d : ℕ) : Prop :=
  ∃ A : Finset V, graph_is_d_cut G d A
See it in the graphDiscuss this resultChallenge it