Creative Commons Attribution 4.0 International license
The 0-imax-successor algebra, where imax: ℕ × ℕ → ℕ is the function defined by imax(n, 0) = 0 and imax(n, S(m)) = max(n, S(m)), is used to represent universe levels in impredicative type theory, in particular with universe polymorphism which introduces level variables, so it is present in proof systems such as Rocq and Lean. In particular, we need to know when two elements of this algebra are equivalent, and we may also want to decide the inequality. In this article, we introduce a canonical form for the terms of this algebra, and we provide a canonization algorithm. It permits deciding level equivalence by checking the canonical form equality, and also permits easily checking if a level is smaller than another one.
@InProceedings{geran:LIPIcs.CSL.2026.39,
author = {G\'{e}ran, Yoan},
title = {{A Canonical Form for Universe Levels in Impredicative Type Theory}},
booktitle = {34th EACSL Annual Conference on Computer Science Logic (CSL 2026)},
pages = {39:1--39:21},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-411-6},
ISSN = {1868-8969},
year = {2026},
volume = {363},
editor = {Guerrini, Stefano and K\"{o}nig, Barbara},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.CSL.2026.39},
URN = {urn:nbn:de:0030-drops-254640},
doi = {10.4230/LIPIcs.CSL.2026.39},
annote = {Keywords: universe levels, canonical form, impredicativity, imax algebra}
}
archived version