On this page
Adopt verification and review regressions
Adopting proof is a progression from a well-defined project to adequate contracts and reviewed evidence. It is not a progression from “many warnings” to “no visible warnings” by any means available. Keep the required application behavior and trust boundary explicit at every step.
Establish a reproducible baseline
Identify the intended project roots, source directories, dependencies, entry point, runtime/ target and tool identities. A command proving one package is not automatically a result for the complete application or every exported API. Record the exact command, mode, configuration and current failures before editing them.
Run check first. Resolve unsupported syntax, type/instance identity, initialization, effects, ownership and aliasing issues. Do not spend solver effort on a program that has not reached a legal proof input. For mixed-syntax projects, test actual import/call boundaries; a frontend does not gain every shared declaration form merely because another frontend can express it.
Choose the first properties
Start with useful public boundaries: accepted ranges/lengths, valid ownership/shape, required outputs, permitted exceptional behavior and effects. Choose a small representative operation and prove the body and a real caller. The contract repair family shows why both sides matter.
Prefer stable model-based properties to private representation details. A good public result relation survives an implementation refactor and is strong enough to support the caller's actual requirement. Add frame facts deliberately rather than assuming every unmentioned component is retained through every call.
State nonfunctional requirements separately: latency, resource budgets, shutdown completion, external validity and real-time scheduling may need mechanisms/evidence outside ordinary generated safety/functional VCs. Do not relabel them as proved because a related scalar contract passes.
Use development execution deliberately
Advisory execution can help observe checkable incomplete work, and proof-disabled compilation can provide a fast executable experiment. Retain their mode labels and review the runtime-enforcement exclusions. Passing sample inputs establishes only the tested behavior under that policy; it does not transform an unproved leak, variant or model relation into a theorem.
Keep deliberately failing examples separate from repaired projects. Otherwise duplicate unit names or an accidentally selected main can make the experiment prove/run the wrong program. Work in copies for mutation experiments, and inspect current status rather than an old executable left in the output directory.
Build a contract and invariant review habit
For each change, answer:
| Review question | Evidence to inspect |
|---|---|
| Are all required inputs still accepted? | Preconditions, boundary tests, domain requirements |
| Is the promised output useful and correct? | Postconditions, cases, models and caller assertions |
| Are modified and preserved regions explicit? | Frames, lengths/bounds, effects and dependencies |
| Does every loop carry enough information and progress? | Establishment/preservation/exit proof and variants |
| Are all resource/exception paths valid? | Ownership states, finalizers, copyback and handlers |
| Has trust increased? | veradic trust: new assumptions, imports, justified checks, raised budgets |
Review a suggested precondition or invariant as an API/algorithm statement, not only as a fix-it. A stronger precondition can exclude a required case; a weaker postcondition can remove the property under review; an Assume can hide a defect by enlarging trust.
Organize verification work
Use small compositional APIs with explicit useful guarantees. Keep solver-specific workarounds and budget overrides localized and explained. If a lemma represents a domain fact, give it a clear specification and prove its body. Keep proof-only code isolated from ordinary behavior so erasure remains valid.
For each trusted external boundary, assign an accountable owner and record the implementation/ environment evidence supporting its contract. veradic trust lists what a proof of the project trusts; keep its output, with your review of each entry, as a project artifact (see trust).
Release gate
A practical strict-release gate includes the following distinct results:
- The complete intended source/project passes legality and applicable flow/ownership checks.
- The required generated obligations prove under the recorded strict policy, with no unreviewed failed/unknown conditions hidden by advisory execution.
- Assumption/vacuity and other warnings have an explicit disposition; required properties still exist and the trusted-base inventory is accepted.
- Required native/JIT behavior, foreign integration, numeric/shape and resource cases are tested on the claimed target, with applicable oracle results recorded honestly.
- Source, tool/configuration identities and evidence artifacts are sufficient to regenerate the result and explain cache/core reuse.
--no-assume rejects the program's own assumptions, but there is no --release switch that performs all of this review. Enforce the actual commands and recorded project policy in your build process. A program's proof also trusts the predefined library's contracts, whose bodies are proved when Verada is released; veradic trust lists both kinds of trust.
Regression testing with proof
A proof regression can expose an actual defect, a changed specification/model, weakened call/frame information, changed solver search, a new tool environment, or stale artifact assumptions. Preserve the old and new source/configuration/tool identities before debugging. Classify the outcome using proof results.
For a semantic defect, retain a test that exercises the boundary and a contract that prevents the wrong implementation. For a missing invariant/interface fact, retain a meaningful client assertion or result contract that needs it. Avoid goldens depending on incidental proof counts, temporary paths or English phrasing when a stable code/outcome is the intended property.
When upgrading compiler/solvers/libraries, perform a controlled fresh-answer comparison and record core/cache policy. Do not infer that a warm cache demonstrates a new solver proves the queries. An external comparison should report passed, failed, unavailable or inapplicable; a skipped oracle is not a proof pass.
Review beyond the verifier
Proof and testing complement domain review, code review, runtime/ABI inspection and release operations. A verified wrong requirement is still wrong for the application. A correct model of ordinary arithmetic does not validate an external sensor assumption. A useful provenance bundle makes these boundaries inspectable rather than trying to hide them under a single “verified” label.
A trusted enclave is reported as an assumption, like any other, until the heap engine proves its frames.