digraph_closed_out_nbr
def
For a finite directed graph G and a vertex subset X, the closed out-neighborhood N_G^+[X] is the union of X and all vertices y such that some vertex in X has an edge to y.
Statement
def digraph_closed_out_nbr {V : Type*} [Fintype V] [DecidableEq V] (G : Digraph V) [DecidableRel G.Adj] (X : Finset V) : Finset V
- Defined in
- arXiv:2611.32872 p. 3
- Verified
- 25 Nov 2026
- Axioms
- none listed
- Used by 5
- digraph_is_saturated_extensionFor a finite type V with decidable equality and directed graphs G and H on V with decidable adjacency relations, H is a saturated…
- digraph_residual_total_expansion_le_of_tournamentFor a finite type V with decidable equality and directed graphs G and H of type Digraph V with decidable adjacency relations, if G is…
- digraph_residual_subset_out_nbrFor a finite type V with decidable equality, directed graphs G and H of type Digraph V with decidable adjacency relations, and any vertex…
- digraph_expansion_submodularFor a finite type V with decidable equality, a directed graph G on V with decidable adjacency relation, and any two finite vertex sets X…
- 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…
Read back from the Lean
For a type V equipped with Fintype V and DecidableEq V, a directed graph G : Digraph V with decidable adjacency relation G.Adj, and a finite set of vertices X : Finset V, digraph_closed_out_nbr G X is defined as the union of X and the finite set of all vertices y : V such that there exists some x ∈ X with G.Adj x y (the closed out-neighborhood of X in G).
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 closed out-neighborhood N_G⁺[X] of a vertex subset X in a digraph G. -/ def digraph_closed_out_nbr {V : Type*} [Fintype V] [DecidableEq V] (G : Digraph V) [DecidableRel G.Adj] (X : Finset V) : Finset V := X ∪ (Finset.univ.filter fun y => ∃ x ∈ X, G.Adj x y)