Documentation

LeanPool.SingleCopyStabilizer.FiniteProbability

Finite probability calculations for adaptive stabilizer learning #

These are finite counting identities and real inequalities used in the paper. They do not assert the quantum measurement laws, independence of physical samples, or stochastic domination of a history-dependent stopping time.

The uniform probability mass function on a nonempty finite type.

Equations
Instances For

    The collision mass of a finite vector of class probabilities.

    Equations
    Instances For
      theorem LeanPool.SingleCopyStabilizer.FiniteProbability.independent_collision_mass {A : Type u_1} [Fintype A] (p : A → ℝ) [DecidableEq A] :
      (∑ a : A, ∑ b : A, if a = b then p a * p b else 0) = collisionMass p

      For independent draws with weights p, the diagonal of the product weight has total mass ∑ a, p a².

      theorem LeanPool.SingleCopyStabilizer.FiniteProbability.one_le_card_mul_collision {A : Type u_1} [Fintype A] (p : A → ℝ) (hp : ∑ a : A, p a = 1) :

      Cauchy--Schwarz in the form used for the coset collision estimate.

      theorem LeanPool.SingleCopyStabilizer.FiniteProbability.inv_card_le_collision {A : Type u_1} [Fintype A] [Nonempty A] (p : A → ℝ) (hp : ∑ a : A, p a = 1) :

      Any normalized class weights have collision mass at least 1 / #A.

      theorem LeanPool.SingleCopyStabilizer.FiniteProbability.inverse_two_pow_le_collision {A : Type u_1} [Fintype A] (p : A → ℝ) (hp : ∑ a : A, p a = 1) (r : ℕ) (hcard : Fintype.card A ≤ 2 ^ r) :

      At most 2^r cosets give the paper's collision lower bound 2^(-r). The expression on the left is written 1 / 2^r to use natural exponents.

      Fixing a difference leaves precisely one free outcome: (x,y) ↦ y, with inverse y ↦ (u+y,y).

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

        Translating both samples by the same affine offset leaves their additive difference unchanged.

        Every difference has exactly #G ordered representations in G × G.

        Thus the difference of two independent uniform samples is uniform, expressed as the ratio of favorable ordered pairs to all ordered pairs.

        The probability-mass-function pushforward of the uniform ordered-pair distribution under subtraction is exactly the uniform distribution on G.

        noncomputable def LeanPool.SingleCopyStabilizer.FiniteProbability.sameClassDifferenceMass {G : Type u_1} [AddCommGroup G] [Fintype G] [DecidableEq G] {A : Type u_2} [Fintype A] (p : A → ℝ) (u : G) :

        The mass of one specified within-class difference when each class is uniform internally and class a has mass p a.

        Equations
        Instances For

          Within-class differences all have the same mass, namely collision mass divided by the size of the common translation group.

          Summing the nonzero within-class differences gives exactly the factor collisionMass p * (1 - 1 / #G) used in the nullity argument.

          theorem LeanPool.SingleCopyStabilizer.FiniteProbability.low_nullity_nonzero_mass_lower_bound {G : Type u_1} [AddCommGroup G] [Fintype G] [DecidableEq G] {A : Type u_2} [Fintype A] (p : A → ℝ) (hp : ∑ a : A, p a = 1) (r j : ℕ) (hclasses : Fintype.card A ≤ 2 ^ r) (hgroup : Fintype.card G = 2 ^ j) :
          1 / 2 ^ r * (1 - 1 / 2 ^ j) ≤ ∑ u ∈ Finset.univ.erase 0, sameClassDifferenceMass p u

          The low-nullity nonzero collision estimate, with the class and translation-space cardinality assumptions displayed explicitly.

          theorem LeanPool.SingleCopyStabilizer.FiniteProbability.survival_le_geometric (s : ℕ → ℝ) (p : ℝ) (hp : p ≤ 1) (hzero : s 0 ≤ 1) (hstep : ∀ (k : ℕ), s (k + 1) ≤ (1 - p) * s k) (k : ℕ) :
          s k ≤ (1 - p) ^ k

          A numerical survival recurrence gives the usual geometric tail. The recurrence is an explicit hypothesis, not a proved law of the algorithm.

          theorem LeanPool.SingleCopyStabilizer.FiniteProbability.finite_survival_sum_le (s : ℕ → ℝ) (p : ℝ) (hp0 : 0 < p) (hp1 : p ≤ 1) (hzero : s 0 ≤ 1) (hstep : ∀ (k : ℕ), s (k + 1) ≤ (1 - p) * s k) (n : ℕ) :
          ∑ k ∈ Finset.range n, s k ≤ (1 - (1 - p) ^ n) / p

          A finite sum of survival terms is bounded by the corresponding finite geometric sum, written in closed form.

          theorem LeanPool.SingleCopyStabilizer.FiniteProbability.finite_survival_sum_le_inverse (s : ℕ → ℝ) (p : ℝ) (hp0 : 0 < p) (hp1 : p ≤ 1) (hzero : s 0 ≤ 1) (hstep : ∀ (k : ℕ), s (k + 1) ≤ (1 - p) * s k) (n : ℕ) :
          ∑ k ∈ Finset.range n, s k ≤ 1 / p

          Thus every finite truncation of the tail sum is at most 1/p. Connecting this to a random variable's expectation is a separate step.

          The success parameter for a positive codimension j.

          Equations
          Instances For

            Every positive level has progress parameter at least one quarter.

            theorem LeanPool.SingleCopyStabilizer.FiniteProbability.reciprocal_sum_le (n : ℕ) :
            ∑ k ∈ Finset.range n, 2 / (1 - (1 / 2) ^ (k + 1)) ≤ 2 * ↑n + 4 - 4 * (1 / 2) ^ n

            A strengthened finite reciprocal-sum estimate. This is an arithmetic bound, not an expectation or stopping-time theorem.

            The paper's strict numerical bound on the sum of reciprocal progress parameters. The connection to expected waiting times is not assumed here.

            theorem LeanPool.SingleCopyStabilizer.FiniteProbability.scaled_reciprocal_sum_lt (r n : ℕ) :
            2 ^ r * ∑ k ∈ Finset.range n, 2 / (1 - (1 / 2) ^ (k + 1)) < 2 ^ r * (2 * ↑n + 4)

            Scaling the same finite bound gives the low-nullity arithmetic bound.