Direct finite-table construction, lookup and update #
The fixed index order and framed-list representation are unchanged. Lookup composes the existing head and tail codec machines; finite runtime dispatch retains the full captured input in each branch. The direct proofs introduce no default inhabitant requirement on the value or index type.
A fixed finite tag selects a certified branch, charging the tag and captured input. Neither the tag nor the result type requires a default inhabitant.
Construct a list of a fixed number of efficiently computed entries.
Construct a table by computing each entry, retaining the original input in each computation.
Read a fixed entry, charging for the stored prefix without requiring a default value.
Update a fixed table entry while charging for all preserved entries.
Read a computed index of a fixed finite table, charging the index and all stored entries.
Update a computed index while retaining and charging every other entry.