Home / Docs / Diagnostics

U7004: Missing or invalid verification.lock

Release v0.4.0

Every package commits a verification.lock next to its una.toml (spec/12 §9), up to edition 0.3; from edition 0.4, ita.lock next to ita.una pins the solver instead (U7009): it pins the SMT encoding, the solver and its exact version, the logic, the step budget and the seed, so that verification gives the same answer on every machine. U7004 reports a missing lock, at the start of una.toml (ADR 0022), and a lock with a syntax error, a missing or unknown key, or a value v0.1 does not support. Whether the installed solver matches the lock is U5003.

The repair at a glance

verification.lockdiff
- encoding_version = "una-smt-0"
+ encoding_version = "una-smt-1"
  solver           = "z3"
  solver_version   = "5.1.0"
  logic            = "QF_UFLIA"
  step_budget      = 5000000
  random_seed      = 0

Failing example

verification.locktoml
encoding_version = "una-smt-0"
solver           = "z3"
solver_version   = "5.1.0"
logic            = "QF_UFLIA"
step_budget      = 5000000
random_seed      = 0
src/demo.unauna
module demo

pub one() -> Int = 1

Fixed example

verification.locktoml
encoding_version = "una-smt-1"
solver           = "z3"
solver_version   = "5.1.0"
logic            = "QF_UFLIA"
step_budget      = 5000000
random_seed      = 0
src/demo.unauna
module demo

pub one() -> Int = 1