Documentation

CslibFrontier.Foundations.Data.BitString.List.Binary.Clock

Short binary clocks for exponential bounds #

An all-ones word with m + c₁ + c₂ + 1 bits exceeds c₁ * 2 ^ m + c₂ numerically. Thus a clock of linear word length can bound an exponential computation. The argument is extracted from bounded-acceptance completeness so that bounded termination can reuse the same clock.

Main results #

theorem Cslib.BitString.le_binaryValue_replicate_true (m c₁ c₂ : ℕ) :
c₁ * 2 ^ m + c₂ ≤ binaryValue (List.replicate (m + c₁ + c₂ + 1) true)

An exponential bound has an all-ones binary clock whose length is affine in its exponent.