---
title: "U7004: Missing or invalid `verification.lock`"
url: https://una-lang.org/en/docs/errors/U7004/
release: v0.4.0
source: https://github.com/una-lang/una/blob/v0.4.0/crates/una-explain/explain/U7004.md
---

# U7004: Missing or invalid `verification.lock`

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.lock`

```diff
- 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.lock`

```toml
encoding_version = "una-smt-0"
solver           = "z3"
solver_version   = "5.1.0"
logic            = "QF_UFLIA"
step_budget      = 5000000
random_seed      = 0
```

`src/demo.una`

```una
module demo

pub one() -> Int = 1
```

## Fixed example

`verification.lock`

```toml
encoding_version = "una-smt-1"
solver           = "z3"
solver_version   = "5.1.0"
logic            = "QF_UFLIA"
step_budget      = 5000000
random_seed      = 0
```

`src/demo.una`

```una
module demo

pub one() -> Int = 1
```
