Eq of le unique Decoding Radius
Code.eq_of_le_uniqueDecodingRadius
Plain-language statement
A stronger version of distFromCode_eq_of_lt_half_dist: If two codewords v and w are both within the uniqueDecodingRadius of u (i.e. 2 * Δ₀(u, v) < ‖C‖₀ and 2 * Δ₀(u, w) < ‖C‖₀), then they must be equal.
Exact Lean statement
theorem eq_of_le_uniqueDecodingRadius {ι : Type*} [Fintype ι] {F : Type*}
[DecidableEq F] (C : Set (ι → F)) (u : ι → F) {v w : ι → F}
(hv : v ∈ C) (hw : w ∈ C)
(huv : Δ₀(u, v) ≤ Code.uniqueDecodingRadius C)
(huw : Δ₀(u, w) ≤ Code.uniqueDecodingRadius C) : v = wFormal artifact
Lean source
theorem eq_of_le_uniqueDecodingRadius {ι : Type*} [Fintype ι] {F : Type*} [DecidableEq F] (C : Set (ι → F)) (u : ι → F) {v w : ι → F} (hv : v ∈ C) (hw : w ∈ C) (huv : Δ₀(u, v) ≤ Code.uniqueDecodingRadius C) (huw : Δ₀(u, w) ≤ Code.uniqueDecodingRadius C) : v = w := by -- Handle the edge case where distance is 0 (trivial code) by_cases hd : ‖C‖₀ = 0 · simp only [uniqueDecodingRadius] at huv huw simp only [hd, zero_tsub, Nat.zero_div, nonpos_iff_eq_zero, hammingDist_eq_zero] at huv huw rw [←huv, ←huw] · -- Main Case: d > 0 apply eq_of_lt_dist hv hw calc Δ₀(v, w) ≤ Δ₀(v, u) + Δ₀(u, w) := by exact hammingDist_triangle v u w _ = Δ₀(u, v) + Δ₀(u, w) := by simp only [hammingDist_comm] _ ≤ Code.uniqueDecodingRadius C + Code.uniqueDecodingRadius C := by gcongr _ < ‖C‖₀ := by -- Proof that 2 * ⌊(d-1)/2⌋ < d simp only [uniqueDecodingRadius] -- 2 * ((d - 1) / 2) ≤ d - 1 have h_div : 2 * ((‖C‖₀ - 1) / 2) ≤ ‖C‖₀ - 1 := by rw [mul_comm] apply Nat.div_mul_le_self (m := ‖C‖₀ - 1) (n := 2) -- Since d ≠ 0, d - 1 < d have h_sub : ‖C‖₀ - 1 < ‖C‖₀ := Nat.pred_lt hd omega- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Data/CodingTheory/Basic/DecodingRadius.lean:77-102
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
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...
Source project: ArkLib
Person-level attribution pending.
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.
Source project: ArkLib
Person-level attribution pending.
Gadget Decompose lawful
ArkLib.Lattices.Ajtai.gadgetDecompose_lawful
Plain-language statement
The base-b gadget decomposition is a lawful gadget decomposition.
Source project: ArkLib
Person-level attribution pending.