TITLE: Computational complexity of proof verification
QUESTION [5 upvotes]: Let $\mathcal{L}$ be a recursive first-order theory, with a deductive system $\Xi$ (for instance, Hilbert-Ackerman proof system). Let $\phi$ be a formula and let $l=(\psi_1, \ldots, \psi_n=\phi)$ be a sequence of formulas.

Question 1: Suppose we what want to discuss the (asymptotical) computational complexity cost of checking wether $l$ constitutes a proof for the pair $(\mathcal{L}, \Xi)$. What are the relevant numerical parameters, depending on $L$, involved in such a complexity function, and to which complexity class it belongs (P, NP, etc)?

Question 2: How much the complexity of verifying $l$ is a proof changes if we change the deductive system (Gentzen's style, for instance), or consider a suitable higer-order theory, or etc?


I apologize in advance about question 2, I hope it makes sense (albeit it is a somewhat non-rigorous question).
The motivation of these questions are the very famous work of Gödel, On the lenght of proofs, and naturally, P=NP? problem.

REPLY [10 votes]: Your setup doesn't provide any complexity restrictions on determining whether a formula is an axiom or not, beyond demanding that this is computable. Thus, you won't be able to limit the complexity of proof verification either.
Determining the axioms is going to be the only issue, though. Any reasonable proof system will make verifiying proofs a polynomial-time problem relative to an oracle for the axioms. Typically, quadratic time would do: You read through the proof step by step, check whether the pre-requisites are really there; and if so, if the deduction step matches the rules.