Rational hitting lists: signed binary #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/RationalHitting/SignedBinary.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.
Replace the front variable-width record, consuming the replacement in 5.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Indexed overwrite with no fixed cell width or numerical oracle.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Repeated multiplication, preserving the binary base in register 8 and consuming a unary exponent in register 9. Used in the Taylor input matrices.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Repeat multiplication over a unary exponent counter.
Equations
Instances For
Initialize the multiplicative identity and execute exponentiation.
Equations
Instances For
A fixed finite power subroutine. Its exponent is unary and its output is canonical binary. No exponentiation instruction is supplied by the machine.
Move a word to another stack while complementing each bit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Complement every bit and restore the original word order.
Equations
Instances For
Convert the modular subtraction result to an absolute magnitude according to its genuinely computed borrow bit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Signed difference of arbitrary naturals, in canonical signed magnitude.