The model is ordinary Fe, the checker is the compiler you already run, and the contract calls the function that was checked. A Python oracle, written separately, re-counts every pin.
A const fn walks the graph
Breadth-first search with while loops, mutable locals and array writes, evaluated by the compiler. Each successor is checked before it is encoded.
while head < tail {let x = queue[head]head += 1let cur = decode(x)var a: u32 = 0while a < ACTIONS {let act = action_of(a)let n = step(cur, act, cap)if n.ok {// Every invariant is checked before `encode`, so an out-of-box successor fails by name.let v = first_violation(cur, act, n.s, cap)if v != OK { require(v) }let y = encode(n.s)if !visited[y as usize] {visited[y as usize] = truequeue[tail] = ytail += 1}}a += 1}}
src/escrow_explore.fe:94–115
const fnwhilearray index writesFe ≥ 26.1.0
static_assert is the gate
Five core pins, each its own static_assert and its own budget (three shard pins follow at lines 270–274). If a count drifts, an edge hash changes or an invariant breaks on the way, fe build stops.
251explore(17) == 494254explore(CAP) == STATES258counterexample(19) == 0261or_deferred(fingerprint(CAP, false, STATES), EDGES) == EDGES262or_deferred(fingerprint(CAP, true, STATES), EDGE_HASH) == EDGE_HASH
src/escrow_explore.fe:251–262 · CAP = 21, STATES = 736, EDGES = 966
static_assertsharded, never chained
assert! names the rule
paid oncesettled emptyconservedwithin capacityin bounds
A failed const-context assert! prints its message as a compiler note; the route comes back as the left: side of a failed static_assert.
error[3-0036]: assertion failed in const context= assertion message: invariant 'paid once' broken: buyer and seller both paiderror[8-0081]: static assertion failed= left: `11234`
evidence/transcript-fail-refund-after-release.txt (excerpt)
One step(), three runs
736compile time
=736Sonatina EVM
=736native
The same explorer returns 736 at C = 21 (and 494 at C = 17) in the build and in test_runtime_explore_agrees on both backends. The EVM search at C = 17 burns 16,394,182 gas.
fe test --backend nativeblack_box
The contract replays every edge
25,646
handler calls through 1,008 deployments at C = 21; after each, ok and the stored state are compared with step().
contract · msg · recv
An oracle outside Fe
15/15
Fe pins matched by tools/ref_model.py, a stdlib Python model written separately, plus the 3,680-row edge table.
evidence/oracle.txt