Skip to content

Commit 3205e6f

Browse files
committed
feat(Verified-zkEVM#141): expose top prize lower brackets
1 parent 1bc134e commit 3205e6f

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

ArkLib/Data/CodingTheory/ProximityGap/GrandChallengesLatticePrizeSpec.lean

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,67 @@ theorem mcaThreshold_eq_top_prize_allRates_of_choose_bounds
189189
intro j
190190
exact mcaPrizeLatticeResolved_top_of_choose_bounds domain hbound j
191191

192+
omit [DecidableEq ι] [DecidableEq F] in
193+
/-- Radius-one bad-count bounds expose the all-top prize specification together with the
194+
endpoint lower bracket `⌊1 · n⌋ ≤ τ j` at every ABF26 prize rate. -/
195+
theorem mcaPrizeLatticeSpec_and_lower_brackets_top_of_radiusOne_bounds
196+
(domain : ι ↪ F)
197+
(hbound : ∀ j : Fin 4,
198+
epsMCA (F := F) (A := F)
199+
(ReedSolomon.code domain
200+
⌊prizeRates j * (Fintype.card ι : ℝ≥0)⌋₊ : Set (ι → F)) 1
201+
≤ (epsStar : ENNReal)) :
202+
let τ : Fin 4 → Fin (Fintype.card ι + 1) :=
203+
fun _ => ⟨Fintype.card ι, Nat.lt_succ_self _⟩
204+
(∀ j : Fin 4,
205+
let C : Set (ι → F) :=
206+
ReedSolomon.code domain ⌊prizeRates j * (Fintype.card ι : ℝ≥0)⌋₊
207+
∃ _ : mcaThresholdExists C epsStar,
208+
mcaSatisfies C epsStar (τ j) ∧
209+
∀ i : Fin (Fintype.card ι + 1), mcaSatisfies C epsStar i → i ≤ τ j) ∧
210+
∀ j : Fin 4, latticeIndexOf (ι := ι) (1 : ℝ≥0) le_rfl ≤ τ j := by
211+
classical
212+
let τ : Fin 4 → Fin (Fintype.card ι + 1) :=
213+
fun _ => ⟨Fintype.card ι, Nat.lt_succ_self _⟩
214+
have hspec := mcaPrizeLatticeSpec_top_of_radiusOne_bounds domain hbound
215+
have htop : latticeIndexOf (ι := ι) (1 : ℝ≥0) le_rfl =
216+
(⟨Fintype.card ι, Nat.lt_succ_self _⟩ : Fin (Fintype.card ι + 1)) := by
217+
ext
218+
simp [latticeIndexOf_val]
219+
refine ⟨by simpa [τ] using hspec, ?_⟩
220+
intro j
221+
simpa [τ, htop]
222+
223+
omit [DecidableEq ι] [DecidableEq F] in
224+
/-- The combinatorial choose-bound family exposes the all-top prize specification together
225+
with the endpoint lower bracket `⌊1 · n⌋ ≤ τ j` at every ABF26 prize rate. -/
226+
theorem mcaPrizeLatticeSpec_and_lower_brackets_top_of_choose_bounds
227+
(domain : ι ↪ F)
228+
(hbound : ∀ j : Fin 4,
229+
(Nat.choose (Fintype.card ι)
230+
(⌊prizeRates j * (Fintype.card ι : ℝ≥0)⌋₊ + 1) : ENNReal)
231+
/ (Fintype.card F : ENNReal) ≤ (epsStar : ENNReal)) :
232+
let τ : Fin 4 → Fin (Fintype.card ι + 1) :=
233+
fun _ => ⟨Fintype.card ι, Nat.lt_succ_self _⟩
234+
(∀ j : Fin 4,
235+
let C : Set (ι → F) :=
236+
ReedSolomon.code domain ⌊prizeRates j * (Fintype.card ι : ℝ≥0)⌋₊
237+
∃ _ : mcaThresholdExists C epsStar,
238+
mcaSatisfies C epsStar (τ j) ∧
239+
∀ i : Fin (Fintype.card ι + 1), mcaSatisfies C epsStar i → i ≤ τ j) ∧
240+
∀ j : Fin 4, latticeIndexOf (ι := ι) (1 : ℝ≥0) le_rfl ≤ τ j := by
241+
classical
242+
let τ : Fin 4 → Fin (Fintype.card ι + 1) :=
243+
fun _ => ⟨Fintype.card ι, Nat.lt_succ_self _⟩
244+
have hspec := mcaPrizeLatticeSpec_top_of_choose_bounds domain hbound
245+
have htop : latticeIndexOf (ι := ι) (1 : ℝ≥0) le_rfl =
246+
(⟨Fintype.card ι, Nat.lt_succ_self _⟩ : Fin (Fintype.card ι + 1)) := by
247+
ext
248+
simp [latticeIndexOf_val]
249+
refine ⟨by simpa [τ] using hspec, ?_⟩
250+
intro j
251+
simpa [τ, htop]
252+
192253
/-- Per-rate lower MCA witnesses resolve the faithful MCA prize and expose the
193254
satisfy/maximality specification for the selected lattice thresholds. -/
194255
theorem exists_mcaPrizeLatticeResolved_with_spec_of_lowerWitnesses
@@ -1288,6 +1349,10 @@ set_option linter.style.longLine false in
12881349
set_option linter.style.longLine false in
12891350
#print axioms ProximityGap.GrandChallengesLattice.mcaThreshold_eq_top_prize_allRates_of_choose_bounds
12901351
set_option linter.style.longLine false in
1352+
#print axioms ProximityGap.GrandChallengesLattice.mcaPrizeLatticeSpec_and_lower_brackets_top_of_radiusOne_bounds
1353+
set_option linter.style.longLine false in
1354+
#print axioms ProximityGap.GrandChallengesLattice.mcaPrizeLatticeSpec_and_lower_brackets_top_of_choose_bounds
1355+
set_option linter.style.longLine false in
12911356
#print axioms ProximityGap.GrandChallengesLattice.exists_mcaPrizeLatticeResolved_with_spec_of_lowerWitnesses
12921357
set_option linter.style.longLine false in
12931358
#print axioms ProximityGap.GrandChallengesLattice.exists_mcaPrizeLatticeSpec_of_lowerWitnesses

0 commit comments

Comments
 (0)