Closing cryptographic negligibility bounds #
negligible proves Cslib.Crypto.Negligible f by combining the fun_prop closure rules for
Negligible, PolynomiallyBounded, PolynomiallyBoundedNNReal, and
PolynomiallyLowerBounded with comparison against explicit pointwise or eventual upper bounds in
ℝ≥0 or ℝ.
negligiblenormalizes localletbindings, unary polynomial-time certificates (ComputableInPolyTime f encUnary encUnary),Bool-indexedNegligiblehypotheses, pointwisePioperations, and unit fractions1 / x, then runsfun_propwith arithmetic dischargers (norm_num,positivity,omega).negligible [f, g](combinable withusing hleoreventually hle) unfolds named wrapper definitions in the residualNegligiblegoal before normalization.negligible using hlereducesNegligible falong a pointwise boundhleproving either∀ n, f n ≤ B ninℝ≥0or∀ n, (f n : ℝ) ≤ B ninℝ(including.toRealbounds onGame.succProbability), pushingReal.toNNRealstructurally through sums, products, quotients, powers, reciprocals, square roots, finite sums, and casts without manualNNRealmirror terms.negligible eventually hleperforms the same reduction along an eventual bound∀ᶠ n in Filter.atTop, …inℝ≥0orℝ.
Main definitions #
negligible: closeCslib.Crypto.Negligiblegoals directly or from ausing/eventuallyupper bound.
Bound Real.toNNReal x by u when (u : ℝ) = x.
Monotonicity of Real.toNNReal across Real.sqrt without nonnegativity hypotheses.
Pull Nat.cast out across + ofNat(k) in ℝ≥0.
Pull Nat.cast out across ofNat(k) + in ℝ≥0.
Pull Nat.cast out across ofNat(k) * in ℝ≥0.
Pull Nat.cast out across * ofNat(k) in ℝ≥0.
Optional bracketed identifier list [f₁, f₂, …] for negligible.
Pointwise bound clause using hle for negligible.
Eventual bound clause eventually hle for negligible.
negligible proves Cslib.Crypto.Negligible f using fun_prop closure rules for polynomial
losses, dyadic reciprocals ((2 : ℝ≥0) ^ n)⁻¹ and 1 / 2 ^ n, birthday bounds, square roots,
geometric decay, parameter shifts/scalings, and finite range sums.
negligible [f, g]unfolds named wrapper definitions in theNegligiblegoal before normalization (combinable withusing hleoreventually hle).negligible using hlefirst reduces the goal alonghle, wherehleproves either∀ n, f n ≤ B ninℝ≥0or∀ n, (f n : ℝ) ≤ B ninℝ.negligible eventually hlefirst reduces the goal alonghle, wherehleproves either∀ᶠ n in Filter.atTop, f n ≤ B ninℝ≥0or∀ᶠ n in Filter.atTop, (f n : ℝ) ≤ B ninℝ.
Elaborate negligible, negligible [defs], negligible using hle, and
negligible eventually hle.