mathlib documentation

mathlib-archive / 100-theorems-list.54_konigsberg

The Königsberg bridges problem #

We show that a graph that represents the islands and mainlands of Königsberg and seven bridges between them has no Eulerian trail.

@[protected, instance]
@[nolint]
inductive konigsberg.verts  :

The vertices for the Königsberg graph; four vertices for the bodies of land and seven vertices for the bridges.

Instances for konigsberg.verts

The adjacency relation for the Königsberg graph.

Equations

The Königsberg graph structure. While the Königsberg bridge problem is usually described using a multigraph, the we use a "mediant" construction to transform it into a simple graph -- every edge in the multigraph is subdivided into a path of two edges. This construction preserves whether a graph is Eulerian.

(TODO: once mathlib has multigraphs, either prove the mediant construction preserves the Eulerian property or switch this file to use multigraphs.

Equations

The Königsberg graph is not Eulerian.