Integer arrays through their constructor columns #
The existing canonical Int view is lifted elementwise over an array. Its two
actual columns contain the sign constructor and its natural field; negative
zero is impossible and (true, 0) denotes -1. Equal column lengths and
all contents are observed at the same heap. This is neither a host decoder
nor a source-level conversion; allocation and access require real operations.
An integer array uses the existing Boolean/natural pair-column layout.
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[simp]
theorem
Complexity.Language.Representation.arrayInt_rel
(values : Array ℤ)
(columns : Buffer CellTy.bool × Buffer CellTy.nat)
(heap : Heap)
:
theorem
Complexity.Language.Representation.arrayInt_size
{values : Array ℤ}
{columns : Buffer CellTy.bool × Buffer CellTy.nat}
{heap : Heap}
(observed : arrayInt.Rel values columns heap)
:
The sign column retains the entire integer array's actual length.
theorem
Complexity.Language.Representation.Preserves.arrayInt
{initial finish : Heap}
(signs : (array CellTy.bool).Preserves initial finish)
(fields : (array CellTy.nat).Preserves initial finish)
:
Representation.arrayInt.Preserves initial finish
Integer contents survive exactly the supplied frames of both real columns.