Folding polynomial is unique
Polynomial.FoldingPolynomial.folding_polynomial_is_unique
Plain-language statement
The uniqueness of the folding polynomial.
Exact Lean statement
theorem folding_polynomial_is_unique {q f : F[X]} {Q : F[X][Y]}
(h : (Q.map (Polynomial.compRingHom q)).eval X = f)
(h_x : degreeX Q = f.natDegree / q.natDegree)
(h_y : natDegreeY Q < q.natDegree) :
Q = foldingPolynomial q fFormal artifact
Lean source
theorem folding_polynomial_is_unique {q f : F[X]} {Q : F[X][Y]} (h : (Q.map (Polynomial.compRingHom q)).eval X = f) (h_x : degreeX Q = f.natDegree / q.natDegree) (h_y : natDegreeY Q < q.natDegree) : Q = foldingPolynomial q f := by by_contra h_contra obtain ⟨Q', hQ'⟩ : ∃ Q' : F[X][Y], Q - foldingPolynomial q f = Q' * (C Polynomial.X - Polynomial.map (Polynomial.C) q) := by obtain ⟨Q', hQ'⟩ := satisfies_composition_property_implies_is_the_reminder (show ((Q.map (Polynomial.compRingHom q) |> Polynomial.eval Polynomial.X)) = f from h) obtain ⟨Q'', hQ''⟩ := satisfies_composition_property_implies_is_the_reminder (show ((foldingPolynomial q f |> Polynomial.map (Polynomial.compRingHom q) |> Polynomial.eval Polynomial.X)) = f from substitution_property_of_folding_polynomial) exact ⟨Q'' - Q', by linear_combination' hQ'' - hQ'⟩ have hQ'_zero : Q' = 0 := by have hQ'_deg : natDegreeY (Q - foldingPolynomial q f) < q.natDegree := by have hQ'_deg : natDegreeY (Q - foldingPolynomial q f) ≤ max (natDegreeY Q) (natDegreeY (foldingPolynomial q f)) := by unfold natDegreeY exact Polynomial.natDegree_sub_le _ _ have hQ'_deg : natDegreeY (foldingPolynomial q f) < q.natDegree := by by_cases hq : q.degree ≤ 0 <;> simp_all +decide only [le_sup_iff, not_le] · rw [Polynomial.eq_C_of_degree_le_zero hq] at h_y h_contra hQ' ⊢ aesop · convert folding_polynomial_deg_y_bound hq using 1 · rw [ Polynomial.degree_eq_natDegree (Polynomial.ne_zero_of_degree_gt hq)] norm_cast exact lt_of_le_of_lt ‹_› (max_lt (by aesop) hQ'_deg) contrapose! hQ'_deg rw [hQ', natDegreeY] rw [Polynomial.natDegree_mul'] <;> simp_all +decide only [ne_eq, mul_eq_zero, leadingCoeff_eq_zero, false_or] · rw [Polynomial.natDegree_sub_eq_right_of_natDegree_lt] <;> norm_num [Polynomial.natDegree_C, Polynomial.natDegree_X] exact Nat.pos_of_ne_zero fun h ↦ by simp_all +decide [natDegreeY] · intro h simp_all +decide [sub_eq_iff_eq_add] simp_all +decide [sub_eq_iff_eq_add]- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Data/Polynomial/FoldingPolynomial.lean:657-706
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Affine gaps lifted to interleaved codes
affine_gaps_lifted_to_interleaved_codes
Project documentation
This lemma proves the final algebraic step in the DG25 Theorem 3.1 proof. It shows that if R > e + 1, then e * (R / (R - 1)) < e + 1. The intuition is that the fraction R / (R - 1) is always greater than 1, but as R gets larger, it gets closer to 1. The hypothesis R > e + 1 provides a strong enough bound to ensure the product e * (fraction) do...
Source project: ArkLib
Person-level attribution pending.
Gadget Decompose coeff
ArkLib.Lattices.Ajtai.gadgetDecompose_coeff
Plain-language statement
The k-th coefficient (k < deg φ) of a gadget-decomposition block is exactly the corresponding digit of the corresponding input coefficient.
Source project: ArkLib
Person-level attribution pending.
Gadget Decompose lawful
ArkLib.Lattices.Ajtai.gadgetDecompose_lawful
Plain-language statement
The base-b gadget decomposition is a lawful gadget decomposition.
Source project: ArkLib
Person-level attribution pending.