Comap of a directed graph #
The minimal pullback API for Mathlib's Digraph, mirroring SimpleGraph.comap. A candidate
for upstreaming to Mathlib (tracked on issue #24). Only comap is provided — map is
unnecessary for restriction consistency and has less canonical behaviour, so it is omitted.
@[simp]
@[simp]
theorem
Digraph.comap_comap
{U : Type u_1}
{V : Type u_2}
{W : Type u_3}
(f : U → V)
(g : V → W)
(G : Digraph W)
:
@[implicit_reducible]
instance
Digraph.decidableRelComap
{V : Type u_2}
{W : Type u_3}
(f : V → W)
(G : Digraph W)
[DecidableRel G.Adj]
:
DecidableRel (Digraph.comap f G).Adj
Equations
- Digraph.decidableRelComap f G x y = decidable_of_iff (G.Adj (f x) (f y)) ⋯