Naming the letters of a code by other letters #
A polynomial on the codes of words over Γ has a variable (p, y) for every place p and every
letter or end mark y : Option Γ. Along a map e : Δ → Γ, the substitution
Tape.letterSubst K e N sends the variables of the letters outside the range of e to 0
(Tape.letterSubst_of_notMem_range) and, for an injective e, the variable (p, Option.map e y)
to (p, y) (Tape.letterSubst_map). Its values are affine (Tape.isAffine_letterSubst). For an
injective e, a polynomial after the substitution takes at the code of a word w over Δ the
value that it takes before at the code of w.map e (Tape.eval_aeval_letterSubst).
Main definitions #
Tape.letterSubst: the substitution that names the letters ofΓby letters ofΔ.
Main results #
Tape.isAffine_letterSubst: its values are affine.Tape.eval_aeval_letterSubst: evaluation at the code of a word after the substitution.
References #
- Anthropic, VP ≠ VNP over every field, paper and Lean formalization,
Section K.2, p. 56 (the indicator assignment of a word
w, herefun b => if wordCode N w b then 1 else 0) and proof of Lemma K.3, p. 57 (the variables of the symbols other than the two of the words of instances are set to0); modulesNc.End.Thm(letS) andNc.End.PermThm
The substitution that names the letters of Γ by letters of Δ along e : Δ → Γ: the
variable (p, y) becomes (p, y') for some y' with Option.map e y' = y (the only one when e
is injective; y' = none for the end mark y = none), and 0 when there is no such y'.
For an injective e, the variable (p, Option.map e y) becomes (p, y).
The variables of the letters outside the range of e become 0.
The values of letterSubst are affine: variables or 0.
Evaluation at a code after naming the letters. For an injective e : Δ → Γ, a polynomial
after the substitution letterSubst K e N takes at the code of a word w over Δ the value
that it takes at the code of the word w.map e over Γ.