Skip to content

Commit f0f8200

Browse files
lalaluneclaude
andauthored
feat(Verified-zkEVM#75): assemble CS25 count budget from coverage B + jointProx bound J (T4.17, Verified-zkEVM#82) (Verified-zkEVM#175)
Adds `ProximityGap.sum_far_plus_jointProx_lt_of_close_ge`: both ingredients of the CS25 breakdown count budget, assembled. Given coverage `#{close} ≥ B` (ingredient a) and `#{jointProx} ≤ J` (ingredient b), the `hsum` hypothesis of `rs_epsCA_breakdown_cs25_entropyBallLowerWitness_of_counts` ∑_u #{far γ} + #{jointProx} < #stacks follows from the single explicit numeric inequality |F| · |ι→A| · (|ι→A| − B) + J < #stacks. via `sum_far_card_eq` (∑ = |F|·|ι→A|·#{far}) and `card_far_eq_card_sub_card_close` (#{far} = |ι→A| − #{close}). This reduces the remaining T4.17 open math to that one inequality, which `card_jointProximity_le_qEntropy` (J) and `CS25CoveredFractionEntropy` (B) instantiate; satisfiable on the sub-band `H_{q²}(δ) < 1−ρ` (the full band needs the explicit construction, per the `CS25JointProxBound` band analysis). Validation: `lake build ...CS25CoveringWitness` typechecks, axiom-clean, no `sorryAx`; `forbidden_tokens.py` clean; 0 holes; `git diff --check` clean. Refs Verified-zkEVM#75, Verified-zkEVM#82. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 49cead7 commit f0f8200

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

ArkLib/Data/CodingTheory/ProximityGap/CS25CoveringWitness.lean

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,27 @@ theorem exists_line_covered_stack_of_close_ge (C : Set (ι → A)) (δ : ℝ≥0
7979
rw [card_far_eq_card_sub_card_close]
8080
exact Nat.mul_le_mul_left _ (Nat.sub_le_sub_left hclose _)
8181

82+
open Classical in
83+
/-- **CS25 count budget from coverage `B` and jointProx bound `J`.** Both ingredients of the CS25
84+
breakdown count, assembled: given coverage `#{close} ≥ B` (ingredient a, the entropy
85+
covered-fraction bound) and a jointly-close bound `#{jointProx} ≤ J` (ingredient b,
86+
`card_jointProximity_le…`), the count budget `hsum` of
87+
`rs_epsCA_breakdown_cs25_entropyBallLowerWitness_of_counts` follows from the single explicit numeric
88+
inequality `|F|·|ι→A|·(|ι→A| − B) + J < #stacks`. This reduces the remaining T4.17 open math to that
89+
one inequality (satisfiable on the sub-band `H_{q²}(δ) < 1−ρ`; see `CS25JointProxBound`). -/
90+
theorem sum_far_plus_jointProx_lt_of_close_ge (C : Set (ι → A)) (δ : ℝ≥0) (B J : ℕ)
91+
(hclose : B ≤ (Finset.univ.filter (fun w : ι → A => δᵣ(w, C) ≤ δ)).card)
92+
(hjp : (Finset.univ.filter (fun u : Matrix (Fin 2) ι A =>
93+
Code.jointProximity (C := C) (u := u) δ)).card ≤ J)
94+
(hbudget : Fintype.card F * Fintype.card (ι → A) * (Fintype.card (ι → A) - B) + J
95+
< Fintype.card (Matrix (Fin 2) ι A)) :
96+
(∑ u : Matrix (Fin 2) ι A,
97+
(Finset.univ.filter (fun γ : F => ¬ δᵣ(u 0 + γ • u 1, C) ≤ δ)).card)
98+
+ (Finset.univ.filter (fun u : Matrix (Fin 2) ι A =>
99+
Code.jointProximity (C := C) (u := u) δ)).card
100+
< Fintype.card (Matrix (Fin 2) ι A) := by
101+
rw [sum_far_card_eq, card_far_eq_card_sub_card_close]
102+
refine lt_of_le_of_lt (Nat.add_le_add ?_ hjp) hbudget
103+
exact mul_le_mul_left' (Nat.sub_le_sub_left hclose _) _
104+
82105
end ProximityGap

0 commit comments

Comments
 (0)