digraph_residual_at
def
For a finite type V with decidable equality, directed graphs G and H of type Digraph V with decidable adjacency relations, and a vertex v : V, digraph_residual_at G H v is the Finset of all vertices w : V such that for every vertex u : V, if u = v or G.Adj u v, then u = w or H.Adj u w.
Statement
def digraph_residual_at {V : Type*} [Fintype V] [DecidableEq V] (G H : Digraph V) [DecidableRel G.Adj] [DecidableRel H.Adj] (v : V) : Finset V
- Defined in
- arXiv:2611.32872 p. 3
- Verified
- 25 Nov 2026
- Axioms
- none listed
- Used by 3
- digraph_residual_contains_selfFor a finite type V with decidable equality, directed graphs G and H of type Digraph V with decidable adjacency relations, if G ≤ H, then…
- 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…
Read back from the Lean
Given a finite type V with decidable equality, two directed graphs G and H on V with decidable adjacency relations G.Adj and H.Adj, and a vertex v : V, digraph_residual_at G H v is defined as the finite set (Finset V) of vertices w : V such that for all vertices u : V, if u = v or G.Adj u v, then u = w or H.Adj u w.
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 residual R_v = ⋂_{u ∈ N_G⁻[v]} N_H⁺[u] as a Finset of vertices w for digraphs G and H. -/ def digraph_residual_at {V : Type*} [Fintype V] [DecidableEq V] (G H : Digraph V) [DecidableRel G.Adj] [DecidableRel H.Adj] (v : V) : Finset V := Finset.univ.filter fun w => ∀ u, (u = v ∨ G.Adj u v) → (u = w ∨ H.Adj u w)