Claim #15 — Verification of clock_dbm::Constraint::new (with creusot 0.14.0)
impl Constraint
pub const fn new(i: Clock, j: Clock, bound: Bound) -> ConstraintTool: creusot 0.14.0
Preconditions
true
Evidence
What is trusted
From the report
The result relies on Rust and Creusot translation, Why3 and the configured SMT solvers, and the creusot-std models of library operations. In particular, SharedDbm relies on the trusted Rc value model and three release-local external specifications: get_mut permits mutation when it returns a unique mutable handle and leaves the handle unchanged on None; strong_count is specified only to terminate and selects between separately correct paths; unwrap_or_clone returns the value or a clone satisfying the element's Clone contract. These specifications reflect the documented operations, but the standard-library Rc implementation is not proved here. The shared update code mutates through get_mut and otherwise updates a copy; snapshot isolation is derived relative to that model, not assumed directly.
Technical limitations
From the report
The proof applies to the unchanged 0.1.0 registry release and the recorded target and configuration. It does not establish behavior under allocation failure, hashing or formatting, or a universal termination guarantee. It does not establish ExtraM idempotence or a finite-image counting argument, timed-automaton reachability, or a separate theorem for constraint! macro expansion. For some shared updates reaching the kernel, the contracts do not uniquely determine whether the result is Ok or Error::Range; stronger equivalence between update paths is not claimed.
For full closure, the release proves a sufficient no-Range condition B * 2^d <= MAX_CONSTANT, where d is the number of clocks including the reference clock and B bounds the magnitude of finite input constants. That condition is not a general no-Range guarantee for incremental constraints, intersection or ExtraM. Individual contracts state their range-error conditions and successful results.