B5115: could not prove within the proof budget
Catalog status: active. Default severity: error. Stable name: proof-budget. Family: Contracts and termination.
The prover neither proved this check nor found inputs that make it fail, within the solver effort its budget allows. It is not known to fail: it is unknown. A strict build (veradic build) rejects it. Advisory compilation and the advisory REPL warn and retain an applicable executable runtime check; not every ghost-only or quantified contract can be checked at runtime. The prove command still requires proof even with --advisory.
Budgets are counted in solver resource units, not in time: quick (rung 0, the default), standard (rungs 0-1), thorough (0-2) and heavy (0-3). Each rung tries fresh engines with larger limits. The outcome is the same with any -j; another solver version or configuration can change it.
Example (Vada)
procedure Check (X, Y, Z : Integer)
with Pre => X in 1 .. 1000 and then Y in 1 .. 1000 and then Z in 1 .. 1000
is
begin
pragma Assert (X * X * X + Y * Y * Y /= Z * Z * Z); -- difficult nonlinear reasoning
end Check;Example (Varc)
fn Check(X: Integer, Y: Integer, Z: Integer)
requires X in 1..=1000 && Y in 1..=1000 && Z in 1..=1000
{
assert X * X * X + Y * Y * Y != Z * Z * Z; // difficult nonlinear reasoning
}
What to do
Add a hint the prover can use before the check, such as an intermediate pragma Assert, a loop invariant or a lemma; raise the budget for the subprogram in verada.toml ([proof.budget-overrides] "Unit.Subprogram" = "thorough") or for one run (--proof-budget thorough). Use pragma Assume only for a justified explicit trust boundary: it changes the assurance and is not a proof that the previously unknown fact holds. See proof operations for effort and timeout details.
Regression source and further reading
Complete regression example: source, command arguments and expected results. The fixture deliberately reproduces this diagnostic.
See contracts and termination, the code index, and diagnostic interpretation for modes, replay, fix-its and JSON.