feat: concrete Bernoulli lottery model proving lemma1's good-event bound - #50
Open
adust09 wants to merge 1 commit into
Open
feat: concrete Bernoulli lottery model proving lemma1's good-event bound#50adust09 wants to merge 1 commit into
adust09 wants to merge 1 commit into
Conversation
Build the product-measure lottery bridging the proved Chernoff layer and the axiomatized good events, shrinking the trusted base: - eligLot: Measure.infinitePi product-Bernoulli eligibility lottery over (Slot x V) coordinates; advEligibleCount / honEligibleCount random counts - diff_count_subG: centered count difference is sub-Gaussian with explicit c = |V|/4 (Hoeffding per-indicator 1/4 + independence), discharging the CountLottery.subG hypothesis - honest_majority_horizon_bound: consuming Compliant (1/2) eps n0 fields, P(some slot lacks honest majority) <= |H| * exp(-g^2/(2c)) with explicit g = eps * thr * n0 - leaderLot / leaderLottery: Bernoulli leader lottery instantiating the LeaderLottery interface (iIndepSet proved from the product structure), no_honest_leader_window_bound <= |H| * (1 - p0)^kappa - lemma1_good_event_bound: capstone conjunction bound on the product space; docstring states the residual model-instantiation gap (VRF => iid, execution semantics, finite-horizon quantifier, static awake split) No sorry, no new axioms: all four theorems depend only on Lean core axioms (propext, Classical.choice, Quot.sound).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Shrinks the trusted base around the three probabilistic axioms (
lemma1,lemma4,proposition1): the already-proved Chernoff/measure-theoretic layer (Probabilistic/CountBound.lean,Basic.lean,LeaderWindow.lean) is now connected to a concrete product-Bernoulli lottery model, so that the good event assumed byaxiom lemma1is proved as a real theorem with explicit constants. What remains between this theorem and discharging the axiom is stated precisely in the capstone docstring — the gap is now a documented model-instantiation gap, not an unproved concentration argument.New file
Goldfish/Probabilistic/Lottery.lean(539 lines), wired into theGoldfish.Probabilisticumbrella, plus a Barrier-1 status note inREADME.md.Model
eligLot V thr hthr : Measure ((Slot × V) → Bool)—Measure.infinitePiproduct-Bernoulli over per-(slot, validator) eligibility coordinates; counts are defined at every slot, horizons enter only through the good event.advEligibleCount/honEligibleCount— random counts over the adversarial splitA/Aᶜ.leaderLot p hp : Measure (Slot → Bool)— per-slot Bernoulli honest-leader lottery.Theorems and explicit constants
diff_count_subG— Hoeffding instantiation: each signed indicator lies in a length-1 interval ⇒ sub-Gaussian parameterc = 1/4per validator (hasSubgaussianMGF_of_mem_Icc), independence viaiIndepFun_infinitePi, parameters add viaHasSubgaussianMGF.sum_of_iIndepFun. Packaged aseligCountLottery : CountLottery, feeding the already-provedexceeds_bound_union.honest_majority_horizon_bound— consumes the actualCompliant (1/2) ε n₀fields; concludesμ.real {∃ t ∈ H, hon ≤ adv} ≤ |H| · exp(−g²/(2c))with g = ε·thr·n₀, c = |V|/4.no_honest_leader_window_bound—≤ |H| · (1 − p₀)^κfor anyp₀ ≤ p, reusing the provedno_leader_window_union_bound(theiIndepSethypothesis proved from the product structure).lemma1_good_event_bound— capstone on the product measure: failure of the horizon reading ofHonestMajorityPerSlot ∧ HonestLeaderEveryWindowis≤ |H|·exp(−(ε·thr·n₀)²/(2·|V|/4)) + |H|·(1−p₀)^κ.Verification
lake buildpasses with zero warnings (2905 jobs).#print axiomson all four theorems:[propext, Classical.choice, Quot.sound]only — no Goldfish axioms, nosorry, no new axioms.Documented residual gap (capstone docstring)
Executionfields (honEligible/advEligible/leader) with the sampled ω (Barrier-1 idealization).HonestMajorityPerSlot's unbounded∀ t : Slot— under any iid model an infinite horizon fails a.s., so the axiom must be read over thepoly(κ)horizon (the theorem covers every finite horizon).|A|/|Aᶜ|inCompliant).