Rational hitting lists: output computation #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/RationalHitting/OutputComputation.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.
Strip the one literal separator of the required unary input, remembering its first field in a separate finite stack.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Copy a unary input segment until its scan register is exhausted.
Equations
Instances For
A fixed three-stack parser for the literal, unescaped unary input. Its output is the ordinary typed pair coding used by the closure library.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Literal canonical output, including dimension and accepted-list length.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Polynomial feasibility of the canonical output construction.