Documentation

Graphon.DigraphMaps

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.

def Digraph.comap {V : Type u_2} {W : Type u_3} (f : VW) (G : Digraph W) :

The comap of a digraph along a function: x and y are adjacent in G.comap f iff f x and f y are adjacent in G.

Equations
Instances For
    @[simp]
    theorem Digraph.comap_adj {V : Type u_2} {W : Type u_3} (f : VW) (G : Digraph W) (x y : V) :
    (Digraph.comap f G).Adj x y G.Adj (f x) (f y)
    @[simp]
    theorem Digraph.comap_id {V : Type u_2} (G : Digraph V) :
    @[simp]
    theorem Digraph.comap_comap {U : Type u_1} {V : Type u_2} {W : Type u_3} (f : UV) (g : VW) (G : Digraph W) :
    @[implicit_reducible]
    instance Digraph.decidableRelComap {V : Type u_2} {W : Type u_3} (f : VW) (G : Digraph W) [DecidableRel G.Adj] :
    Equations