Unrestricted depth-three lower bound: language bit horner loop #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/DepthThree/LanguageBitHornerLoop.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical proofs are retained.
One multiply-and-add step of Horner evaluation.
Equations
Instances For
def
Complexity.DepthThreeLowerBound.hornerFrom
(r : ℕ)
(p h : List Bool)
(bs : List (List Bool))
(a : List Bool)
:
Continue Horner evaluation from an initial accumulator.
Equations
- Complexity.DepthThreeLowerBound.hornerFrom r p h bs a = List.foldr (Complexity.DepthThreeLowerBound.hornerStep r p h) a bs
Instances For
@[simp]