Binary-power compilation of Waring terms #
This contextual translation retains the shared linear-form computation from
Waring.Translation.sharedTranslation, but replaces its linear-length power
chain by the reusable binary-power DAG. Each source term therefore costs
2n + binaryMultiplicationCount (2n) + 1
multiplications: 2n coefficient products, a logarithmic power circuit, and
one final scaling product.
One Waring-term gadget with a shared linear form and binary powering.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The gate count of termCircuit is the tree gate count of the linear form,
plus the gate count of the binary power circuit, plus the tree gate count of the
final scaling. Composing the stages adds no gates. Unlike the multiplication and
addition charges below, the count includes the named-constant gates.
Exact multiplication charge of the binary Waring-term gadget.
Equations
Instances For
Exact addition charge of the binary Waring-term gadget.
Instances For
Binary term compilation preserves the charged power polynomial exactly.
Contextual Waring translation using binary powering inside each term.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Pulling multiplication cost through the binary translation charges only source terms, at their exact gadget cost.
Pulling addition cost preserves source additions and charges the internal linear-form additions of every term.
Closed multiplication-cost formula for binary Waring compilation.
Closed addition-cost formula for binary Waring compilation.
Pulling polynomial semantics through binary compilation recovers the Waring sum-of-terms interpretation.
Contextual binary compilation preserves every Waring circuit's polynomial outputs.