kernel_check_proof
Verify a Lean 4 proof locally by running it through the kernel. Returns acceptance status and exit code to ensure proof correctness.
Instructions
Run the Lean 4 kernel on a proof string locally.
This is the trust-anchor: Prova's verdict is only as strong as its server,
but lean on the local machine is independent. Exit code 0 means the
kernel accepted every step of the proof. Anything else means the proof is
wrong and the certificate must not be trusted.
Requires the lean binary on PATH (override with PROVA_LEAN_BIN). Install
via elan: https://github.com/leanprover/elan
Returns: {accepted, exit_code, stdout, stderr, lean_binary, lean_version}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lean_source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||