Negligibility of dyadic bounds and fun_prop closure rules #
Inverse powers of two ((2 : ℝ≥0) ^ n)⁻¹ and (1 : ℝ≥0) / 2 ^ n, polynomial numerators
(p n : ℝ≥0) / 2 ^ n, birthday-bound ratios ((p n).choose 2 : ℝ≥0) / 2 ^ n, and reindexed
dyadic tails (1 : ℝ≥0) / 2 ^ f n with n ≤ f n are negligible. An entropy surplus of twice the
security parameter gives geometric decay after taking a square root.
This module also registers pointwise fun_prop closure rules for Cslib.Crypto.Negligible beyond
those in CslibFrontier.Crypto.Negligible: nonnegative polynomial factors
(Cslib.Crypto.PolynomiallyBoundedNNReal, covering constants, ℕ casts, sums, products, and fixed
powers), division by constants and reciprocal-negligible denominators, positive integer powers,
geometric decay, finite range sums, and parameter reindexing along
Cslib.Crypto.PolynomiallyLowerBounded schedules (shifts, positive multiples, and division by a
positive constant).
Main definitions #
Cslib.Crypto.PolynomiallyBoundedNNReal:ℝ≥0-valued functions bounded pointwise by aPolynomiallyBoundednatural function.Cslib.Crypto.PolynomiallyLowerBounded: parameter schedulesg : ℕ → ℕsatisfyingn ≤ c * (g n + 1) ^ d, along whichNegligibleis preserved under composition.
Main results #
Cslib.Crypto.negligible_inv_two_pow,Cslib.Crypto.negligible_one_div_two_pow,Cslib.Crypto.negligible_const_div_two_pow: dyadic base bounds.Cslib.Crypto.negligible_inv_two_pow_of_eventually_le,Cslib.Crypto.negligible_inv_two_pow_of_le,Cslib.Crypto.negligible_inv_two_pow_comp_of_le: reindexed dyadic bounds whenn ≤ f n.Cslib.PolynomiallyBounded.negligible_mul_inv_two_pow,Cslib.PolynomiallyBounded.negligible_div_two_pow,Cslib.PolynomiallyBounded.negligible_choose_two_mul_inv_two_pow,Cslib.PolynomiallyBounded.negligible_choose_two_div_two_pow: polynomial and birthday numerators over2 ^ n.Cslib.Crypto.Negligible.polynomiallyBoundedNNReal_mul,Cslib.Crypto.Negligible.mul_polynomiallyBoundedNNReal,Cslib.Crypto.Negligible.polynomiallyBoundedNNReal_div,Cslib.Crypto.Negligible.const_mul,Cslib.Crypto.Negligible.mul_const,Cslib.Crypto.Negligible.div_const_right,Cslib.Crypto.Negligible.mul_polynomiallyBounded,Cslib.Crypto.Negligible.polynomiallyBounded_div,Cslib.Crypto.Negligible.div_of_inv,Cslib.Crypto.Negligible.const_div,Cslib.Crypto.Negligible.inv_mul_left,Cslib.Crypto.Negligible.inv_mul_right,Cslib.Crypto.Negligible.inv_pow_add_const,Cslib.Crypto.Negligible.pow,Cslib.Crypto.Negligible.comp_polynomiallyLowerBounded,Cslib.Crypto.Negligible.shift_left,Cslib.Crypto.Negligible.mul_param_left,Cslib.Crypto.Negligible.mul_param_right,Cslib.Crypto.Negligible.sum_range_const,Cslib.Crypto.Negligible.sum_range_of_le: pointwise closure rules forNegligible.Cslib.Crypto.negligible_of_coe_le,Cslib.Crypto.negligible_of_eventually_coe_le: comparison against real-valued upper bounds viaReal.toNNReal.Cslib.Crypto.sqrt_pow_two_div_pow_two_le,Cslib.Crypto.negligible_sqrt_pow_two_div_pow_two,Cslib.Crypto.negligible_mul_sqrt_pow_two_div_pow_two: square-root dyadic entropy estimates.
Polynomially bounded ℝ≥0 factors #
A nonnegative real-valued function P : ℕ → ℝ≥0 is polynomially bounded when it is dominated
pointwise by a PolynomiallyBounded natural function. Multiplying a negligible function by such a
factor preserves negligibility without requiring casts to be pulled to a single Nat.cast head.
Nonnegative constants are polynomially bounded.
Natural-cast polynomially bounded functions are polynomially bounded in ℝ≥0.
Sums of polynomially bounded ℝ≥0 functions are polynomially bounded.
Products of polynomially bounded ℝ≥0 functions are polynomially bounded.
Fixed powers of polynomially bounded ℝ≥0 functions are polynomially bounded.
Dividing by a nonnegative constant preserves a polynomial bound in ℝ≥0.
Reindexing along a polynomially bounded natural function preserves a polynomial bound in
ℝ≥0.
Polynomially lower-bounded parameter schedules #
A parameter schedule g : ℕ → ℕ is polynomially lower-bounded when n is bounded by a
polynomial in g n. Composing a negligible function on the right with such a schedule preserves
negligibility.
A polynomially lower-bounded schedule tends to infinity.
Pointwise larger schedules remain polynomially lower-bounded.
The identity parameter is polynomially lower-bounded.
Adding any nonnegative offset on the right preserves a polynomial lower bound.
Adding any nonnegative offset on the left preserves a polynomial lower bound.
Multiplying on the left by a positive natural preserves a polynomial lower bound.
Multiplying on the right by a positive natural preserves a polynomial lower bound.
Dividing by a positive natural constant preserves a polynomial lower bound.
Positive powers preserve a polynomial lower bound.
Compositions of polynomially lower-bounded schedules are polynomially lower-bounded.
Pointwise algebraic and parameter closure rules #
Reindexing a negligible bound along a polynomially lower-bounded schedule preserves negligibility.
Multiplying a negligible bound on the left by a polynomially bounded ℝ≥0 factor preserves
negligibility.
Multiplying a negligible bound on the right by a polynomially bounded ℝ≥0 factor preserves
negligibility.
A polynomially bounded ℝ≥0 numerator over a denominator with negligible reciprocal is
negligible.
Multiplying a negligible bound on the left by a nonnegative constant preserves negligibility.
Multiplying a negligible bound on the right by a nonnegative constant preserves negligibility.
Dividing a negligible bound by a nonnegative constant preserves negligibility.
Multiplying a negligible bound on the right by a polynomially bounded factor preserves negligibility.
Dividing a negligible bound by a function whose reciprocal is negligible preserves negligibility.
A polynomially bounded numerator over a denominator with negligible reciprocal is negligible.
A nonnegative constant over a denominator with negligible reciprocal is negligible.
Scaling inside a reciprocal on the left preserves negligibility.
Scaling inside a reciprocal on the right preserves negligibility.
Adding a fixed constant to the exponent of a reciprocal power preserves negligibility.
Positive integer powers preserve negligible decay.
Shifting the security parameter by a left-hand additive constant preserves negligibility.
Scaling the security parameter on the left by a positive natural preserves negligibility.
Scaling the security parameter on the right by a positive natural preserves negligibility.
Summing a uniform negligible bound over a polynomially bounded Finset.range preserves
negligibility.
Summing indexed terms uniformly bounded by a negligible function over Finset.range (p n) is
negligible when p is polynomially bounded.
Dyadic and birthday bounds #
Reindexing (1 : ℝ≥0) / 2 ^ f n along any schedule eventually satisfying n ≤ f n is
negligible.
Any schedule satisfying n ≤ f n makes (1 : ℝ≥0) / 2 ^ f n negligible.
Any schedule satisfying n ≤ f n makes ((2 : ℝ≥0) ^ f n)⁻¹ negligible.
The inverse power of two ((2 : ℝ≥0) ^ n)⁻¹ is negligible.
The dyadic unit fraction (1 : ℝ≥0) / 2 ^ n is negligible.
A constant natural numerator over 2 ^ n is negligible.
Real-valued upper bounds #
A nonnegative function bounded pointwise in ℝ by B n is negligible when Real.toNNReal ∘ B
is negligible.
A nonnegative function eventually bounded in ℝ by B n is negligible when
Real.toNNReal ∘ B is negligible.
Square-root entropy estimates #
A square-root dyadic ratio √(2 ^ outputBits n / 2 ^ sourceBits n) is negligible under an
eventual entropy surplus of twice the security parameter.
A polynomial number of square-root dyadic errors is negligible under an eventual entropy surplus of twice the security parameter.
A polynomially bounded factor times ((2 : ℝ≥0) ^ n)⁻¹ is negligible.
A polynomially bounded numerator over 2 ^ n is negligible.
A birthday pair count (p n).choose 2 times ((2 : ℝ≥0) ^ n)⁻¹ is negligible when p is
polynomially bounded.
A birthday pair count (p n).choose 2 over 2 ^ n is negligible when p is polynomially
bounded.