Documentation

CslibFrontier.Computability.WordRAM.Realization.MemoryBackend

A fixed seven-register backend for the memory interface #

The four primitive witnesses are retained as data in the existing Certificate/Backend. Their supplied scratch, factor and code determine seven registers and exchange factor four; no resource projection chooses again from an existential proof.

prepare retains the existing calling convention: already delivered arguments occupy registers one and two, with an unused second word zeroed. Installation and typed result decoding are uncharged. instruction_bound counts selected body instructions only, with no halt or native client-control claim. Full memory, frontier, admissibility and word bounds are retained.

Main definitions #

Main results #

Supplied witnesses for read, write, zeroed allocation and dirty allocation, in that order.

The memory operations use their original programs and typed results through one backend.

The family has two argument slots, four result/scratch slots and one frontier.

Concrete register count, determined by the supplied witnesses.

Register zero retains the allocation frontier across calls.

The four bodies are exactly the supplied bodies of the shared backend.

The supplied read is the literal load from argument register one to result register three.

The supplied store is the literal store from argument register two to address register one.

Deliver arguments in registers one and two; this is an uncharged calling convention.

Argument delivery leaves the literal whole memory and frontier unchanged.

Typed observations retain the existing word/unit convention without native decoding work.

Existing operation-level native body traces, following uncharged argument delivery.

theorem Cslib.WordRAM.Realization.MemoryBackend.exec_iff (w : ℕ) (x y : Data registers) (o : DataStructure.Memory.Op) (a : o.Result) (n : ℕ) :
exec w x o a y n ↔ Exec w (body o) (prepare o x) y n ∧ a = result o y

The execution interface records the actual body instructions and typed observation.

Runtime addresses and values do not select new store code.

Runtime counts do not select new zeroed-allocation code.

A single exchange factor for all four supplied primitive bodies.

Concrete factor, retained from the supplied four primitive witnesses.

The memory interface implemented by four static bodies. The representation includes every cell, the frontier and global word bounds; argument installation is semantic and uncharged.

The backend represents the full global memory and frontier, with global word bounds.

A body-only instruction certificate. This omits argument delivery, decoding and halt, and therefore does not assert a whole-client machine-clock bound.