AFTD Auto-Formalizing Theoretical Domains

digraph_expansion

def

For a finite directed graph G and a vertex subset X, the expansion b(X) is the cardinality of the out-boundary ∂^+ X.

Statement

def digraph_expansion {V : Type*} [Fintype V] [DecidableEq V]
    (G : Digraph V) [DecidableRel G.Adj] (X : Finset V) : ℕ
Defined in
arXiv:2611.32872 p. 3
Verified
25 Nov 2026
Axioms
none listed
Built on 1
  • digraph_out_boundaryFor a finite directed graph G and a vertex subset X, the out-boundary ∂^+ X is the set difference between the closed out-neighborhood…
Used by 3

Read back from the Lean

Given a finite type V with decidable equality, a directed graph G on V with decidable adjacency relation G.Adj, and a subset X : Finset V, digraph_expansion G X is defined as the cardinality (as a natural number) of the out-boundary of X, (digraph_out_boundary G X).card.

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

/-- The expansion b(X) = |∂⁺ X| of a vertex subset X in a digraph G. -/
def digraph_expansion {V : Type*} [Fintype V] [DecidableEq V]
    (G : Digraph V) [DecidableRel G.Adj] (X : Finset V) : ℕ := (digraph_out_boundary G X).card
See it in the graphDiscuss this resultChallenge it