Proof Theory in Computability

Abstract

We discuss proof theoretic methods together with applications to traditional theory of computability including familiar problems of propositional complexity. We show that modern proof compressing techniques enable to prove the conjecture NP = coNP = PSPACE and discuss shortcomings of conventional methods to handle alternative solutions.

Share and Cite:

Gordeev, L. and Haeusler, E.-H. (2026) Proof Theory in Computability. Advances in Pure Mathematics, 16, 867-887. doi: 10.4236/apm.2026.1611043.

1. Introduction

1.1. Complexity Classes

Recall standard definitions and well-known results concerning complexity classes NP, coNP and PSPACE (cf. e.g. [1]-[4]).

A language L⊆ { 0,1 } * is in NP (resp. coNP) if there exists a polynomial p and a polynomial-time TM M such that a given input x∈ { 0,1 } * is in L iff M( x,u )=1 for some (resp. every) u∈ { 0,1 } * of the length | u |≤p( | x | ) . Note that coNP is complementary to NP (and vice versa). However, it is unclear a priori whether symmetric difference ( NP\coNP )∪( coNP\NP ) is empty or not. In the former case, we’ll arrive at NP = coNP, which looks more natural and/or plausible, as it reflects an idea of logical equivalence between model theoretical (re: NP) and proof theoretical (re: coNP) interpretations of non-deterministic polynomial-time computability.

Now L⊆ { 0,1 } * is in PSPACE if there exists a polynomial p and a TM M such that for every input x∈ { 0,1 } * , the total number of non-blank locations that occur during M ’s execution on x is at most p( | x | ) , and x is in L iff M( x )=1 . Thus PSPACE requires polynomial upper bounds only on the space, but not time, of entire computation. It is well-known that NP and coNP are both contained in PSPACE, but a priori unclear whether at least one of these classes is a proper subclass of PSPACE. It is known, however, that the assumption NP = PSPACE implies NP = coNP, while validity problem in propositional minimal logic, VAL, is representable by a language L⊆ { 0,1 } * from PSPACE.

Keeping this in mind, we ask how to solve our crucial problem.

( Q ): Is PSPACE contained in NP or not?

To confirm the affirmative assumption, it will suffice to find a proof system T in minimal logic whose provability assertion “derivation ∂ proves formula φ ” has polynomial certificate (i.e. is verifiable by a TM in time polynomial in the weight of ∂ ) and such that every formula φ∈VAL is provable by a derivation ∂ whose weight is polynomial in the size of φ . To this end, we let T be a suitable dag-like modification NM → D of Prawitz’s ND for purely implicational minimal logic (see below) and prove the required assertions. Our proof system NM → D is weaker (though sound and complete for minimal logic) than more familiar tree-like ND presentations and conventional dag-like versions thereof. The main difference is rooted in our modified notion of the dag-like provability that is determined by the requirement “all regular deductive paths are closed”, for a suitable condition of regularity involved. Another crucial advantage of NM → D follows directly from its dag-like structure that enables us to compress given “huge” tree-like derivations into the desired “small” dag-like ones.

By contrast, it is unclear how to prove ( Q )’s negation, should the assumption fail. To conclude that a given L⊆ { 0,1 } * is not in NP, it would not suffice to prove superpolynomial lower bounds on proofs in a chosen proof system T because no explicit description of all polynomially equivalent proof systems involved is currently known. For instance, an attempt to address so-called Frege systems (cf. [5] [6] and attached references) fails, as demonstrated in this paper by Example 6 (see Section 1.3, 2.2 below) showing that our proof system NM → D has no analogy in [6]. Indeed, [6] deals with special proof systems claimed to obey exponential lower bounds for proofs of minimal tautologies, whereas our NM → D that is based on the regular dag-like provability has polynomial upper bounds in question. Thus exponential lower bounds claimed in [6], though interesting, are not relevant to our affirmative solution NP = coNP = PSPACE [7] [8]1, and hence Frege systems and equivalent natural deductions from [6] appear useless to ( Q ).

1.2. Logic and Proof Systems

In early 20th century logic proofs (a.k.a. deductions, derivations) used to be understood in linear form: Formula φ is derivable from axioms A (abbr.: A⊢φ ) iff

( ∃ φ 0 ,⋯, φ n )( φ= φ n  and ( ∀k≤n ) φ k ∈A and ( ∃i,j<k ) φ j = φ i → φ k ),

i.e. φ k follows from φ i and φ j by the rule “modus ponens” (detachment). Other sound rules of inference were treated analogously. These definitions featured linear presentation of mathematical proofs of new theorems via axioms, known theorems, suitable lemmas, etc. Corresponding proof systems in mathematical logic are called Hilbert-Bernays style calculi (due to [9] [10], see also [11] [12]); certain extended versions are also called Frege systems. Proofs in the algebraic logic (boolean and relation algebras) are understood analogously with regard to standard equational calculus and the transitivity rule of “=”, instead of modus ponens (see e.g. [13]).

Graph-theoretic interpretations of logic proofs lead to genuine structural proof theory, where basic proof systems are natural deduction (ND) and sequent calculus (SC), initiated by Gentzen [14] [15] and further developed in [16] resp. [17]-[21] (etc.). Here proofs are usually presented in tree-like form, where branching points are determined by the conclusions of (at least binary) rules involved. ND proofs contain single formulas, unlike SC proofs containing sequents instead. Note that ND proofs have no axioms. Instead, all assumptions shall be discharged according to special conditions on the threads. Both ND and SC allow normalizations (mutually different) making proofs more transparent and suitable for analysis.

Linear proofs admit tree-like interpretation, and v.v. Different nodes in tree-like proofs might correspond to identical formulas (“references”) φ i , φ j occurring in linear proofs A⊢φ (sequent case is analogous). So passing to tree-like proofs might essentially increase the size of linear inputs. The opposite direction is called proof compression. Actually we compress tree-like ND proofs into dag-like ND proofs (dag = directed acyclic graph) by merging different nodes labeled with identical formulas.

Classical propositional logic provides natural interpretations of NP and coNP. Namely, well-known propositional satisfiability and validity problems SAT and VAL are, respectively, NP- and coNP-complete. That is, any given language encoding satisfiable (resp. valid) formulas is universal for the whole class NP (resp. coNP). However, classical proof systems correlated with VAL are less helpful for the comparison NP vs coNP, as the size of related proofs of classical tautologies x tends to be exponential in | x | . Minimal propositional logic [22] [23] provides more suitable refinements. So we replace classical logic by the minimal one while keeping in mind polynomial-size interpretation of the former. Our chosen proof system (call it T ) is a Prawitz-style ND calculus adapted to minimal logic. This choice is not new, except for our notion of the dag-like provability. To put it more exactly, conventional interpretation of T (or other ND) assumes that deductions ∂∈T are rooted trees whose nodes are assigned with formulas ordered according to the inference rules allowed in T (locally correct deductions). Top formulas and the root one are called assumptions and conclusion of ∂ , respectively. Proofs are locally correct deductions whose all assumptions are discharged (cf. [16]). We consider a more liberal interpretation allowing dag-like deductions ∂∈T ordered as dags (directed acyclic graphs), not necessarily trees. Such dag-like proofs require a more sophisticated notion of provability (cf. Section 1.2 below). Obviously dag-like deductions tend to be smaller (even exponentially) than corresponding tree-like ones. We elaborated special horizontal compressing techniques that allow to compress “huge” tree-like proofs ∂∈T into “small” dag-like proofs ∂ 0 ∈T with the same conclusions such that proof correctness of ∂ 0 is verifiable in polynomial time by deterministic TM.

1.3. More on Tree- vs Dag-Like Provability

Propositional minimal logic is determined by two axioms α→( β→α ) and ( α→( β→γ ) )→( ( α→β )→( α→γ ) ) and rule modus ponens α      α→β β in the Hilbert-style formalism whose vocabulary includes propositional variables and one propositional connective “ → ” (implication; α , β , γ , etc. are arbitrary formulas). The intuitionistic logic extends minimal logic by one constant ⊥ (falsity) and new axiom ⊥ →α . It is well-known that there are polynomial-size validity-preserving embeddings of classical into intuitionistic and intuitionistic into minimal logic, respectively. Instead of Hilbert-style systems for minimal and intuitionistic logic, we consider Gentzen-style sequent calculus (SC) and Prawitz-style natural deductions (ND). These proof systems admit well-known proof-optimization: cut elimination in SC and normalization in ND.

Cut elimination provides sound and complete systems of inferences without cut rule (that is equivalent to modus ponens). Inferences in resulting cutfree SC systems satisfy a sort of subformula property (:all premise formulas occur as (sub)formulas in the conclusions), which enables better proof search strategies. We can also assume that the heights of cutfree proofs are linear in the size of conclusions (this is not obvious for intuitionistic and/or minimal logic, see [20] [24]). In ND, the normalization allows to use just normal proofs that are known to satisfy weak subformula property (:every formula occurring in a maximal path occurs as (sub)formula in the conclusion), see [16]. However, there are no polynomial upper bounds on the heights of arbitrary normal deductions in ND.

These optimizations have been elaborated for standard tree-like versions of SC and ND. Note that tree-like approach can’t provide polynomial upper bounds on the size of resulting proofs. To achieve this goal, we formalize another idea called horizontal compression. That is, in a given tree-like proof we merge all nodes labeled with identical objects (sequents or formulas) occurring on the same level such that in the compressed dag-like proof every level will contain mutually different objects. In the case of SC the compressed polynomial-height dag-like proofs still might be too large due to possibly exponential number of distinct sequents occurring in it. Therefore, we prefer to compress tree-like ND proofs whose height is polynomial in the size of conclusion. Since ND proofs operate with single formulas (not sequents!), the horizontal compression in question will provide us with desired polynomial-weight dag-like deductions. However, our dag-like proofs require a more sophisticated notion of provability.

2. Survey of Proofs

Recall that minimal logic [22] is determined by two axioms α→( β→α ) and ( α→( β→γ ) )→( ( α→β )→( α→γ ) ) and rule modus ponens α      α→β β in the Hilbert-style formalism whose vocabulary includes propositional variables and connective “ → ” ( α , β , γ , etc. denote corresponding formulas).

2.1. Basic Tree-Like Natural Deductions

Our basic Natural Deduction calculus for minimal logic, NM → , includes two kinds of inference rules ( →I ) and ( →E ) :

( →I ): β α→β   and   ( →E ): α      α→β β  .

Its extended version, NM → + , also includes repetition rules ( R ) n , n≥1 :

( R ) n : α    ⋯    α α ︷ n times  .

Furthermore, denote by NM → T a subsystem of NM → + that includes only special instances of ( R ) n ,n>1 , whose identical premises are conclusions of pairwise different instances of ( →I ) , ( →E ) and/or ( R ) 1 (which we also abbreviate ( R ) ). Such instances of multipremise repetitions we call separation rules, abbr.: ( S ) . So ( S ) can be a ( R ) 2 from Example 6 (below):

​ α      α→β β        δ      δ→β β β  ,

while the mostly involved instance of ( S ) is ( R ) s+2 of the following shape, for pairwise different α,β and γ 1 ,⋯, γ s :

​ β α→β      α→β α→β      γ 1       γ 1 →( α→β ) α→β     ⋯     γ s       γ s →( α→β ) α→β α→β  .

Tree-like NM → ( − ) -deductions ∂ are finite rooted trees whose nodes are labeled with purely implicational formulas ( α,β,γ , etc.) ordered in accordance with the inferences exposed; we also assume that all top nodes (the leaves) have the same height h in ∂ (this is easily achieved using ( R ) , if necessary).

A maximal deductive path Θ=[ x 0 ,⋯, x h =r ] connecting leaf x 0 labeled α with the root r labeled ρ is called closed (otherwise open) if there exists i<h such that x i is the conclusion of ( →I ) labeled α→β (for some β ); such ( →I ) we also denote ( → α I ) and call discharged corresponding assumptions α (which for the sake of brevity are exposed in square brackets). These discharged assumptions are decorated as [ α ] (possibly indexed as [ α ] i for superscripts i decorating α→β involved).

Now ρ is called provable in NM → (resp. NM → + ) by a given tree-like deduction ∂ that in turn is called a tree-like proof of ρ (abbr. ∂⊢ρ ), iff every maximal deductive path in ∂ is closed.

Definition 1. A given tree-like NM → ( NM → + , NM → T )-deduction ∂ proves the conclusion ρ (abbr.: ∂⊢ρ ) iff its every deductive path Θ is closed; such ∂ is called a tree-like proof of ρ . A purely implicational formula ρ is valid in minimal logic iff there exists a tree-like proof of ρ in NM → .

Lemma 2. For any purely implicational formula ρ , the following conditions (A), (B), (C) and (D) are equivalent.

(A) ρ is valid in minimal logic.

(B) There exists a tree-like proof of ρ in NM → + .

(C) There exists a tree-like proof of ρ in NM → T .

(D) ρ is derivable in Hilbert-style formalism of minimal logic (see above).

Proof. (A) ≡ (D) is well-known (see e.g. [16]) and proved by induction on the heights of deductions involved. (B) ≡ (C) ≡ (D) easily follows by the same token. ■

2.2. Basic Dag-Like ND

Now our basic dag-like calculus for minimal logic, NM → D , is a dag-like version of NM → T , except that ( S ) is informally understood as “if at least one premise is proved then so is the conclusion” (unlike standard conjunctive interpretation: “if all premises are proved then so is the conclusion”). Loosely speaking, ( S ) remains sound after deleting some (but not all) of its sources. This requires a more sophisticated formal definition of the NM → D -provability, as follows.

Arbitrary NM → D -deductions ∂ are finite rooted dags (directed acyclic graphs) whose nodes x are labeled with formulas ℓ( x ) . Let V=V( ∂ ) and E=E( ∂ ) denote respectively the sets of nodes and directed edges e=〈 x,y 〉 whose sources x (also called parents) occur above targets y (also called children). Note that unlike in NM → T , parents in NM → D can have many children.

By r∈V and ρ=ℓ( r ) we denote respectively the root and conclusion of ∂ . For any x∈V , let h( x ) denote the height of x in ∂ where h( r )=0 . A will denote the set of top formulas (also called assumptions) occurring in ∂ . We also assume that all top nodes (the leaves) have the same height h=max{ h( x ):x∈V } . Let ⌈ x ⌉=⌈ e ⌉ for e=〈 x,y 〉 abbreviate names ( →I ) , ( →E ) , ( R ) , ( S ) of inferences with conclusion x , while assuming that ⌈ r ⌉≠ ( R ) n .

For any x,y∈V with h( x )<h( y ) , x≺y will abbreviate “ x is reachable from y (i.e. there is a deductive path from y to x )”; x≺ e 2 and e 1 ≺ e 2 will denote x ≺ _ y 2 and x 1 ≺ _ y 2 , respectively, for e i =〈 x i , y i 〉 ( i∈{ 1,2 } ), where x ≺ _ y abbreviates x≺y∨x=y . Thus r≺y and e≺y , for every y∈V , e∈E .

For any e=〈 x,y 〉∈E let h( e ):=h( x ) . For any e=〈 x,y 〉∈E define the assumptions A( e )=A( x )⊆A by A( x ):={ ℓ( z )∈A:h( z )=h&x ≺ _ z } . Thus A( r )=A . Also note that e 1 ≺ e 2 implies A( e 2 )⊆A( e 1 ) .

For any x∈V we denote by IV( x ) and/or IE( x ) and OV( x ) and/or OE( x ) the sets of x -ingoing and x -outgoing vertices and/or edges, respectively.

For any e=〈 x,y 〉∈E and α∈A we also let IE( e ):=IE( x ) , OE( e ):=OE( y ) , IE( e,α )=IE( x,α ):={ e ′ ∈IE( e ):α∈A( e ′ ) } . Thus for any e=〈 x,y 〉∈E , A( e )=A( x )= ∪ e∈IE( x ) A( e ) = ∪ e ′ ∈IE( e ) A( e ′ ) .

We assume that every deduction ∂ in question satisfies standard conditions of local correctness with respect to the inferences involved together with auxiliary assumption ⌈ r ⌉∈{ ( →I ),( →E ) } (cf. e.g. [7]).

Recall that | OE( x ) |>1 is possible in NM → D but not in NM → T .2

To formalize the dag-like provability, we’ll also assume that every ∂∈ NM → D is enriched with a special flow function f:E×A→℘( E ) such that for any e∈E with h( e )<h and α∈A( e ) , it holds

  • ∅≠f( e,α )⊆IE( e,α ) .

Such f and enriched deduction we call regular; the latter we’ll denote ∂ f , rather than ∂ .

Definition 3. In ∂ f ∈ NM → D , f -threads are maximal deductive paths Θ=[ x 0 ,⋯, x h =r ] from leaves x 0 to the root r such that

( ∀0<i<h−1 )〈 x i−1 , x i 〉∈f( 〈 x i , x i+1 〉,ℓ( x 0 ) ).

A f -thread Θ is closed if it contains ( → ℓ( x 0 ) ​I ) , i.e. ( ∃i<h ) ⌈ x i ⌉=( → ℓ( x 0 ) I ) , open otherwise. A given regular deduction ∂ f ∈ NM → D proves its conclusion ρ=ℓ( r ) iff every f -thread in ∂ f is closed; such ∂ f is called a proof of ρ (abbr.: ∂ f ⊢ρ ).3

Theorem 4. A given purely implicational formula ρ is valid in minimal logic iff there exists a regular proof ∂ f ∈ NM → D of ρ .

Proof. 1. The existence of a regular proof ∂ f ∈ NM → D in question easily follows from Definition 1, since any tree-like proof in NM → is a dag-like proof in NM → D with respect to trivial flow function f( e,α )=IE( e,α ) .

2. To show the inverse we unfold any given regular proof ∂ f ∈  NM → D by recursion on k≤h( ∂ ) into a tree-like deduction ∂ ′ := ∂ f h( ∂ ) ( h( ∂ ) )∈ NM → T according to a “roadmap” f , where all intermediate deductions ∂ f k ( k ),k≤h( ∂ ) are tree-like under horizontal level k , i.e. | OE( x ) |≤1 for every node x of the height ≤k . Note that every f k involved is a flow function that is defined for all e∈ ∂ f k ( k ) with h( x )>k and α∈A( e ) by recursion on k along with ∂ f k ( k ) . We also define “reverse” embeddings E k+1 ( ∂ f k+1 ( k+1 ) )∋e↦ ( e ) k+1 − ∈E( ∂ f k ( k ) ) , where E k+1 ( ∂ f k+1 ( k+1 ) ) is the set of edges e∈ ∂ f k+1 ( k+1 ) of the height ≤k+1 . The recursion runs as follows.

In the sequel, for any deduction ∂ and any node x∈∂ , we denote by ( ∂ ) x the subdeduction rooted in x :

( ∂ ) x = [ ( ∂ ) y :y∈IV( x ) ] ℓ( x ) ⌈ x ⌉.

Basis of recursion. Let k≤1 . Then let ∂ f k ( k ):= ∂ f and f k :=f .

Recursion step. ∂ f k​+​1 ( k+1 ) arises by replacing in ∂ f k ( k ) subdags ( ∂ f k ​( k ) ) ​ x by new subdags ( ∂ f k+1 ( k+1 ) ) x or collections thereof, for all nodes x of the height k+1 , Consider two cases.

2.1. Suppose | OE( x ) |≤1 . Then let ( ∂ f k+1 ( k+1 ) ) ​ x :=( ∂ f k ( k ) ) ​ x .

2.2. Suppose | O​E( x ) |=m>1 . If ⌈ x ⌉≠( S ) , we consider the conclusions y 1 ,⋯, y m of ∂ f k ( k ) -edges from OE( x ) . Let x 1 ,⋯, x m be identically labeled ℓ( x i )=ℓ( x ) new nodes connected with y 1 ,⋯, y m by edges 〈 x 1 , y 1 〉,⋯,〈 x m , y m 〉 supplied with old inferences ⌈ y 1 ⌉,⋯,⌈ y m ⌉ . Also let IE( x i ):=IE( x ) . This yields new subdeductions ( ∂ f k+1 ( k+1 ) ) x i , for all i∈[ m ] , instead of ( ∂ f k ( k ) ) ​ x . If ⌈ x ⌉=( S ) , set m ′ :=| A( x ) | and let { x ij :i∈[ m ],j∈[ m ′ ] } be identically labeled ℓ( x ij ):=ℓ( x ) new nodes connected with { y i :i∈[ m ] } by new edges 〈 x ij , y i 〉 supplied with old inferences ⌈ y i ⌉ . Moreover let IE( x ij , α j ):=f( y i , α j ) , provided that A( x )={ α j :j∈[ m ′ ] } . By the regularity of f this yields ∅≠IE( x ij , α j )⊆IE( x, α j ) . Having done this for all i∈[ m ] , j∈[ m ′ ] we replace ( ∂ f k ( k ) ) ​ x by the collection

[ ( ∂ f k+1 ( k+1 ) ) x i :i=i,⋯,m ] ℓ( x ) ⌈ x ⌉.

This completes recursive definition of ∂ f k+1 ( k+1 ) , k+1≤h( ∂ ) . Obviously | OE( x ) |≤1 holds for all x∈ ∂ f k+1 ( k+1 ) of the height ≤k+1 , and hence ∂ ′ = ∂ f k ( h( ∂ ) ) is a tree-like deduction.4 Corresponding new flow function f k+1 is f k restricted to its non-tree-like upper part ∂ f k ( k ) (see above). The regularity of f k+1 easily follows from that of f k .

The embeddings ( e ) k+1 − (see above) are specified as follows, where ( e ) 1 − :=e .

(2.e) ( e ) k+1 − : Suppose e∈E( ∂ f k+1 ( k+1 ) ) and h( e )≤k+1 . If h( e )≤k , then e∈E( ∂ f k ( k ) ) , so let e k+1 − := e k − . Otherwise h( e )=h( x )=k+1 . In the case 2.1 we have | OE( x ) |≤1 and e∈E( ∂ f k ( k ) ) and let e k+1 − := e k − , while in the case 2.2, | O​E( x ) |=m>1 and e=〈 x i , y i 〉 , i∈[ 1,m ] , and then we let e k+1 − :=〈 x, y i 〉∈E( ∂ f k ( k ) ) . The following implication is readily seen.

( ∗ ) e∈ ∂ f k+1 ( k+1 )& e ′ ∈ f k+1 ( e,α )⇒ e k+1 − ∈ ∂ f k ( k )& ( e ′ ) k+1 − ∈ f k ( e k+1 − ,α )

To complete the entire proof, it remains to show that all deductive paths in ∂ ′ are closed, as being isomorphic to closed f -threads occurring in the underlying proof ∂ f ∈  NM → D . The latter easily follows by induction on k≤h:=h( ∂ ) . Indeed, let Θ=[ x 0 ,⋯, x h =r ] be any deductive path in ∂ ′ connecting a leaf x 0 labeled α with the root r . For any i<h set e i :=〈 x i , x i+1 〉∈E( ∂ ′ ) and e −i := ( ( ( ( e i ) h − ) h−1 − )⋯ ) 1 − ∈E( ∂ f ) . According to our definition of ( ⋯ ) k+1 − , there exists a deductive path Θ − =[ x 0 − ,⋯, x h − =r ] in ∂ f such that e −i =〈 x i − , x i+1 − 〉∈E( ∂ f ) . Furthermore, ( ∗ ) shows by induction on i that Θ − is isomorphic to Θ and hence the closure of Θ − in ∂ f implies the required closure of Θ in ∂ ′ . So ∂ ′ proves ρ in NM → T ⊂ NM → + , and hence ρ is valid by Lemma 2. ■

In a given regular ∂ f ∈ NM → D we supply edges e=〈 x,y 〉∈OE( x ) with regular assumptions A f ( e )⊆A( e ) . For the sake of brevity, let us first recall a natural recursive definition of A( e ) with regard to plain deduction ∂ , where for any e∈E( ∂ ) we let I( e ):={ α:⌈ e ⌉=( → α I ) } and ℓ( e ):=ℓ( x ) .

1. If h( e )=h then A( e ):={ ℓ( e ) } .

2. If h( e )<h then A( e ):={ α∈A\I​( e ):( ∃ e + ∈I​E( e ) )α∈A( e + ) } .

3. A( r ):= ∪ e∈IE( r ) A( e ) .

It is easily verified that A( r )=∅ iff every maximal path Θ=[ x 0 ,⋯, x h =r ] in ∂ is closed. In the case of ∂ f we define A f ( e )​ by successive thinning of A( e ) .

1f. If h( e )=h then A f ( e ):={ ℓ( e ) } .

2f. If h( e )<h then A f ( e ):={ α∈A\I​( e ):( ∃ e + ∈f( e,α ) )α∈ A f ( e + ) } .

3f. A f ( r ):= ∪ e∈IE( r ) A f ( e ) .

Lemma 5. For any regular ∂ f ∈ NM → D , A f ( r )=∅ iff ∂ f proves ℓ( r ) (= ρ ). Moreover, the assertion ∂ f ⊢ρ is verifiable by nondeterministic TM in O( | A | )≤O( | V( ∂ ) | ) time.

Proof. For any f -thread Θ=[ x 0 ,⋯, x h =r ] and e=〈 x i , x i+1 〉 for i<h (abbr.: e∈Θ ) let ℓ( Θ ):=ℓ( x 0 ) and Θ ↾ e :=[ x 0 ,⋯, x i+1 ]⊆Θ . Let o( Θ ↾ e ) and o( Θ ) abbreviate “ Θ ↾ e is open”, i.e. ( ∀j≤i ) ⌈ x j ⌉≠( → ℓ( x 0 ) I ) , and “ Θ ↾ e is open”, i.e. ( ∀j≤i ) ⌈ x j ⌉≠( → ℓ( x 0 ) I ) , respectively. Furthermore, for any α∈A denote by T f ( α ) the set of f -threads Θ with α=ℓ( Θ ) . Then for any e∈E we obtain

A f ( e )={ α∈A( e ):( ∃Θ∈ T f ( α ) )( e∈Θ&o( Θ ↾ e ) ) }.

This follows from Definition 3 by straightforward induction on h−h( e ) . Now

A f ( r )=∅ ⇔( ∀e∈IE( r ) ) A f ( e )=∅ ⇔( ∀e∈IE( r ) )( ∀α∈A )( ∀ Θ∈ T f ( α ) )( e∈Θ⇒¬o( Θ ↾ e ) ) ⇔( ∀α∈A )( ∀ Θ∈ T f ( α ) )¬o( Θ )

and hence A f ( r )=∅ iff every f -thread in ∂ f is closed, i.e. ∂ f proves ℓ( r ) . Hence ∂ f ⊢ρ is verifiable by nondeterministic TM with guessed witness A f ( r )⊆A in O( | A | )≤O( | V( ∂ ) | ) time using queries ℓ( x ) ∈ ? A f ( r ) , for all leaves x∈V| ∂ | . ■

Example 6. Consider a tree-like proof ∂∈ NM → of τ→σ :

where

τ:=( δ→( ( δ→β )→( γ→β ) ) )→( ( α→( ( α→β )→( γ→β ) ) )→σ ) .

All deductive paths in ∂ are closed and hence τ→σ is provable in NM → .

Define a regular dag-like deduction ∂ ′ f ∈ NM → D by merging two occurrences γ→β via ( R ) 2 =( S ) with conclusion β :5

with A={ α,α→β,δ,δ→β,τ } (encoded as { 1,2,3,4,5 } ), where f:E×A→℘( E ) is such that for any e=〈 x,y 〉 exposed and any ζ∈A( e ) , f( e,ζ )=IE( e,ζ ) iff ⌈ x ⌉≠( S ) Otherwise, either f( e,ζ )={ e ′ } with ζ∈{ a,α→β } or f( e,ζ )={ e ″ } with ζ∈{ δ,δ→β } , provided that ⌈ x ⌉=( S ) with e ′ and e ″ being the inferences placed in ​( S ) at the left- or right-hand side, respectively All assumptions from A( e i ) are exposed in curly braces, while those from A f ( e i ) are colored red.

It is readily seen that A f ( r )=∅ in ∂ ′ f , while ∂ is the tree-like unfolding of ∂ ′ f . Thus ∂ ′ f is a regular deduction that proves τ→σ by Lemma 5. In contrast, ∂ ′ (without f ) has open paths connecting pairs of edges supplied with the assumptions { 1,2 } , { 1,2,3,4 } , and/or { 3,4 } , { 1,2,3,4 } .

This regular dag-like proof ∂ ′ f also can be presented like this:

Note that ∂ ′ f has open maximal paths connecting assumptions α (or α→β ) with τ→σ via ( δ→β )→( γ→β ) and/or δ (or δ→β ) via ( α→β )→( γ→β ) . However, the other (identically colored red or blue) maximal paths in ∂ ′ (these are called regular) are closed, which already confirms the provability of τ→σ . This is readily seen by the tree-like unfolding of ∂ ′ back to ∂ that eliminates open (i.e. differently colored) dag-like paths in question. Hence our tree-like assertion “every maximal deductive path is closed” is not a necessary condition for the dag-like provability. Instead, we replace it by a more liberal sufficient dag-like condition “every regular maximal deductive path is closed”, where (in ∂ ′ ) these selected regular paths are naturally determined by the multipremise repetition ( S ) involved.

In this example, ∂ and ∂ ′ f both have the same size, i.e. total number of nodes. This might downplay crucial importance of horizontal compression that in the general case, however, provides dag-like deductions tending to be exponentially smaller than tree-like origins.

Definition 7. A given tree (or dag)-like deduction ∂ with conclusion ρ is called polynomial, resp. quasi-polynomial, if its weight ‖ ∂ ‖:= ∑ x∈V( ∂ ) | ℓ( x ) | , resp. height h( ∂ ) times “foundation” ϕ( ∂ ) (:= total weight of distinct formulas from ∂ ), is polynomial in the size of ρ , | ρ | (:= total number of nodes in ∂ ). Note that ‖ ∂ ‖ can exceed both | ∂ | and h( ∂ )⋅ϕ( ∂ ) .

Our crucial result reads:

Theorem 8 (Main Theorem) Any quasi-polynomial tree-like proof ∂ T of ρ in NM → is compressible into a polynomial regular dag-like proof ∂ f ♭ of ρ in NM → D .

The required mapping ∂ T ↪ ∂ f ♭ is obtained by the horizontal compression as explained below.

2.3. Horizontal Compression

Let us briefly explain our proof of the Main Theorem. For any quasi-polynomial tree-like proof ∂ T of ρ  let ∂ ′ be its horizontal compression defined by bottom-up recursion on h( ∂ T ) such that for any k≤h( ∂ T ) , the k th horizontal section of ∂ ′ is obtained by merging all nodes labeled by identical formulas occurring in the k th horizontal section of ∂ T , except for those being premises of ( S ) . The inferences in ∂ ′ are naturally inherited by the ones in ∂ T .6 Obviously ∂ ′ is a dag-like (not necessarily tree-like anymore) deduction with conclusion ρ . Moreover, ∂ ′ is polynomial as ‖ ∂ ′ ‖≤h( ∂ T )⋅ϕ( ∂ T ) . However, ∂ ′ need not preserve basic inferences ( →I ) , ( →E ) . For example, a compressed multipremise configuration

( →I,E ) ′ : β        γ        γ→( α→β ) α→β

that is obtained by merging identical conclusions α→β of

( →I ): β α→β   and   ( →E ): γ         γ→( α→β ) α→β

is not a correct inference in NM → and it should be replaced by a NM → D inference

( S )   β α→β            γ         γ→( α→β ) α→β α→β  .

that has at most ϕ( ∂ T )+2 premises (see Section 2.1). So in order to obtain a correct dag-like deduction we replace all multipremise configurations by the these instances of ( S ) and thereby convert ∂ ′ into a locally correct deduction ∂ D ∈  NM → D having the same set of formulas and the same conclusion ρ . The weight of ∂ D is still polynomial, as h( ∂ D )≤2h( ∂ T ) and hence ‖ ∂ D ‖≤2‖ ∂ T ‖ . Note that arbitrary deductive dag-like paths in ∂ D can arise by concatenating different segments of maximal tree-like deductive paths in ∂ (closed by the assumption). Let ℱ D be the dag-like image of those maximal tree-like deductive paths under the mapping ∂ ↪ ∂ D . Thus every Θ∈ ℱ D is closed. Moreover we observe that ℱ D satisfies the following conditions 1 - 4 of local coherency, where for any maximal dag-like deductive path Θ=[ x 0 ,⋯, x h =r ]∈ ℱ D in ∂ D and any e=〈 x k , x k+1 〉∈Θ , k<h (abbr.: e∈Θ ) we let Θ ⇂ e  :=[ x k+1 ,⋯, x h ] . As above, we call Θ closed if ( ∃i<h ) ⌈ x i ⌉=( → ℓ( x 0 ) I ) .

1. ℱ D is rooted: ( ∀e∈IE( r )⊆E( ∂ D ) )( ∃Θ∈ ℱ D )( e∈Θ ) .

2. ℱ D is closed, i.e. so is every Θ∈ ℱ D .

3. ℱ D preserves ( →E ) : For any e∈Θ∈ ℱ D such that ⌈ e ⌉=( →E ) with IE( e )={ e + , e ′ } and e + ∈Θ , there exists a Θ ′ ∈ ℱ D such that e ′ ∈ Θ ′ and Θ ⇂ e  = Θ ′ ⇂ e .7

4. ℱ d preserves ( S ) : For any e∈Θ∈ ℱ D such that ⌈ e ⌉=( S ) with α∈A( e ) , there exists e ′ ∈IE( e )​ with α∈A( e ′ ) and Θ ′ ∈ ℱ D such that e ′ ∈ Θ ′ and Θ ⇂ e  = Θ ′ ⇂ e .8

These conditions are inherited from analogous properties of tree-like ∂ T by the horizontal compression ∂ T ↪ ∂ D .

Lemma 9. There exists a locally coherent subset ℱ ♭ ⊆ ℱ D and correlated dag-like subdeduction ∂ ♭ ⊆ ∂ D together with regular flow function f in ∂ ♭ such that every f -thread in ∂ ♭ belongs to ℱ , thus being closed as so is ℱ D .

Proof. The required ℱ ♭ , ∂ ♭ and f arise by ascending recursion. In plain words, ℱ ♭ is thought to be a minimal subset of ℱ D enveloping ∂ D . That is, we let ℱ ♭ = ℱ h ♭ := ∪ k=1 h ℱ k ♭ , where ℱ k ♭ ⊆ ℱ D arise by recursion on 0<k<h such that ℱ k ♭ ⊆ ℱ k+1 ♭ and for any Θ ′ ∈ ℱ k+1 ♭ there is a Θ∈ ℱ k ♭ with Θ ⇂ k+1  = Θ ′ ⇂ k+1 . Moreover we let A ♭ = ∪ k=1 h A k ♭ ⊆ A D , where A k ♭ is the set of assumptions occurring in ℱ k ♭ , i.e. A k ♭ ={ α∈A:( ∃Θ=[ x 0 ,⋯, x h =r ]∈ ℱ k ♭ )  α=ℓ( x 0 ) } .

Basis of recursion. Suppose k=1 . We have ⌈ r ⌉∈{ ( →I ),( →E ) } . If ⌈ r ⌉=( →I ) with IE( r )={ x,r } then (since ℱ D is rooted) we choose any Θ∈ ℱ D with x∈Θ and let ℱ 1 ♭ :={ Θ } . Otherwise, if ⌈ r ⌉=( →E ) with IE( r )={ x,r,y,r } , then by the same token let ℱ 1 ♭ :={ Θ 1 , Θ 2 } , for a chosen pair Θ 1 , Θ 2 ∈ ℱ D with x∈ Θ 1 ,y∈ Θ 2 .

Recursion step. Suppose 1<k<h and consider any Θ=[ x 0 ,⋯, x h =r ]∈ ℱ k ♭ . Let e:=〈 x k , x k+1 〉∈Θ and suppose ⌈ e ⌉=( →E ) . Hence IE( e )={ e + , e ′ } with e + ∈Θ , for some e ′ ∉Θ . Then (since ℱ D preserves ( →E ) ) we choose any Θ ′ ∈ ℱ D such that e ′ ∈ Θ ′ with Θ ⇂ e  = Θ ′ ⇂ e and let Θ ′ ∈ ℱ k+1 ♭ . That is, ℱ k+1 ♭ extends ℱ k ♭ by adding a chosen Θ ′ as above. Now suppose ⌈ e ⌉=( S ) with α∈A( e ) . Then (since ℱ d preserves ( S ) ), we choose a e ′ ∈IE( e ) with α∈A( e ′ ) and a Θ ′ ∈ ℱ D such that e ′ ∈ Θ ′ with Θ ⇂ e = Θ ′ ⇂ e and let Θ ′ ∈ ℱ k+1 ♭ . That is, ℱ k+1 ♭ extends ℱ k ♭ by adding a chosen Θ ′ as above. Summing up, ℱ k+1 ♭ extends ℱ k ♭ by adding chosen paths Θ ′ ∈ ℱ D as in both cases ⌈ e ⌉=( →E ) and ⌈ e ⌉=( S ) with α∈A( e ) . If ⌈ e ⌉∉{ ( →E ),( S ) } , we let ℱ k+1 ♭ := ℱ k ♭ .

This completes our recursive definition of ℱ k+1 ♭ , for any k<h , and hence that of ℱ ♭ = ℱ h ♭ .9 Now ∂ ♭ arises by successively collecting all inferences from ∂ D (preserving the names) whose edges occur in Θ∈ ℱ k ♭ . It is readily seen that ∂ ♭ is locally correct; in the only nontrivial cases of ( →E ) and ( S ) this follows from corresponding clauses of the recursion step (see above).

Let us define the flow function f in ∂ ♭ . Let e∈E( ∂ ♭ ) with h( e )<h and α∈ A ♭ ( e ) . Arguing by induction on h( e ) , for any e + ∈I E ♭ ( e,α ):=IE( e,α )∩E( ∂ ♭ ) we stipulate e + ∈f( e,α ) iff there exists Θ=[ x 0 ,⋯, x h =r ]∈ ℱ ♭ such that e=〈 x k , x k+1 〉, e + =〈 x k−1 , x k 〉∈Θ , k>0 , and either e≠( →E ) , or else

( ∗ ) ⌈ e ⌉=( →E ) with I E ♭ ( e,α )={ e + , e ′ } and ( ∃ Θ ′ ∈ ℱ ♭ )( e ′ ∈ Θ ′  and Θ ⇂ k+1 = Θ ′ ⇂ k+1 ).

The condition of f -regularity (see Section 2.2) is easily verified; in the only nontrivial case ⌈ e ⌉=( →E ) if follows from ( ∗ ) according to Recursion step in the construction of ℱ ♭ , since except for ​( S ) and ( →E ) , other inferences ( →I ) and ( R ) have one single premise e + ∈Θ .

It remains to show that every f -thread Θ ♭ =[ x 0 ,⋯, x h =r ] in ∂ ♭ belongs to ℱ ♭ . To this end it will suffice to prove a following proposition:

P: For any f -thread Θ ♭ =[ x 0 ,⋯, x h =r ] , any k>0 with e:=〈 x k , x k+1 〉 , e + :=〈 x k−1 , x k 〉 , ⌈ e ⌉=( →E ) and I E ♭ ( e )={ e + , e ′ } , there exists Θ ′ ∈ ℱ ♭ with e ′  = Θ ′ and Θ ♭ ⇂ e  = Θ ′ ⇂ e .

Indeed, arguing by induction we construct a sequence Θ ^ 1 ,⋯, Θ ^ h ∈ ℱ ♭ such that Θ ^ h = Θ ♭ , which yields Θ ♭ ∈ ℱ ♭ , as desired. We choose Θ ^ 1 ∈ ℱ 1 ♭ depending on ⌈ r ⌉∈{ ( →I ),( →E ) } in Θ ♭ (see above Basis of recursion). Then for every k<h and e:=〈 x h−k+1 , x h−k 〉 , e + :=〈 x h−k , x h−k−1 〉 let Θ ^ k+1 := Θ ^ k if e≠( →E ) in Θ ♭ . Otherwise, if e=( →E ) and I E ♭ ( e )={ e + , e ′ } , we also let Θ ^ k+1 := Θ ^ k , provided that e + ∈ Θ ^ k , while otherwise, if e + ∉ Θ ^ k , we let Θ ^ k+1 := Θ ′ ∈ ℱ ♭ with e ′ ∈ Θ ′ and Θ ^ k ⇂ e  = Θ ′ ⇂ e that should exist according to P. This construction eventually yields Θ ^ h−1 ⇂ x 1  = Θ ♭ ⇂ x 1 and ℓ( Θ ^ h )=ℓ( Θ ♭ )=ℓ( r ) ,10 and hence Θ ^ h = Θ ♭ , as required.

Now P follows from the construction of ℱ ♭ by induction on h−k . Basis of induction is a consequence of Basis of recursion (see above). The rest follows from Recursion step and condition ( ∗ ) in definition of f . ■

Corollary 10. The weight of ∂ f ♭ is polynomial in that of ∂ T . Moreover the assertion that ∂ f ♭ is a regular dag-like proof of ρ is verifiable by nondeterministic polynomial TM with appropriate guessed witnesses A f ⊆A( ∂ T ) , D⊆V ( ∂ T ) 2 , F⊆V ( ∂ T ) 5 .

Proof. That plain deduction ∂ ♭ has polynomial weight follows from ∂ ♭ ⊆E( ∂ ♭ )⊆E( ∂ D ) and f⊆E( ∂ ♭ )×E( ∂ ♭ )×A( ∂ ♭ )⊆E( ∂ D )×E( ∂ D )×A( ∂ D ) , while | E( ∂ D ) |≤ | V( ∂ D ) | 2 . Thus | ∂ ♭ |≤ | V( ∂ D ) | 2 and | f |≤ | V( ∂ D ) | 3 , and hence ‖ ∂ ♭ ‖≤ μ 2 ( ∂ D )⋅ | V( ∂ D ) | 2 and ‖ f ‖≤ μ 3 ( ∂ D )⋅ | V( ∂ D ) | 3 where μ( ∂ ) denotes maximum size of formulas occurring in ∂ . Now let

D:=E( ∂ ♭ )⊆E( ∂ D )⊆V ( ∂ D ) 2 ⊆V ( ∂ T ) 2   and F:={ 〈 e 1 , e 2 ,α 〉∈E( ∂ ♭ )×E( ∂ ♭ )×A( ∂ ♭ ):α∈A( e 1 )& e 1 ∈f( e 2 ,α ) }    ⊆E( ∂ D )×E( ∂ ♭ )×A( ∂ D )⊆V ( ∂ D ) 5 ⊆V ( ∂ T ) 5

be the canonical set-theoretic presentations of ∂ ♭ and f which encode ∂ f ♭ by the corresponding pair 〈 D,F 〉 . Thus | D |≤ | V( ∂ D ) | 2 and | F |≤ | V( ∂ D ) | 5 , while | V( ∂ D ) |=O( h( ∂ T )⋅ϕ( ∂ T ) ) , which yields ‖ D ‖≤O( μ 2 ( ∂ D )⋅ | V( ∂ D ) | 2 ) and ‖ F ‖≤O( μ 5 ( ∂ D )⋅ | V( ∂ D ) | 5 ) . Whether or not ∂ f ♭ is locally correct and regular is verifiable in polynomial time by nondeterministic guess-and-verify TM with guessed NP witnesses D and F . Namely, conditions 1 - 3 of f -regularity can be checked directly using at most O( h 5 ( ∂ T )⋅ ϕ 5 ( ∂ T ) ) queries 〈 e 1 , e 2 ,α 〉 ∈ ? F . Local correctness of ∂ ♭ is verified in usual way: consider a set of at most four labeled edges from E( ∂ ♭ ) and check whether it forms an instance of an inference rule from NM → D . This requires at most at most O( h 4 ( ∂ T )⋅ ϕ 4 ( ∂ T ) ) queries e ∈ ? D . Now Lemma 5 provides a polynomial (in fact, linear) nondeterministic verifier of the required provability of ρ with guessed witness A f ⊆A( ∂ t ) with ‖ A f ‖≤O( μ( ∂ D )⋅| V( ∂ D ) | ) . ■

This completes proof of Main Theorem.

3. Consequences for Computational Complexity

Consider the well-known complexity classes of computational problems NP, coNP and PSPACE (see Section 1.1). Recall that NP and coNP are both contained in PSPACE, although precise comparison between these classes is often referred to as fundamental open problem (cf. e.g. [1] [2]). It is known, however, that PSPACE can be characterized by the provability in minimal logic ([3] [4]) and HAMILTON PATH problem is NP complete, while NP=coNP is a consequence of NP=PSPACE (see e.g. [1] [2]). Our proof of the equalities NP=coNP=PSPACE use these results. In fact, by the last one it will suffice to prove the main equality NP=PSPACE (however see Section 3.3 below).

3.1. General Case NP vs PSPACE

Recall that we consider standard language of minimal logic whose formulas ( α , β , γ , ρ etc.) are built up from propositional variables ( p , q , r , etc.) using one propositional connective “ → ”. The sequents are in the form Γ⇒α whose antecedents, Γ, are viewed as multisets of formulas; sequents ⇒α , i.e. ∅⇒α , are identified with formulas α .

Our special sequent calculus for minimal logic, LM → , includes the following axioms ( MA ) and inference rules ( MI1→ ) , ( MI2→ ) , ( ME→P ) , ( ME→→ ) in the language ℒ → (the constraints are shown in square brackets).11

Lemma 11 (cf.) LM → is sound and complete with respect to minimal propositional logic and tree-like deducibility. Any given purely implicational formula ρ is valid in minimal logic iff corresponding sequent ⇒ρ is provable by a quasi-polynomial tree-like derivation (deduction) ∂ in LM → with h( ∂ )=O( | ρ | ) , μ( ∂ )=O( | ρ | ) and ϕ( ∂ T )=O( | ρ | 2 ) .

Proof. This is elaborated in [24] and in fact easily follows from [20]. ■

Lemma 12 (cf.) For any LM → -valid purely implicational formula ρ there exists a quasi-polynomial tree-like proof ∂ t of ρ in NM → . Moreover h( ∂ T )=O( | ρ | ) , μ( ∂ )=O( | ρ | ) and ϕ( ∂ T )=O( | ρ | 3 ) .

Proof. This is elaborated in [24] and in fact follows by a straightforward interpretation of LM   → in NM → . ■

Theorem 13. PSPACE⊆NP and hence NP=PSPACE holds true.

Proof. The inclusion NP⊆PSPACE is well known (cf. e.g. [1] [2]). Hence it suffices to prove PSPACE⊆NP . To this end, recall that minimal propositional logic is PSPACE-complete (cf. e.g. [3] [4] [22]). Thus by Lemma 11, in order to arrive at PSPACE⊆NP it will suffice to show that the validity problem VAL in minimal logic is in NP. In particular, it suffices to show that for any given purely implicational formula ρ that is valid in LM → there exists a quasi-polynomial tree-like proof ∂ T of ρ in   NM → T that can be compressed into a polynomial regular dag-like proof ∂ f ♭ in NM → D . But this follows from Main Theorem together with Corollary 10 and Lemma 12, which provide ∂ f ♭ in question that is defined by nondeterministic polynomial TM with appropriate guessed witnesses A f ⊆A( ∂ T ) , D⊆V ( ∂ T ) 2 , F⊆V ( ∂ T ) 5 having | ρ | -polynomial weights:

‖ A f ‖=O( μ( ∂ T )⋅h( ∂ T )⋅| V( ∂ T ) | )≤O( | ρ | 5 ), ‖ D ‖=O( μ( ∂ T )⋅ h 2 ( ∂ T )⋅ ϕ 2 ( ∂ T ) )≤O( | ρ | 9 ), ‖ F ‖=O( μ( ∂ T )⋅ h 5 ( ∂ T )⋅ ϕ 5 ( ∂ T ) )≤O( | ρ | 21 ).

Summing up, we have shown that for any proof in LM → of a given formula ρ there exist, successively: (1) a quasi-polynomial tree-like proof ∂ T ∈  NM → T of ρ , (2) a compressed polynomial dag-like deduction ∂ D ∈  NM → D that is further transformed into a desired polynomially verifiable regular dag-like proof ∂ f ♭ of ρ . Since provability in LM → is PSPACE-complete and ∂ f ♭ has polynomial NP-certificate (cf. Corollary 10), this completes our proof of PSPACE⊆NP .■

Corollary 14. The satisfiability and validity problems in quantified boolean logic (QBL) are both NP-complete. Moreover, BQP⊆NP holds true, where BQP is the class of problems computable in quantum polynomial time.

Proof. The former assertion follows from the PSPACE-completeness of QBL (see e.g. [1] [2]). The latter follows from BQP⊆PSPACE (cf. [1]). ■

3.2. Practical Implementation

Horizontal compression of a given tree-like ND proof ∂ can be executed by a deterministic TM in time polynomial in the weight of ∂ ; in most interesting cases the compressed dag-like deduction ∂ D will be exponentially smaller than ∂ (cf. [25]). This procedure is being implemented in LEAN ([26], work in progress). However, the crucial operation ∂ D ↪ ∂ f ♭ (cf. Lemma 9) is less constructive due to nondeterministic conditions 3, 4 of the local coherency of ℱ D . Namely, cardinality of the set ℱ D used as parameter might exponentially exceed | ρ | , which makes corresponding operation Θ ↪ Θ ′ within ℱ D hardly implementable by deterministic TM in polynomial time.

3.3. Particular Case NP vs coNP

Our proof of the main result NP=PSPACE (above) referred to special sequent calculus for minimal logic, LM → . In the case of weaker equality NP=coNP this reference is obsolete. Instead, we’ll refer to tree-like ND-normalization and recall that normal tree-like ND proofs satisfy weak subformula property (see Section 1.2). Moreover, the following holds (see [8] [25]).

Lemma 15. Any normal tree-like NM → -proof of ρ whose height is polynomial in | ρ | is quasi-polynomial.

Now let purely implicational formula ρ express in standard way that a given graph G has no Hamiltonian cycles. Thus ρ is valid iff corresponding NP-complete problem HAMILTON PATH has no positive solution. We also observe that the canonical proof search of ρ in NM → yields a normal tree-like proof ∂ whose height is polynomial in | G | (and hence in | ρ | ), provided that G is non-Hamiltonian. Further we argue via

Lemma 16 (cf. [8]) Consider the HAMILTON PATH problem and a purely implicational formula ρ expressing that a given graph G has no Hamiltonian cycles. There exists a normal tree-like NM → -proof ∂ of ρ such that h( ∂ ) is polynomial in | G | (and in | ρ | ), provided that G is non-Hamiltonian.

Recall that polynomial ND proofs (whether tree-like or regular dag-like) have polynomial-time certificates, while the non-hamiltoniancy of simple and directed graphs is coNP-complete. Hence Main Theorem yields

Corollary 17 NP=coNP holds true.

4. Conclusion

Our main result, NP=PSPACE , is obtained by a proof theoretic approach whose crucial part deals with proof compression in Prawitz-style formalism of Natural Deduction (ND). Its starting point is based on a desire to transform the validity problem ρ∈VAL , for a given purely implicational formula ρ , into “small” and verifiable in | ρ | -polynomial time regular proof ∂ f ♭ in our dag-like ND calculus NM → D for minimal propositional logic (see Section 2.2). To this end, we take an ordinary tree-like derivation ∂ of sequent ⇒ρ in Hudelmaier’s sound and complete sequent calculus LM → (see Section 3.2) and convert ∂ into quasi-polynomial deduction ∂ T of ρ in the corresponding tree-like ND calculus NM → T . To complete the construction by Main Theorem, we horizontally compress ∂ T into polynomial dag-like deduction ∂ D of ρ in NM → D followed by a desired regular proof ∂ f ♭ (recall that Main Theorem says that all minimal tautologies ρ are provable by regular dag-like proofs in NM → D whose weight is polynomial in the size of ρ ). In particular, this shows that our multipremise dag-like calculus NM → D is sound and complete in minimal logic with respect to regular dag-like provability.

In the presence of our multipremise repetition (see Section 2.1, 2.2), regular dag-like provability is crucial for Main Theorem and resulting polynomial upper bounds on the size (weight) of proofs in minimal logic. This is emphasized by Jeřábek’s paper [6] that claims to obtain exponential lower bounds on the size of dag-like proofs with respect to conventional notion of provability determined by the condition “all deductive paths are closed”, instead of our weakening “all regular deductive paths are closed”. According to [6], these exponential lower bounds hold true also for the Frege systems involved, which therefore appear useless for the comparison NP vs coNP vs PSPACE under consideration. Summing up, exponential lower bounds claimed in [6] are compatible with our polynomial upper bounds in the case of dag-like multipremise ND. To put it more precisely, there are polynomial-size dag-like proofs in our ND formalism having no analogy in Frege systems from [6] (or [5]). This provides exponential speed-up over conventional tree-like provability in NM → that follows e.g. from a generalization of Example 6 handling horizontal compression of the HAMILTON PATH problem (see [8]).

It is well-known that NP=coNP is a consequence of NP=PSPACE (cf. e.g. [1] [2]). Nonetheless, for brevity, we also presented a simplified proof of NP=coNP that does not refer to LM → . Instead, we considered the NP-complete HAMILTON PATH problem and formalized its solvability directly in NM → (see [8] for details).

Author Contributions

Both authors designed the current upgrade of their previous research. The first author elaborated logic proofs and wrote the draft of the manuscript. Both authors approved the final version.

Index

NOTES

1A more careful presentation is shown in Section 2, 3 below.

2Dag-like deductions allow “diamond-like” configuration, if some nodes x have at least two children, i.e. | OE( x ) |≥2 , which is forbidden in NM → T , cf. e.g. ∂ ′ f from Example 6 (below).

3This criterion of dag-like provability is weaker than naive requirement “every deductive path is closed” that might be suggested by the tree-like case (cf. Definition 1).

4 ∂ ′ can have exponentially more multipremise repetitions than dag-like ∂ involved has.

5This obviously destroys tree-like structure of ∂ .

6See [24] for details. Note that ∂ T and ∂ ′ have the same set of formulas.

7By the definition of ℱ D , the following configuration occurs as subdeduction in ∂ D , where for any Θ ′ =[ x 0 ,⋯, x h =r ] we let Θ ′ ↾ i  :=[ x 0 ,⋯, x i ] . Thus concatenations Θ ↾ i  ⌢ Θ ⇂ i+1 and Θ ′ ↾ i  ⌢ Θ ⇂ i+1 (and hence also Θ ↾ i  ⌢  Θ ′ ⇂ i+1 and Θ ′ ↾ i  ⌢  Θ ′ ⇂ i+1 ) are both closed.

Θ ↾ i               Θ ′ ↾ i Θ ⇂ i+1 ( →E )

8It can happen that the corresponding set of incoming edges IE( e,α ) is a proper subset of IE( e ) . This might explain dag-like non-conjunctive interpretation of our separation rule (cf. the beginning of § 2.2).

9Note that | F ♭ |≤2 and ∂ ♭ = ∂ D , provided that no ( →E ) or ( S ) occurs in ∂ D .

10For any maximal path Θ=[ y 0 ,⋯, y h =r ] we let ℓ( Θ ):=ℓ( y 0 ) .

11This is a slightly modified, equivalent version of the corresponding purely implicational and ⊥ -free subsystem of Hudelmaier’s intuitionistic calculus LG, cf. [20]. The constraints q∈VAR( Γ,γ ) are added just for the sake of transparency.

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

References

[1] Arora, S. and Barak, B. (2009) Computational Complexity: A Modern Approach. Cambridge University Press.[CrossRef]
[2] Papadimitriou, C.H. (1995) Computational Complexity. Addison-Wesley.
[3] Statman, R. (1979) Intuitionistic Propositional Logic Is Polynomial-Space Complete. Theoretical Computer Science, 9, 67-72.[CrossRef]
[4] Švejdar, V. (2003) On the Polynomial-Space Completeness of Intuitionistic Propositional Logic. Archive for Mathematical Logic, 42, 711-716.[CrossRef]
[5] Cook, S. and Nguyen, P. (2010) Logical Foundations of Proof Complexity. Cambridge University Press.[CrossRef]
[6] Jeřábek, E. (2025) A Simplified Lower Bound for Implicational Logic. The Bulletin of Symbolic Logic, 31, 53-87.[CrossRef]
[7] Gordeev, L. and Haeusler, E.H. (2020) Proof Compression and NP versus PSPACE II. Bulletin of the Section of Logic, 49, 213-230.[CrossRef]
[8] Gordeev, L. and Haeusler, E.H. (2022) Proof Compression and NP versus PSPACE II: Addendum. Bulletin of the Section of Logic, 51, 197-205.[CrossRef]
[9] Hilbert, D. and Bernays, P. (1968) Grundlagen der Mathematik, Bd I. 2nd Edition, Springer-Verlag.
[10] Hilbert, D. and Bernays, P. (1970) Grundlagen der Mathematik, Bd II. 2nd Edition, Springer-Verlag.
[11] von Neumann, J. (1927) Zur Hilbertschen Beweistheorie. Mathematische Zeitschrift, 26, 1-46.[CrossRef]
[12] Tarski, A. (1956) Logic, Semantics, Metamathematics. Papers from 1923 to 1938. Clarendon Press.
[13] Tarski, A. and Givant, S. (1987) A Formalization of Set Theory without Variables. American Mathematical Society.[CrossRef]
[14] Gentzen, G. (1935) Untersuchungen über das logische Schliessen II. Mathematische Zeitschrift, 39, 405-431.[CrossRef]
[15] Gentzen, G. (1969) The Collected Papers of Gerhard Gentzen. North-Holland.
[16] Prawitz, D. (2006) Natural Deduction: A Proof-Theoretical Study. Dover Publications.
[17] Schütte, K. (1960) Beweistheorie. Springer-Verlag.
[18] Schütte, K. (1977) Proof Theory. Springer-Verlag.
[19] Troelstra, A.S. and Schwichtenberg, H. (1996) Basic Proof Theory. Cambridge University.
[20] Hudelmaier, J. (1993) An Sace Decision Procedure for Intuitionistic Propositional Logic. Journal of Logic and Computation, 3, 63-75.[CrossRef]
[21] Felscher, W. (2000) Lectures on Mathematical Logic. Vol II: Calculi for Derivations and Deductions. Gordon and Breach Science Publishers.
[22] Johansson, I. (1936) Der Minimalkalkül, ein reduzierter intuitionistischer Formalismus. Compositio Mathematica, 4, 119-136.
[23] Prawitz, D. and Malmnäs, P.E. (1968) A Survey of Some Connections between Classical, Intuitionistic and Minimal Logic. Studies in logic and the Foundations of Math, 50, 215-229.
[24] Gordeev, L. and Haeusler, E.H. (2017) Proof Compression and NP versus PSPACE. Studia Logica, 107, 53-83.[CrossRef]
[25] Haeusler, E.H. (2014) Propositional Logics Complexity and the Sub-Formula Property. Proceedings of 10th International Workshop on Developments in Computational Models, Vienna, 13 July 2014, 1-16.
[26] Haeusler, E.H., Barros Jr., J.F.C. and Brasil Filho, R.C.M. (2026) On the Horizontal Compression of Dag-Derivations in Minimal Purely Implicational Logic. arXiv: 2206.02300v4

Copyright © 2026 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.