All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Fold Word mem code of mem code

ProximityGap.foldWord_mem_code_of_mem_code

Plain-language statement

Perfect completeness of folding: if a word belongs to an RS-code then its foldWord belongs to a folded RS-code.

Exact Lean statement

theorem foldWord_mem_code_of_mem_code {d : ℕ}
  {α : F}
  (hk : k ≤ n)
  (hk_d_dvd : 2 ^ k ∣ d)
  {f : Word F (Fin (2 ^ n))}
  (hf : f ∈ ReedSolomon.code (domain : Fin (2 ^ n) ↪ F) d) :
  foldWord domain f k α ∈
    ReedSolomon.code (domain.subdomain k : Fin (2 ^ (n - k)) ↪ F) (d / (2 ^ k))

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem foldWord_mem_code_of_mem_code {d : }  {α : F}  (hk : k  n)  (hk_d_dvd : 2 ^ k ∣ d)  {f : Word F (Fin (2 ^ n))}  (hf : f  ReedSolomon.code (domain : Fin (2 ^ n) ↪ F) d) :  foldWord domain f k α     ReedSolomon.code (domain.subdomain k : Fin (2 ^ (n - k)) ↪ F) (d / (2 ^ k)) := by  by_cases hd : d = 0  · aesop  · have hf' :=      ReedSolomon.mem_code_iff_exists_polynomial'.mp hf    obtain p, hf' := hf'    have hk_d_le : 2 ^ k  d := Nat.le_of_dvd (by omega) hk_d_dvd    apply ReedSolomon.mem_code_of_polynomial_of_natDegree_lt_of_eval      (p := FoldingPolynomial.polyFold p (2 ^ k) α)    · exact lt_of_le_of_lt FoldingPolynomial.polyFold_natDegree_le <| by        by_cases hp : p = 0        · aesop (add safe (by omega))        · rw [Nat.div_lt_iff_lt_mul (by simp)]          by_cases hd : d  2 ^ n          · have : p.natDegree < d := by              rw [Polynomial.natDegree_lt_iff_degree_lt hp] at hf'              aesop            exact lt_of_lt_of_le this <| by              rw [Nat.div_mul_cancel hk_d_dvd]          · have : p.degree < d := lt_trans hf'.1 <| by              aesop (add unsafe (by rw [WithBot.lt_def]))            rw [Nat.div_mul_cancel hk_d_dvd]            aesop              (add simp [Polynomial.natDegree_lt_iff_degree_lt])    · intro i      have := foldWord_codeword (α := α) hk (p := f, hf)      simp only at this      simp only [this, evalOnPoints, Embedding.coeFn_mk,        LinearMap.coe_mk, AddHom.coe_mk]      obtain hp_deg, hf' := hf'      subst hf'      congr      apply Polynomial.eq_of_degrees_lt_of_eval_index_eq        (v := domain) (s := univ) (by simp)      · exact lt_of_lt_of_le (ReedSolomon.toPolynomial_lt_min_deg_card _) <| by          by_cases hd : d  2 ^ n          · aesop (add unsafe (by rw [WithBot.le_def]))          · simp [min, hd]      · exact lt_of_lt_of_le hp_deg <| by          by_cases hd : d  2 ^ n          · aesop (add unsafe (by rw [WithBot.le_def]))          · simp [min, hd]      · intro i _        conv_lhs =>          rw [show domain i = (domain : (Fin (2 ^ n)) ↪ F) i by rfl]        rw [ReedSolomon.toPolynomial_eval_at_domain]        simp [evalOnPoints]
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Data/CodingTheory/ProximityGap/Folding.lean:338-391

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