Scoped scratch allocations and surviving outputs
Library · Source module
Scoped scratch allocations and surviving outputs
A program body proved on allocated scratch returns its ordinary output block. The shared rule discharges scratch removal and transports that block to the caller's final store, so algorithm proofs never unfold pop operations or reconstruct an output after each allocation scope. The allocation tactic extracts the actual allocation chain and proves equality of statement trees before applying the rules, preserving every explicit storage format.
Main results
* NLAlib.Ops.writes_allocs_readBlock: an exact output block survives a whole scratch chain. * NLAlib.Ops.writes_allocs_readBlocks: a tuple of outputs survives the same scratch cleanup. * NLAlib.Ops.Stmt.splitAllocations: the actual allocation prefix and remaining subtree. * NLAlib.Ops.evalCounted_allocsAs_inv: its inner run, fresh geometry and preserved counts. * allocs_preserving: allocation sizes, postcondition preservation and ordinary body goals.
Declarations
- NLAlib.Ops.Fp.apart_allocs
- NLAlib.Ops.Fp.blocks_disj_above
- NLAlib.Ops.Fp.blocks_le_above
- NLAlib.Ops.Fp.inBlock_le_sup_above
- NLAlib.Ops.Mem.live_allocs
- NLAlib.Ops.Mem.readBlocks_eq_of_below
- NLAlib.Ops.Mem.room_allocs
- NLAlib.Ops.Mem.room_eq_of_below
- NLAlib.Ops.Stmt.allocsAs_splitAllocations
- NLAlib.Ops.Stmt.splitAllocations
- NLAlib.Ops.evalCounted_allocsAs_inv
- NLAlib.Ops.tacticAllocsPreserving
- NLAlib.Ops.writes_allocsAs_preserving_post
- NLAlib.Ops.writes_allocs_preserving_post
- NLAlib.Ops.writes_allocs_readBlock
- NLAlib.Ops.writes_allocs_readBlock_at
- NLAlib.Ops.writes_allocs_readBlocks