Piecewise-linear spline certificate CLI #
The workflow follows the “external producer, Lean checker” pattern:
- Julia acts as an untrusted producer that emits a small JSON certificate describing a piecewise-polynomial (piecewise-linear) interpolant of a small dataset.
- Lean parses and checks the certificate exactly over
RatusingNN.Verification.Splines.PiecewisePolyCert.
This is dependency-free:
- the Julia script uses only Julia Base (no packages),
- the default
lake exe verify -- spline-certpath checks a bundled JSON file and does not require Julia, - passing
--regencalls Julia to regenerate the JSON and checks the output.
Run via the unified verification CLI:
Check bundled cert (no Julia required):
lake exe verify -- spline-certRegenerate by calling Julia (requires
juliaonPATHorTORCHLEAN_JULIAset):lake exe verify -- spline-cert --regen
References:
- “untrusted producer, trusted checker” workflow: see
bundled certificates and
scripts/verification/*producers.