Documentation

Complexitylib.Classes.P.PairWithInput

Polynomial-time pairing with the original input #

Main result #

theorem Complexity.mem_FP_pairWithInput {f : List BoolList Bool} (hf : f FP) :
(fun (x : List Bool) => pair (f x) x) FP

A polynomial-time function can be evaluated and paired with its unchanged original input in polynomial time.