Rational hitting lists: taylor computation #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/RationalHitting/TaylorComputation.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.
One integer summand in a Taylor test-matrix entry.
Equations
Instances For
Sum the integer Taylor test-matrix entry over its finite range.
Equations
- Complexity.RationalHitting.StackLanguage.Runtime.taylor m a t i j = (List.map (fun (r : ℕ) => Complexity.RationalHitting.StackLanguage.Runtime.taylorTerm m a t i j r) (List.range m)).sum
Instances For
Set Taylor entries outside the retained column range to zero.
Equations
- Complexity.RationalHitting.StackLanguage.Runtime.padded m N a t i j = if j < N then Complexity.RationalHitting.StackLanguage.Runtime.taylor m a t i j else 0
Instances For
Encoded arguments for one Taylor matrix entry.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Unary parameters for variable count, truncation, dimension, degree, and grid size.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Truncation threshold in the encoded parameter record.
Equations
- p.truncation = p.2.1.val
Instances For
Construct the encoded generator parameters from variable count and formula size.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Compute the rank bound as a unary value.
Equations
Instances For
Compute the rank expansion allowance as a unary value.
Equations
Instances For
The unary threshold determining the next power-of-two dimension.
Equations
Instances For
Compute the cyclotomic exponent as a unary value.
Equations
Instances For
Compute the ambient dimension as a unary value.
Equations
Instances For
Compute the truncation threshold as a unary value.
Equations
Instances For
Compute the grid side length as a unary value.