All proofs
Project-declaredLean 4.31.0 · mathlib@fabf563a7c95

Dist affine Combination le dist interleaved₂

dist_affineCombination_le_dist_interleaved₂

Plain-language statement

Lemma: Distance of Affine Combination is Bounded by Interleaved Distance

Exact Lean statement

theorem dist_affineCombination_le_dist_interleaved₂
    (u₀ u₁ v₀ v₁ : Word A ι) (r : F) :
    Δ₀( affineLineEvaluation (F := F) u₀ u₁ r, affineLineEvaluation (F := F) v₀ v₁ r) ≤
      Δ₀(u₀ ⋈₂ u₁, v₀ ⋈₂ v₁)

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
theorem dist_affineCombination_le_dist_interleaved₂    (u₀ u₁ v₀ v₁ : Word A ι) (r : F) :    Δ₀( affineLineEvaluation (F := F) u₀ u₁ r, affineLineEvaluation (F := F) v₀ v₁ r)       Δ₀(u₀ ⋈₂ u₁, v₀ ⋈₂ v₁) := by  -- The goal is to prove card(filter L) ≤ card(filter R)  -- We prove this by showing filter L ⊆ filter R  apply Finset.card_le_card  -- Use `monotone_filter_right` or prove subset directly  intro j  -- Assume j is in the filter set on the LHS  simp only [Finset.mem_filter, Finset.mem_univ, true_and]  intro hj_row_diff  -- Goal: Show j is in the filter set on the RHS  unfold affineLineEvaluation at hj_row_diff  -- hj_row_diff : ((1 - r) • u₀ + r • u₁) j ≠ ((1 - r) • v₀ + r • v₁) j  -- ⊢ (u₀⋈₂u₁) j ≠ (v₀⋈₂v₁) j  -- We prove this by contradiction  by_contra h_cols_eq  -- h_cols_eq : (u₀ ⋈₂ u₁) j = (v₀ ⋈₂ v₁) j  -- `h_cols_eq` is a function equality. Apply it to row indices 0 and 1  have h_row0_eq : (u₀ ⋈₂ u₁) j = (v₀ ⋈₂ v₁) j := by exact h_cols_eq  simp only [Pi.add_apply, Pi.smul_apply, ne_eq] at hj_row_diff  have h_row0_eq : (u₀ ⋈₂ u₁) j 0 = (v₀ ⋈₂ v₁) j 0 := congrFun h_cols_eq 0  have h_row1_eq : (u₀ ⋈₂ u₁) j 1 = (v₀ ⋈₂ v₁) j 1 := congrFun h_cols_eq 1  have h_row0 : u₀ j = v₀ j := by exact h_row0_eq  have h_row1 : u₁ j = v₁ j := by exact h_row1_eq  rw [h_row0, h_row1] at hj_row_diff  exact hj_row_diff rfl
Project
ArkLib
License
Apache-2.0
Commit
fad5cbf80877
Source
ArkLib/Data/CodingTheory/ProximityGap/DG25/Basic.lean:97-124

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