Heavy ENNReal Arithmetic Lemmas #
Extended-nonnegative-real arithmetic identities whose proofs bridge through ENNReal.toReal
and invoke push_cast, ring, nlinarith, or aesop. These proofs are several times more
expensive to elaborate than the general-purpose helpers in ToMathlib.General, so they live
in a separate module that only the files that need them pull in.
Contents #
ENNReal.one_sub_one_sub_mul_one_sub— the identity1 - (1-x)(1-y) = x + y - xyused when combining two bounded failure probabilities.ENNReal.toReal_sub_le_abs_toReal_sub— real-valued bridge for truncated subtraction.ENNReal.gauss_sum_inv_leandENNReal.gauss_sum_inv_eq— the Gauss sum∑_{k<n} k/N ≤ n²/(2N)(and its equality variant), the arithmetic core of the birthday bound.ENNReal.add_div_two_mul_nat— a nat-cast identity pairinga/(2N)withb/Nover the common denominator2N.