All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Decoder eq some

BerlekampWelch.decoder_eq_some

Project documentation

Correctness theorem for Berlekamp-Welch decoder: If a codeword is close to a polynomial p of degree < k then the decoder succeeds and returns some p. ### Parameters: - e k : ℕ - Error capacity and degree bound - [NeZero n] - Non-zero codeword length - ωs : Fin n → F - Distinct evaluation points (injective mapping) - f : Fin n → F - Recei...

Exact Lean statement

theorem decoder_eq_some {e k : ℕ} [NeZero n] {ωs f : Fin n → F} {p : Polynomial F}
    (he : 2 * e < n - k + 1)
  (hn : k ≤ n)
  (h_inj : Function.Injective ωs)
  (h_deg : p.natDegree < k)
  (h_dist : Δ₀(f, p.eval ∘ ωs) ≤ e) : decoder e k ωs f = some p

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem decoder_eq_some {e k : } [NeZero n] {ωs f : Fin n  F} {p : Polynomial F}    (he : 2 * e < n - k + 1)  (hn : k  n)  (h_inj : Function.Injective ωs)  (h_deg : p.natDegree < k)  (h_dist : Δ₀(f, p.eval ∘ ωs)  e) : decoder e k ωs f = some p := by  simp only [decoder]  split_ifs with hif  · suffices p = 0 from Option.some_inj.2 this.symm    refine poly_eq_zero_of_dist_lt h_deg hn h_inj (lt_of_le_of_lt ?p₁ he)    transitivity ‖f‖₀ + Δ₀(f, p.eval ∘ ωs)    · convert hammingDist_triangle 0 f (p.eval ∘ ωs) using 1 <;> simp    · omega  · rcases hlinsolve : linsolve (BerlekampWelchMatrix e k ωs f) (Rhs e ωs f)    · simp only [reduceCtorEq]; exact linsolve_always_some_berlekamp_welch h_deg h_dist hlinsolve    · by_cases hp : p = 0      · have : ‖f‖₀  e := by aesop        omega      · have h_cond := linsolve_to_BerlekampWelch_condition hlinsolve        have h :=          Q'_div_E'_eq_p            h_deg he hn h_dist h_inj            (solutionToQ_ne_zero (not_le.1 hif)                                (BerlekampWelchCondition_iff_Solution.2 h_cond) h_inj) hp h_cond        simp_all
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Data/CodingTheory/BerlekampWelch/BerlekampWelch.lean:95-119

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