Card agreeing cells notin D
card_agreeing_cells_notin_D
Plain-language statement
Lemma 3.3 (Part 1): Bound on agreeing cells outside D The set of agreeing cells (r, j) where j ∉ D is exactly the Cartesian product of R* and Dᶜ (the columns not in D).
Exact Lean statement
lemma card_agreeing_cells_notin_D {U₀ U₁ : InterleavedWord A (Fin m) ι} {V₀ V₁ : MC^⋈(Fin m)}
{e : ℕ} (D : Finset ι)
(h_D_def : D = disagreementSet U₀ U₁ V₀.val V₁.val) :
(R_star_star_filter_columns_not_in_D MC U₀ U₁ V₀ V₁ e D).card
= (R_star (A := A) (F := F) (ι := ι) (C := MC) (e := e) U₀ U₁).card
* (Fintype.card ι - D.card)Formal artifact
Lean source
lemma card_agreeing_cells_notin_D {U₀ U₁ : InterleavedWord A (Fin m) ι} {V₀ V₁ : MC^⋈(Fin m)} {e : ℕ} (D : Finset ι) (h_D_def : D = disagreementSet U₀ U₁ V₀.val V₁.val) : (R_star_star_filter_columns_not_in_D MC U₀ U₁ V₀ V₁ e D).card = (R_star (A := A) (F := F) (ι := ι) (C := MC) (e := e) U₀ U₁).card * (Fintype.card ι - D.card) := by -- sorry classical let n := Fintype.card ι let D_compl := Finset.univ \ D-- Define local abbreviations let n := Fintype.card ι let D_compl := Finset.univ \ D let R_s := R_star (F := F) (A := A) (ι := ι) (C := MC) (e := e) U₀ U₁ let R_ss_not_D := R_star_star_filter_columns_not_in_D MC U₀ U₁ V₀ V₁ e D -- 1. Prove that R_ss_not_D is equal to the product R_s ×ˢ D_compl have h_set_eq : R_ss_not_D = R_s ×ˢ D_compl := by -- We prove equality by showing element-wise equivalence ext p rcases p with ⟨r, j⟩ -- Unfold all definitions simp only [R_star_star_filter_columns_not_in_D, R_star_star, mem_filter, mem_product, mem_univ, and_true, R_ss_not_D, R_s, D_compl] constructor · rintro ⟨⟨hr, _⟩, hj⟩ exact ⟨hr, mem_sdiff.mpr ⟨mem_univ _, hj⟩⟩ · rintro ⟨hr, hj⟩ have hj' := (mem_sdiff.mp hj).2 refine ⟨⟨hr, ?_⟩, hj'⟩ have h_agree : U₀ j = V₀.val j ∧ U₁ j = V₁.val j := by simp only [h_D_def, disagreementSet, mem_filter, mem_univ, true_and, not_or, not_not] at hj' exact hj' unfold affineLineEvaluation simp only [Pi.add_apply, Pi.smul_apply, h_agree.1, h_agree.2] have h_set_card_eq : R_ss_not_D.card = R_s.card * D_compl.card := by rw [h_set_eq] simp only [card_product] -- 2. Now calculate the cardinality using the set equality grind only [usr le_card_sdiff, = card_sdiff_of_subset, = card_univ, = subset_iff, ← mem_univ]- Project
- ArkLib
- License
- Apache-2.0
- Commit
- fad5cbf80877
- Source
- ArkLib/Data/CodingTheory/ProximityGap/DG25/MainResults.lean:497-536
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.