Documentation

LeanPool.PebblingLean.UpperBoundProbability

Finite probability setup for the upper bound #

This file defines the exact finite sample spaces used in the probabilistic upper-bound argument. It also records the interfaces for the Chernoff and Bernstein inputs. These are propositions, not axioms: later work must prove them or replace them with imported theorems.

@[reducible, inline]

A sample of N independent uniform centers in Q_n, represented as a function on Fin N.

Equations
Instances For

    Convert a center sample into the list used by the deterministic stack construction.

    Equations
    Instances For
      def PebblingLean.Hypercube.sampleTotalContribution {n N : } (rIn rOut : ) (target : HypercubeVertex n) (sample : CenterSample n N) :

      Total annulus contribution of a sampled N-tuple to a fixed target.

      Equations
      Instances For
        theorem PebblingLean.Hypercube.annulusTotalContribution_toList {n N rIn rOut : } (target : HypercubeVertex n) (sample : CenterSample n N) :
        annulusTotalContribution rIn rOut target sample.toList = sampleTotalContribution rIn rOut target sample
        noncomputable def PebblingLean.Hypercube.oneCenterContributionExpectation {n : } (rIn rOut : ) (target : HypercubeVertex n) :

        Exact expectation of one random annulus contribution.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Real-valued version of the one-center annulus contribution expectation.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            noncomputable def PebblingLean.Hypercube.oneCenterContributionSecondMoment {n : } (rIn rOut : ) (target : HypercubeVertex n) :

            Exact second moment of one random annulus contribution.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem PebblingLean.Hypercube.oneCenterContributionExpectation_eq_sum {n rIn rOut : } (target : HypercubeVertex n) :
              oneCenterContributionExpectation rIn rOut target = (∑ center : HypercubeVertex n, (annulusContribution rIn rOut target center)) / 2 ^ n
              theorem PebblingLean.Hypercube.oneCenterContributionExpectationReal_eq_sum {n rIn rOut : } (target : HypercubeVertex n) :
              oneCenterContributionExpectationReal rIn rOut target = (∑ center : HypercubeVertex n, (annulusContribution rIn rOut target center)) / 2 ^ n
              theorem PebblingLean.Hypercube.oneCenterContributionSecondMoment_eq_sum {n rIn rOut : } (target : HypercubeVertex n) :
              oneCenterContributionSecondMoment rIn rOut target = (∑ center : HypercubeVertex n, (annulusContribution rIn rOut target center) ^ 2) / 2 ^ n

              Expectation-level version of Z^2 ≤ B_0 Z for one random annulus contribution.

              theorem PebblingLean.Hypercube.card_filter_dist_eq {n i : } (target : HypercubeVertex n) :
              {center : HypercubeVertex n | dist target center = i}.card = n.choose i

              Cardinality of a Hamming sphere, written as a filtered finite sum.

              theorem PebblingLean.Hypercube.sum_filter_dist_eq_annulusContribution {n rIn rOut i : } (target : HypercubeVertex n) :
              center : HypercubeVertex n with dist target center = i, annulusContribution rIn rOut target center = n.choose i * if rIn i i rOut then 2 ^ (rOut - i) else 0

              Sum of the annulus contribution over one Hamming sphere.

              theorem PebblingLean.Hypercube.sum_annulusContribution_eq_sum_range {n rIn rOut : } (target : HypercubeVertex n) :
              center : HypercubeVertex n, annulusContribution rIn rOut target center = iFinset.range (n + 1), n.choose i * if rIn i i rOut then 2 ^ (rOut - i) else 0

              Exact one-center annulus contribution, grouped by Hamming distance.

              theorem PebblingLean.Hypercube.oneCenterContributionExpectation_eq_distance_sum {n rIn rOut : } (target : HypercubeVertex n) :
              oneCenterContributionExpectation rIn rOut target = (∑ iFinset.range (n + 1), ↑(n.choose i * if rIn i i rOut then 2 ^ (rOut - i) else 0)) / 2 ^ n

              Exact one-center expectation as a binomial sphere sum.

              Numerator of the expected contribution of one random stack. This is target-independent by symmetry of the cube.

              Equations
              Instances For
                noncomputable def PebblingLean.Hypercube.annulusMean (n rIn rOut : ) :

                Expected contribution of one uniformly random annulus center.

                Equations
                Instances For
                  theorem PebblingLean.Hypercube.annulusMean_nonneg (n rIn rOut : ) :
                  0 (annulusMean n rIn rOut)
                  theorem PebblingLean.Hypercube.weightedSphereSum_half_eq (n : ) :
                  iFinset.range (n + 1), (n.choose i) * (1 / 2) ^ i = (3 / 2) ^ n

                  Binomial evaluation of the full weighted Hamming-sphere sum.

                  theorem PebblingLean.Hypercube.pow_two_sub_eq_mul_half_pow {rOut i : } (hi : i rOut) :
                  2 ^ (rOut - i) = 2 ^ rOut * (1 / 2) ^ i
                  theorem PebblingLean.Hypercube.annulusMean_eq_real_sum (n rIn rOut : ) :
                  (annulusMean n rIn rOut) = (∑ iFinset.range (n + 1), ↑(n.choose i * if rIn i i rOut then 2 ^ (rOut - i) else 0)) / 2 ^ n
                  theorem PebblingLean.Hypercube.annulusMean_le_fullWeightedMean (n rIn rOut : ) :
                  (annulusMean n rIn rOut) 2 ^ rOut * (3 / 4) ^ n

                  Truncating to an annulus can only decrease the full weighted expectation 2^rOut (3/4)^n.

                  noncomputable def PebblingLean.Hypercube.binomialWindowProbThird (n rIn rOut : ) :

                  The probability that a Binomial(n, 1/3) random variable lies in the annulus window [rIn, rOut]. This is the normalized form of the weighted annulus mean.

                  Equations
                  Instances For
                    theorem PebblingLean.Hypercube.annulusWeightedTerm_eq_fullFactor_mul_binomialTerm {n rOut i : } (hin : i n) (hr : i rOut) :
                    2 ^ (rOut - i) / 2 ^ n = 2 ^ rOut * (3 / 4) ^ n * ((1 / 3) ^ i * (2 / 3) ^ (n - i))

                    Termwise conversion between the annulus contribution weight and the Binomial(1/3) mass after factoring out the full weighted mean 2^rOut (3/4)^n.

                    Exact normalization of the annulus mean: it is the full weighted mean 2^rOut (3/4)^n times a Binomial(n,1/3) window probability.

                    Point mass of a Binomial(n,1/3) random variable at i.

                    Equations
                    Instances For

                      Left tail below the inner annulus radius for Binomial(n,1/3).

                      Equations
                      Instances For

                        Right tail above the outer annulus radius for Binomial(n,1/3).

                        Equations
                        Instances For
                          theorem PebblingLean.Hypercube.binomialWindow_tail_partition_term {n rIn rOut i : } (hr : rIn rOut) :

                          For a valid annulus, every binomial mass is either inside the window, in the left tail, or in the right tail.

                          Window probability plus the two outside tails equals one.

                          If the two binomial tails outside the annulus have total mass at most eps, then the annulus window has mass at least 1-eps.

                          theorem PebblingLean.Hypercube.binomialExpNegMomentThird_eq (n : ) (lam : ) :
                          iFinset.range (n + 1), binomialMassThird n i * Real.exp (-lam) ^ i = (1 / 3 * Real.exp (-lam) + 2 / 3) ^ n

                          Exact negative exponential moment of Binomial(n,1/3).

                          theorem PebblingLean.Hypercube.binomialExpMomentThird_eq (n : ) (lam : ) :
                          iFinset.range (n + 1), binomialMassThird n i * Real.exp lam ^ i = (1 / 3 * Real.exp lam + 2 / 3) ^ n

                          Exact positive exponential moment of Binomial(n,1/3).

                          theorem PebblingLean.Hypercube.binomialLeftTailProbThird_le_chernoff (n rIn : ) {lam : } (hlam : 0 lam) :
                          binomialLeftTailProbThird n rIn Real.exp (lam * rIn) * (1 / 3 * Real.exp (-lam) + 2 / 3) ^ n

                          Chernoff bound for the left tail of Binomial(n,1/3), with arbitrary nonnegative parameter lam.

                          theorem PebblingLean.Hypercube.binomialRightTailProbThird_le_chernoff (n rOut : ) {lam : } (hlam : 0 lam) :
                          binomialRightTailProbThird n rOut Real.exp (-(lam * rOut)) * (1 / 3 * Real.exp lam + 2 / 3) ^ n

                          Chernoff bound for the right tail of Binomial(n,1/3), with arbitrary nonnegative parameter lam.

                          noncomputable def PebblingLean.Hypercube.sampleContributionExpectation {n N : } (rIn rOut : ) (target : HypercubeVertex n) :

                          Exact expectation of the total annulus contribution from an N-tuple of uniform centers.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            noncomputable def PebblingLean.Hypercube.sampleContributionSecondMomentProxy {n N : } (rIn rOut : ) (target : HypercubeVertex n) :

                            Sum of the second moments of the N independent one-center contributions. This is the variance proxy used by Bernstein; the actual variance is bounded by this quantity.

                            Equations
                            Instances For
                              theorem PebblingLean.Hypercube.sampleContributionExpectation_eq_sum {n N rIn rOut : } (target : HypercubeVertex n) :
                              sampleContributionExpectation rIn rOut target = (∑ sample : CenterSample n N, (sampleTotalContribution rIn rOut target sample)) / (Fintype.card (CenterSample n N))
                              theorem PebblingLean.Hypercube.sum_centerSample_eval {n N : } (j : Fin N) (f : HypercubeVertex n) :
                              sample : CenterSample n N, (f (sample j)) = (2 ^ n) ^ (N - 1) * center : HypercubeVertex n, (f center)

                              For a fixed coordinate of the random center tuple, summing over all samples is the one-center sum multiplied by the number of choices for the remaining coordinates.

                              theorem PebblingLean.Hypercube.sum_sampleTotalContribution_eq {n N rIn rOut : } (target : HypercubeVertex n) :
                              sample : CenterSample n N, (sampleTotalContribution rIn rOut target sample) = N * (2 ^ n) ^ (N - 1) * center : HypercubeVertex n, (annulusContribution rIn rOut target center)

                              Numerator of the N-center expectation, written as N copies of the one-coordinate sum.

                              Linearity of expectation for the independent uniform center tuple used here: the expected total contribution is N times the one-center expectation.

                              Bernstein variance-proxy bound: the sum of one-center second moments is at most the annulus width factor times the mean total contribution.

                              theorem PebblingLean.Hypercube.sampleContributionSecondMomentProxy_le_two_width_mul_T {n N rIn rOut T : } (target : HypercubeVertex n) (hmean_upper : sampleContributionExpectation rIn rOut target 2 * T) :
                              sampleContributionSecondMomentProxy rIn rOut target 2 * 2 ^ (rOut - rIn) * T

                              Paper-facing variance-proxy corollary: once the expected total contribution is at most 2T, the Bernstein variance proxy is at most 2 B_0 T.

                              def PebblingLean.Hypercube.sampleTargetFails {n N : } (rIn rOut T : ) (target : HypercubeVertex n) (sample : CenterSample n N) :

                              The event that a particular target receives less than demand T.

                              Equations
                              Instances For
                                @[implicit_reducible]
                                instance PebblingLean.Hypercube.instDecidableSampleTargetFails {n N rIn rOut T : } (target : HypercubeVertex n) (sample : CenterSample n N) :
                                Decidable (sampleTargetFails rIn rOut T target sample)
                                Equations
                                def PebblingLean.Hypercube.sampleFailsSomeTarget {n N : } (rIn rOut T : ) (sample : CenterSample n N) :

                                The event that some target receives less than demand T.

                                Equations
                                Instances For
                                  noncomputable def PebblingLean.Hypercube.targetFailureProbability {n N : } (rIn rOut T : ) (target : HypercubeVertex n) :

                                  Failure probability for one fixed target. This is the quantity controlled by Bernstein in the proof.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    noncomputable def PebblingLean.Hypercube.targetFailureProbabilityReal {n N : } (rIn rOut T : ) (target : HypercubeVertex n) :

                                    Real-valued form of the fixed-target failure probability, used for exponential tail estimates.

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For
                                      noncomputable def PebblingLean.Hypercube.targetLowerTailExponentialMoment {n N : } (rIn rOut T : ) (target : HypercubeVertex n) (lam : ) :

                                      Exponential moment used by the Chernoff/Markov lower-tail argument for a fixed target.

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For
                                        noncomputable def PebblingLean.Hypercube.oneCenterNegativeExponentialMoment {n : } (rIn rOut : ) (target : HypercubeVertex n) (lam : ) :

                                        One-center exponential moment appearing after independence factorization of the lower-tail Chernoff bound.

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          theorem PebblingLean.Hypercube.oneCenterNegativeExponentialMoment_le_chord {n rIn rOut : } (target : HypercubeVertex n) (lam : ) :
                                          oneCenterNegativeExponentialMoment rIn rOut target lam 1 - (1 - Real.exp (-(lam * 2 ^ (rOut - rIn)))) * (oneCenterContributionExpectationReal rIn rOut target / 2 ^ (rOut - rIn))

                                          One-center bounded-nonnegative Chernoff estimate: the negative exponential moment is bounded by the chord estimate in terms of the one-center mean and the annulus width B_0 = 2^(rOut-rIn).

                                          theorem PebblingLean.Hypercube.sum_filter_dist_eq_exp_annulusContribution {n rIn rOut i : } (target : HypercubeVertex n) (lam : ) :
                                          center : HypercubeVertex n with dist target center = i, Real.exp (-(lam * (annulusContribution rIn rOut target center))) = (n.choose i) * Real.exp (-(lam * ↑(if rIn i i rOut then 2 ^ (rOut - i) else 0)))

                                          Sum of the one-center negative exponential factor over one Hamming sphere.

                                          theorem PebblingLean.Hypercube.sum_exp_annulusContribution_eq_sum_range {n rIn rOut : } (target : HypercubeVertex n) (lam : ) :
                                          center : HypercubeVertex n, Real.exp (-(lam * (annulusContribution rIn rOut target center))) = iFinset.range (n + 1), (n.choose i) * Real.exp (-(lam * ↑(if rIn i i rOut then 2 ^ (rOut - i) else 0)))

                                          Exact one-center negative exponential moment numerator, grouped by Hamming distance.

                                          theorem PebblingLean.Hypercube.oneCenterNegativeExponentialMoment_eq_distance_sum {n rIn rOut : } (target : HypercubeVertex n) (lam : ) :
                                          oneCenterNegativeExponentialMoment rIn rOut target lam = (∑ iFinset.range (n + 1), (n.choose i) * Real.exp (-(lam * ↑(if rIn i i rOut then 2 ^ (rOut - i) else 0)))) / 2 ^ n

                                          Exact one-center negative exponential moment as a binomial Hamming-sphere sum.

                                          The one-center exponential moment is independent of the target, by hypercube symmetry and the Hamming-sphere count.

                                          theorem PebblingLean.Hypercube.exp_neg_sampleTotalContribution_eq_prod {n N rIn rOut : } (target : HypercubeVertex n) (lam : ) (sample : CenterSample n N) :
                                          Real.exp (-(lam * (sampleTotalContribution rIn rOut target sample))) = j : Fin N, Real.exp (-(lam * (annulusContribution rIn rOut target (sample j))))
                                          theorem PebblingLean.Hypercube.sum_prod_oneCenterNegativeExponentialMoment {n N rIn rOut : } (target : HypercubeVertex n) (lam : ) :
                                          sample : CenterSample n N, j : Fin N, Real.exp (-(lam * (annulusContribution rIn rOut target (sample j)))) = (∑ center : HypercubeVertex n, Real.exp (-(lam * (annulusContribution rIn rOut target center)))) ^ N

                                          The product-space sum of independent one-center exponential factors factors as the Nth power of the one-center sum.

                                          theorem PebblingLean.Hypercube.sum_exp_neg_sampleTotalContribution_eq_pow {n N rIn rOut : } (target : HypercubeVertex n) (lam : ) :
                                          sample : CenterSample n N, Real.exp (-(lam * (sampleTotalContribution rIn rOut target sample))) = (∑ center : HypercubeVertex n, Real.exp (-(lam * (annulusContribution rIn rOut target center)))) ^ N
                                          theorem PebblingLean.Hypercube.exp_target_sub_sampleTotalContribution {n N rIn rOut T : } (target : HypercubeVertex n) (lam : ) (sample : CenterSample n N) :
                                          Real.exp (lam * (T - (sampleTotalContribution rIn rOut target sample))) = Real.exp (lam * T) * Real.exp (-(lam * (sampleTotalContribution rIn rOut target sample)))
                                          theorem PebblingLean.Hypercube.targetLowerTailExponentialMoment_eq {n N rIn rOut T : } (target : HypercubeVertex n) (lam : ) :
                                          targetLowerTailExponentialMoment rIn rOut T target lam = Real.exp (lam * T) * oneCenterNegativeExponentialMoment rIn rOut target lam ^ N

                                          Independence factorization for the lower-tail exponential moment.

                                          theorem PebblingLean.Hypercube.targetLowerTailExponentialMoment_le_exp_chord {n N rIn rOut T : } (target : HypercubeVertex n) {lam : } (hlam_nonneg : 0 lam) :
                                          targetLowerTailExponentialMoment rIn rOut T target lam Real.exp (lam * T - N * ((1 - Real.exp (-(lam * 2 ^ (rOut - rIn)))) * (oneCenterContributionExpectationReal rIn rOut target / 2 ^ (rOut - rIn))))

                                          Chord-based lower-tail exponential-moment bound before optimizing the Chernoff parameter. Here B = 2^(rOut-rIn) and the parenthesized term is the one-center chord drop.

                                          theorem PebblingLean.Hypercube.targetLowerTailExponentialMoment_le_exp_optimized_chord {n N rIn rOut T : } (target : HypercubeVertex n) {gap : } (hgap : 0 gap) (hmu_pos : 0 < N * oneCenterContributionExpectationReal rIn rOut target) (hmean : T + gap N * oneCenterContributionExpectationReal rIn rOut target) :
                                          targetLowerTailExponentialMoment rIn rOut T target (gap / (2 * 2 ^ (rOut - rIn) * (N * oneCenterContributionExpectationReal rIn rOut target))) Real.exp (-(gap ^ 2 / (4 * 2 ^ (rOut - rIn) * (N * oneCenterContributionExpectationReal rIn rOut target))))

                                          Optimized chord-based Chernoff bound for one fixed target. This is the analytic gap-closing statement: if the expected annulus contribution mu exceeds the threshold by gap, then the optimized exponential moment is bounded by exp(-gap^2/(4 B mu)), where B = 2^(rOut-rIn).

                                          A target-independent one-center exponential-moment bound for a fixed Chernoff parameter. The default target is arbitrary; the preceding target-independence theorem shows that it represents every target.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For

                                            The same one-center exponential-moment bound, with the one-center moment expanded as the explicit binomial Hamming-sphere sum. This is the exact analytic expression that a Bernstein estimate must bound.

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For
                                              theorem PebblingLean.Hypercube.targetFailureProbabilityReal_le_exponentialMoment {n N rIn rOut T : } (target : HypercubeVertex n) {lam : } (hlam : 0 < lam) :
                                              targetFailureProbabilityReal rIn rOut T target targetLowerTailExponentialMoment rIn rOut T target lam
                                              theorem PebblingLean.Hypercube.targetFailureProbability_le_of_exponentialMoment_le {n N rIn rOut T : } (target : HypercubeVertex n) {lam : } {eps : } (hlam : 0 < lam) (hmoment : targetLowerTailExponentialMoment rIn rOut T target lam eps) :
                                              targetFailureProbability rIn rOut T target eps
                                              theorem PebblingLean.Hypercube.targetFailureProbability_le_exp_neg_of_exponentialMoment_le {n N rIn rOut T : } (target : HypercubeVertex n) {lam exponent : } {eps : } (hlam : 0 < lam) (hmoment : targetLowerTailExponentialMoment rIn rOut T target lam Real.exp (-exponent)) (hexp : Real.exp (-exponent) eps) :
                                              targetFailureProbability rIn rOut T target eps
                                              theorem PebblingLean.Hypercube.targetFailureProbability_le_exp_optimized_chord {n N rIn rOut T : } (target : HypercubeVertex n) {gap : } {eps : } (hgap_pos : 0 < gap) (hmu_pos : 0 < N * oneCenterContributionExpectationReal rIn rOut target) (hmean : T + gap N * oneCenterContributionExpectationReal rIn rOut target) (hexp : Real.exp (-(gap ^ 2 / (4 * 2 ^ (rOut - rIn) * (N * oneCenterContributionExpectationReal rIn rOut target)))) eps) :
                                              targetFailureProbability rIn rOut T target eps

                                              Fixed-target failure bound obtained from the optimized chord Chernoff estimate.

                                              noncomputable def PebblingLean.Hypercube.globalFailureProbability {n N : } (rIn rOut T : ) :

                                              Probability that some target fails.

                                              Equations
                                              • One or more equations did not get rendered due to their size.
                                              Instances For

                                                Union bound over all targets.

                                                theorem PebblingLean.Hypercube.exists_goodCenterSample_of_globalFailureProbability_lt_one {n N rIn rOut T : } (hprob : globalFailureProbability rIn rOut T < 1) :
                                                ∃ (sample : CenterSample n N), IsGoodCenterList n rIn rOut T sample.toList

                                                Probabilistic-method extraction: if the probability that some target fails is less than one, then a good center sample exists.

                                                Costed high-demand conclusion from a global failure-probability bound.

                                                High-demand version of the probabilistic-method extraction. The selected stack-list distribution has occupied piles of size at least 2^rOut.

                                                The Chernoff input used in this project: the annulus captures enough expected contribution for every target.

                                                Equations
                                                Instances For
                                                  theorem PebblingLean.Hypercube.chernoffMeanLowerBound_of_annulusMean {n N rIn rOut T : } (hmean : T N * annulusMean n rIn rOut) :
                                                  ChernoffMeanLowerBound n N rIn rOut T

                                                  The Bernstein input used in this project: every fixed target has small lower tail probability.

                                                  Equations
                                                  Instances For
                                                    theorem PebblingLean.Hypercube.bernsteinTargetFailureBound_of_optimized_chord_annulusMean {n N rIn rOut T : } {gap : } {eps : } (hgap_pos : 0 < gap) (hmu_pos : 0 < N * (annulusMean n rIn rOut)) (hmean : T + gap N * (annulusMean n rIn rOut)) (hexp : Real.exp (-(gap ^ 2 / (4 * 2 ^ (rOut - rIn) * (N * (annulusMean n rIn rOut))))) eps) :
                                                    BernsteinTargetFailureBound n N rIn rOut T eps

                                                    Target-failure bound with the target-independent real annulus mean substituted for the fixed-target mean.

                                                    Chernoff-style exponential moment input: for each fixed target, there is a positive exponential parameter whose lower-tail moment is at most eps.

                                                    Equations
                                                    • One or more equations did not get rendered due to their size.
                                                    Instances For
                                                      theorem PebblingLean.Hypercube.bernsteinTargetFailureBound_of_chernoffExponentialMomentBound {n N rIn rOut T : } {epsReal : } {eps : } (hmoment : ChernoffExponentialMomentBound n N rIn rOut T epsReal) (heps : epsReal eps) :
                                                      BernsteinTargetFailureBound n N rIn rOut T eps
                                                      noncomputable def PebblingLean.Hypercube.bernsteinExponent (variance scale gap : ) :

                                                      The usual Bernstein lower-tail exponent, parameterized by a variance proxy, a per-summand scale, and the gap between the mean and threshold.

                                                      Equations
                                                      Instances For
                                                        theorem PebblingLean.Hypercube.bernsteinExponent_two_width_mul_T_ge {delta T B : } (hdelta_nonneg : 0 delta) (hdelta_le : delta 1 / 2) (hT_pos : 0 < T) (hB_pos : 0 < B) :
                                                        delta ^ 2 * T / (96 * B) bernsteinExponent (2 * B * T) B (delta * T / 4)

                                                        The constant calculation used in the paper after Bernstein is applied with variance proxy 2 * B * T, scale B, and gap delta*T/4.

                                                        def PebblingLean.Hypercube.BernsteinExponentialMomentBound (n N rIn rOut T : ) (variance scale gap : ) :

                                                        Bernstein-style exponential moment input. The analytic Bernstein argument must prove this proposition for the parameters chosen in the upper-bound proof.

                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          theorem PebblingLean.Hypercube.bernsteinExponentialMomentBound_of_oneCenterDistanceSum {n N rIn rOut T : } {lam variance scale gap : } (hbound : OneCenterDistanceSumExponentialMomentBound n N rIn rOut T lam (Real.exp (-bernsteinExponent variance scale gap))) :
                                                          BernsteinExponentialMomentBound n N rIn rOut T variance scale gap
                                                          theorem PebblingLean.Hypercube.bernsteinTargetFailureBound_of_bernsteinExponentialMomentBound {n N rIn rOut T : } {variance scale gap : } {eps : } (hmoment : BernsteinExponentialMomentBound n N rIn rOut T variance scale gap) (hexp : Real.exp (-bernsteinExponent variance scale gap) eps) :
                                                          BernsteinTargetFailureBound n N rIn rOut T eps
                                                          theorem PebblingLean.Hypercube.exists_goodCenterSample_of_bernstein_bound {n N rIn rOut T : } {eps : } (hbernstein : BernsteinTargetFailureBound n N rIn rOut T eps) (hunion : (Fintype.card (HypercubeVertex n)) * eps < 1) :
                                                          ∃ (sample : CenterSample n N), IsGoodCenterList n rIn rOut T sample.toList

                                                          The usual union-bound finish from a Bernstein fixed-target estimate.

                                                          theorem PebblingLean.Hypercube.hasSolvableAtMostSize_of_bernstein_bound {n N rIn rOut T : } {eps : } (hbernstein : BernsteinTargetFailureBound n N rIn rOut T eps) (hunion : (Fintype.card (HypercubeVertex n)) * eps < 1) :

                                                          Costed high-demand conclusion from the Bernstein fixed-target estimate.

                                                          theorem PebblingLean.Hypercube.exists_goodCenterSample_of_optimized_chord_annulusMean {n N rIn rOut T : } {gap : } {eps : } (hgap_pos : 0 < gap) (hmu_pos : 0 < N * (annulusMean n rIn rOut)) (hmean : T + gap N * (annulusMean n rIn rOut)) (hexp : Real.exp (-(gap ^ 2 / (4 * 2 ^ (rOut - rIn) * (N * (annulusMean n rIn rOut))))) eps) (hunion : (Fintype.card (HypercubeVertex n)) * eps < 1) :
                                                          ∃ (sample : CenterSample n N), IsGoodCenterList n rIn rOut T sample.toList

                                                          Probabilistic-method finish from the optimized chord Chernoff estimate, using the target-independent annulus mean.

                                                          theorem PebblingLean.Hypercube.hasSolvableAtMostSize_of_optimized_chord_annulusMean {n N rIn rOut T : } {gap : } {eps : } (hgap_pos : 0 < gap) (hmu_pos : 0 < N * (annulusMean n rIn rOut)) (hmean : T + gap N * (annulusMean n rIn rOut)) (hexp : Real.exp (-(gap ^ 2 / (4 * 2 ^ (rOut - rIn) * (N * (annulusMean n rIn rOut))))) eps) (hunion : (Fintype.card (HypercubeVertex n)) * eps < 1) :

                                                          Costed high-demand conclusion from the optimized chord Chernoff estimate.

                                                          theorem PebblingLean.Hypercube.exists_goodCenterSample_of_optimized_chord_annulusMean_inv_two {n N rIn rOut T : } {gap : } (hgap_pos : 0 < gap) (hmu_pos : 0 < N * (annulusMean n rIn rOut)) (hmean : T + gap N * (annulusMean n rIn rOut)) (hexp : Real.exp (-(gap ^ 2 / (4 * 2 ^ (rOut - rIn) * (N * (annulusMean n rIn rOut))))) ↑(1 / 2 ^ (n + 1))) :
                                                          ∃ (sample : CenterSample n N), IsGoodCenterList n rIn rOut T sample.toList

                                                          Optimized chord Chernoff finish with the standard fixed-target failure budget 2^-(n+1), which is strong enough for the union bound over Q_n.

                                                          theorem PebblingLean.Hypercube.hasSolvableAtMostSize_of_optimized_chord_annulusMean_inv_two {n N rIn rOut T : } {gap : } (hgap_pos : 0 < gap) (hmu_pos : 0 < N * (annulusMean n rIn rOut)) (hmean : T + gap N * (annulusMean n rIn rOut)) (hexp : Real.exp (-(gap ^ 2 / (4 * 2 ^ (rOut - rIn) * (N * (annulusMean n rIn rOut))))) ↑(1 / 2 ^ (n + 1))) :

                                                          Costed high-demand conclusion with fixed-target failure budget 2^-(n+1).

                                                          theorem PebblingLean.Hypercube.exists_goodCenterSample_of_optimized_chord_annulusMean_log {n N rIn rOut T : } {gap : } (hgap_pos : 0 < gap) (hmu_pos : 0 < N * (annulusMean n rIn rOut)) (hmean : T + gap N * (annulusMean n rIn rOut)) (hlog : ↑(n + 1) * Real.log 2 gap ^ 2 / (4 * 2 ^ (rOut - rIn) * (N * (annulusMean n rIn rOut)))) :
                                                          ∃ (sample : CenterSample n N), IsGoodCenterList n rIn rOut T sample.toList

                                                          Version of the optimized chord finish where the union-bound comparison is discharged by the exponent inequality exponent ≥ (n+1) log 2.

                                                          theorem PebblingLean.Hypercube.hasSolvableAtMostSize_of_optimized_chord_annulusMean_log {n N rIn rOut T : } {gap : } (hgap_pos : 0 < gap) (hmu_pos : 0 < N * (annulusMean n rIn rOut)) (hmean : T + gap N * (annulusMean n rIn rOut)) (hlog : ↑(n + 1) * Real.log 2 gap ^ 2 / (4 * 2 ^ (rOut - rIn) * (N * (annulusMean n rIn rOut)))) :

                                                          Costed high-demand conclusion from the optimized chord estimate and the exponent condition gap^2/(4 B_0 mu) ≥ (n+1) log 2.

                                                          theorem PebblingLean.Hypercube.exists_goodCenterSample_of_optimized_chord_annulusMean_log_of_mean_gap {n N rIn rOut T : } {gap : } (hgap_pos : 0 < gap) (hmean : T + gap N * (annulusMean n rIn rOut)) (hlog : ↑(n + 1) * Real.log 2 gap ^ 2 / (4 * 2 ^ (rOut - rIn) * (N * (annulusMean n rIn rOut)))) :
                                                          ∃ (sample : CenterSample n N), IsGoodCenterList n rIn rOut T sample.toList

                                                          The same log-threshold finish, deriving positivity of the mean from the positive gap and the inequality T + gap ≤ mean.

                                                          theorem PebblingLean.Hypercube.hasSolvableAtMostSize_of_optimized_chord_annulusMean_log_of_mean_gap {n N rIn rOut T : } {gap : } (hgap_pos : 0 < gap) (hmean : T + gap N * (annulusMean n rIn rOut)) (hlog : ↑(n + 1) * Real.log 2 gap ^ 2 / (4 * 2 ^ (rOut - rIn) * (N * (annulusMean n rIn rOut)))) :

                                                          Costed high-demand conclusion with positivity of the mean derived from the mean-gap hypothesis.

                                                          theorem PebblingLean.Hypercube.hasHighDemandDistribution_of_optimized_chord_annulusMean_log_of_mean_gap {n N rIn rOut T : } {gap : } (hgap_pos : 0 < gap) (hmean : T + gap N * (annulusMean n rIn rOut)) (hlog : ↑(n + 1) * Real.log 2 gap ^ 2 / (4 * 2 ^ (rOut - rIn) * (N * (annulusMean n rIn rOut)))) :
                                                          HasHighDemandDistribution n T (N * 2 ^ rOut) (2 ^ rOut)

                                                          High-demand conclusion from the optimized chord estimate and logarithmic union-bound criterion.

                                                          theorem PebblingLean.Hypercube.exists_goodCenterSample_of_bernsteinExponentialMomentBound {n N rIn rOut T : } {variance scale gap : } {eps : } (hmoment : BernsteinExponentialMomentBound n N rIn rOut T variance scale gap) (hexp : Real.exp (-bernsteinExponent variance scale gap) eps) (hunion : (Fintype.card (HypercubeVertex n)) * eps < 1) :
                                                          ∃ (sample : CenterSample n N), IsGoodCenterList n rIn rOut T sample.toList
                                                          theorem PebblingLean.Hypercube.hasSolvableAtMostSize_of_bernsteinExponentialMomentBound {n N rIn rOut T : } {variance scale gap : } {eps : } (hmoment : BernsteinExponentialMomentBound n N rIn rOut T variance scale gap) (hexp : Real.exp (-bernsteinExponent variance scale gap) eps) (hunion : (Fintype.card (HypercubeVertex n)) * eps < 1) :
                                                          theorem PebblingLean.Hypercube.exists_goodCenterSample_of_oneCenterDistanceSum {n N rIn rOut T : } {lam variance scale gap : } {eps : } (hbound : OneCenterDistanceSumExponentialMomentBound n N rIn rOut T lam (Real.exp (-bernsteinExponent variance scale gap))) (hexp : Real.exp (-bernsteinExponent variance scale gap) eps) (hunion : (Fintype.card (HypercubeVertex n)) * eps < 1) :
                                                          ∃ (sample : CenterSample n N), IsGoodCenterList n rIn rOut T sample.toList
                                                          theorem PebblingLean.Hypercube.hasSolvableAtMostSize_of_oneCenterDistanceSum {n N rIn rOut T : } {lam variance scale gap : } {eps : } (hbound : OneCenterDistanceSumExponentialMomentBound n N rIn rOut T lam (Real.exp (-bernsteinExponent variance scale gap))) (hexp : Real.exp (-bernsteinExponent variance scale gap) eps) (hunion : (Fintype.card (HypercubeVertex n)) * eps < 1) :