proofs.rs

Claim #44 — Verification of clock_dbm::Dbm::try_reset_zero (with creusot 0.14.0)

clock_dbm::Dbm::try_reset_zero

impl crate::dbm::Dbm
pub fn try_reset_zero(self: Self, x: Variable) -> Result<Dbm, Error>

Tool: creusot 0.14.0

This claim has no explanation of its own. Read the report Overview, and treat the preconditions and evidence below as authoritative. See Concepts and terminology.

Preconditions

true

Evidence

https://github.com/MasWag/crate-proofs/blob/e9ee246167d4d0847b9e6e6a76a89f978cba1afc/clock-dbm/0.1.0/upstream/clock-dbm-0.1.0/src/ops/temporal.rs#L367-L397

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.

Read and join the discussion on the report →