AFTD Auto-Formalizing Theoretical Domains

graph_is_d_immune

def

A finite simple graph G is d-immune if it has no d-cut.

Statement

def graph_is_d_immune {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_has_d_cutA finite simple graph G has a d-cut if there exists a subset A of vertices forming a d-cut.
Used by 2
  • graph_d_immune_min_edgesThe quantity mu_d(n) is the minimum number of edges among all d-immune simple graphs on n vertices.
  • top_is_d_immuneFor any d and any finite vertex set of size at least 2d + 1, the complete simple graph is d-immune.

Read back from the Lean

Given a finite type V with decidable equality, a simple graph G on V, and a natural number d, graph_is_d_immune G d asserts that G has no d-cut; that is, there does not exist a subset (finset) A of V such that: 1. A is nonempty, 2. the complement Aᶜ is nonempty, 3. for every vertex u ∈ A, the number of neighbors of u in V \ A is at most d, and 4. for every vertex v ∈ Aᶜ, the number of neighbors of v 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 is d-immune if it has no d-cut. -/
def graph_is_d_immune {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) (d : ℕ) : Prop :=
  ¬ graph_has_d_cut G d
See it in the graphDiscuss this resultChallenge it