Skip to content

Commit 4665abe

Browse files
committed
feat(Verified-zkEVM#140): bridge repaired line decoding to grand challenge witnesses
1 parent f6027c2 commit 4665abe

2 files changed

Lines changed: 93 additions & 2 deletions

File tree

ArkLib/Data/CodingTheory/ProximityGap/LineDecodingCoverage.lean

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,18 @@ theorem not_mcaEventBody_of_double_cover (C : Set (ι → A)) (u₀ u₁ : ι
140140
False :=
141141
hpair (pairJointAgreesOn_of_double_cover C S u₀ u₁ v₁ v₂ hv₁ hv₂ hcov)
142142

143+
/-- **Exposed repaired T4.21 hypothesis.** Every stack and every bad scalar carries the
144+
per-coordinate double cover that the Guruswami--Sudan interpolation route must provide. This is
145+
the replacement data for the refuted black-box `lineDecodable_imp_epsMCA_le_target`. -/
146+
def MCAForallDoubleCover (C : Set (ι → A)) (δ : ℝ≥0) : Prop :=
147+
∀ (u : WordStack A (Fin 2) ι) (γ : F), mcaEvent C δ (u 0) (u 1) γ →
148+
∀ S : Finset ι, (S.card : ℝ≥0) ≥ (1 - δ) * Fintype.card ι →
149+
(∃ w ∈ C, ∀ i ∈ S, w i = (u 0) i + γ • (u 1) i) →
150+
¬ pairJointAgreesOn C S (u 0) (u 1) →
151+
∃ v₁ ∈ C, ∃ v₂ ∈ C, ∀ i ∈ S, ∃ a a' : F, a ≠ a' ∧
152+
v₁ i + a • v₂ i = (u 0) i + a • (u 1) i ∧
153+
v₁ i + a' • v₂ i = (u 0) i + a' • (u 1) i
154+
143155
open Classical in
144156
/-- **Repaired Theorem 4.21, per-stack form.** If for the stack `(u₀, u₁)` every bad scalar's
145157
witness set is doubly covered by a (scalar-dependent) line-decoder pair in `C`, then no bad
@@ -156,8 +168,7 @@ theorem mcaBadCount_eq_zero_of_double_cover (C : Set (ι → A)) (δ : ℝ≥0)
156168
mcaBadCount (F := F) C δ u₀ u₁ = 0 := by
157169
classical
158170
rw [mcaBadCount, Finset.card_eq_zero, Finset.filter_eq_empty_iff]
159-
intro γ _hγ
160-
intro hev
171+
intro γ _hγ hev
161172
obtain ⟨S, hsize, hwit, hpair⟩ := hev
162173
obtain ⟨v₁, hv₁, v₂, hv₂, hcover⟩ := hcov γ ⟨S, hsize, hwit, hpair⟩ S hsize hwit hpair
163174
exact not_mcaEventBody_of_double_cover C u₀ u₁ S hv₁ hv₂ hpair hcover
@@ -187,6 +198,8 @@ theorem epsMCA_eq_zero_of_forall_double_cover (C : Set (ι → A)) (δ : ℝ≥0
187198
rw [iSup_congr hzero]
188199
simp
189200

201+
#print axioms MCAForallDoubleCover
202+
190203
end
191204

192205
end ProximityGap
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
/-
2+
Copyright (c) 2026 ArkLib Contributors. All rights reserved.
3+
Released under Apache 2.0 license as described in the file LICENSE.
4+
Authors: ArkLib Contributors
5+
-/
6+
7+
import ArkLib.Data.CodingTheory.ProximityGap.LineDecodingCoverage
8+
import ArkLib.Data.CodingTheory.ProximityGap.GrandChallengesLattice
9+
10+
/-!
11+
# Grand Challenge adapters for the repaired line-decoding coverage theorem
12+
13+
`LineDecodingCoverage.lean` proves the corrected coverage-to-vanishing direction for ABF26
14+
Theorem 4.21. This module exposes the consumer-facing Grand MCA Challenge adapters: the explicit
15+
double-cover hypothesis gives a lower witness, and hence a faithful lattice-threshold witness,
16+
without using the refuted black-box `lineDecodable_imp_epsMCA_le_target` surface.
17+
-/
18+
19+
namespace ProximityGap
20+
21+
open scoped NNReal
22+
23+
set_option linter.unusedDecidableInType false
24+
25+
section LowerWitness
26+
27+
variable {ι : Type} [Fintype ι] [Nonempty ι] [DecidableEq ι]
28+
variable {F : Type} [Field F] [Fintype F] [DecidableEq F]
29+
30+
/-- **Grand-MCA lower witness from the repaired line-decoding coverage data.** Once the exposed
31+
double-cover data is available, `epsMCA(C, δ) = 0`, hence any `ε_star` accepts radius `δ` as a
32+
lower witness. -/
33+
def GrandChallenges.MCALowerWitness.ofDoubleCover (C : Set (ι → F)) (δ ε_star : ℝ≥0)
34+
(hδ_le_one : δ ≤ 1)
35+
(hcov : MCAForallDoubleCover (F := F) (A := F) C δ) :
36+
GrandChallenges.MCALowerWitness C ε_star :=
37+
GrandChallenges.MCALowerWitness.ofLe hδ_le_one <| by
38+
rw [epsMCA_eq_zero_of_forall_double_cover C δ hcov]
39+
simp
40+
41+
end LowerWitness
42+
43+
namespace GrandChallengesLattice
44+
45+
open GrandChallenges
46+
47+
section LatticeWitness
48+
49+
variable {ι : Type} [Fintype ι] [Nonempty ι] [DecidableEq ι]
50+
variable {F : Type} [Field F] [Fintype F] [DecidableEq F]
51+
52+
/-- A repaired double-cover target makes the faithful MCA lattice threshold exist. This is the
53+
line-decoding replacement path that avoids the refuted black-box target entirely. -/
54+
theorem mcaThresholdExists_ofDoubleCover (C : Set (ι → F)) (δ ε_star : ℝ≥0)
55+
(hδ_le_one : δ ≤ 1)
56+
(hcov : MCAForallDoubleCover (F := F) (A := F) C δ) :
57+
mcaThresholdExists C ε_star :=
58+
mcaThresholdExists_of_MCALowerWitness C ε_star
59+
(MCALowerWitness.ofDoubleCover C δ ε_star hδ_le_one hcov)
60+
61+
/-- The faithful MCA threshold created from repaired double-cover data satisfies the MCA bound. -/
62+
theorem mcaThreshold_spec_ofDoubleCover (C : Set (ι → F)) (δ ε_star : ℝ≥0)
63+
(hδ_le_one : δ ≤ 1)
64+
(hcov : MCAForallDoubleCover (F := F) (A := F) C δ) :
65+
let hne := mcaThresholdExists_ofDoubleCover C δ ε_star hδ_le_one hcov
66+
mcaSatisfies C ε_star (mcaThreshold C ε_star hne) :=
67+
mcaThreshold_spec C ε_star
68+
(mcaThresholdExists_ofDoubleCover C δ ε_star hδ_le_one hcov)
69+
70+
end LatticeWitness
71+
72+
end GrandChallengesLattice
73+
74+
#print axioms ProximityGap.GrandChallenges.MCALowerWitness.ofDoubleCover
75+
#print axioms ProximityGap.GrandChallengesLattice.mcaThresholdExists_ofDoubleCover
76+
#print axioms ProximityGap.GrandChallengesLattice.mcaThreshold_spec_ofDoubleCover
77+
78+
end ProximityGap

0 commit comments

Comments
 (0)