Development version: arxiv-v1 + 66 commits (3827c18)
Equation rendering
Every labelled equation in the manuscript is printed from the statement of a Lean declaration that the kernel has checked. This page explains what that guarantees, which simplifications separate a manuscript display from the full Lean statement, and where to read the full statement.
From a Lean statement to a display
Manuscript/Registry.lean attaches each manuscript label to one checked
declaration. The build exports the elaborated statement of that declaration as
an expression graph, with its variables, all arguments of every application,
and the bodies of the definitions it uses. A printer then turns this graph into
LaTeX. The build fails when a label in the manuscript has no registered
declaration or a registered declaration is missing from the manuscript.
The printer follows the structure of the expression and applies a few fixed presentation rules, such as printing \(x-(-y)\) as \(x+y\), a product \(\omega\,i\) as \(i\omega\), and the derivative of \(w\mapsto A_w\) at a variable \(z\) on which \(A_w\) does not otherwise depend as \(\mathrm dA_z/\mathrm dz\). Otherwise it does not rewrite algebra, reorder factors, or substitute one expression for another, so the printed formula is the checked statement in the paper's notation. The printer is Python code whose output the kernel does not check; it is part of what a reader trusts, and the tests below support it. A displayed specialization, such as a general theorem evaluated at a particular phase, is itself a Lean application of the general theorem; the kernel checks it before the display is exported.
In the PDF and HTML versions, the equation number of each display carries a tooltip with the declaration name and source line. The statement ledger lists every display together with the complete statement it comes from.
Notation
publication/lean-notation.toml assigns one notation to each project
declaration, and every display that uses the declaration inherits it. An entry
is either a symbol or template, such as \(D\) for twoTerminalD, or an
instruction to print the
declaration through its definition. The second form is used for definitions
that abbreviate a formula, such as block matrices and quotients; the display
then shows the formula itself.
A symbol hides the parameters it does not place. For example,
bdgHamiltonian η h Δ prints as \(H\). A hidden parameter reappears in brackets
when the same symbol would otherwise denote two different objects in one
display, as in \(F[J]\) next to \(F[J-\mu]\), and in the audit views of the claims
and ledger pages. A parameter equal to the full index set, the default range
of a channel sum, is never shown. Equal symbols in different displays
may therefore denote different objects. The symbol audit on the
theorems and notation page lists every
symbol with the declarations it names. For each pair of declarations that share
a symbol, it records either a checked theorem identifying them or a review
confirming that they are distinct; the claims page
lists the pairs that remain open.
A declaration without a notation entry prints as its Lean name in upright type, so a missing entry is visible in the paper rather than silently replaced. Variables print from their Lean binder names: Greek letters, subscripts, and decorations such as \(L^\dagger\) or \(S^*\) follow from the name.
Simplifications in manuscript displays
The manuscript prints statements at the paper's level of precision, so a display can omit parts of the checked statement:
- Universal quantifiers are dropped and their variables read as free symbols.
- Range conditions on those variables, such as \(0\le T_n\le1\) or \(k\le\min(r_L,r_R)\), are dropped.
- A hypothesis that a named remainder is \(O(\Delta^k)\), \(o(\Delta^k)\), or bounded is folded into the equation where the remainder occurs, which then shows \(+O(\Delta^k)\) in its place.
- Relations that share a side are chained, and conjunctions become separate clauses.
The premises of a declaration are not part of its display. The claims page and the theorems and notation page print the complete statements, including quantifiers, ranges, and hypotheses.
Layout
TeX chooses line breaks. A long display becomes an aligned block with one row per clause or chain member; no formula is rewritten or shrunk to fit. The build rejects overfull lines, missing glyphs, font substitution, and unresolved references. The HTML version uses the same formula strings as the PDF and changes only the surrounding display environment.
How the printer is tested
The exporter tests compile small Lean fixtures and check that quantified statements, structure fields, matrix blocks, integrals, and one-sided limits are exported faithfully. The printer tests check argument order, scoping of bound variables, identifier decoration, and the notation-table rules.
Whether a notation choice matches the physical meaning of a definition is a question of review, which the definitions printed next to each statement on the claims page support.