Magnitude bounds on integer powers and list sums #
Bounds on the absolute value Int.natAbs of powers of integers, and bounds on the absolute
value of sums and prefix sums of lists of integers bounded termwise.
Main results #
Int.natAbs_pow_le:(z ^ q).natAbs ≤ H ^ Mwhenz.natAbs ≤ Handq ≤ M.List.natAbs_sum_le_length_mul:l.sum.natAbs ≤ l.length * Cwhen every element oflis bounded byC.List.natAbs_sum_take_le_length_mul: every prefix sum oflis bounded byl.length * C.List.natAbs_sum_take_le_of_length_le: prefix sums are bounded bym * Cwhenl.length ≤ m.List.natAbs_getD_le_of_forall:getDwith default0preserves elementwisenatAbsbounds.