Matrix entries indexed by tensor strings #
Main definitions #
arrayL,arrayR: batch arrays with exactlyminner levels.leftStrOf,rightStrOf,outStrOf: entry strings.
Main results #
existsUnique_leftStr,existsUnique_rightStr,existsUnique_outStr: unique entry strings.
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.
Recognize the constructors .p i j as inner left variables.
Instances For
Recognize the constructors .q i j as inner right variables.
Instances For
The outer dimension 3 ^ (L - m), with natural-number subtraction. In particular, this
definition gives 1 if m > L.
Instances For
The thin dimension 4 ^ m.
Instances For
The binomial coefficient L.choose m, counting size-m subsets of Fin L.
Instances For
Extract i from .x i; return 0 on inner left variables.
Instances For
Extract j from .y j; return 0 on inner right variables.
Instances For
Extract the first index from .z i j; return 0 on .z0.
Instances For
Extract the second index from .z i j; return 0 on .z0.
Instances For
Integer matrices with outer row indices and inner column indices.
Instances For
Integer matrices with inner row indices and outer column indices.
Instances For
Encode a family of integer matrices as a left array. A string with exactly m inner
positions selects X at that set of positions, with row outerPartL and column
innerPartL; every other string has value zero.
Instances For
Encode a family of integer matrices as a right array. A string with exactly m inner
positions selects Y at that set of positions, with row innerPartR and column
outerPartR; every other string has value zero.
Instances For
Left, right and output strings with a given inner set, outer part and inner part #
The inner set of rightStrOf Q hQ π c is Q.
The inner part of rightStrOf Q hQ π c is π.
The outer part of rightStrOf Q hQ π c is c.
For a set Q of cardinality m, an outer index r and an inner index π determine a
unique left string with those extracted parts and inner set Q.
For a set Q of cardinality m, an inner index π and an outer index c determine a
unique right string with those extracted parts and inner set Q.