Skip to content

Commit 81692aa

Browse files
committed
feat(Verified-zkEVM#141): bridge double cover to MCA prize lattice
1 parent ab88ecb commit 81692aa

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

ArkLib/Data/CodingTheory/ProximityGap/LineDecodingGrandChallenges.lean

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ def GrandChallenges.MCALowerWitness.ofDoubleCover (C : Set (ι → F)) (δ ε_st
3838
rw [epsMCA_eq_zero_of_forall_double_cover C δ hcov]
3939
simp
4040

41+
/-- Prize-rate specialization of repaired double-cover data. At any ABF26 prize rate, an
42+
explicit `MCAForallDoubleCover` hypothesis for the corresponding Reed-Solomon code gives a
43+
one-sided MCA lower witness at `epsStar`. -/
44+
theorem GrandChallenges.exists_prize_mcaLowerWitness_ofDoubleCover
45+
(domain : ι ↪ F) (j : Fin 4) (δ : ℝ≥0)
46+
(hδ_le_one : δ ≤ 1)
47+
(hcov : MCAForallDoubleCover (F := F) (A := F)
48+
(ReedSolomon.code domain ⌊prizeRates j * (Fintype.card ι : ℝ≥0)⌋₊ : Set (ι → F)) δ) :
49+
∃ w : GrandChallenges.MCALowerWitness
50+
(ReedSolomon.code domain ⌊prizeRates j * (Fintype.card ι : ℝ≥0)⌋₊ : Set (ι → F))
51+
epsStar,
52+
w.δ = δ := by
53+
refine ⟨GrandChallenges.MCALowerWitness.ofDoubleCover
54+
(ReedSolomon.code domain ⌊prizeRates j * (Fintype.card ι : ℝ≥0)⌋₊ : Set (ι → F))
55+
δ epsStar hδ_le_one hcov, rfl⟩
56+
4157
end LowerWitness
4258

4359
namespace GrandChallengesLattice
@@ -67,12 +83,29 @@ theorem mcaThreshold_spec_ofDoubleCover (C : Set (ι → F)) (δ ε_star : ℝ
6783
mcaThreshold_spec C ε_star
6884
(mcaThresholdExists_ofDoubleCover C δ ε_star hδ_le_one hcov)
6985

86+
/-- Per-rate repaired double-cover data resolves the faithful MCA lattice prize existentially.
87+
This is the prize-facing aggregation of the #140 repaired coverage theorem through the existing
88+
lower-witness lattice front door. -/
89+
theorem exists_mcaPrizeLatticeResolved_ofDoubleCover
90+
(domain : ι ↪ F) (δ : Fin 4 → ℝ≥0)
91+
(hδ_le_one : ∀ j : Fin 4, δ j ≤ 1)
92+
(hcov : ∀ j : Fin 4, MCAForallDoubleCover (F := F) (A := F)
93+
(ReedSolomon.code domain ⌊prizeRates j * (Fintype.card ι : ℝ≥0)⌋₊ : Set (ι → F))
94+
(δ j)) :
95+
∃ τ : Fin 4 → Fin (Fintype.card ι + 1), mcaPrizeLatticeResolved domain τ :=
96+
exists_mcaPrizeLatticeResolved_of_lowerWitnesses domain fun j =>
97+
GrandChallenges.MCALowerWitness.ofDoubleCover
98+
(ReedSolomon.code domain ⌊prizeRates j * (Fintype.card ι : ℝ≥0)⌋₊ : Set (ι → F))
99+
(δ j) epsStar (hδ_le_one j) (hcov j)
100+
70101
end LatticeWitness
71102

72103
end GrandChallengesLattice
73104

74105
#print axioms ProximityGap.GrandChallenges.MCALowerWitness.ofDoubleCover
106+
#print axioms ProximityGap.GrandChallenges.exists_prize_mcaLowerWitness_ofDoubleCover
75107
#print axioms ProximityGap.GrandChallengesLattice.mcaThresholdExists_ofDoubleCover
76108
#print axioms ProximityGap.GrandChallengesLattice.mcaThreshold_spec_ofDoubleCover
109+
#print axioms ProximityGap.GrandChallengesLattice.exists_mcaPrizeLatticeResolved_ofDoubleCover
77110

78111
end ProximityGap

0 commit comments

Comments
 (0)