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
is in NP (resp. coNP) if there exists a polynomial
and a polynomial-time TM
such that a given input
is in
iff
for some (resp. every)
of the length
. Note that coNP is complementary to NP (and vice versa). However, it is unclear a priori whether symmetric difference
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
is in PSPACE if there exists a polynomial
and a TM
such that for every input
, the total number of non-blank locations that occur during
’s execution on
is at most
, and
is in
iff
. 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
from PSPACE.
Keeping this in mind, we ask how to solve our crucial problem.
(
): Is PSPACE contained in NP or not?
To confirm the affirmative assumption, it will suffice to find a proof system
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
is provable by a derivation
whose weight is polynomial in the size of
. To this end, we let
be a suitable dag-like modification
of Prawitz’s ND for purely implicational minimal logic (see below) and prove the required assertions. Our proof system
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
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 (
)’s negation, should the assumption fail. To conclude that a given
is not in NP, it would not suffice to prove superpolynomial lower bounds on proofs in a chosen proof system
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
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
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 (
).
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
(abbr.:
) iff
i.e.
follows from
and
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”)
,
occurring in linear proofs
(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
tends to be exponential in
. 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
) 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
(or other ND) assumes that deductions
are rooted trees whose nodes are assigned with formulas ordered according to the inference rules allowed in
(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
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
into “small” dag-like proofs
with the same conclusions such that proof correctness of
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,
, includes two kinds of inference rules
and
:
Its extended version,
, also includes repetition rules
,
:
Furthermore, denote by
a subsystem of
that includes only special instances of
, whose identical premises are conclusions of pairwise different instances of
,
and/or
(which we also abbreviate
). Such instances of multipremise repetitions we call separation rules, abbr.:
. So
can be a
from Example 6 (below):
while the mostly involved instance of
is
of the following shape, for pairwise different
and
:
Tree-like
-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
in
(this is easily achieved using
, if necessary).
A maximal deductive path
connecting leaf
labeled
with the root
labeled
is called closed (otherwise open) if there exists
such that
is the conclusion of
labeled
(for some
); such
we also denote
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
for superscripts
decorating
involved).
Now
is called provable in
(resp.
) 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
(
,
)-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
.
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
.
(C) There exists a tree-like proof of
in
.
(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,
, is a dag-like version of
, except that
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,
remains sound after deleting some (but not all) of its sources. This requires a more sophisticated formal definition of the
-provability, as follows.
Arbitrary
-deductions
are finite rooted dags (directed acyclic graphs) whose nodes
are labeled with formulas
. Let
and
denote respectively the sets of nodes and directed edges
whose sources
(also called parents) occur above targets
(also called children). Note that unlike in
, parents in
can have many children.
By
and
we denote respectively the root and conclusion of
. For any
, let
denote the height of
in
where
.
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
. Let
for
abbreviate names
,
,
,
of inferences with conclusion
, while assuming that
.
For any
with
,
will abbreviate “
is reachable from
(i.e. there is a deductive path from
to
)”;
and
will denote
and
, respectively, for
(
), where
abbreviates
. Thus
and
, for every
,
.
For any
let
. For any
define the assumptions
by
. Thus
. Also note that
implies
.
For any
we denote by
and/or
and
and/or
the sets of
-ingoing and
-outgoing vertices and/or edges, respectively.
For any
and
we also let
,
,
. Thus for any
,
.
We assume that every deduction
in question satisfies standard conditions of local correctness with respect to the inferences involved together with auxiliary assumption
(cf. e.g. [7]).
Recall that
is possible in
but not in
.2
To formalize the dag-like provability, we’ll also assume that every
is enriched with a special flow function
such that for any
with
and
, it holds
Such
and enriched deduction we call regular; the latter we’ll denote
, rather than
.
Definition 3. In
,
-threads are maximal deductive paths
from leaves
to the root
such that
A
-thread
is closed if it contains
, i.e.
, open otherwise. A given regular deduction
proves its conclusion
iff every
-thread in
is closed; such
is called a proof of
(abbr.:
).3
Theorem 4. A given purely implicational formula
is valid in minimal logic iff there exists a regular proof
of
.
Proof. 1. The existence of a regular proof
in question easily follows from Definition 1, since any tree-like proof in
is a dag-like proof in
with respect to trivial flow function
.
2. To show the inverse we unfold any given regular proof
by recursion on
into a tree-like deduction
according to a “roadmap”
, where all intermediate deductions
are tree-like under horizontal level
, i.e.
for every node
of the height
. Note that every
involved is a flow function that is defined for all
with
and
by recursion on
along with
. We also define “reverse” embeddings
, where
is the set of edges
of the height
. The recursion runs as follows.
In the sequel, for any deduction
and any node
, we denote by
the subdeduction rooted in
:
Basis of recursion. Let
. Then let
and
.
Recursion step.
arises by replacing in
subdags
by new subdags
or collections thereof, for all nodes
of the height
, Consider two cases.
2.1. Suppose
. Then let
.
2.2. Suppose
. If
, we consider the conclusions
of
-edges from
. Let
be identically labeled
new nodes connected with
by edges
supplied with old inferences
. Also let
. This yields new subdeductions
, for all
, instead of
. If
, set
and let
be identically labeled
new nodes connected with
by new edges
supplied with old inferences
. Moreover let
, provided that
. By the regularity of
this yields
. Having done this for all
,
we replace
by the collection
This completes recursive definition of
,
. Obviously
holds for all
of the height
, and hence
is a tree-like deduction.4 Corresponding new flow function
is
restricted to its non-tree-like upper part
(see above). The regularity of
easily follows from that of
.
The embeddings
(see above) are specified as follows, where
.
(2.e)
: Suppose
and
. If
, then
, so let
. Otherwise
. In the case 2.1 we have
and
and let
, while in the case 2.2,
and
,
, and then we let
. The following implication is readily seen.
To complete the entire proof, it remains to show that all deductive paths in
are closed, as being isomorphic to closed
-threads occurring in the underlying proof
. The latter easily follows by induction on
. Indeed, let
be any deductive path in
connecting a leaf
labeled
with the root
. For any
set
and
. According to our definition of
, there exists a deductive path
in
such that
. Furthermore,
shows by induction on
that
is isomorphic to
and hence the closure of
in
implies the required closure of
in
. So
proves
in
, and hence
is valid by Lemma 2. ■
In a given regular
we supply edges
with regular assumptions
. For the sake of brevity, let us first recall a natural recursive definition of
with regard to plain deduction
, where for any
we let
and
.
1. If
then
.
2. If
then
.
3.
.
It is easily verified that
iff every maximal path
in
is closed. In the case of
we define
by successive thinning of
.
1f. If
then
.
2f. If
then
.
3f.
.
Lemma 5. For any regular
,
iff
proves
(=
). Moreover, the assertion
is verifiable by nondeterministic TM in
time.
Proof. For any
-thread
and
for
(abbr.:
) let
and
. Let
and
abbreviate “
is open”, i.e.
, and “
is open”, i.e.
, respectively. Furthermore, for any
denote by
the set of
-threads
with
. Then for any
we obtain
This follows from Definition 3 by straightforward induction on
. Now
and hence
iff every
-thread in
is closed, i.e.
proves
. Hence
is verifiable by nondeterministic TM with guessed witness
in
time using queries
, for all leaves
. ■
Example 6. Consider a tree-like proof
of
:
where
.
All deductive paths in
are closed and hence
is provable in
.
Define a regular dag-like deduction
by merging two occurrences
via
with conclusion
:5
with
(encoded as
), where
is such that for any
exposed and any
,
iff
Otherwise, either
with
or
with
, provided that
with
and
being the inferences placed in
at the left- or right-hand side, respectively All assumptions from
are exposed in curly braces, while those from
are colored red.
It is readily seen that
in
, while
is the tree-like unfolding of
. Thus
is a regular deduction that proves
by Lemma 5. In contrast,
(without
) has open paths connecting pairs of edges supplied with the assumptions
,
, and/or
,
.
This regular dag-like proof
also can be presented like this:
Note that
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
involved.
In this example,
and
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
, resp. height
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
.
Our crucial result reads:
Theorem 8 (Main Theorem) Any quasi-polynomial tree-like proof
of
in
is compressible into a polynomial regular dag-like proof
of
in
.
The required mapping
↪
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
of
let
be its horizontal compression defined by bottom-up recursion on
such that for any
, the
horizontal section of
is obtained by merging all nodes labeled by identical formulas occurring in the
horizontal section of
, except for those being premises of
. The inferences in
are naturally inherited by the ones in
.6 Obviously
is a dag-like (not necessarily tree-like anymore) deduction with conclusion
. Moreover,
is polynomial as
. However,
need not preserve basic inferences
,
. For example, a compressed multipremise configuration
that is obtained by merging identical conclusions
of
is not a correct inference in
and it should be replaced by a
inference
that has at most
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
and thereby convert
into a locally correct deduction
having the same set of formulas and the same conclusion
. The weight of
is still polynomial, as
and hence
. Note that arbitrary deductive dag-like paths in
can arise by concatenating different segments of maximal tree-like deductive paths in
(closed by the assumption). Let
be the dag-like image of those maximal tree-like deductive paths under the mapping
↪
. Thus every
is closed. Moreover we observe that
satisfies the following conditions 1 - 4 of local coherency, where for any maximal dag-like deductive path
in
and any
,
(abbr.:
) we let
. As above, we call
closed if
.
1.
is rooted:
.
2.
is closed, i.e. so is every
.
3.
preserves
: For any
such that
with
and
, there exists a
such that
and
.7
4.
preserves
: For any
such that
with
, there exists
with
and
such that
and
.8
These conditions are inherited from analogous properties of tree-like
by the horizontal compression
↪
.
Lemma 9. There exists a locally coherent subset
and correlated dag-like subdeduction
together with regular flow function
in
such that every
-thread in
belongs to
, thus being closed as so is
.
Proof. The required
,
and
arise by ascending recursion. In plain words,
is thought to be a minimal subset of
enveloping
. That is, we let
, where
arise by recursion on
such that
and for any
there is a
with
. Moreover we let
, where
is the set of assumptions occurring in
, i.e.
.
Basis of recursion. Suppose
. We have
. If
with
then (since
is rooted) we choose any
with
and let
. Otherwise, if
with
, then by the same token let
, for a chosen pair
with
.
Recursion step. Suppose
and consider any
. Let
and suppose
. Hence
with
, for some
. Then (since
preserves
) we choose any
such that
with
and let
. That is,
extends
by adding a chosen
as above. Now suppose
with
. Then (since
preserves
), we choose a
with
and a
such that
with
and let
. That is,
extends
by adding a chosen
as above. Summing up,
extends
by adding chosen paths
as in both cases
and
with
. If
, we let
.
This completes our recursive definition of
, for any
, and hence that of
.9 Now
arises by successively collecting all inferences from
(preserving the names) whose edges occur in
. It is readily seen that
is locally correct; in the only nontrivial cases of
and
this follows from corresponding clauses of the recursion step (see above).
Let us define the flow function
in
. Let
with
and
. Arguing by induction on
, for any
we stipulate
iff there exists
such that
,
, and either
, or else
(
)
The condition of
-regularity (see Section 2.2) is easily verified; in the only nontrivial case
if follows from (
) according to Recursion step in the construction of
, since except for
and
, other inferences
and
have one single premise
.
It remains to show that every
-thread
in
belongs to
. To this end it will suffice to prove a following proposition:
P: For any
-thread
, any
with
,
,
and
, there exists
with
and
.
Indeed, arguing by induction we construct a sequence
such that
, which yields
, as desired. We choose
depending on
in
(see above Basis of recursion). Then for every
and
,
let
if
in
. Otherwise, if
and
, we also let
, provided that
, while otherwise, if , we let
with
and that should exist according to P. This construction eventually yields and
,10 and hence
, as required.
Now P follows from the construction of
by induction on
. Basis of induction is a consequence of Basis of recursion (see above). The rest follows from Recursion step and condition (
) in definition of
. ■
Corollary 10. The weight of
is polynomial in that of
. Moreover the assertion that
is a regular dag-like proof of
is verifiable by nondeterministic polynomial TM with appropriate guessed witnesses
,
,
.
Proof. That plain deduction
has polynomial weight follows from
and
, while
. Thus
and
, and hence
and
where
denotes maximum size of formulas occurring in
. Now let
be the canonical set-theoretic presentations of
and
which encode
by the corresponding pair
. Thus
and
, while
, which yields
and
. Whether or not
is locally correct and regular is verifiable in polynomial time by nondeterministic guess-and-verify TM with guessed NP witnesses
and
. Namely, conditions 1 - 3 of
-regularity can be checked directly using at most
queries
. Local correctness of
is verified in usual way: consider a set of at most four labeled edges from
and check whether it forms an instance of an inference rule from
. This requires at most at most
queries
. Now Lemma 5 provides a polynomial (in fact, linear) nondeterministic verifier of the required provability of
with guessed witness
with
. ■
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
is a consequence of
(see e.g. [1] [2]). Our proof of the equalities
use these results. In fact, by the last one it will suffice to prove the main equality
(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 (
,
,
, 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,
, includes the following axioms
and inference rules
,
,
,
in the language
(the constraints are shown in square brackets).11
Lemma 11 (cf.)
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
with
,
and
.
Proof. This is elaborated in [24] and in fact easily follows from [20]. ■
Lemma 12 (cf.) For any
-valid purely implicational formula
there exists a quasi-polynomial tree-like proof
of
in
. Moreover
,
and
.
Proof. This is elaborated in [24] and in fact follows by a straightforward interpretation of LM
in
. ■
Theorem 13.
and hence
holds true.
Proof. The inclusion
is well known (cf. e.g. [1] [2]). Hence it suffices to prove
. 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
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
there exists a quasi-polynomial tree-like proof
of
in
that can be compressed into a polynomial regular dag-like proof
in
. But this follows from Main Theorem together with Corollary 10 and Lemma 12, which provide
in question that is defined by nondeterministic polynomial TM with appropriate guessed witnesses
,
,
having
-polynomial weights:
Summing up, we have shown that for any proof in
of a given formula
there exist, successively: (1) a quasi-polynomial tree-like proof
of
, (2) a compressed polynomial dag-like deduction
that is further transformed into a desired polynomially verifiable regular dag-like proof
of
. Since provability in
is PSPACE-complete and
has polynomial NP-certificate (cf. Corollary 10), this completes our proof of
.■
Corollary 14. The satisfiability and validity problems in quantified boolean logic (QBL) are both NP-complete. Moreover,
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
(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
will be exponentially smaller than
(cf. [25]). This procedure is being implemented in LEAN ([26], work in progress). However, the crucial operation
↪
(cf. Lemma 9) is less constructive due to nondeterministic conditions 3, 4 of the local coherency of
. Namely, cardinality of the set
used as parameter might exponentially exceed
, which makes corresponding operation
↪
within
hardly implementable by deterministic TM in polynomial time.
3.3. Particular Case NP vs coNP
Our proof of the main result
(above) referred to special sequent calculus for minimal logic,
. In the case of weaker equality
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
-proof of
whose height is polynomial in
is quasi-polynomial.
Now let purely implicational formula
express in standard way that a given graph
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
yields a normal tree-like proof
whose height is polynomial in
(and hence in
), provided that
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
has no Hamiltonian cycles. There exists a normal tree-like
-proof
of
such that
is polynomial in
(and in
), provided that
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
holds true.
4. Conclusion
Our main result,
, 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
, for a given purely implicational formula
, into “small” and verifiable in
-polynomial time regular proof
in our dag-like ND calculus
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
(see Section 3.2) and convert
into quasi-polynomial deduction
of
in the corresponding tree-like ND calculus
. To complete the construction by Main Theorem, we horizontally compress
into polynomial dag-like deduction
of
in
followed by a desired regular proof
(recall that Main Theorem says that all minimal tautologies
are provable by regular dag-like proofs in
whose weight is polynomial in the size of
). In particular, this shows that our multipremise dag-like calculus
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
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
is a consequence of
(cf. e.g. [1] [2]). Nonetheless, for brevity, we also presented a simplified proof of
that does not refer to
. Instead, we considered the NP-complete HAMILTON PATH problem and formalized its solvability directly in
(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
have at least two children, i.e.
, which is forbidden in
, cf. e.g.
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
and
have the same set of formulas.
7By the definition of
, the following configuration occurs as subdeduction in
, where for any
we let
. Thus concatenations
and
(and hence also
and
) are both closed.
8It can happen that the corresponding set of incoming edges
is a proper subset of
. This might explain dag-like non-conjunctive interpretation of our separation rule (cf. the beginning of § 2.2).
9Note that
and
, provided that no
or
occurs in
.
10For any maximal path
we let
.
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
are added just for the sake of transparency.