Tiling layout data #
Main definitions #
Layout: index equivalences and an injective assignment of level sets to block pairs.wantedStrings,tiles: requested outputs grouped by tile.
References #
Adapted selectively from [AlmanWilliams2026, Section 2] and
Anthropic's pinned formal source.
Source pin: 16a5ce41304fcdaea4e0be7c132e1c361dc26da5. These are finite mathematical
counts and identities; they give no native program or instruction-cost certificate.
The natural square root of the number K L m of size-m level sets.
N₀ = 3^{L-m} is positive.
Indexing data for the block decomposition, under m ≤ L.
The three equivalences identify block rows, block columns and the thin dimension with
their string indices. The injective table assigns a size-m subset of Fin L to each
pair of block indices in a tile. All tiles use this same table. The structure contains no
matrix values or solver certificate; the correctness results hold for any such indexing
choices.
- hmL : m ≤ L
Index a block's rows by outer strings.
Index a block's columns by outer strings.
Index the thin matrix dimension by strings of inner index pairs.
Assign a distinct size-
mlevel set to each block product in a tile.- table_injective : Function.Injective self.table
The dimension covered by numBands L m N complete bands.
For a table entry Q = lay.table (g, h), select row block β * K0 L m + g of X; return
the zero matrix for sets outside the table's image. Injectivity of the table ensures that
the defining sum selects at most one matrix.
The band that contains row (or column) I.
The position of row (or column) I within its block.
Encode the within-tile position (I, J) as an output string. Its inner set comes from the
table at the two block indices, and its outer indices come from the two offsets within
those blocks. The tile itself is identified separately by (bandOf L m I, bandOf L m J).
Output strings for the positions of W whose row band is β and column band is β'.
This is the image of the filtered position set under outStrOfPos lay.