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.
Instances For
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.
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
Instances For
The dimension covered by numBands L m N complete bands.
Instances For
Extract the N0 L m rows starting at B * N0 L m from padRows X, using lay.rowIdx
and lay.innerIdx to index the resulting integer matrix by strings.
Instances For
Extract the N0 L m columns starting at B * N0 L m from padCols Y, using
lay.innerIdx and lay.colIdx to index the resulting integer matrix by strings.
Instances For
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.
Instances For
The band that contains row (or column) I.
Instances For
The position of row (or column) I within its block.
Instances For
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).
Instances For
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.