NLA-lib Explorer

Footprints, disjointness and kept facts

Library · Source module

Footprints, disjointness and kept facts

A footprint NLAlib.Ops.Fp is a set of cells (buffer, index): the cells a run may write. It is a predicate, ordered by inclusion (F ≤ G) and joined by ⊔, built from NLAlib.Ops.Store.inBlock, NLAlib.Ops.Store.inBuf, the output blocks of a call (NLAlib.Ops.Fp.blocks) and matrix layouts (NLAlib.Ops.MatLayout.fp).

A fact about a store is kept by a run that does not write what it reads (NLAlib.Ops.Store.EqOff.keep): a predicate reads only the cells G (NLAlib.Ops.Store.ReadsOnly), and G is disjoint from the footprint of the run (NLAlib.Ops.Fp.Disj). This is the frame rule with a bundle of facts.

Main results

* NLAlib.Ops.Fp.blocks, NLAlib.Ops.Fp.Apart, NLAlib.Ops.Fp.Disj: footprints of calls. * NLAlib.Ops.Store.EqOff.keep: kept facts. * NLAlib.Ops.Store.EqOff.trans': frames compose by ⊔. * NLAlib.Ops.Store.EqOff.updBlock_of_le: the step of the frame tactic. * NLAlib.Ops.Mem.eq_updBlocks_of_eqOff: a frame on the output blocks and the blocks read back give the equation of a contract in operand form (any number of outputs). * NLAlib.Ops.HoldsWords: the cells of a store that hold words, kept off a footprint.

Declarations