All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Dim eq deg of le

ReedSolomon.dim_eq_deg_of_le

Plain-language statement

Dimension formula for RS code with arbitrary finite index type ι.

Exact Lean statement

lemma dim_eq_deg_of_le [Fintype ι]
  {α : ι ↪ F} (h : n ≤ Fintype.card ι) :
  LinearCode.dim (ReedSolomon.code α n) = n

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma dim_eq_deg_of_le [Fintype ι]  {α : ι ↪ F} (h : n  Fintype.card ι) :  LinearCode.dim (ReedSolomon.code α n) = n := by  by_cases hcard : Fintype.card ι = 0  · aesop (add simp [      Module.finrank_eq_zero_of_subsingleton,      Fintype.card_eq_zero_iff,      ReedSolomon.code,      dim])  · rw [LinearCode.dim]    let f := ReedSolomon.evalOnPoints (F := F) α    let S := Polynomial.degreeLT F n    have h_code : ReedSolomon.code α n = S.map f := rfl    rw [h_code]    have h_range : S.map f = LinearMap.range (f.domRestrict S) := by      ext      simp [Submodule.mem_map]    rw [h_range, LinearMap.finrank_range_of_inj]    · rw [Polynomial.finrank_degreeLT_n]    · -- Injectivity proof      rw [LinearMap.ker_eq_bot]      ext p      simp only [LinearMap.mem_ker, LinearMap.domRestrict_apply, Submodule.mem_bot]      constructor      · intro hfp        apply Subtype.ext        apply Polynomial.eq_zero_of_natDegree_lt_card_of_eval_eq_zero' p.val (Finset.univ.map α)        · intro x hx          simp only [Finset.mem_map, Finset.mem_univ, true_and] at hx          rcases hx with i, rfl          exact congr_fun hfp i        · simp only [Finset.card_map]          by_cases hn : n = 0          · subst hn            have h :  i, p.val.coeff i = 0 := by              intro i              rcases p with p, hp              simp [S, Polynomial.degreeLT] at hp              simp [hp i]            have h : p.val.natDegree = 0 := by              rw [Polynomial.natDegree_eq_zero_iff_degree_le_zero]              rw [Polynomial.degree_le_zero_iff]              ext n              rw [h n]              rcases n with _ | n <;> simp [h 0]            rw [h]            simp            omega          · calc p.val.natDegree < n              := @natDegree_lt_of_mem_degreeLT _ _ _ _ (hn) p.2                _  Fintype.card ι := h      · intro hfp        simp [hfp]
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Data/CodingTheory/ReedSolomon.lean:236-288

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