OAI/Computability/MaxCut/PCP/RepetitionUpper.lean
21 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.MaxCutGames.Soundness.RepetitionUpper.bernoulliAverageline 10Source documentation
Expectation of
fevaluated at the number of successes innindependent Bernoulli trials. The recursion itself specifies the product distribution.def bernoulliAverage (p : Rat) : Nat → (Nat → Rat) → Rat | 0, f => f 0 | n + 1, f => (1 - p) * bernoulliAverage p n f + p * bernoulliAverage p n (fun k => f (k + 1)) - theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.bernoulliAverage_scaleline 16 - theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.bernoulliAverage_geometricline 25Source documentation
The exact binomial generating-function identity used in (6.25).
theorem bernoulliAverage_geometric (p a : Rat) (n : Nat) : bernoulliAverage p n (fun k => a ^ k) = (1 - p * (1 - a)) ^ n := by …Mentions: OAI.MaxCutGames.Soundness.RepetitionUpper.bernoulliAverage
- theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.bernoulliAverage_monoline 37 - theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.success_le_geometricline 54Source documentation
The repeated-game bound is the explicitly supplied premise
conditional. The premiseaveragedis the separate law-of-total-probability obligation.theorem success_le_geometric (p a success : Rat) (n : Nat) (conditionalSuccess : Nat → Rat) (hp : 0 ≤ p) (hp' : p ≤ 1) (conditional : ∀ k, conditionalSuccess k ≤ a ^ k) (averaged : success ≤ bernoulliAverage p n conditionalSuccess) : success ≤ (1 - p * (1 - a)) ^ n := by …Mentions: OAI.MaxCutGames.Soundness.RepetitionUpper.bernoulliAverage
- theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.pow_mono_nonnegline 65 - def
OAI.MaxCutGames.Soundness.RepetitionUpper.zeroProbabilityline 79Source documentation
A uniformly sampled vector in a
d-dimensional binary space is zero with probability2^(-d). The counting justification is a separate obligation.def zeroProbability (d : Nat) : Rat := (1 / 2 : Rat) ^ d
- theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.zeroProbability_nonnegline 81 - theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.zeroProbability_le_oneline 84 - theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.zeroProbability_antitoneline 92 - theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.geometric_le_dimension_boundline 112Source documentation
The last inequality in (6.25), including the sign obligations.
theorem geometric_le_dimension_bound (d L n : Nat) (hd : d ≤ L) (a : Rat) (ha : 0 ≤ a) (ha' : a ≤ 1) : (1 - zeroProbability d * (1 - a)) ^ n ≤ (1 - zeroProbability L * (1 - a)) ^ n := by …Mentions: OAI.MaxCutGames.Soundness.RepetitionUpper.zeroProbability
- theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.projection_upper_boundline 129Source documentation
Lemma 6.8's numerical conclusion, conditional on the repeated-game and averaging premises. In particular these hypotheses must be proved for the same augmented strategy, including its fixed advice.
theorem projection_upper_bound (d L n : Nat) (hd : d ≤ L) (a success : Rat) (ha : 0 ≤ a) (ha' : a ≤ 1) (conditionalSuccess : Nat → Rat) (conditional : ∀ k, conditionalSuccess k ≤ a ^ k) (averaged : success ≤ bernoulliAverage (zeroProbability d) n conditionalSuccess) : success ≤ (1 - zeroProbability L * (1 - a)) ^ n := by …Mentions: OAI.MaxCutGames.Soundness.RepetitionUpper.bernoulliAverage, OAI.MaxCutGames.Soundness.RepetitionUpper.zeroProbability
- def
OAI.MaxCutGames.Soundness.RepetitionUpper.decoderThresholdline 140 - theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.decoderThreshold_posline 142 - theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.exists_pos_nat_gtline 152Source documentation
An elementary Archimedean bound for rational parameters.
theorem exists_pos_nat_gt (x : Rat) : ∃ n : Nat, 0 < n ∧ x < (n : Rat) := by …
- theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.power_mul_growth_le_oneline 162Source documentation
The estimate
b^n ≤ 1 / (1+n(1-b))without division.theorem power_mul_growth_le_one (b : Rat) (hb : 0 ≤ b) (hb' : b ≤ 1) (n : Nat) : b ^ n * (1 + (n : Rat) * (1 - b)) ≤ 1 := by … - theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.exists_power_ltline 180Source documentation
Positive powers of a rational base below one eventually fall below every positive rational threshold; this supplies the search target in (4.4).
theorem exists_power_lt (b threshold : Rat) (hb : 0 ≤ b) (hb' : b < 1) (ht : 0 < threshold) : ∃ n : Nat, 0 < n ∧ b ^ n < threshold := by … - theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.zeroProbability_posline 197 - theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.exists_repetition_lengthline 200 - theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.soundness_of_boundsline 217Source documentation
Proposition 6.9's contradiction, with its dependency boundary visible.
extractionis the entire lower-bound implication;uppermust bound every strategy of the same type, with all allowed advice;gapis (4.4).theorem soundness_of_bounds {Labeling Strategy : Type} (acceptance : Labeling → Rat) (success : Strategy → Rat) (delta lower upperBound : Rat) (extraction : ∀ labeling, delta < acceptance labeling → ∃ strategy, lower ≤ success strategy) (upper : ∀ strategy, success strategy ≤ upperBound) (gap : upperBound < lower) : ∀ labeling, acceptance labeling ≤ delta := by … - theorem
OAI.MaxCutGames.Soundness.RepetitionUpper.soundness_from_repetitionline 235Source documentation
Proposition 6.9 specialized to (6.25) and (4.4). Every occurrence of
strategyis the same object, so fixed advice cannot silently change between the lower and upper bounds.theorem soundness_from_repetition {Labeling Strategy : Type} (acceptance : Labeling → Rat) (success : Strategy → Rat) (dimension : Strategy → Nat) (conditionalSuccess : Strategy → Nat → Rat) (delta a theta : Rat) (q L t : Nat) (ha : 0 ≤ a) (ha' : a ≤ 1) (dimension_le : ∀ strategy, dimension strategy ≤ L) (conditional : ∀ strategy k, conditionalSuccess strategy k ≤ a ^ k) (averaged : ∀ strategy, success strategy ≤ bernoulliAverage (zeroProbability (dimension strategy)) t (conditionalSuccess strategy)) (extraction : ∀ labeling, delta < acceptance labeling → ∃ strategy, decoderThreshold theta q ≤ success strategy) …Mentions: OAI.MaxCutGames.Soundness.RepetitionUpper.bernoulliAverage, OAI.MaxCutGames.Soundness.RepetitionUpper.zeroProbability, OAI.MaxCutGames.Soundness.RepetitionUpper.decoderThreshold