Skip to content

Commit 924a8c0

Browse files
committed
feat(Verified-zkEVM#141): aggregate uniform GS prize specs
1 parent e8f3966 commit 924a8c0

1 file changed

Lines changed: 68 additions & 5 deletions

File tree

ArkLib/Data/CodingTheory/ProximityGap/GrandChallenge141PrizeMath.lean

Lines changed: 68 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
44
Authors: ArkLib Contributors
55
-/
66

7+
import ArkLib.Data.CodingTheory.ProximityGap.GrandChallengesLatticePrizeSpec
78
import ArkLib.Data.CodingTheory.ProximityGap.MCAGSWitness
89

910
/-!
@@ -137,7 +138,9 @@ theorem epsMCAgs_prizeBound_conjecture_holds
137138
have hηlt1 : (η : ℝ) < 1 := eta_lt_one_of_prize j η δ hδ
138139
have hqpos : (0 : ℝ) < (Fintype.card F : ℝ) := by exact_mod_cast Fintype.card_pos
139140
-- pick `n` with `η^n < 1/q`
140-
obtain ⟨n, hn⟩ := exists_pow_lt_of_lt_one (by positivity : (0 : ℝ) < 1 / (Fintype.card F : ℝ)) hηlt1
141+
obtain ⟨n, hn⟩ :=
142+
exists_pow_lt_of_lt_one
143+
(by positivity : (0 : ℝ) < 1 / (Fintype.card F : ℝ)) hηlt1
141144
have hηpow_pos : (0 : ℝ) < (η : ℝ) ^ n := by
142145
have : (0 : ℝ) < (η : ℝ) := by exact_mod_cast hη
143146
positivity
@@ -355,6 +358,64 @@ theorem exists_prize_mcaLowerWitnesses_allRates_of_uniformConjecture
355358
exact hlower j (η j) (δ j) (hη j) (hδ j) (hδ_le_one j) (L j)
356359
(hfaithful j) (hclear j)
357360

361+
/-- The honest uniform GS-exposed prize, plus explicit GS faithfulness and numeric clearance
362+
hypotheses at all four prize rates, supplies a faithful MCA prize-lattice resolution together with
363+
the satisfy/maximality specification for the selected thresholds.
364+
365+
This is the lattice/spec aggregation of
366+
`exists_prize_mcaLowerWitnesses_allRates_of_uniformConjecture`: it chooses the all-rate lower
367+
witnesses and feeds them through the generic faithful lattice-prize spec API. The uniform GS prize,
368+
faithfulness, and numeric clearance remain explicit hypotheses. -/
369+
theorem exists_mcaPrizeLatticeResolved_with_spec_of_uniformConjecture
370+
(domain : ι ↪ F) (m : ℕ)
371+
(hUniform : epsMCAgsPrizeUniformConjecture domain m) :
372+
∃ c₁ c₂ c₃ : ℝ,
373+
∀ (η δ : Fin 4 → ℝ≥0),
374+
(∀ j : Fin 4, 0 < η j) →
375+
(∀ j : Fin 4,
376+
(δ j : ℝ) ≤ 1 - (ProximityGap.prizeRates j : ℝ) - (η j : ℝ)) →
377+
(∀ j : Fin 4, δ j ≤ 1) →
378+
∀ L : ∀ _ : Fin 4, WordStack F (Fin 2) ι → Finset (ι → F),
379+
(∀ j : Fin 4,
380+
FaithfulGSFamily (F := F)
381+
((ReedSolomon.code (domain := domain)
382+
⌊(ProximityGap.prizeRates j : ℝ≥0) * (Fintype.card ι : ℝ≥0)⌋₊ :
383+
Set (ι → F))) (δ j) (L j)) →
384+
(∀ j : Fin 4,
385+
ENNReal.ofReal
386+
(epsMCAgsPrizeBound (Fintype.card F) m (ProximityGap.prizeRates j)
387+
(η j) c₁ c₂ c₃)
388+
≤ (epsStar : ENNReal)) →
389+
∃ τ : Fin 4 → Fin (Fintype.card ι + 1),
390+
GrandChallengesLattice.mcaPrizeLatticeResolved domain τ ∧
391+
∀ j : Fin 4,
392+
let C : Set (ι → F) :=
393+
ReedSolomon.code domain
394+
⌊ProximityGap.prizeRates j * (Fintype.card ι : ℝ≥0)⌋₊
395+
∃ _ : GrandChallengesLattice.mcaThresholdExists C epsStar,
396+
GrandChallengesLattice.mcaSatisfies C epsStar (τ j) ∧
397+
∀ i : Fin (Fintype.card ι + 1),
398+
GrandChallengesLattice.mcaSatisfies C epsStar i → i ≤ τ j := by
399+
rcases exists_prize_mcaLowerWitnesses_allRates_of_uniformConjecture domain m hUniform with
400+
⟨c₁, c₂, c₃, hlower⟩
401+
refine ⟨c₁, c₂, c₃, ?_⟩
402+
intro η δ hη hδ hδ_le_one L hfaithful hclear
403+
have hw : ∀ j : Fin 4,
404+
∃ w : GrandChallenges.MCALowerWitness
405+
((ReedSolomon.code (domain := domain)
406+
⌊(ProximityGap.prizeRates j : ℝ≥0) * (Fintype.card ι : ℝ≥0)⌋₊ :
407+
Set (ι → F))) epsStar,
408+
w.δ = δ j :=
409+
hlower η δ hη hδ hδ_le_one L hfaithful hclear
410+
let w : ∀ j : Fin 4,
411+
GrandChallenges.MCALowerWitness
412+
((ReedSolomon.code (domain := domain)
413+
⌊(ProximityGap.prizeRates j : ℝ≥0) * (Fintype.card ι : ℝ≥0)⌋₊ :
414+
Set (ι → F))) epsStar :=
415+
fun j => Classical.choose (hw j)
416+
exact GrandChallengesLattice.exists_mcaPrizeLatticeResolved_with_spec_of_lowerWitnesses
417+
domain w
418+
358419
end PerInput
359420

360421
/-! ## 3. Explicit-constant conditional reduction (open content named, no laundering) -/
@@ -370,10 +431,11 @@ open scoped NNReal
370431
371432
Under the (open, beyond-UDR) inputs — a uniform GS list size `ℓ`, per-stack pivot covering, and
372433
the single numeric clearance `ℓ/q ≤ epsMCAgsPrizeBound … c₁ c₂ c₃` for explicit constants — the
373-
per-input GS prize conjecture follows from the **proved** `epsMCAgs_le_listSize_div_of_pivotCovering`
374-
(`MCAGSWitness`). The genuinely open content is isolated into the named list-size/covering
375-
hypotheses; the assembly is sorry-free `le_trans`. No laundering: the conjecture's existential is
376-
discharged only relative to these explicit external inputs. Tracking: Issue #141. -/
434+
per-input GS prize conjecture follows from the **proved** GS list-size bound
435+
`epsMCAgs_le_listSize_div_of_pivotCovering` (`MCAGSWitness`). The genuinely open content is
436+
isolated into the named list-size/covering hypotheses; the assembly is sorry-free `le_trans`.
437+
No laundering: the conjecture's existential is discharged only relative to these explicit external
438+
inputs. Tracking: Issue #141. -/
377439
theorem epsMCAgs_prizeBound_of_listSize_clears
378440
(domain : ι ↪ F) (j : Fin 4) (m : ℕ) (η δ : ℝ≥0) (hη : 0 < η)
379441
(L : WordStack F (Fin 2) ι → Finset (ι → F))
@@ -406,6 +468,7 @@ end Reduction
406468
#print axioms epsMCAgsPrizeUniformConjecture_iff_uniform_epsMCAgsMassBound
407469
#print axioms exists_prize_mcaLowerWitness_of_uniformConjecture
408470
#print axioms exists_prize_mcaLowerWitnesses_allRates_of_uniformConjecture
471+
#print axioms exists_mcaPrizeLatticeResolved_with_spec_of_uniformConjecture
409472
#print axioms epsMCAgs_prizeBound_of_listSize_clears
410473

411474
end MCAGS

0 commit comments

Comments
 (0)