Redirected from "graph quotients".
Contents
Idea
A graph quotient is similar to a W-type, except instead of being inductively generated by term constructors and function constructors, graph quotients are inductively generated by term constructors and identification constructors.
Definition
In dependent type theory, a graph consists of a type and a binary type family indexed by and . is the type of vertices of a graph and each is the type of edges of a graph.
Given a graph , one could construct the graph quotient which is generated by the graph in the following sense: there are point constructors
and for each and , path constructors
The recursion principle of says that given a type together with
- a function
- a dependent function
there exists a function such that
- for all , , and
- for all , , and ,
Similarly, the induction principle of says that given a type family indexed by together with
- a dependent function
- a dependent function
there exists a dependent function such that
- for all , , and
- for all , , and ,
The large recursion principle of says that given
- a type family
- a dependent function
there exists a type family such that
- for all , , and
- for all , , and ,
Relation to coequalizer types
Graph quotients can be constructed as the coequalizer of the left and middle dependent pair projections and of the dependent pair type , both of which have domain and codomain :
Alternatively, given two parallel functions and , the coequalizer of and could be defined as the graph quotient generated by the graph defined by the family of dependent sum types
References