Verify formal (real Lean kernel)
verify_formalRun the real Lean 4 kernel on a snippet to verify a formal claim. Returns typecheck verdict or honest UNDETERMINED when no snippet provided.
Instructions
Run the REAL Lean 4 kernel on a Lean snippet and report whether it typechecks; honest UNDETERMINED (with a remediation) when no snippet or no toolchain. Use to kernel-check a formal claim you wrote — find declaration names first with search_formal_math. Args: statement (what is being claimed), lean (the Lean 4 snippet — REQUIRED for a real check, e.g. 'example : 2 + 2 = 4 := rfl').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| statement | Yes | the claim being checked | |
| lean | No | Lean 4 snippet to kernel-check, e.g. "example : 2 + 2 = 4 := rfl" (omit it and the verdict is an honest UNDETERMINED — statement text alone is not checkable) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| statement | No | ||
| lean_provided | No | ||
| lean_available | Yes | ||
| tier | No | ||
| typechecks | Yes | ||
| applies | No | ||
| checked | Yes | true iff the Lean kernel actually ran and gave a verdict | |
| detail | No | ||
| remediation | No | present iff not checked — exactly what unblocks a real kernel check | |
| note | No |