All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Eq zero of folding polynomial eq zero

Polynomial.FoldingPolynomial.eq_zero_of_folding_polynomial_eq_zero

Plain-language statement

If the folding polynomial is zero then so is the original polynomial.

Exact Lean statement

lemma eq_zero_of_folding_polynomial_eq_zero {q f : F[X]}
  (h : foldingPolynomial q f = 0) : f = 0

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma eq_zero_of_folding_polynomial_eq_zero {q f : F[X]}  (h : foldingPolynomial q f = 0) : f = 0 := by    induction n : f.natDegree using Nat.strong_induction_on generalizing f with    | h n' ih =>      by_cases h₁ :      f.degree < q.degree         f.degree  0         q.degree  0 <;> simp_all only [ext_iff, coeff_zero, not_or, not_lt, not_le]      · rw [folding_polynomial_def_base_case h₁] at h        intro n        specialize h n 0        aesop      · have h_rem_zero : f % q = 0 := by          rw [folding_polynomial_def_ind_case h₁.1 h₁.2.2] at h          ext n          specialize h n 0          simp_all +decide [Polynomial.coeff_map]        have h_quot_zero : f / q = 0 := by          have h_quot_zero : foldingPolynomial q (f / q) = 0 := by            have h_quot_zero :            foldingPolynomial q f              = (Polynomial.map Polynomial.C (f % q))                + Polynomial.C Polynomial.X                    * foldingPolynomial q (f / q) := by              rw [folding_polynomial_def_ind_case] <;> aesop            simp_all +decide only [Polynomial.map_zero, zero_add, coeff_C_mul,            EuclideanDomain.mod_eq_zero, ext_iff, coeff_add, coeff_map, add_zero, coeff_zero]            intro n n_1            specialize h n (n_1 + 1)            simp_all +decide          contrapose! ih          refine            Polynomial.natDegree (f / q),            by {              have h_deg_f : f.natDegree = q.natDegree + (f / q).natDegree := by                rw [Polynomial.natDegree_mul']                · rw [EuclideanDomain.mul_div_cancel'] <;> aesop                · aesop              linarith [                Polynomial.natDegree_pos_iff_degree_pos.mpr h₁.2.1,                Polynomial.natDegree_pos_iff_degree_pos.mpr h₁.2.2]            },            f / q,            by simp_all +decide,            rfl,            Polynomial.natDegree (f / q), by simp [ih]        rw [EuclideanDomain.mod_eq_sub_mul_div] at h_rem_zero        aesop
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Data/Polynomial/FoldingPolynomial.lean:242-289

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

Project-declaredLean 4.31.0

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...

cryptographyproof systemscoding theory

Source project: ArkLib

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

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.

cryptographyproof systemscoding theory

Source project: ArkLib

Person-level attribution pending.

View proof record
Project-declaredLean 4.31.0

Gadget Decompose lawful

ArkLib.Lattices.Ajtai.gadgetDecompose_lawful

Plain-language statement

The base-b gadget decomposition is a lawful gadget decomposition.

cryptographyproof systemscoding theory

Source project: ArkLib

Person-level attribution pending.

View proof record