The alphabets and coefficient forms of Schönhage's tensor #
Seven left variables, seven right variables, ten output variables and ten multiplication terms are represented explicitly. Indices start at zero. Linear forms are coefficient functions over integers; no arithmetic operation is treated as a native machine instruction.
Main definitions #
LeftVar,RightVar,OutVar,Term: the four finite alphabets.phi,psi,chi: the left, right and output coefficient forms.Term.Contributes: occurrence in an output form.
Main results #
card_leftVar,card_rightVar,card_term: alphabet sizes.Term.contributes_iff,chi_eq_ite: output incidence and its coefficient.
References #
Part of [AlmanWilliams2026, Section 2]. Direct mathematical adaptation of
Anthropic's pinned formal source.
Definitions are selectively extracted from that pin's PaperStatements.lean; no machine
semantics or running-time statement is imported. The docstrings below explain the local
declarations in our own words.
Instances For
Instances For
Instances For
Instances For
The linear form consisting of the single left variable x_i.
Instances For
The linear form consisting of the single left variable p_ij.
Instances For
The linear form consisting of the single right variable y_j.
Instances For
The linear form consisting of the single right variable q_ij.
Instances For
The linear form consisting of the single output variable z_ij.
Instances For
The linear form consisting of the single output variable z₀.
Instances For
Select the distinguished output coordinate, excluding the indexed outer coordinates.
Instances For
A label is relevant to an output coordinate when its output coefficient is nonzero.
Instances For
Choose the indexed label for an outer coordinate and P0 for the inner coordinate. Applying
this choice coordinatewise defines a private leaf.
Instances For
A length-L tuple of left coordinates, indexed from zero.
Instances For
The sequence of multiplication labels identifying a depth-k recursion vertex.
Instances For
A terminal vertex, whose label sequence has the full recursion depth.
Instances For
The alphabets #
The left alphabet has cardinality seven.
The right alphabet has cardinality seven.
There are ten multiplication labels.
Which terms contribute to which output variables #
The inner coordinate receives a contribution from every multiplication label.
For an outer coordinate, relevance determines both indices of the multiplication label.
Relevance has two possibilities: the output is inner, or the label is the private label selected by that output.
Separate decoding into its two cases: an outer output selects one summand; the inner output sums the whole label family.
Each output coefficient is the zero-or-one indicator of Term.Contributes.