Mathematics

Walks that Forget the Cycles: A Machine-Checked Bijection between Tree-Like Walks and Godsil's Path Tree in Lean 4 (Part III)

Carles Marín Muñoz

Version 1.0DOI 10.5281/zenodo.20600326CC BY 4.0

Combinatorics & graphs Lean 4 Graphs, walks and matchings, machine-checked

Abstract

Part III of the godsil-gutman-lean series. A machine-checked, sorry-free proof in Lean 4 / Mathlib of the combinatorial half of Godsil's moment theorem: the tree-like closed walks of a finite graph G at a vertex v are in length-preserving bijection with the closed walks at the root of Godsil's path tree T(G,v), via the down-projection π. The tree-like walk count is thus a sum of adjacency-matrix powers of the path trees, and (each path tree being a forest) its matching polynomial is the characteristic polynomial of its adjacency matrix. The spectral half completing p_k = Σ θ_i^k is mapped, not built. All cited theorems depend only on propext, Classical.choice and Quot.sound. Formalized with AI assistance (Claude, Anthropic); the mathematics and all claims are the author's responsibility. English and Spanish editions; source and figures at github.com/karlesmarin/godsil-gutman-lean.

Full text

Read the PDF (633 kB)

Identical to the file path-tree-walks-lean.pdf of the Zenodo record (same MD5 checksum).

Cite

Carles Marín Muñoz, Walks that Forget the Cycles: A Machine-Checked Bijection between Tree-Like Walks and Godsil's Path Tree in Lean 4 (Part III). Zenodo, 2026. doi:10.5281/zenodo.20600326

BibTeX
@misc{Carles2026walks,
  author    = {Carles Marín Muñoz},
  title     = {Walks that Forget the Cycles: A Machine-Checked Bijection between Tree-Like Walks and Godsil's Path Tree in Lean 4 (Part III)},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.20600326},
  url       = {https://doi.org/10.5281/zenodo.20600326}
}