A W-suspension is similar to a W-type, except instead of being inductively generated by term constructors and function constructors, W-suspensions are inductively generated by term constructors and identification constructors.
Definition
There are multiple possible definitions of a (directed, pseudo-) graph 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.
a graph consists of a type and a type and two functions and . is the type of vertices in , and the type of edges the type of edges between and in the graph is the type
a graph consists of types and , a type family indexed by , and functions and . is the type of vertices of a graph, is the type of endpoint configurations of edges in the graph, and is the type of edges in the graph given an endpoint configuration . Given elements and , the type of edges between and in the graph is the type
The first definition of a graph leads to the notion of graph quotient and the second definition of a graph leads to the notion of coequalizer type. The third definition of a graph leads to the notion of a W-suspension, a higher inductive type defined in Sojakova15:
Given types and , a type family indexed by , and functions and , one could construct the W-suspension which is generated by the graph in the following sense: there are point constructors
and for each endpoint configuration , 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