Documentation

Complexitylib.Classes.P.Composition

Closure of FP under composition #

Main result #

theorem Complexity.mem_FP_comp {f g : List Bool → List Bool} (hf : f ∈ FP) (hg : g ∈ FP) :
g ∘ f ∈ FP

The composition of two polynomial-time string functions is polynomial-time.