Toolchain support
Checkout full help by running ndpc --help
Formatting
Run
ndpc format proof.ndpThe formatter is an uncompromising formatter, meaning that it will not respect what you wrote, it will only format it in the way that it sees fit.
Compiling to HTML
Run
shell
ndpc compile --html proof.ndpThis will generate proof.html. You can style it however you want by passing --css [FILE]. Read the generated HTML to see the specific selectors involved.
(you may have to reload if you see a 404)
Compiling to Latex
shell
ndpc compile --latex proof.ndpThe generated output uses boxproof, make sure you follow the installation instructions there.
Compiling to Typst
shell
ndpc compile --typst proof.ndpThe relevant library is maintained here.
Compiling to Lean
ndp proofs can be compiled to lean for formal verification.
shell
ndpc compile --lean proof.ndp
lean proof.lean