Unrestricted depth-three lower bound: language bit evaluator #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/DepthThree/LanguageBitEvaluator.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical proofs are retained.
Evaluate a coefficient sequence by Horner iteration on bit words.
Equations
- One or more equations did not get rendered due to their size.
- Complexity.DepthThreeLowerBound.wordHorner p h 0 x_2 = fun (x : Fin r) => false
Instances For
@[simp]
Compute the parsed evaluation remainder as bits.
Equations
Instances For
Read the acceptance bit from the bit-level evaluation.
Equations
Instances For
The bit-level implementation of the explicit language.
Equations
- Complexity.DepthThreeLowerBound.languageBits w = match Complexity.DepthThreeLowerBound.parseInput w with | none => false | some q => q.evaluateBits