NLA-lib Explorer

Reads after writes, and the frame of a run

Library · Source module

Reads after writes, and the frame of a run

The state of a run is written as a chain of updates over a store that is kept opaque. This file has the lemmas that push a read (get, readBlock, len) through an update (upd, updBlock) or a scratch buffer (push, pop), each with a side condition on handles or offsets; the tactic store_simp (file StoreSimp) applies them and discharges the side conditions.

An invariant does not describe the whole store. It says what the written blocks hold, and that the store agrees with the initial one off a footprint: NLAlib.Ops.Store.EqOff F s s'. A write inside the footprint keeps it (EqOff.upd, EqOff.updBlock), a read outside it is a read of the initial store (EqOff.get_eq, EqOff.readBlock_eq), and a scratch buffer leaves it when it is popped (EqOff.pop). Footprints are built from NLAlib.Ops.Store.inBlock, NLAlib.Ops.Store.inBuf and ⊔.

Main results

* NLAlib.Ops.Store.readBlock_updBlock_same, NLAlib.Ops.Store.readBlock_upd_concat: reading what was written. * NLAlib.Ops.Store.EqOff.eq_updBlock: a store that agrees with s off a block and holds xs in it is s.updBlock b off xs. * NLAlib.Ops.Store.EqOff.pop: the frame after a scratch buffer is freed.

Declarations