Formalization of Lexicographic Breadth-First Search

Thomas Holme Surlykke 📧 and Dmitriy Traytel 📧

November 18, 2026

Abstract

Despite widespread use of the lexicographic breadth-first search graph ordering algorithm, the literature lacks a complete proof characterizing its output. We verify that the standard characterization provides a sound and complete specification. Our approach introduces a binary reformulation of the label function, exposing intermediate states and enabling proof through monadic refinement.

License

BSD License

Note

The formalization has been developed without use of GenAI. Claude Opus 5.5 proofread the abstract, introduction and the comments, as well as helped with converting ad hoc symbols to proper antiquotations.

Topics

Related publications

Session Lexicographic_BFS