Ceiling logarithms of powers #
Encoding an m-tuple over an alphabet of size n in base b uses ⌈log_b (n ^ m)⌉ digits, which
is at most m · ⌈log_b n⌉ (Nat.clog_pow_le_mul), the cost of encoding each coordinate separately.
Main results #
Nat.clog_pow_le_mul:⌈log_b (n ^ m)⌉ ≤ m · ⌈log_b n⌉.Nat.clog_le_self:⌈log_b n⌉ ≤ n.
Ceiling logarithm is bounded by its argument: ⌈log_b n⌉ ≤ n.