Skip to content

Optimization And Discovery

For ordinary extremum and existential-bound goals, start with leancert. Use this page when you need direct control over optimization or candidate discovery.

Typical goals:

∃ M, ∀ x ∈ I, f x ≤ M
∀ x ∈ I, m ≤ f x
Primary workflow:

leancert
leancert?

Advanced controls:

interval_minimize
interval_maximize
Programmatic search APIs:

findGlobalMin
findGlobalMax
The tactic goals above certify global lower or upper bounds. They do not, by themselves, state that a bound is attained. Use interval_argmin or interval_argmax when the theorem explicitly asks for an optimizing point.

Global optimization and subdivision are strategies, not numerical backends. The native, kernel, and auto settings control certificate verification, not the optimization arithmetic. Until runtime telemetry identifies a concrete backend, a report should describe the selected strategy or backend policy rather than infer one.

leancert? reports discovery and certification separately. Discovery reports the iterations actually used, final certified gap, tolerance, and remaining boxes from the retained optimizer run. It also reports whether search stopped because the requested tolerance was reached, the iteration limit was reached, or the search queue was exhausted. Certification reports the checker, Golden Theorem, and verification route used to close the bound. The optimizer and checker are not rerun to produce this report. For a direct opt_bound certificate, only configured limits are reported because that checked API does not expose an execution trace.

A gap larger than the configured tolerance is reported as Within requested tolerance: false. It does not invalidate an existential bound: the discovered witness is still accepted only after its bound is independently certified. The tolerance measures discovery quality, not proof soundness or tactic success.

Univariate and multivariate existential discovery use the same typed routing contract. Unsupported syntax may allow another strategy to run, while a recognized expression with an invalid numerical domain is reported as a terminal domain obstruction. Failed discovery branches restore their complete tactic state and contribute no execution telemetry.

Discovery mode is useful when you do not yet know the bound or extremum. See the existing Discovery Mode reference for command syntax and examples.

Attained extrema

interval_argmin and interval_argmax retain the candidate search and the certificate evidence used to prove that the candidate is attained. The reflective route closes two Boolean certificates exactly once: a global bound and a point-value bound. Reports list both checker identities, their actual verification routes, the final verify_argmin or verify_argmax Golden Theorem, the discovered witness, and the search termination facts.

Failed speculative proof routes are transactional. Their goals, messages, environment extensions, and verification events are discarded before a fallback is attempted.

The leancert front door normally proves existence-only extrema with the compact extreme-value theorem, which requires no numerical certificate and does not choose a reportable rational witness. Use the dedicated interval_argmin or interval_argmax tactic when you specifically want guided rational-witness discovery and its detailed certificate report.