Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.ResourceBounds.Polynomial.Envelope

A common coefficient and degree for polynomial bounds #

PolyBounded.exists_le_succ_pow absorbs a polynomial's coefficient and degree into one constant K * (size + 1) ^ K that may be enlarged freely, and PolyBounded.exists_le_self_pow does the same with size ^ K when the size is positive. These are useful when assembling resource envelopes whose time bound also contains a separate, possibly exponential, factor.

theorem Turing.MultiTapeTM.PolyBounded.exists_le_succ_pow {α : Type u_1} {size u : α → ℕ} (h : PolyBounded size u) :
∃ (K : ℕ), ∀ K' ≥ K, ∀ (a : α), u a ≤ K' * (size a + 1) ^ K'

A polynomial bound can use one constant as both coefficient and degree, and any larger constant also works.

theorem Turing.MultiTapeTM.PolyBounded.exists_le_self_pow {α : Type u_1} {size u : α → ℕ} (h : PolyBounded size u) :
∃ (K : ℕ), ∀ (a : α), 1 ≤ size a → u a ≤ K * size a ^ K

A polynomial bound at positive sizes can use one constant as both coefficient and degree. No bound at size zero is asserted.