Julia spline certificate: external producer + Lean checker #
This file is the runnable entry point for 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 intentionally small and 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
NN/Examples/Verification/*(bundled certs) andscripts/verification/*(producers).