Piecewise-polynomial 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 interpolant of a small dataset; the bundled example is piecewise linear.
- 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
scripts/lake.sh exe verify -- spline-certpath checks a bundled JSON file, without requiring Julia, - passing
--regencalls Julia to regenerate the JSON and checks the output.
Run via the unified verification CLI:
Check bundled cert (no Julia required):
scripts/lake.sh exe verify -- spline-certRegenerate by calling Julia (requires
juliaonPATHorTORCHLEAN_JULIAset):scripts/lake.sh exe verify -- spline-cert --regen
References:
- “untrusted producer, trusted checker” workflow: see
bundled certificates and
scripts/verification/*producers.
Arithmetic used for the optional runtime cross-check.
- exact : Arithmetic
- ieee : Arithmetic
Instances For
@[instance_reducible]
Instances For
@[instance_reducible]
Parse the command-line arithmetic selector.
Instances For
Repository-relative path of the bundled piecewise-linear certificate.
Instances For
Repository-relative path of the Julia certificate producer.
Instances For
Help text for the piecewise-polynomial certificate command.