Thesis blueprint source

The four thesis chapters and the supplementary chapter are in src/. Each
theorem has a persistent label. The proof environments record dependencies
with leanblueprint's uses command. An unresolved statement is labelled
as a comparison or as a proof obligation. A check mark records the audit's
statement-level match and a completed proof or definition.

To compile from the supplied TeX sources with Python and Graphviz installed,
install leanblueprint 0.0.20, plasTeX 3.1, plastexdepgraph 0.0.5 and their
dependencies. The optional offline adaptation also uses Beautiful Soup 4,
pygraphviz and Node.js. From this folder, run

    cd src
    plastex -c plastex.cfg web.tex
    cd ..
    python prepare_web.py --renderer mathjax/svg-render.cjs
    python native_graph.py

Each expression contains standard MathJax 3 TeX glyph outlines in its own
SVG. No installed math font or network connection is needed. The renderer
and the final stylesheet both come from MathJax 3.2.2.
The bundled command-line and browser renderers work as supplied. To rebuild
them from svg-typeset.js, run npm ci and node build-svg.cjs inside mathjax/.

The result is in web/. For the integrated reader, copy that directory's
contents into native/ of the website bundle. Its local font, MathJax, and
Lean source links resolve against the shared assets/ and source/ folders
beside native/. The parent reader can also use the resulting reader-graph.svg.
The shared browser script assets/mathjax.js is mathjax/svg-typeset-browser.js.
On a web server the native graph loads the Graphviz WebAssembly renderer.
When the downloaded graph is opened directly from disk, it uses an embedded
rendering of the same graph with local zoom, pan and statement dialogs.
To exercise both paths with Chrome and Python Playwright, set the environment
variable BLUEPRINT_SITE to the extracted website folder containing assets/
and source/, then run python test_file_graph.py and python test_graph.py.

To regenerate the TeX after editing the audited rows or dependency list,
run python make_native.py before the commands above. The data files are
rows.json, route-nodes.json and dependencies.json. The TeX files can also
be edited directly for a one-off build.
