Polynomial translation and finite multi-index data
DefinitionOAI_NumberTheory_PiExponent_Approximation_RowTranslation_CoreDatalinear-algebranumber-theoryopenai-pi-exponent-017polynomial
Let be a commutative semiring and an index type. For , define the polynomial translation homomorphism and its monomial coefficient by
Here are finitely supported exponent vectors. When is finite, the finite multi-index map converts to the same vector viewed as a finitely supported function. These are the original data used to expand shifted interpolation polynomials.
Definition code
import Mathlib.Algebra.MvPolynomial.Eval
import Mathlib.Algebra.Order.Antidiag.FinsuppEquiv
namespace OAI
namespace PiExponent.RowTranslation
open scoped BigOperators
open MvPolynomial
section PolynomialShift
variable {σ R : Type*} [CommSemiring R]
noncomputable def shift (c : σ → R) : MvPolynomial σ R →+* MvPolynomial σ R :=
eval₂Hom C (fun i => X i + C (c i))
noncomputable def shiftCoefficient (c : σ → R) (β a : σ →₀ ℕ) : R :=
(shift c (monomial a 1)).coeff β
end PolynomialShift
section FiniteExpansion
variable {σ R : Type*} [Fintype σ] [DecidableEq σ] [CommSemiring R]
noncomputable def multiIndex (a : σ → ℕ) : σ →₀ ℕ := Finsupp.equivFunOnFinite.symm a
end FiniteExpansion
end PiExponent.RowTranslation
end OAI
Source
OpenAI math, commit adc7f1241b42e322a6451854ab7e4b4c146bf78a: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/NumberTheory/PiExponent/Approximation/RowTranslation.lean#L13-L68