All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Gs degree bound div lt

gs_degree_bound_div_lt

Plain-language statement

The GS degree bound with m=1 divided by (k-1) is less than F when |F| ≥ 5 and the RS code is non-degenerate (k+1 ≤ n ≤ F).

Exact Lean statement

lemma gs_degree_bound_div_lt {k n F : ℕ} (hk : 2 ≤ k) (hn : n ≤ F) (hF : 5 ≤ F)
    (hkn : k + 1 ≤ n) :
    gs_degree_bound k n 1 / (k - 1) < F

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma gs_degree_bound_div_lt {k n F : } (hk : 2  k) (hn : n  F) (hF : 5  F)    (hkn : k + 1  n) :    gs_degree_bound k n 1 / (k - 1) < F := by  have hk1 : 0 < k - 1 := by omega  rw [Nat.div_lt_iff_lt_mul hk1]  unfold gs_degree_bound; dsimp only  rw [Nat.floor_lt (by positivity)]  have harith : 9 * k * n < 4 * (F * (k - 1)) ^ 2 := by    rcases Nat.eq_or_lt_of_le hk with rfl | hk3    · simp only [show 2 - 1 = 1 from rfl, mul_one]; nlinarith    · have : 4  (k - 1) ^ 2 := le_trans (by norm_num : 4  2 ^ 2)        (Nat.pow_le_pow_left (by omega) 2)      have : k  n := by omega      nlinarith [sq_nonneg F, mul_le_mul_of_nonneg_right hn (by omega : 0  9 * k)]  have hLHS_nn : (0 : )  (↑(1 : ) + 1 / 2) * √↑(↑k / ↑n : ) * ↑n := by positivity  suffices hsq : ((↑(1 : ) + 1 / 2) * √↑(↑k / ↑n : ) * ↑n) ^ 2 <      (↑(F * (k - 1)) : ) ^ 2 by    nlinarith [sq_abs (↑(F * (k - 1) : ) -      ((↑(1 : ) + (1 : ) / 2) * √↑(↑k / ↑n : ) * ↑n))]  calc ((↑(1 : ) + 1 / 2) * √↑(↑k / ↑n : ) * ↑n) ^ 2      = (↑(1 : ) + 1 / 2) ^ 2 * (√↑(↑k / ↑n : )) ^ 2 * (↑n) ^ 2 := by ring    _ = (↑(1 : ) + 1 / 2) ^ 2 * ↑(↑k / ↑n : ) * (↑n) ^ 2 := by        rw [Real.sq_sqrt (by positivity)]    _ = 9 / 4 * ((↑k : ) / ↑n) * (↑n : ) ^ 2 := by push_cast; ring    _ = 9 / 4 * ↑k * ↑n := by        field_simp [show (0 : ) < n from by exact_mod_cast show 0 < n by omega]    _ < (↑(F * (k - 1)) : ) ^ 2 := by        rw [show (9 : ) / 4 * ↑k * ↑n = 9 * ↑k * ↑n / 4 from by ring]        rw [div_lt_iff₀ (by norm_num : (0 : ) < 4)]        rw [show (↑(F * (k - 1)) : ) ^ 2 * 4 =          4 * (↑F * ↑(k - 1 : )) ^ 2 from by push_cast; ring]        exact_mod_cast harith
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Data/CodingTheory/GuruswamiSudan/Basic.lean:51-82

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