Rational hitting lists: procedure pairs #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/RationalHitting/ProcedurePairs.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.
Serialization of a typed pair. Only the first field needs a delimiter.
Equations
- Complexity.RationalHitting.StackLanguage.pairCode ca cb p = Complexity.RationalHitting.StackLanguage.codeWord (ca p.1) ++ cb p.2
Instances For
A store with two specified registers and all other registers empty.
Equations
Instances For
The register map selecting three named registers.
Instances For
Prefix a record in its original order, consuming the first stack.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Run two procedures on the same input and encode their pair of outputs.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A finite literal is written by a finite sequence; it is not a primitive which can materialize a word of unbounded length in one step.
Equations
Instances For
Reverse an input word using a clean temporary register.
Equations
- One or more equations did not get rendered due to their size.