Base-digit reconstruction and exact monomial substitution #
The division algorithm reconstructs each integer below h^m from exactly
m digits. Substituting powers with weights h^i therefore recovers the
distinct powers indexed by the original Fin K, with degree strictly below
K even when K is smaller than h^m.
theorem
Algebraic.Cutwidth.Extractor.Internal.monomialDigit_lt
{h j m : ℕ}
(positive : 0 < h)
(i : Fin m)
:
theorem
Algebraic.Cutwidth.Extractor.Internal.sum_monomialDigit_mul_pow
{h j m : ℕ}
(bound : j < h ^ m)
:
theorem
Algebraic.Cutwidth.Extractor.Internal.digitMonomial_pow
{R : Type u_1}
[CommMonoid R]
{h j m : ℕ}
(bound : j < h ^ m)
(u : R)
:
theorem
Algebraic.Cutwidth.Extractor.Internal.digitMonomial_substitution
{R : Type u_1}
[CommSemiring R]
{h K m : ℕ}
(bound : K ≤ h ^ m)
(a : Fin K → R)
:
(∑ j : Fin K, Polynomial.C (a j) * digitMonomial h ↑j fun (i : Fin m) => Polynomial.X ^ h ^ ↑i) = ∑ j : Fin K, (Polynomial.monomial ↑j) (a j)
theorem
Algebraic.Cutwidth.Extractor.Internal.fin_monomial_sum_eq_ofFn
{R : Type u_1}
[Semiring R]
[DecidableEq R]
{K : ℕ}
(a : Fin K → R)
:
theorem
Algebraic.Cutwidth.Extractor.Internal.fin_monomial_sum_degree_lt
{R : Type u_1}
[Semiring R]
{K : ℕ}
(a : Fin K → R)
: