Coherent Tietze Transformations of 1-Polygraphs in Homotopy Type Theory
Abstract
Polygraphs play a fundamental role in algebra, geometry, and computer science, by generalizing group presentations to higher-dimensional structures and encoding coherence for those. They have recently been adapted by Kraus and von Raumer to the setting of homotopy type theory, where they are useful to define and study higher inductive types. Here, we develop the theory of 1-dimensional polygraphs, which correspond to presentations of sets in homotopy type theory. This requires us to introduce a dedicated notion of Tietze transformation, generalizing their well-known counterpart in group theory: the equivalence generated by those transformations characterizes situations where two 1-polygraphs present the same set. We also show a homotopy transfer theorem, which provides a way to transport coherence structures from one 1-polygraph to another. This work lays the foundations for a general theory of polygraphs in arbitrary dimensions, which should be useful for instance to define and study coherent group presentations, allowing for synthetic (co)homology computations. Most of the results in the article have been formalized with the Agda proof assistant using the cubical HoTT library.
Keywords and phrases:
homotopy type theory, polygraph, Tietze transformation, coherenceCopyright and License:
2012 ACM Subject Classification:
Theory of computation Constructive mathematicsSupplementary Material:
Software (Agda proofs): https://github.com/smimram/agda-polygraphs [13]
archived at
swh:1:dir:27f2a0c3a496b72c3f4cd458ab51ea174f448eb7
Editors:
Maribel FernándezSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
Introduction
The notion of polygraph is emerging as a central one in many areas of mathematics and computer science [1]. From an algebraic point of view, it generalizes group presentations by generators and relations. Namely, polygraphs have been used to present more complex structures (such as higher categories or even weak ones [3]), but they also allow the encoding of their coherence, by describing the higher relations between relations. From a geometric point of view, polygraphs can be thought of as analogous to CW-complexes, since they are constructed by progressively attaching cells (more formally, they can be shown to be cofibrant objects in suitable model structures [12]). Finally, from a computer science point of view, they generalize rewriting systems [2] (again, in higher-dimensions, and by taking coherence into account): 1-polygraphs essentially correspond to abstract rewriting systems while 2-polygraphs generalizes string rewriting systems. Many of the traditional constructions and tools of rewriting theory generalize to polygraphs, we refer readers to the monograph [1] for a general overview. Let us first illustrate some of those on group presentations.
Tietze transformations.
The symmetric group of order (of bijections of a 3-elements set) admits the presentation , meaning that it is generated by two generators and , corresponding to two transpositions. Similarly, the dihedral group of order admits the presentation , where the generators and respectively correspond to a rotation of and a symmetry. It can be observed that the two resulting groups are isomorphic, and one can wonder whether this could be shown directly at the level of presentations. The answer is positive: namely, Tietze has introduced two kinds of transformations on presentations, respectively consisting in adding a definable generator and a derivable relation, which preserve the presented group, while being complete in the sense that any two presentations of the same group can be transformed into one another [18]. And indeed, using them we can transform the above presentation of into the one of [1, Example 5.1.4]. These transformations generalize to polygraphs [1, Chapter 5] and can actually be taken as the basis for completion procedures such as the Knuth-Bendix procedure [8].
Coherent presentations.
By orienting the relations of a presentation (say, from left to right), one obtains a string rewriting system. It has been observed by Newman [15] and then Squier [17, 11], that, when the rewriting system is convergent, the 2-cells given by the confluence of the critical pairs provide a homotopy basis in dimension 2, i.e. are sufficient to fully describe the coherence datum, and thus make any diagram of rewriting paths commute: this is sometimes called Squier’s theorem. For instance, a coherent presentation of is obtained by adjoining the 5 following 2-cells, corresponding to the 5 critical branchings:
The above presentation of is not convergent, and thus we cannot compute coherence 2-cells as above. We could complete it into a convergent one, but sometimes such a completion is not available nor easily computable. Alternatively, from the fact that the presentations of and are equivalent through Tietze transformation, one can directly compute a homotopy basis of from the one of : this is the coherence transfer theorem (sometimes called homotopy transfer theorem) [4].
Polygraphs in homotopy type theory.
Homotopy type theory (HoTT) is a logical setting based on dependent types, in which types can be interpreted as spaces and be manipulated in a synthetic and homotopy-invariant way [19]. A central feature of the theory is the notion of higher inductive type (HIT) which generalizes inductive types by allowing constructors for identities, and can be thought of as generating CW-complexes. It is thus natural to try to relate those with polygraphs. In particular, one would like to use the above rewriting methods in order to provide explicit constructors which ensure coherence instead of resorting to formal truncations. Namely, given a formally -truncated type, one can only easily eliminate to -types, whereas providing explicit coherence cells allow to eliminate toward higher types, which is often required. This task has been achieved in dimension 2 by Kraus and von Raumer [10] who formalized Squier’s theorem for 2-polygraphs in HoTT.
Coherent Tietze transformations for homotopy 1-polygraphs.
While Squier’s theorem allows one to find a homotopy basis for convergent 2-polygraphs, we still need the coherence transfer theorem to transport it to non convergent ones. This key tool is however still missing in HoTT. Since its formalization in that setting turns out to be quite involved to perform in full details, we handle here the foundational case of 1-polygraphs. Those correspond to coherent presentations of propositions (as opposed to groups), and the setting of abstract rewriting systems (as opposed to string rewriting systems). To do so, we introduce coherent Tietze transformations on type theoretical 1-polygraphs, that is transformations on presentations which preserve coherence, and show associated correction and completeness results. We claim that it should generalize to higher-dimensional polygraphs, but already this first step allowed us to put to light interesting constructions and non-trivial proofs.
Notations.
We refer to [19] for an introduction to HoTT and only introduce here the notations required to read the article. We denote by the universe of all types, and (resp. ) for the contractible (resp. empty) type. Given a type , we write (resp. ) for its propositional (resp. set) truncation, and (resp. ) for the associated universal morphism. For a map and , we write for its homotopy fiber at . We also write for the path induced by on by functoriality from a path in . We write for the trivial path on an element of an arbitrary type, for the inverse of a path , and for the concatenation of two paths and .
Plan of the paper.
After defining 1-polygraphs (Section 1), we define the associated Tietze transformations (Section 2) and show correctness and completeness theorems for those (Theorems 13 and 22). We then introduce a notion of morphism between 1-polygraphs (Section 3), which then allows us (Section 4) to provide a construction to transfer coherence from a 1-polygraph to a Tietze equivalent 0-polygraph (Theorem 28). We finally conclude (Section 5).
1 1-polygraphs
Before introducing 1-polygraphs, we first need to present the (quite trivial) 0-dimensional variant. A 0-polygraph is simply a type whose elements are called -generators. A sphere in a 0-polygraph is a pair of elements of , and we write for the type of such objects. If we write for the type with two elements, corresponding to the canonical 0-sphere, it can be noted that a sphere in a 0-polygraph corresponds to an arrow . Given a -polygraph , we call the proposition presented by .
1.1 Internal and external 1-polygraphs
1-polygraphs.
A 1-polygraph consists of a 0-polygraph (the underlying 0-polygraph of ) together with a function , which to any sphere in the underlying 0-polygraph associates a type whose elements are called the 1-generators of the 1-polygraph. In other words, 1-polygraphs correspond to type-theoretic directed graphs. A 1-polygraph is discrete when all the types and are sets. In the following, a sphere in is called a 0-sphere of .
1-generators.
The elements of are called 0-generators or 0-cells of . We sometimes write for the 0-spheres, as well as and for the type of 0- and 1-generators of . We also write for the source and target functions (defined by and ).
1-cells.
Given a 1-polygraph and a -sphere , we write for the type of 1-cells in from to . This family of types is defined inductively as the smallest one such that
-
for every 0-cell , we have a 1-cell ,
-
for every 0-cells , 1-generator and -cell , we have a 1-cell ,
-
for every 0-cells , 1-generator and -cell , we have a 1-cell .
Informally, cells in are undirected paths from to in the graph corresponding to (where the two last cases respectively correspond to taking an arrow forward and backward). In the following, we often write for a 1-generator and for a 1-cell .
Composition.
Given two 1-cells and , we define their composite by induction on by
Lemma 1 ([13, comp0-assoc]).
Composition is associative and unital.
Given a 1-cell , we define its opposite by induction on by
where , which corresponds to appending to , is defined by
and , corresponding to appending backward to , is defined similarly.
Spheres.
A sphere in a 1-polygraph consists of a -sphere together with a pair of 1-cells . The underlying 0-sphere is noted . The cell (resp. ) is called the source (resp. target) of and noted (resp. ), so that the sphere is the triple . We write for type of spheres in a -polygraph.
Coherent 1-cells.
In the definition of 1-cell, we think of and as respectively precomposing by the 1-cell and its inverse. However, nothing enforces that they are actually inverse operations, i.e. that we have
for any 1-generator and 1-cell of suitable types. We define the types of coherent 1-cells , indexed by 0-spheres , as the quotient of the types of 1-cells under the congruence generated by the above relations. This type is the “right” definition for the 1-cells of , in the sense that it gives a description of the free groupoid generated by [9]. However, non coherent 1-cells provides representatives for those which are often simpler to work with. Namely, by definition of coherent 1-cells as a quotient of 1-cells, we have
Lemma 2.
For , the canonical map is a surjection, i.e. the type is inhabited for any .
1.2 Geometric realization
We introduce the “geometric realization” of a 1-polygraph , which can be thought of as a type-theoretical graph with as vertices and as edges. The set presented by is then defined as the type of connected components of this graph.
Geometric realization.
Given a 1-polygraph its geometric realization is the higher inductive type generated by the two constructors
More abstractly, it corresponds to the pushout on the left or to the coequalizer on the right
where the horizontal arrow sends an edge and (resp. ) to (resp. ), which corresponds to attaching 1-cells to a 0-dimensional cell complex. The associated induction principle is the following.
Proposition 3.
Suppose given an arbitrary type . Any two functions and induce a unique function such that and . We also have the expected dependent generalization.
By partial evaluation, the map induces, for , a map , which extends as a map on cells defined by induction by
Moreover, since this definition is compatible with the relations for coherent 1-cells, for every sphere we have the following.
Lemma 4.
The map induces a map .
This map is an equivalence, so it provides a characterization of the paths in geometric realizations of graphs [13, KvR/1Polygraph/PathPresentation.agda]:
Theorem 5.
The map is an equivalence.
Proof.
A map can be defined using the elimination principle for paths in given in [9, Theorem 3], and both can be shown to be mutually inverse by induction.
Presented set.
The set presented by a 1-polygraph is the set of connected components of its geometric realization . This notion is to be understood as an analogue of a group presentation with generators and relations, but shifted down by one dimension: here, the 0-cells of are the generators of the presented set, and the 1-cells are the relations.
Example 6.
Consider the polygraph with and one relation for . The presented set is .
We now prove some technical lemmas that will be useful later on.
Lemma 7.
For and in , there merely exists a 1-cell in .
Proof.
By [19, Theorem 7.3.12], the type coincides with . Since we are eliminating to a proposition, we can suppose given a path which by Theorem 5 induces a coherent cell , and we conclude by Section 1.1. The following shows that we can pick a representative 0-cell in every connected component [13, has-repr]:
Proposition 8.
The type is inhabited.
Proof.
Any proposition being a set [19, Lemma 3.3.4], it is enough to construct a map which can be done by using the elimination principle of (Section 1.2). Namely, we define, for , and, for and , the path associated to it by is canonically defined by the fact that we are eliminating to a proposition.
2 Tietze transformations
Tietze transformations originate from the work of Tietze [18] who defined two transformations on group presentations:
- (T0)
-
adding a definable generator,
- (T1)
-
adding a derivable relation.
The equivalence relation they induce, the Tietze equivalence, characterizes when two presentations give rise to the same group, up to isomorphism. These transformations have then been generalized to a variety of contexts, including the very general one of polygraphs [1, 5] for presentations of (higher) categories, and have as well been shown to provide a interesting notion of weak equivalence [7]. Their fundamental property can be decomposed in two parts:
-
correctness: any two presentations which are Tietze equivalent present the same structure,
-
completeness: any two presentations of the same structure are Tietze equivalent.
Here, we think of a 1-polygraph as presenting the set , and we define elementary transformations as explained above. We then show that they are correct and complete with respect to the presented set.
2.1 Definition
We define the two following families of Tietze transformations, which transform a given 1-polygraph into another 1-polygraph, by attaching cells to it:
- (T0)
-
Add a definable 0-generator: given a type and a function , we construct the polygraph defined, for , by
- (T1)
-
Add a derivable relation: given a function and a family of functions indexed by 0-spheres , we construct the polygraph defined, for , by
A transformation (T0) consists in adding, for every element , a new 0-generator to the polygraph together with a 1-generator :
with , and is a notation for the element . A transformation (T1) consists in adding, for every and , a 1-generator :
It can be observed that we have a new hole after performing a transformation (T1), which justifies the importance of the set-truncation in the definition of the presented set. Note that the functions are not used in order to define in (T1), but they will be necessary to show the correctness of the transformation below. For instance, if we did not require those, we could make any polygraph coherent by taking for any .
Remark 9.
We could also consider a weaker notion of transformation (T1) where we only require the existence of the 1-cell associated to an added 1-generator, i.e. type the function as . This variant would in fact be enough for the subsequent developments here.
Example 10.
We have the following series of Tietze transformations:
Under the Grothendieck duality between type families and fibrations [19, Section 4.8], the Tietze transformations (T1) can reformulated as follows (a similar reformulation for (T0) could also be given):
Proposition 11.
Transformations (T1) are equivalent to the following:
- (T1’)
-
Given a type and function , we construct the polygraph with and, for ,
We define the Tietze equivalence as the equivalence relation generated by (T0) and (T1).
Transformations for 0-polygraphs.
The notion of Tietze transformation generalizes to polygraphs in any dimension. In particular, for 0-polygraphs, it can be formulated as follows. An elementary Tietze transformation of 0-polygraphs consists in
- (T0)
-
Given a 0-polygraph , a type and a function , we consider the 0-polygraph .
Two 0-polygraphs are Tietze equivalent when they are related by the smallest equivalence relation identifying with for any and .
Proposition 12.
There exists a Tietze equivalence between two 0-polygraphs and if and only if they present the same proposition, i.e. .
2.2 Correctness
Our aim is now to show the correctness property for Tietze transformations of 1-polygraphs: equivalent 1-polygraphs present the same set.
Theorem 13 (Correctness).
Given two Tietze equivalent 1-polygraphs and , we have .
By induction on the equivalence, it is enough to show the result when is obtained form by a Tietze transformation (T0) or (T1), which we do below. Throughout the section, we suppose fixed a 1-polygraph . We first show that transformations (T0) are correct [13, tietze0-correct]:
Proposition 14.
Given a type and a function , we have .
Proof.
By definition of and its geometric realization, we have a coequalizer
By computing the coequalizer partially on the left component of the coproduct, we find that is the coequalizer of . From which we easily deduce . The transformations (T0) actually preserve, not only the presented set, but also the geometric realization. We now show that transformations (T1) are correct [13, tietze1-correct]:
Proposition 15.
Given a type , a function , and a family of functions indexed by 0-spheres , we have .
Proof.
By using the induction principle of geometric realization (Section 1.2), we can define a map by
for and in . Conversely, we define a map by induction by
for , in , and for some . By induction, they can be shown to form a section-retraction pair, which induces an equivalence on the 0-truncations.
Sequential colimits.
Finally, we show that taking sequential colimits of Tietze transformations preserves correctness. We will see in Theorem 22 that this is not needed (in the sense that the colimiting map can always be constructed without a colimit), but it is often convenient in proofs.
Proposition 16.
Given a diagram where all the maps are elementary Tietze transformations, the canonical map induces an equivalence on geometric realizations.
Proof.
Since geometric realization is a colimit, by commutation of colimits, we have , and thus because colimits commute to truncation [16, Corollary 7.7]. Finally, we conclude using the fact that the canonical map is an equivalence, because a colimit of equivalences is an equivalence.
Example 17 (Fractal snowflakes).
Consider the space , generated by a point and two loops . As an application of the correctness theorem, we show that the loop space of (i.e. the type ) is equivalent to , the free group on two elements and . This is done by generalizing the famous proof that [19, Section 8.1]. We consider the fibration defined by induction on by and , respectively corresponding to right multiplication by and . Its total space can be computed by using the flattening lemma [19, Section 6.12], and shown to be where is the 1-polygraph such that , when or , and otherwise. This can be pictured as shown below, see also [6, Section 1.3].
Any element of can be written as a product of generators , and their inverses. Among the expressions of in terms of such products, there is a unique one minimizing the numbers of letters, the minimal expression for . Its length is called the length of . We write for the sub-1-polygraph of whose 0-cells are the elements of of length at most . It is not difficult to show that is obtained from by a Tietze transformation (T0) adding the elements of length as 0-cells, attached to the elements of length obtained by dropping the last generator in the minimal expression. The colimit of the is and, by Section 2.2 and the fact that geometric realizations commute with colimits, we deduce that is equivalent to , which is a point, and thus is contractible. We now consider the universal fibration defined by . It is well-known that is also contractible [19, Lemma 3.11.8], so we have . Furthermore, we can define a fiberwise map by transport, hence, by [19, Theorem 4.7.7], we have an equivalence .
2.3 Completeness
We now show a converse completeness result: any two 1-polygraphs presenting the same set are Tietze equivalent. Throughout the section, we thus suppose fixed two 1-polygraphs and such that we have an equality . We write and for the components of the induced equivalence between the two types. Our goal is to show that the 1-polygraphs and are equivalent. We should point out that this part has not (yet) been fully formalized in Agda.
In this section, we also need to suppose that the axiom of choice is satisfied. It is known to be consistent with homotopy type theory [19, Lemma 3.8.2], and can be formulated as follows:
Axiom 18.
The axiom of choice assumes an inhabitant of the type
for every and .
Informally, this axiom states that any family of merely inhabited types is itself merely inhabited.
Proving the completeness result in Theorem 22 below requires us to first show some technical lemmas. We begin by observing that the maps and can be lifted to maps between the underlying types of 0-generators.
Proposition 19.
There merely exist maps and such that
for and .
Proof.
We define a map by
where the rightmost map is the one defined in Section 1.2. By the axiom of choice, we deduce the existence of a map
satisfying the required identity. The map is constructed similarly. We then show that any 1-generator in induces a 1-cell in between the image of its endpoints.
Lemma 20.
Given a 1-generator in , there merely exists a 1-cell in , that we call in the following.
Proof.
By definition of the geometric realization, the 1-generator induces an equality in , and thus, by functoriality of and , an equality
Since, by Section 2.3, we have (and similarly for ), there is an equality
and we deduce, by Section 1.2, the existence of a 1-cell as desired. Furthermore, the maps and are mutually inverse modulo post-composition by .
Lemma 21.
For every , we have in (and similarly, we have for ).
Proof.
Given , by Section 2.3 and the fact that and are mutually inverse maps, we have . Finally, we can show the completeness theorem.
Theorem 22 (Completeness).
Consider two 1-polygraphs and such that . Then, assuming the axiom of choice, and are merely Tietze-equivalent.
Proof.
Starting from the polygraph , we are going to construct step-by-step a polygraph that contains both and and is Tietze-equivalent to (and thus to by symmetry).
-
1.
We add the 0-generators of . We write for the polygraph obtained from by performing a transformation (T0) with . Its type of 0-generators is and the 1-generators are those of together with one 1-generator for every .
-
2.
We add the relations from to . Given a 0-generator , we claim that there exists a 1-cell in . By previous step, we have a cell
Moreover, by Section 2.3, we have , so the type is inhabited by Section 1.2, and we can suppose that we actually have a 1-cell
because we are eliminating to a proposition. Hence, we can define a 1-cell by for every . Finally, we consider the function
and define by a transformation (T1’), see Section 2.1.
-
3.
We add the 1-generators of . Given a 1-generator in , we have 1-generators and in (by the first step), and we have the 1-cell by Section 2.3. We therefore have a 1-cell
in . This induces a function
which, to and associates the pair consisting of (or rather its image under the canonical inclusion) and the 1-cell constructed above. Finally, we define by a transformation (T1’).
In the 1-polygraph constructed above, the 0-generators are and the 1-generators are (up to canonical inclusion): those of , those of (by the third step), for (by the first step), for (by the second step). By exchanging the roles of and , we see that is also Tietze-equivalent to the above 1-polygraph (up to standard isomorphisms such as commutation of coproducts). By transitivity, we conclude that and are Tietze-equivalent.
3 Functors between 1-polygraphs
There is a natural notion of morphism between 1-polygraphs. In practice, it is however too restrictive because it requires sending 1-generators to 1-generators, whereas we often need to send 1-generators to 1-cells. In order to allow for this, we then introduce the notion of functor between 1-polygraphs.
3.1 Morphisms
A morphism between two 1-polygraphs and consists of a function between 0-generators together with a function
sending 1-generators to 1-generators. In other words, this corresponds to a morphism of graphs. Those can be composed in the expected way, and the resulting operation is associative and unital.
We write for the type of isomorphisms between 1-polygraphs. The structure identity principle [19, Section 9.8] ensures that identities correspond to those in the sense that the canonical map from identities to isomorphisms is an equivalence.
3.2 Functors
Given two 1-polygraphs and , a functor consists of a function together with a function
In the following, for simplicity, we often simply write instead of , and leave implicit the first argument of the above function . Note that any morphism can canonically be seen as functor.
Given a functor , we write
for the canonical extension of to 1-cells (as opposed to 1-generators), defined by
Given two functors and , their composite is the functor defined by and . The composition thus defined is associative and unital. It could alternatively be defined as a Kleisli construction based on the free category monad on 1-polygraphs (details left to the reader).
A functorial equivalence between two 1-polygraphs and consists of two functors and together with a family of cells
for every 0-generators and .
Given a polygraph , the identity functorial equivalence between and itself is defined by and . Given two equivalences and , we define their composite as the functorial equivalence between and consisting of the functors and together with the families of morphisms
This composition can be shown to be associative and unital. Moreover, any equivalence admits the equivalence as inverse (the opposite is taken pointwise).
3.3 Functions induced by functors
Any functor induces a function between the corresponding geometric realizations defined, using the elimination principle of Section 1.2, by
for and a 1-generator in , where the map is defined in Section 1.2. The following is shown in [13, equivalence-pres].
Proposition 23.
By the above construction, any functorial equivalence induces an equivalence .
Proof.
Consider the functions and . Given , our aim is to show that . Since this type is a proposition, and thus a set, it is enough to construct a function which can be done by induction on . Namely, for , we have and, for , is canonically given by the fact that is a set. We can similarly show that for , thus allowing us to conclude.
Remark 24.
It is not true that a functorial equivalence between and induces an equivalence between the corresponding geometric realizations (as opposed to presented sets). For instance, consider the polygraph with only one 0-cell and the polygraph with one 0-cell and one 1-cell, whose geometric realizations are respectively the point and the circle: they are functorially equivalent, but their realizations are not.
The above proposition allows us to recover in a “constructive” way the correctness property of Tietze transformations (Theorem 13). Namely, one can show [13, preservation]:
Proposition 25.
Any Tietze equivalence between two 1-polygraphs and induces a functorial equivalence between them.
Proof.
Since functorial equivalences are closed under identities, composition and inverses, it is enough to show that any elementary Tietze transformation induces a functorial equivalence between the corresponding polygraphs.
- (T0)
-
Given a type and a function , we consider the functor which is the canonical inclusion and the functor defined by
We take for , and is defined as for and as the 1-cell corresponding to the canonical 1-generator given by definition of (T0) for .
- (T1)
-
Given a function and functions , we consider the functor which is the canonical inclusion and the functor , which is the identity on 0-cells and
together with and being both identities for and .
To sum up, we have introduced three notions of equivalence for 1-polygraphs: Tietze equivalence, functorial equivalence, and equivalence of presented set. The above theorems show that these three notions coincide (Theorems 13, 22, 3.3, and 3.3).
4 Transfer of coherence
In a polygraph, cells can be understood as describing the “coherence” of the data, i.e. all the relations it should satisfy. In particular, if we see a 1-polygraph as presenting a proposition (the proposition presented by the underlying 0-polygraph, in the sense of Section 1), the 1-generators should inform us that we can identify any two 0-generators, since the only relevant data is the presence of such a 0-generator. More formally, the presented set should coincide with the presented proposition: . We formalize this here and provide conditions for ensuring that we are in such a coherent situation, as well as tools to transfer coherence from a 1-polygraph to another.
4.1 Coherent presentations
A coherence structure on a 1-polygraph is the data of a 1-cell for every 0-sphere . We say that a 1-polygraph is coherent when it admits a coherence structure. Note that any 0-polygraph can be extended into a coherent 1-polygraph by adding one 1-generator between every two 0-generators. We are however interested here in constructing coherent extensions of which are “small” (or, at least, combinatorially manageable). The techniques developed here should moreover extend to the case of higher-dimensional polygraphs, where the situation is much more involved [1].
4.2 The transfer theorem
Suppose given a 1-polygraph , a 0-polygraph and a Tietze equivalence of 0-polygraphs between and (see Section 2.1). We show that when is coherent, we can transfer its coherence structure to an extension of , which is moreover finite when the one of is. Namely, we can construct a transferred 1-polygraph with by induction on the Tietze equivalence as follows [13, extension]:
- (E)
-
if was obtained from by an elementary Tietze transformation, i.e. there is a type and a function such that , we define
so that there is a Tietze transformation of 1-polygraphs (T0) between and , in the sense that we have ,
- (E)
-
if was obtained from by an elementary Tietze transformation, i.e. there is a type and a function such that , we define
where is defined by
- (E)
-
the cases of reflexivity and transitivity are handled by identity and composition.
Example 26.
Consider the following discrete polygraphs and :
We have that is obtained from by an elementary Tietze transformation of 0-polygraphs with and defined by , where we write for the canonical element of . The resulting 1-polygraph (obtained by transfer) is thus . The polygraphs and are Tietze equivalent: we have the Tietze transformations
We will show in Theorem 28 that there is always a Tietze equivalence when is coherent, but the equivalence produced by the proof of the theorem will rather be the following one:
Remark 27.
Consider the variant of the previous example where is the same 1-polygraph with the 1-generator removed and is left unchanged. In this case, the resulting polygraph is the same as in previous example. However, the two polygraphs are not Tietze equivalent. Namely, we have and , and a Tietze equivalence would thus be in contradiction with Theorem 13. Note that the polygraph is not coherent.
We now show the following transfer theorem which states that a Tietze equivalence between 0-polygraphs can be extended as a Tietze equivalence between 1-polygraphs when one of them is coherent [13, transfer]. Section 4.2 illustrates why the coherence hypothesis is required.
Theorem 28 (Transfer theorem).
When is coherent, the above polygraphs and are Tietze equivalent.
Proof.
As above for the construction of , we reason by induction on the Tietze equivalence between and . In the case (E), is obtained from by a Tietze transformation (T0) and we conclude immediately.
The interesting case to handle is (E), where for some type and . In this case, we are going to construct a series of 1-polygraphs, which are elementarily Tietze equivalent, thus exhibiting a Tietze equivalence between and , as illustrated in Section 4.2. It is natural to consider the 1-polygraph obtained from by performing the “same Tietze transformation”, but with 1-polygraphs instead of 0-polygraphs, i.e. to consider . Clearly, and have the same 0-generators, but not the same 1-generators, and we will show that both are equivalent to a third 1-polygraph , still with the same 0-cells, and with the union of the 1-generators of and those of as 1-cells. Formally, we thus define the polygraph , as well as a variant , by
We claim that we have a series of Tietze transformations
as illustrated in Section 4.2. Those can be constructed as follows.
-
. The coherence of provides us, for every 0-sphere , with a cell . This allows us to define a family of functions, indexed by 0-spheres , , so that we have .
-
. The polygraphs and are clearly isomorphic, in the sense of Section 3.1.
-
. We define a family of functions indexed by 0-spheres , and by
where, for , the 1-generator is canonically given by the definition of from by a Tietze transformation (T0). We then have .
-
. The transformation (T0) from to is given by the very definition of .
5 Conclusion and future work
We have introduced the notion of 1-polygraph in homotopy type theory, as well as the associated Tietze transformations, for which we have shown correctness, completeness and coherence transfer properties. We believe that this work can be generalized in higher dimensions. Although the situation is more involved, for every -sphere in an -polygraph, there is an induced 1-polygraph with the -cells in the sphere as 0-generators and -cells (or, rather, the “-atoms”) as 1-generators, which should allow us reusing the properties shown above (this approach is for instance used in [14] to study coherent cartesian polygraphs). In particular, the case of 2-polygraphs would allow us to expand on the setting developed by Kraus and von Raumer in [10] (by defining Tietze transformations, etc.) and the case of 3-polygraphs would be particularly interesting since it would allow us studying coherent presentations of groups, and thus provide us with new tools to perform computations on those (their low-dimensional cohomology for instance). Some work in this direction is already present in our formal developments [13].
References
- [1] Dimitri Ara, Albert Burroni, Yves Guiraud, Philippe Malbos, François Métayer, and Samuel Mimram. Polygraphs: from rewriting to higher categories. Cambridge University Press, 2025.
- [2] Franz Baader and Tobias Nipkow. Term rewriting and all that. Cambridge University Press, 1998.
- [3] Christopher J Dean, Eric Finster, Ioannis Markakis, David Reutter, and Jamie Vicary. Computads for weak -categories as an inductive type. Advances in Mathematics, 450, 2024.
- [4] Yves Guiraud and Philippe Malbos. Identities among relations for higher-dimensional rewriting systems. In Operads 2009, volume 26 of Séminaires et congrès, pages 145–161. Société Mathématique de France, 2013.
- [5] Yves Guiraud and Philippe Malbos. Polygraphs of finite derivation type. Mathematical Structures in Computer Science, 28(2):155–201, 2018. doi:10.1017/S0960129516000220.
- [6] Allen Hatcher. Algebraic Topology. Cambridge University Press, 2002.
- [7] Simon Henry and Samuel Mimram. Tietze equivalences as weak equivalences. Applied Categorical Structures, 30(3):453–483, 2022. doi:10.1007/S10485-021-09662-W.
- [8] Donald E. Knuth and Peter B. Bendix. Simple word problems in universal algebras. In Computational problems in abstract algebra, pages 263–297. Pergamon, 1970.
- [9] Nicolai Kraus and Jakob von Raumer. Path spaces of higher inductive types in homotopy type theory. In 2019 34th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pages 1–13. IEEE, 2019. doi:10.1109/LICS.2019.8785661.
- [10] Nicolai Kraus and Jakob von Raumer. A rewriting coherence theorem with applications in homotopy type theory. Mathematical Structures in Computer Science, 32(7):982–1014, 2022. doi:10.1017/S0960129523000026.
- [11] Yves Lafont. A new finiteness condition for monoids presented by complete rewriting systems (after Craig C. Squier). Journal of Pure and Applied Algebra, 98(3):229–244, 1995.
- [12] Yves Lafont, François Métayer, and Krzysztof Worytkiewicz. A folk model structure on omega-cat. Advances in Mathematics, 224(3):1183–1231, 2010.
- [13] Samuel Mimram. Polygraphs in Agda. Software, swhId: swh:1:dir:27f2a0c3a496b72c3f4cd458ab51ea174f448eb7 (visited on 2025-06-23). URL: https://github.com/smimram/agda-polygraphs, doi:10.4230/artifacts.23666.
- [14] Samuel Mimram. Categorical coherence from term rewriting systems. In Marco Gaboardi and Femke van Raamsdonk, editors, 8th International Conference on Formal Structures for Computation and Deduction (FSCD), volume 260 of LIPIcs, pages 16:1–16:17. Schloss Dagstuhl, 2023. doi:10.4230/LIPICS.FSCD.2023.16.
- [15] Maxwell Herman Alexander Newman. On theories with a combinatorial definition of “equivalence”. Annals of mathematics, 43(2):223–243, 1942.
- [16] Kristina Sojakova, Floris van Doorn, and Egbert Rijke. Sequential colimits in homotopy type theory. In Holger Hermanns, Lijun Zhang, Naoki Kobayashi, and Dale Miller, editors, LICS ’20: 35th Annual ACM/IEEE Symposium on Logic in Computer Science, pages 845–858. ACM, 2020. doi:10.1145/3373718.3394801.
- [17] Craig C Squier, Friedrich Otto, and Yuji Kobayashi. A finiteness condition for rewriting systems. Theoretical Computer Science, 131(2):271–294, 1994. doi:10.1016/0304-3975(94)90175-9.
- [18] Heinrich Tietze. Über die topologischen Invarianten mehrdimensionaler Mannigfaltigkeiten. Monatshefte für Mathematik und Physik, 19:1–118, 1908.
- [19] The Univalent Foundations Program. Homotopy Type Theory: Univalent Foundations of Mathematics. https://homotopytypetheory.org/book, Institute for Advanced Study, 2013.
- [20] Andrea Vezzosi, Anders Mörtberg, and Andreas Abel. Cubical Agda: a dependently typed programming language with univalence and higher inductive types. Proceedings of the ACM on Programming Languages, 3:1–29, 2019. doi:10.1145/3341691.
