← Command reference · CLI overview
lean-pkg formalization
formalization.yaml (v0.4, what Palomar reads): render it from the registry and the repo at HEAD; anchor the companion to one arXiv version.
Usage
lean-pkg formalization [--json] COMMAND
Subcommands
lean-pkg formalization render: render formalization.yaml (v0.4, what Palomar reads) from the registry and the repo at HEAD; stdout unless –write/–out (formalization NAMEis the same)lean-pkg formalization anchor: bind the companion to one posted arXiv version (writes package files, never the registry)lean-pkg formalization kept: the canonical kept view of formalization.yaml (derived keys removed) and its SHA-256, for a release-input audit; –against REV: exit 1 when a kept key changed (read-only)
Details
formalization.yaml (mathlib-initiative v0.4, what Palomar reads): formalization render renders it from the registry and the repo at HEAD (formalization NAME is the same), and formalization anchor binds the companion to one posted arXiv version, and formalization kept prints the canonical kept view and its SHA-256. See formalization.yaml.
Exit codes
0 success (dry runs and no-ops included), 1 refused or failed, 2 usage error; see Exit codes.
JSON output
Top-level keys of --json, as recorded in the golden contract (tests/golden/json-keys.json):
formalization(exit 0):headline,main_results,name,ok,path,placeholders,registry_updated,repo_override,unchanged,validation,warnings,written,yaml