Documentation

Complexitylib.Classes.P.Preimage

Closure of P under FP preimages #

Main result #

theorem Complexity.mem_P_preimage {f : List BoolList Bool} {L : Language} (hf : f FP) (hL : L P) :

If f is polynomial-time computable and L is polynomial-time decidable, then the preimage language {x | f x ∈ L} is in P.