Injective heap embeddings #
An embedding preserves registers and all source records while allowing extra target records. Its address map is injective only on the allocated source heap. Creating a record extends that map at the fresh source address, leaving all old addresses unchanged.
Main definitions #
Record.relabel: transport a record's pointers along an address map.State.Embeds: an injective embedding of one valid heap into another.
Main results #
State.Embeds.next: embeddings preserve control decisions, including pointer equality.State.Embeds.effect: every instruction preserves an embedding, extending its address map on allocation.
A valid source heap embedded in a valid target heap, with identical control and data. The target may have additional records; the map is constrained only on allocated source addresses.
- source_valid : x.Valid
Source pointers specify records.
- target_valid : y.Valid
Target pointers specify records.
Control is unchanged.
Data registers are unchanged.
Pointer registers are transported by the map.
Distinct allocated source addresses remain distinct.
Allocated source addresses have allocated images.
Every source record occurs at its image with its pointers transported.
Every instruction preserves heap embeddings. Allocation extends the map at the fresh source address and leaves its values on all previously allocated source addresses unchanged.