Solver Tuning
This page is the operator's manual for the verification solver: every configurable knob, what it does, and which combinations to reach for under specific workflow goals.
If you only want to set a per-function timeout, use
@verify(thorough) and stop reading. If you need to bound
memory in CI, configure the SMT layer's quantifier strategy, or
debug a stuck proof, this page is the one to bookmark.
How to read this page
Each subsection covers one configuration struct in the verification stack. For each, you see:
- Owner — which subsystem owns the struct.
- Where it's set — manifest section, CLI flag, or
@verifyattribute. - Default — the value you get from
Default::default(). - Effect — what changing the value actually does.
- Wiring scope — which solver-adapter parameter scope (global, Config, or Solver) the field reaches; see scope discipline for why this matters.
Every field listed controls the corresponding solver invocation.
[verify.solver] and its sub-tables deserialize with deny_unknown_fields:
a misspelled key or table fails the parse and names the offender. A
partial table is fine — every field defaults, so setting one key leaves
its siblings and the other tables alone.
Sub-table names follow the struct: [verify.solver.qe],
[verify.solver.sep_logic], [verify.solver.z3],
[verify.solver.cvc5], [verify.solver.static], and so on.
Two sections on this page are outside that surface, for different
reasons, and both say so where they stand: RefinementConfig marks
[verify.solver.refinement] planned for v0.4, and
SubsumptionConfig names no manifest location at all — it is reached
through RefinementConfig, not set directly.
Three layers of tuning
When you tune the solver, the value flows through three nested layers:
verum.toml [verify.*] ← persistent project policy
↓
CLI flag (--solver, --timeout) ← per-invocation override
↓
@verify(strategy) attribute ← per-function override
The most-specific layer wins. The full precedence order (highest → lowest):
- CLI flag (
verum verify --timeout 60s) - Active manifest profile (
[verify.profiles.<name>]when--verify-profile <name>) - Per-module manifest override (
[verify.modules."<path>"]) - Top-level
[verify]/[verify.solver] @verify(strategy)attribute on the function- Built-in default
Within layer 4 (manifest), the structs below are the authoritative schema.
RefinementConfig — refinement-type subtyping
Owner: verum_types::refinement::RefinementChecker.
Where set: [verify] / [verify.solver] (top-level
timeout knobs); the structured form lives in
[verify.solver.refinement] (planned for v0.4).
Use when: every time the type checker proves a
refinement subtyping T{φ1} <: T{φ2} — which is everywhere
refinements appear, including function args, return types,
and let bindings.
| Field | Default | Effect |
|---|---|---|
enable_smt | true | When false, fall back to syntactic-only subsumption — fast but conservative (rejects valid programs that need SMT). |
timeout_ms | 100 | Per-query SMT solver budget. The spec mandates 10–500 ms for refinement checks; values outside that range trigger a warning at type-check time. |
enable_cache | true | Memoise verification conditions by their SHA-256 fingerprint. Disabling adds ~30% to total verification time. |
max_cache_size | 10 000 | LRU bound. Each entry is ~512 B, so 10 k entries ≈ 5 MB. |
Recipe — fast IDE feedback:
[verify.solver.refinement]
timeout_ms = 50 # 100 ms is too slow for on-type
enable_cache = true
max_cache_size = 50_000 # bigger cache = more reuse
Recipe — strict CI:
[verify.solver.refinement]
timeout_ms = 5_000 # generous; CI cares about correctness, not latency
QEConfig — quantifier elimination
Owner: verum_smt::quantifier_elim::QuantifierEliminator.
Used by: invariant synthesis, weakest-precondition computation, refinement projection.
| Field | Default | Effect |
|---|---|---|
timeout_ms | 5 000 | Per-QE-call solver budget. |
max_iterations | 10 | Reserved for iterative QE (planned). |
use_qe_lite | true | Try the solver's qe-light tactic first — fast for linear arithmetic. |
use_qe_sat | true | SAT-preprocess Boolean-heavy formulas before QE. |
use_model_projection | true | Model-based projection for non-linear cases. |
use_skolemization | true | Skolem-functions fallback when QE-lite + projection fail. |
simplify_level | 2 | See chain table below. |
simplify_level maps to escalating solver tactic chains:
| Level | Chain |
|---|---|
0 | skip (identity — no rewriting) |
1 | simplify |
2 (default) | simplify ∘ propagate-values |
3+ | simplify ∘ propagate-values ∘ ctx-simplify |
Higher levels produce smaller / more readable invariants but
spend more time. 0 is useful when you want to feed the
QE result directly to a downstream rewriter that has its
own simplifier.
InterpolationConfig — Craig interpolation
Owner: verum_smt::interpolation::InterpolationEngine.
Used by: compositional verification (split a hard goal into A ⇒ I, I ∧ B ⇒ ⊥), inductive-invariant synthesis (use interpolant as candidate invariant).
| Field | Default | Effect |
|---|---|---|
algorithm | MBI | Pick: McMillan (proof-based, strongest), Pudlak (dual, weakest), Dual (combines), Symmetric (avoids McMillan/Pudlak bias), MBI (model-based, solver-native), PingPong / Pogo (specialised). |
strength | Balanced | Weakest (Pudlák) / Strongest (McMillan) / Balanced / ModelBased. |
simplify | true | Run simplify on the result before returning. |
timeout_ms | Some(5 000) | Per-interpolation solver budget; None = unbounded (only for offline runs). |
proof_based | false | Reserved for proof-based fallback. |
model_based | true | Reserved for MBI fallback hint. |
quantifier_elimination | true | When false, MBI's project_onto_shared skips QE and returns the original formula. McMillan correctness (A ⇒ I) is preserved; the I ∧ B ⇒ ⊥ half degrades. |
max_projection_vars | 100 | Reject MBI projection when the elimination set is larger — exponential in some theories. |
Recipe — large heaps:
[verify.solver.interpolation]
algorithm = "MBI"
quantifier_elimination = false # ~30% encoder reduction
max_projection_vars = 50 # bail earlier on blowup
StaticVerificationConfig — bounds / safety
Owner: verum_smt::static_verification::StaticVerifier.
Used by: compile-time elimination of runtime checks
(verum build with enable_bounds_elimination = true).
| Field | Default | Effect |
|---|---|---|
timeout_ms | 30 000 | Global wall-clock for the entire verifier pass. |
constraint_timeout_ms | 100 | Per-constraint solver budget — triggers graceful degradation (constraint stays in runtime CFG instead of being eliminated). |
enable_proofs | true | Request solver proof generation. |
enable_unsat_cores | true | Extract minimal unsat cores for diagnostics. |
minimize_cores | true | Iterate to find a minimal core (more expensive). |
enable_caching | true | Proof-cache lookups across runs. |
max_cache_size | 10 000 | LRU bound on the proof cache. |
enable_parallel | false | Reserved — current solver-adapter contexts are not Send/Sync. |
num_workers | cpus().max(4) | Reserved. Floored at 4, so a 2-core machine still records 4. |
auto_tactics | true | Use the solver's tactic auto-selection when constructing solvers. |
memory_limit_mb | Some(4096) | Process-wide memory ceiling — see parameter-scope discipline for why this is global, not per-solver. |
Z3Config — Z3 context tuning
Owner: verum_smt::z3_backend::Z3ContextManager
(the struct is verum_smt::z3_backend::Z3Config).
Where set: [verify.solver.z3].
Z3Config is declared twice: the manifest-schema copy in
verum_smt::config (8 fields) and the impl-side copy in
verum_smt::z3_backend (10 — it adds enable_interpolation and
global_timeout_ms). SmtConfig::to_switcher_config translates the
first into the second. The table below is the impl-side one, because
that is what the solver actually reads.
| Field | Default | Effect | Wiring scope |
|---|---|---|---|
enable_proofs | true | Proof-log generation. | Config |
minimize_cores | true | Pass to unsat_core extraction. | Solver Params |
enable_interpolation | false | Enable the solver's MBI tactic when interpolating. | tactic dispatch |
global_timeout_ms | Some(30 000) | Context-level timeout. | Config (set_timeout_msec) |
memory_limit_mb | Some(8192) | Process-wide memory ceiling. | Global (memory_max_size) |
enable_mbqi | true | Model-based quantifier instantiation. | Solver Params (per-query) |
enable_patterns | true | Pattern-based quantifier instantiation. | Solver Params (per-query) |
random_seed | None | Reproducibility seed. | Global (smt.random_seed) |
num_workers | cpus().max(4) | (Forwarded to ParallelConfig.) | — |
auto_tactics | true | Auto-tactic selection. | Config (auto_config) |
Recipe — reproducible CI:
[verify.solver.smt-backend]
random_seed = 42
auto_tactics = false # remove heuristic non-determinism
Fixedpoint engine — Horn clauses and recursive relations
The Rust integration API verum_smt::fixedpoint::FixedPointEngine uses
Z3's fixedpoint engine for Horn clauses. Registering a relation transfers
its declaration to the engine and returns a shared handle. The declaration
retains its exact argument types, including bitvector widths and named sorts.
Facts preserve literal values; Horn clauses bind their declared variables
universally and retain their constraints. RecursivePredicate.vars,
DatalogRule.vars, and CHC.vars declare those binders explicitly;
undeclared symbolic constants are rejected. Every recursive premise and guard
participates in the implication. Recursive definitions are validated completely
before their rules are installed. Registering a relation alone adds no facts.
An unseeded recursive cycle therefore derives nothing in the least fixed point.
For a derivability query, Sat means the queried atom follows from the
registered rules, and Unsat means it does not. Unknown is inconclusive;
it must not discharge a proof obligation. Set engine and resource limits
through Z3 parameters passed to set_params. A solver answer is not a
kernel-checked proof certificate.
validate_solution checks a complete proposed interpretation against every
original rule, background assertion and supplied global property. Each relation
has explicit, distinct symbolic parameters in its registered argument order.
Its body must be a quantifier-free theory formula over those parameters;
recursive predicate references, unbound symbols and hidden function definitions
are refused. Missing or unknown interpretations and mismatched argument types
are errors. A false background assertion is checked as an obligation, rather
than assumed to make every proof vacuous.
Validation uses a fresh solver and accepts only when every negated obligation
is unsatisfiable. validate_solution_with_config accepts a ContextConfig for
this check; an unknown result retains its reason as an error. Acceptance
establishes an inductive overapproximation, not the least fixed point or source
program correctness. Raw query answers are exposed separately and are not
converted into empty solutions. A predicate body such as x >= 0 is a property
of that relation's states, not an unconditional global invariant.
RecursiveProgramVerifier.verify_recursive_program checks an explicit
RecursiveProgram: relation declarations, Horn rules and universally quantified
VerificationCondition values. Each condition binds its inputs, outputs and
intermediate variables, specifies reachable relation hypotheses and path
constraints, and states the required assertion. All relations are registered
before rules, allowing mutual recursion. Missing definitions or safety
conditions, unknown relations, unbound variables and mismatched types are
errors; an intentionally empty relation needs an explicit false-guard rule.
The verifier lowers each assertion's negation to a fresh violation relation.
It returns Verified only when every violation is unreachable, or Refuted
with the failing condition's index and any raw backend answer. An unknown result
is an error, including resource exhaustion. Each call uses a fresh engine so
previous models and failed registrations cannot affect later checks.
verify_recursive_program_with_params accepts fixedpoint engine and resource
parameters; the default call uses SPACER and the standard solver timeout.
This is partial correctness of the supplied model. The caller must establish that its rules cover the actual program and that its conditions express the intended contract. Termination is a separate check over the explicit self-call model and ranking function; neither result establishes source correspondence or supplies a kernel-checked certificate.
This is a Rust solver integration API, not a Verum source annotation.
Cvc5Config — cvc5 adapter tuning
Owner: verum_smt::cvc5_backend::Cvc5Backend
(the struct is verum_smt::cvc5_backend::Cvc5Config).
Where set: [verify.solver.cvc5].
The default build does not provide a native CVC5 backend:
Cvc5Backend::new reports NotAvailable. Native CVC5 integration is
incomplete; configuring these fields does not establish an operational
backend or independent solver validation. Use the Z3 backend for supported
solver execution.
| Field | Default | Adapter option | Effect |
|---|---|---|---|
logic | ALL | :logic | SMT-LIB logic name, from a CLOSED set — ALL, QF_LIA, QF_LRA, QF_BV, QF_NIA, QF_NRA, QF_AX, QF_UFLIA, QF_AUFLIA. An unrecognised name is rejected at config-translation time, not silently ignored. |
timeout_ms | Some(30 000) | tlimit-per | Per-query timeout. |
incremental | true | incremental | Push/pop support. |
produce_models | true | produce-models | SAT result + model. |
produce_proofs | true | produce-proofs | UNSAT result + proof log. |
produce_unsat_cores | true | produce-unsat-cores | UNSAT + core. |
preprocessing | true | preprocess-only=false | When false, the adapter stops after preprocessing — useful for instrumentation, never for production. |
quantifier_mode | Auto | quant-mode | None / EMatching / CEGQI / MBQI / Auto. |
random_seed | None | seed | Reproducibility. |
verbosity | 0 | verbosity | 0–5; saturates at 5. |
Quantifier-mode tuning: the adapter's Auto heuristic picks per
goal. Pin a mode when you have ground truth about goal shape:
| Mode | Best for |
|---|---|
EMatching | Ground-instance proofs (most refinement obligations). |
CEGQI | Counterexample-guided synthesis. |
MBQI | Model-based; good when patterns are sparse. |
None | Quantifier-free fragments only — fastest. |
SubsumptionConfig — refinement subtyping internals
Owner: verum_smt::subsumption::SubsumptionChecker.
| Field | Default | Effect |
|---|---|---|
cache_size | 10 000 | LRU bound on result cache. |
smt_timeout_ms | 100 | Per-query solver budget. Updated dynamically by RefinementSmtBackend::set_timeout_ms so each RefinementConfig.timeout_ms change takes effect immediately. |
This is an internal struct; you don't normally configure it
directly — RefinementConfig.timeout_ms propagates here.
Ranking functions over guarded transitions
verum_smt::ranking::RankingFunction::verify accepts explicit symbolic parameters,
a domain predicate, guarded successor arguments and a ContextConfig. It proves
that the domain implies both a nonnegative integer rank and the candidate's
additional constraint. For every transition, the domain and path guard must
imply that the simultaneous successor arguments remain in the domain and
strictly decrease the rank. The additional constraint is proved, never assumed
to hide counterexamples.
Only Unsat of each negated obligation counts as success. false refutes the
candidate rank; it does not prove nontermination. Solver Unknown and malformed
models return errors. Parameters must be distinct symbolic constants, and every
successor must have the corresponding exact sort. Resource settings apply to
each obligation.
RecursiveProgramVerifier::verify_termination uses the same checker with the
function's explicit parameters and guarded self-calls. These are Rust model APIs;
they do not certify arbitrary source bodies, omitted recursive edges, mutual
recursion, integer overflow semantics or kernel replay. Source adapters must
supply every relevant transition and account for intervening execution.
Checking structured loop bodies
verify_loop_invariant_with_precondition checks an explicit entry predicate,
invariant, body, exit condition and postcondition. Initialization must follow
from the entry predicate and declared scalar types. Preservation checks the
invariant in the actual successor state, and exit sufficiency checks the
postcondition. verify_termination_in_domain uses the same body lowering and
the shared ranking verifier to prove nonnegativity, domain closure and strict
decrease. The caller must also establish entry into the supplied domain.
The supported body consists of Int and Bool expressions, sequential
assignments, plain scoped local bindings, blocks and conditional branches.
Every assignment reads the preceding state. Branches merge through typed
conditional expressions, preserving both paths without enumerating path
combinations; block tails and shadowed bindings retain their lexical meaning.
Executed addition, subtraction, multiplication and negation must stay within
signed 64-bit bounds at every intermediate step. Branch and Boolean
short-circuit conditions guard these safety obligations. Specification terms
use mathematical integer arithmetic over bounded source states.
Unknown names, incompatible types and unsupported effects return errors.
Calls, reference or aggregate mutations, nested loops, early control transfers,
pattern guards, division, remainder and bitwise operations require additional
semantics and are rejected. The legacy verify_loop_invariant API supplies no
entry assumption beyond types; verify_termination supplies neither a domain
restriction nor an exit condition. Neither infers missing assumptions from the
candidate invariant or rank. These Rust APIs verify the supported AST fragment;
they do not certify arbitrary compiler output or produce kernel certificates.
Scalar frame conditions
verify_frame_condition_with_precondition uses the same checked source
transition to prove that every state variable outside the modifies list has
its original value on return. It checks the complete body, including nested
blocks, branches, scoped locals and intermediate arithmetic safety. The
verify_frame_condition convenience API assumes only the declared types at
entry. Unknown names in the modifies list are errors, and allowing every
variable to change does not bypass body validation. Only a proved obligation
succeeds; counterexamples and inconclusive solver results are errors.
This is a post-state frame for the supported scalar fragment. A temporary write followed by restoration can satisfy it. It is not a write-footprint, heap-aliasing or concurrent-interference guarantee; calls and memory effects need their own checked semantics before these APIs can accept them.
BisimulationConfig — coinductive equivalence
Owner: verum_smt::coinductive::BisimulationChecker.
Scope: the Rust expression-level observation checker. A source type schema alone cannot establish a greatest fixed point or productivity.
| Field | Default | Effect |
|---|---|---|
max_depth | 100 | Hard cap on recursive-destructor unfolding. Exhaustion returns Unknown. |
timeout_ms | 30 000 | Per-query solver budget. |
generate_counterexamples | true | When false, leave the counterexample slot as None to save formatting work — useful when you only need the boolean answer. |
infinite_strategy | BoundedUnfolding | BoundedUnfolding checks finite observations; exhaustion is inconclusive. CoinductiveHypothesis cannot discharge unresolved recursive observations. GreatestFixpoint requires a resolved model and returns Unknown in the expression-only API. Hybrid preserves these limitations. |
Coinduction over a typed model
verum_smt::coinductive::CoinductionModel checks a candidate relation R
over paired symbolic states. The left and right state representations may have
different sorts; each initial state and successor must retain its side's sort.
Every observation pair must have matching sorts.
The model supplies initial states, observation pairs, and successor pairs.
verify(ContextConfig) discharges these obligations:
- The initial pair belongs to
R. - Every pair in
Rhas equal observations, for every observation pair. - Every successor pair of every pair in
Rbelongs toR.
Together the last two obligations state R ⊆ F(R), where F conjoins
observation equality with membership of all successor pairs in its relation
argument. That argument occurs only positively, so F is monotone.
Coinduction then gives membership of the initial pair in the greatest fixed
point of F. Expressions may depend on both symbolic states: this is a model
of their joint behavior, not an assumption of independent implementations.
Each obligation is checked by asking whether its negation is satisfiable.
Only Unsat discharges it. CandidateRefuted identifies the failed obligation
and includes a solver counterexample when available; a failed candidate does
not prove that the initial states are inequivalent. Unknown remains
inconclusive, and the configured resource policy applies to each solver query.
This establishes a theorem about the supplied model. Connecting observations and successors to actual source execution, proving productivity, and replaying evidence in the Verum proof kernel are separate obligations. The expression-only checker does not construct that correspondence automatically.
SepLogicConfig — separation logic
Owner: verum_smt::separation_logic::SepLogicEncoder.
Used by: heap-shape verification (linked lists, trees, graph predicates).
| Field | Default | Effect |
|---|---|---|
entailment_timeout_ms | 5 000 | Per-entailment solver budget. |
max_unfolding_depth | 10 | Bound on recursive-predicate unfolding (ListSeg, TreePred). |
enable_frame_inference | true | Gates infer_frame; when false, returns typed failure so callers that only need entailment validity skip the residual computation (~30% encoder reduction on large heaps). |
enable_symbolic_execution | true | Reserved — feature not yet enabled by default in encoder. |
enable_caching | true | Reserved — encoding-cache infrastructure exists but isn't yet read. |
UnsatCoreConfig — minimal-core extraction
Owner: verum_smt::unsat_core::UnsatCoreExtractor.
Used by: refinement-type error reporting (which clauses contradict?), proof-search debugging.
| Field | Default | Effect |
|---|---|---|
minimize | true | Iterate to find a minimal core. |
quick_extraction | false | Trade minimality for speed — return the first unsat-core the solver finds. |
max_iterations | 100 | Bound on minimization iteration count. |
timeout_ms | Some(10 000) | Per-extraction solver budget — folded into the same Params that sets unsat_core: true. |
proof_based | false | Use the solver's proof API instead of assumption-tracking — slower but more precise. |
ParallelConfig — portfolio + cube-and-conquer
Owner: verum_smt::parallel::ParallelSolver.
Used by: @verify(thorough) and @verify(certified)
modes — multiple solver workers race to discharge the same goal.
| Field | Default | Effect |
|---|---|---|
num_workers | cpus() | Worker thread count. |
strategies | default_strategies() | Per-worker strategy list (logic, tactics, seed). |
timeout_ms | Some(30 000) | Global timeout. |
enable_sharing | true | Broader gate — must be true for any cross-worker exchange. |
enable_lemma_exchange | true | Per-feature gate; effective only when enable_sharing is also true. |
race_mode | true | First-to-finish terminates others. |
lemma_exchange_interval_ms | 500 | How often workers swap learned clauses. |
max_lemmas_per_exchange | 10 | Bound on payload size per round. |
enable_cube_and_conquer | false | Search-space partitioning. |
cubes_per_worker | 4 | Partition target. |
Recipe — deterministic verification:
[verify.solver.parallel]
enable_sharing = false # no cross-talk
race_mode = false # all workers finish; stable result
num_workers = 1 # single-thread for full reproducibility
OptimizerConfig — MaxSAT / Pareto
Owner: verum_smt::optimizer::Z3Optimizer.
Used by: optimization-modulo-theories (best-effort refinement, weighted-soft-constraint solving).
| Field | Default | Effect |
|---|---|---|
incremental | true | Gates push / pop scope manipulation. When false, push/pop are no-ops (paired so the stack stays balanced). |
max_solutions | Some(100) | Cap for Pareto-front enumeration. Not unbounded — a front wider than 100 is truncated. |
timeout_ms | Some(30 000) | Per-query solver budget. |
enable_cores | true | Extract unsat cores for soft-constraint debugging. |
method | Lexicographic | Lexicographic (prioritised) / Pareto (frontier) / Independent / Box (bounding box). |
CacheConfig — verification-result cache
Owner: verum_smt::verification_cache::VerificationCache.
Used by: cross-build SMT result reuse (target/smt-cache/).
| Field | Default | Effect |
|---|---|---|
max_size | 2 000 | Entry cap. |
max_size_bytes | 500 MB | Memory cap. |
ttl | 30 days | Result expiry. |
statistics_driven | true | When false, cache everything. When true, gate inserts on solver stats. |
min_decisions_to_cache | 1 000 | ≥ this many SMT decisions → cache. |
min_conflicts_to_cache | 100 | ≥ this many conflicts → cache. |
min_solve_time_ms | 100 | ≥ this elapsed → cache. |
distributed_cache | None | Opt-in distributed cache via S3/Redis URL. |
Statistics-driven caching only fires for callers that route
through VerificationCache::insert_with_stats. The default
get_or_verify path uses unconditional insert, so the
stats thresholds above only apply when callers explicitly
provide stats.
Parameter-scope discipline
The SMT layer has three distinct parameter scopes that are not interchangeable — even for the same param key:
| Scope | API | Persistence |
|---|---|---|
| Global | smt-backend::set_global_param(k, v) | Process-wide; most-recent call wins. |
| Config | Config::set_param_value(k, v) | Applied at context construction. |
| Solver | Params::set_u32 / set_bool + Solver::set_params(&p) | Per-solver. |
The empirically verified rule per key:
| Key | Global | Config | Solver |
|---|---|---|---|
memory_max_size | ✅ | ❌ silent ignore + help dump | ❌ mis-routes queries |
smt.random_seed | ✅ | partial | ✅ |
auto_config | ✅ | ✅ | ❌ |
proof | ✅ | ✅ (set_proof_generation) | ❌ |
timeout | partial | ✅ (set_timeout_msec) | ✅ (set_u32) |
unsat_core | ❌ | ✅ | ✅ — must fold into the same Params value as the timeout |
quant-mode (adapter) | n/a | n/a | ✅ via smt_solver_set_option |
A parameter that looks settable at any scope frequently
isn't. The adapter's silent-ignore behaviour means an incorrect
choice produces a "config seems to work" failure mode that
only shows up under stress (memory_max_size is the
canonical example: setting it on Config lets the build
succeed but the adapter ignores the limit; setting it on Solver
makes the adapter mis-route easy queries).
If you're adding a new param to the verifier, empirically verify at each scope before committing. The verifier's audit suite includes regression tests for every parameter that has been wired this way.
Solver-parameter calls are destructive
A subtle gotcha at the adapter boundary: applying a parameter set to a live solver instance replaces its current parameter state. The verifier folds every per-solver tunable into a single batched apply per query, so two adjacent calls cannot accidentally erase each other's settings. The audit suite has a regression test that pins this folding behaviour.
Common workflows
Latency-sensitive (IDE / on-type)
[verify.solver.refinement]
timeout_ms = 50
[verify.solver.qe]
timeout_ms = 500
simplify_level = 1 # cheaper
[verify.solver.cache]
max_size = 100_000 # bigger reuse window
ttl = "7d"
CI / production builds
[verify.solver.refinement]
timeout_ms = 5_000
[verify.solver.smt-backend]
random_seed = 42 # reproducible failures
auto_tactics = false
memory_limit_mb = 16_384
[verify.solver.parallel]
enable_sharing = false # determinism
race_mode = false
num_workers = 1
Deep proof debugging
[verify.solver.smt-backend]
verbosity = 3 # solver trace output
[verify.solver.unsat_core]
minimize = true
proof_based = true # slow but precise
timeout_ms = 60_000
[verify.solver.optimizer]
incremental = false # no scope reuse — clean state per query
Ultra-conservative (research / paper artefacts)
[verify]
default_strategy = "certified"
fail_on_divergence = true
[verify.solver.refinement]
timeout_ms = 30_000
[verify.solver.smt-backend]
enable_proofs = true
random_seed = 42
[verify.solver.parallel]
enable_sharing = false
race_mode = false
[verify.solver.unsat_core]
proof_based = true
Telemetry & inspection
After a build with --smt-stats, inspect what each setting
actually accomplished:
verum smt-stats # human-readable
verum smt-stats --json # machine-readable
verum smt-stats --reset
The output includes per-theory routing counts, p50/p95 latency, cache hit rate, and per-strategy breakdown. Use it to validate that a tuning change had the expected effect before committing the manifest.
See also
- Architecture → SMT integration — how the configs flow from session to solver.
- Reference → verum.toml —
full
[verify]schema. - Verification → SMT routing — per-theory backend selection logic.
- Verification → performance — cost / completeness trade-offs across strategies.
- Verification → CLI workflow — per-invocation overrides and budget management.