All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Folding polynomial is unique

Polynomial.FoldingPolynomial.folding_polynomial_is_unique'

Project documentation

Alternative uniqueness theorem for the folding polynomial. The only difference is the h_x condition which in this theorem is only and inequality. Handy in practice since degreeX is defined as a supremum so inequality is much easier to prove for it.

Exact Lean statement

theorem folding_polynomial_is_unique' {q f : Polynomial F} {Q : Polynomial (Polynomial F)}
  (h : (Q.map (Polynomial.compRingHom q)).eval Polynomial.X = f)
  (h_x : degreeX Q ≤ f.natDegree / q.natDegree)
  (h_y : natDegreeY Q < q.natDegree) :
  Q = foldingPolynomial q f

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem folding_polynomial_is_unique' {q f : Polynomial F} {Q : Polynomial (Polynomial F)}  (h : (Q.map (Polynomial.compRingHom q)).eval Polynomial.X = f)  (h_x : degreeX Q  f.natDegree / q.natDegree)  (h_y : natDegreeY Q < q.natDegree) :  Q = foldingPolynomial q f := by    by_cases hq_const : q.degree  0    · rw [Polynomial.eq_C_of_degree_le_zero hq_const] at h h_y       aesop    · apply folding_polynomial_is_unique h (by      have h_deg : f.natDegree  degreeX Q * q.natDegree + q.natDegree - 1 := by        have h_deg :          Polynomial.natDegree            (Polynomial.eval Polynomial.X (Polynomial.map q.compRingHom Q))               degreeX Q * q.natDegree + q.natDegree - 1 := by          have := folded_poly_degree_bound            (Nat.lt_succ_self _ : degreeX Q < degreeX Q + 1)            h_y          exact Nat.le_sub_one_of_lt (by linarith)        generalize_proofs at *        aesop      exact le_antisymm h_x <|        Nat.le_of_lt_succ          (Nat.div_lt_of_lt_mul              <| by linarith                [Nat.sub_add_cancel (                    show 1  degreeX Q * q.natDegree                      + q.natDegree from Nat.succ_le_iff.mpr                      <| by nlinarith                          [show q.natDegree > 0                            from Polynomial.natDegree_pos_iff_degree_pos.mpr                            <| lt_of_not_ge hq_const])]))                            h_y
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Data/Polynomial/FoldingPolynomial.lean:814-845

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