Documentation

CslibFrontier.DataStructure.Memory.RecordLink

Normalizing record programs linked to memory #

These equations expose primitive reads, writes and conditional source branches without unfolding an entire record interpreter. Native method proofs can normalize the same source at the program boundary and in reached-state hypotheses.

Main results #

These are source equations, with no execution, validity or resource-bound claim.

theorem Cslib.DataStructure.Record.Layout.lift_read {ι : Type} [DecidableEq ι] {ok : ι → Prop} (L : Layout ok) (w : ℕ) (i : ι) :

A layout interprets a record read at its literal memory address.

theorem Cslib.DataStructure.Record.Layout.lift_write {ι : Type} [DecidableEq ι] {ok : ι → Prop} (L : Layout ok) (w : ℕ) (i : ι) (k : ℕ) :

A layout interprets a record write at its literal memory address.

theorem Cslib.DataStructure.Record.lift_ite {ι α : Type} (interp : (o : Op ι) → Memory.Prog o.Result) (P : Prop) [Decidable P] (yes no : Prog ι α) :

Interpreting a source branch distributes over that branch. Specializing apply_ite to the interpreter avoids arbitrary conditional permutations during simplification.