Hostname: page-component-89b8bd64d-j4x9h Total loading time: 0 Render date: 2026-05-14T01:26:27.218Z Has data issue: false hasContentIssue false

On planarity of graphs in homotopy type theory

Published online by Cambridge University Press:  08 May 2024

Jonathan Prieto-Cubides*
Affiliation:
Department of Informatics, University of Bergen, Bergen, Norway
Håkon Robbestad Gylterud
Affiliation:
Department of Informatics, University of Bergen, Bergen, Norway
*
Corresponding author: Jonathan Prieto-Cubides; Email: jonathan.cubides@uib.no
Rights & Permissions [Opens in a new window]

Abstract

In this paper, we present a constructive and proof-relevant development of graph theory, including the notion of maps, their faces and maps of graphs embedded in the sphere, in homotopy type theory (HoTT). This allows us to provide an elementary characterisation of planarity for locally directed finite and connected multigraphs that takes inspiration from topological graph theory, particularly from combinatorial embeddings of graphs into surfaces. A graph is planar if it has a map and an outer face with which any walk in the embedded graph is walk-homotopic to another. A result is that this type of planar maps forms a homotopy set for a graph. As a way to construct examples of planar graphs inductively, extensions of planar maps are introduced. We formalise the essential parts of this work in the proof assistant Agda with support for HoTT.

Information

Type
Special Issue: Advances in Homotopy type theory
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2024. Published by Cambridge University Press
Figure 0

Figure 1. Different visual representations for the same graph map of the house graph given in Example 1.1. Note how the cyclic order of edges around each node is preserved consistently across all representations. The first two representations correspond to drawings – the result of planar maps for the house graph, while the last representation does not, as it features an edge crossing, so it is not an embedding.

Figure 1

Figure 2. Graph map m for the house graph G depicted in Fig. 1 (I).

Figure 2

Figure 3. The house graph G and its planar maps. The three distinct planar drawings $(G, m, f_i)$ for m are presented. Each drawing corresponds to an individually selected outer face: $f_1$, $f_2$ and $f_3$. These faces, enclosed by a pentagon, triangle and rectangle, respectively, are differentiated by distinct shading. The unbounded region of the plane, represented as a splashed area, denotes the outer face in each planar drawing.

Figure 3

Figure 4. On the left we show a part of a graph G with two distinguished edges, a and b. On the right we show the corresponding symmetrisation, $\mathsf{Sym}(G)$, including the two edges, $\overleftarrow{a}$ and $\overrightarrow{a}$ induced by a, and similarly, $\overleftarrow{b}$ and $\overrightarrow{b}$ induced by b. For brevity, we will only draw a segment representing related edges in the symmetrisation, as in Fig. 5(b).

Figure 4

Figure 5. We show in (a) the drawing of a graph G with edge crossings. A representation of the graph G embedded in the sphere is shown in (b). The corresponding faces of the graph map shaded in (b) are named $F_i$ for i from 1 to 6. It is shown in (c) with fuchsia colour the incident edges at the node a in $\mathsf{Sym}(G)$. The rotation system at a, that is, the cyclic set denoted by $(ba\,ad\,ax)$, is shown in green colour. The dashed lines represent edges not visible to the view.

Figure 5

Figure 6. On the right side, we shade the face F of the graph G embedded in the sphere given in Fig. 5. We have the cycle graph $C_3$ and $h:\mathsf{Hom}(C_3,\mathsf{Sym}(G))$ given by $(\alpha, \beta)$ on the left side. $C_3$ and h can be used to define the face F using $C_3$ as the graph A in Definition 5.3.

Figure 6

Figure 7. The graph embedding $\mathsf{Sym}(G)$, as depicted in Fig. 5, is associated with a face $\mathscr{F}$ defined by $\langle A , f\rangle$. The underlying cyclic graph A contains two highlighted walks between distinct nodes x and y. These walks correspond to clockwise and counterclockwise closed walks in $\mathsf{Sym}(G)$, represented as $\mathsf{cw}_{\mathscr{F}}(x,y)$ and $\mathsf{ccw}_{\mathscr{F}}(x,y)$, respectively.

Figure 7

Figure 8. The six possible maps of the bouquet $B_2$. Respectively, they are denoted and defined as follows: $a :\equiv (\overrightarrow{x},\overleftarrow{x}, \overrightarrow{y}, \overleftarrow{y})$, $b : (\overrightarrow{x},\overleftarrow{x}, \overleftarrow{y}, \overrightarrow{y})$, $c : (\overrightarrow{x}, \overrightarrow{y},\overleftarrow{x}, \overleftarrow{y})$, $d : (\overrightarrow{x}, \overrightarrow{y}, \overleftarrow{y},\overleftarrow{x})$, $e : (\overrightarrow{x}, \overleftarrow{y},\overleftarrow{x}, \overrightarrow{y})$ and $f :(\overrightarrow{x}, \overleftarrow{y}, \overrightarrow{y},\overleftarrow{x})$.

Figure 8

Figure 9. Given a face $\mathscr{F}$ of a map $\mathscr{M}$, we illustrate here $\mathsf{hcollapse}$, one of the four constructors of the homotopy relation on walks in Definition 6.1. The arrow $(\Downarrow)$ represents a homotopy of walks.

Figure 9

Figure 10. Path graph additions of $P_n$ to G. The left figure illustrates the path addition $G \bullet_{u,v} P_n$, achieved by adding path graph $P_n$ to graph G at nodes u and v. This process introduces two new edges, $e_0$ and $e_{n}$, along with n new nodes from path $P_n$. We define p as the walk $e_0 \cdot P_n \cdot e_{n}$ from u to v in $G\bullet_{u,v} P_n$, simplifying notation. Similarly, the right figure depicts the non-simple path addition of $P_n$ to G at nodes u and v, extending graph G with $P_n$’s symmetrisation and four additional edges.

Figure 10

Figure 11. Figure (a) in the caption illustrates the path addition $G \bullet p$ as detailed in Theorem 6.13. Figure (b) presents the planar map for G from Fig. 5(b), showcasing three graph extensions: the path addition of p, cyclic addition of q and spike addition of r. Though it is feasible to define the construction of r, it is not necessary for this discussion. The additions of p and q split faces $F_2$ and $F_3$ from Fig. 5, generating two new faces each. The spike addition of r substitutes $F_4$ with a face of higher degree.

Figure 11

Figure 12. The figure demonstrates the partitioning of face $\mathscr{F}$ into two, $F_1$ and $F_2$, via $G \bullet p$ when p resides on face $\mathscr{F}$.

Figure 12

Figure 13. The figure shows a part of the graph $\mathsf{Sym}(G\bullet p)$ embedded in the 2-sphere. As constructed in the proof of Theorem 6.13, the faces, $F_1$ and $F_2$, of the map $\mathscr{M'}$ are given by a face division of $\mathscr{F}$ by the path p. Such gives rise to new walk homotopies, as $h_{F_1}$ and $h_{F_2}$ in the picture. The walk $\overleftarrow{p}$ from u to v is the walk composition of $p_1$, a walk from u to y, and $p_2$, a walk from y to v. The walks $\delta_1$ and $\delta_2$ are walks in $\mathsf{Sym}(G)$ from x to z.

Figure 13

Figure 14. The figure illustrates a planar synthesis for constructing a $K_4$ planar map using a $C_3$ planar map. Initially, face $\mathscr{F}$ is divided into $F_1$ and $F_2$. Subsequently, $F_1$ is split into $F_3$ and $F_4$. The resulting map ends up with four faces, including the outer face.

Figure 14

Figure 15. The figure illustrates the face division of $\mathscr{F}$ by a non-simple path addition.