By Stephen Cook and Robert A. Reckhow. Journal of Symbolic Logic 44(1), 36–50, March 1979.
Locator: §1, Definition 1.3 and pp.38–39 describe the polynomial-time surjective proof function and encoding invalid proofs as a fixed tautology.