All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Pow Contraction is right inverse to linear Mv Extension

LinearMvExtension.powContraction_is_right_inverse_to_linearMvExtension

Project documentation

The Semiring morphism that maps m-variate polynomials onto univariate polynomials by evaluating them at (X^(2⁰), ... , X^(2ᵐ⁻¹)), i.e. sending aₑ X₀^σ(0) ⬝ ⋯ ⬝ Xₘ₋₁^σ(m-1) → aₑ (X^(2⁰))^σ(0) ⬝ ⋯ ⬝ (X^(2ᵐ⁻¹))^σ(m-1) for all σ : Fin m → ℕ -/ def powAlgHom : MvPolynomial (Fin m) F →ₐ[F] Polynomial F := aeval fun j => Polynomial.X ^ (2 ^ (j : ℕ)) lemma...

Exact Lean statement

lemma powContraction_is_right_inverse_to_linearMvExtension
    (p : Polynomial.degreeLT F (2 ^ m)) :
    powContraction.comp linearMvExtensionLMap p = p

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma powContraction_is_right_inverse_to_linearMvExtension    (p : Polynomial.degreeLT F (2 ^ m)) :    powContraction.comp linearMvExtensionLMap p = p := by  have hnat : (p : Polynomial F).natDegree < 2 ^ m := by    have hdeg := Polynomial.mem_degreeLT.mp p.2    by_cases hp : (p : Polynomial F) = 0    · simp [hp]    · exact (Polynomial.natDegree_lt_iff_degree_lt hp).mpr hdeg  have h_comp : powContraction (linearMvExtensionLMap p) =      ∑ i  Finset.range (2 ^ m), p.val.coeff i • Polynomial.X ^ i := by    unfold powContraction linearMvExtensionLMap linearMvExtension    simp +decide only [LinearMap.coe_mk, AddHom.coe_mk, AlgHom.toLinearMap_apply, powAlgHom]    rw [MvPolynomial.aeval_def]    have h_sum_range :        (p : Polynomial F).sum (fun i a => MvPolynomial.monomial (bitExpo (m := m) i) a) =          ∑ i  Finset.range (2 ^ m),            MvPolynomial.monomial (bitExpo (m := m) i) ((p : Polynomial F).coeff i) := by      exact Polynomial.sum_over_range' (p : Polynomial F) (by intro n; simp) (2 ^ m) hnat    rw [h_sum_range, MvPolynomial.eval₂_sum]    refine Finset.sum_congr rfl ?_    intro i hi    simp +decide only [Polynomial.algebraMap_eq, eval₂_monomial, Finsupp.prod_pow]    have h_sum : ∑ x : Fin m, 2 ^ (x : ) * (bitExpo i) x = i := by      convert binary_repr_sum m i (Finset.mem_range.mp hi) using 1      rw [Finset.sum_range]      unfold bitExpo; aesop    simp_rw [ pow_mul]    rw [Finset.prod_pow_eq_pow_sum, h_sum]    simp [Polynomial.smul_eq_C_mul]  change powContraction (linearMvExtensionLMap p) = (p : Polynomial F)  rw [h_comp]  convert (Polynomial.as_sum_range' p.val (2 ^ m) hnat).symm using 1  simp +decide [Polynomial.smul_eq_C_mul,  Polynomial.C_mul_X_pow_eq_monomial]
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Data/MvPolynomial/LinearMvExtension.lean:209-241

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