Keywords

1 Introduction

In this paper, we present a decision procedure for the non-Fregean sentential calculus with identity \(\mathsf {SCI}\). The contribution of the paper is twofold. First of all, this is the first implemented and complexity-optimal decision procedure for \(\mathsf {SCI}\), although several deduction systems for \(\mathsf {SCI}\) have already been presented in the literature. Second, our decision procedure is constructed in the paradigm of labelled tableaux, which makes the whole approach more robust to modifications and extensions to other non-Fregean logics.

Non-Fregean logic is an alternative to both classical and many non-classical systems whose semantics identifies semantical correlates of sentences with their logical values. According to the classical approach in model theory, semantical structures (realities) correspond to the language that is meant to describe them, and therefore, symbols and expressions of that language, such as individual constants or relational symbols, have their denotations in these structures (respectively, objects or relations between objects). However, sentences are treated differently, as they are interpreted in models only in terms of logical values or other semantical relations such as satisfaction or truth. This classical approach allows us to answer the very basic logical question of whether the sentences are logically equivalent; however, it does not provide any tool that would allow to check whether the sentences describe or refer to the same situation, or have the same meaning. Thus, the main motivation for non-Fregean logic was the need for an extensional and two-valued logic that could be used to represent semantical denotations of sentences that – depending on the underlying philosophical theory of language or the reality to which a logic is supposed to refer – could be understood as situations, states of affairs, meanings, etc. In order to express (non)identities or other interactions between the referents of sentences, at least the universe of denotations of sentences needs to be added to the semantics and the new identity connective to the language.

The minimal two-valued non-Fregean propositional logic \(\mathsf {SCI}\) (Sentential Calculus with Identity), introduced by Suszko (see [21]), is an extension of classical propositional logic with a new binary connective of identity (\(\equiv \)) and axioms reflecting its fundamental properties. The identity connective represents the identity of the denotations of sentences, and so, an expression ‘’ should be read as ‘the sentences \(\upvarphi \) and describe the same «thing»’. The semantics for \(\mathsf {SCI}\) is based on structures determined by a universe of the denotations of sentences, a set of facts (those denotations that actually hold), and operations corresponding to all the connectives. The identity connective is then interpreted as an operation representing an equivalence relation that additionally satisfies the extensionality property. In the non-Fregean approach the identity and equivalence connectives are in general not equivalent: two sentences with the same truth value can have different denotations. Take, for instance, the following three statements:

  1. A

    ‘There is an effective method for determining whether an arbitrary formula of classical propositional logic is a theorem of that logic.’

  2. B

    ‘Classical propositional logic is finitely axiomatizable, has a recursive set of recursive rules and enjoys the finite model property.’

  3. C

    ‘Classical propositional logic is Post consistent.’

A, B, C are all (necessarily) true as theorems of mathematical logic. Therefore, they are pairwise logically equivalent, that is, all three equivalences: \(\text {A}\leftrightarrow \text {B}\), \(\text {B}\leftrightarrow \text {C}\), and \(\text {A}\leftrightarrow \text {C}\) hold. One can fairly claim that A and B refer to the same fact, so \(\text {A}\equiv \text {B}\), but C has clearly a different semantic correlate than both A and B, as decidability is independent of Post consistency. Thus, we have \(\text {A}\not \equiv \text {C}\) and \(\text {B}\not \equiv \text {C}\).

It is known that the class of all non-equivalent non-Fregean propositional logics satisfying the laws of classical logic is uncountable [7], and some of these logics are equivalent to the well-known non-classical logics (e.g., modal logics \(\mathsf {S}4\) and \(\mathsf {S}5\), many-valued logics). Higher-order non-Fregean logics are very expressive. In particular, a logic obtained from \(\mathsf {SCI}\) by adding propositional quantifiers is undecidable and can express many mathematical theories, e.g., Peano arithmetic, the theory of groups, rings, and fields [8]. Furthermore, non-classical and deviant modifications of \(\mathsf {SCI}\) have been developed and extensively studied in the literature, in particular intuitionistic logics [4, 14, 17], modal and epistemic logics [15, 16], logics with non-classical identity [13], paraconsistent [6, 9]. The non-Fregean approach could turn out to be more adequate than the classical one in cognitive science or natural language processing. Moreover, non-Fregean logic could serve as a general framework for comparing different aspects of logics with incompatible languages and semantics and help in addressing the question of which class of logics handles logical symbols in the most adequate way from the perspective of natural language.

In the original works by Suszko and Bloom the deduction system for \(\mathsf {SCI}\) was defined in the Hilbert style [1, 2]. Sound and complete deduction systems which are better suited for automated theorem proving were constructed later: Gentzen sequent calculi [3, 18, 22, 23] and dual tableau systems [5, 10, 19]. A detailed presentation of all of them can be found in [10]. The main disadvantage of the aforementioned systems is that they are not decision procedures, while \(\mathsf {SCI}\) is decidable and in particular in NP [2, Theorem 2.3]. Although the system by Wasilewska [22] can be seen as a meta-tool for deciding validity of \(\mathsf {SCI}\)-formulas, it is equipped with external meta-machinery that is not a part of the system itself. As a result, it constitutes another proof for decidability of \(\mathsf {SCI}\), rather than being a decision procedure in the classical sense of the term, that is suitable for computer implementations. In [11] a tableau-based algorithm for \(\mathsf {SCI}\) was presented as a work-in-progress. The decision procedure presented in this paper is a result of a substantial remodelling of the preliminary system introduced in [11], for which we prove soundness and completeness, present surprisingly straightforward proofs of termination and membership in NP, and provide an implementation.

In this paper, we present a new deduction system \(\mathsf {T}_\mathsf {SCI}\) for the logic \(\mathsf {SCI}\), based on labelled tableaux. To the best of our knowledge, it is the first decision procedure for \(\mathsf {SCI}\). Moreover, its upper complexity bound, that is NP, matches the complexity class of the satisfiability problem for \(\mathsf {SCI}\), thus, making the algorithm complexity-optimal. \(\mathsf {T}_\mathsf {SCI}\) is built in the paradigm of labelled tableaux. The language of deduction is an extension of the \(\mathsf {SCI}\)-language with two sorts of labels representing the denotations of formulas (i.e., «facts» and «non-facts») as well as with the equality and the inequality relation that can hold between labels. (In)Equality formulas occurring in a derivation tree provide additional information on identity or distinctness of the denotations of formulas. In Section 2, we provide a formal overview of the logic \(\mathsf{SCI}\), in Section 3, we introduce the tableau algorithm \(\mathsf {T}_\mathsf {SCI}\) and prove its soundness, completeness, and termination, establish that it is complexity-optimal with respect to \(\mathsf {SCI}\)-satisfiability, and show a possible refinement thereof. In Section 4, we discuss an implementation of \(\mathsf {T}_\mathsf {SCI}\) and compare it with an older prover based on a heuristic, unproven algorithm. Conclusions and directions of further research are presented in Section 5.

2 \(\mathsf {SCI}\)

Syntax Let \( \mathcal {L}_{\mathsf {SCI}}\) be a language of the logic \(\mathsf {SCI}\) with the alphabet \( \langle \mathsf {AF},\lnot ,\rightarrow ,\equiv \rangle \), where \( \mathsf {AF}=\{\textsf {p},\textsf {q},\textsf {r},\ldots \} \) is a denumerable set of atomic formulas. The set \(\mathsf {FOR}\) of \(\mathsf {SCI}\)-formulas is defined by the following abstract grammar:

$$\begin{aligned} \upvarphi ::=\textsf {p}\mid \lnot \upvarphi \mid \upvarphi \rightarrow \upvarphi \mid \upvarphi \equiv \upvarphi ,\end{aligned}$$

where \(\textsf {p}\in \mathsf {AF}\).

Axiomatization The logic \(\mathsf {SCI}\) is axiomatized by the following set of truth-functional (13) and identity (48) axiom schemes:

  1. 1.
  2. 2.
  3. 3.
  4. 4.

    \(\upvarphi \equiv \upvarphi \)

  5. 5.
  6. 6.
  7. 7.
  8. 8.

    .

Semantics Let \(U\ne \emptyset \), \(D\subset U\), and let \(\tilde{\lnot }: U\longrightarrow U\), \(\tilde{\rightarrow } : U \times U \longrightarrow U\), and \(\tilde{\equiv } : U \times U \longrightarrow U\) be functions on U. An \(\mathsf {SCI}\)-model is a structure \(\mathcal {M}=\langle U,D, \tilde{\lnot }, \tilde{\rightarrow }, \tilde{\equiv }\rangle \), where U and D are called, respectively, universe and set of designated values, and the following conditions are satisfied for all \(a, b \in U\):

$$\begin{aligned} \tilde{\lnot } a \in D&\qquad \text {iff}\qquad a \notin D\end{aligned}$$
(1)
$$\begin{aligned} a \tilde{\rightarrow } b \in D&\qquad \text {iff}\qquad a \notin D\text { or } b\in D\end{aligned}$$
(2)
$$\begin{aligned} a \tilde{\equiv } b\in D&\qquad \text {iff}\qquad a=b. \end{aligned}$$
(3)

A valuation in an \(\mathsf {SCI}\)- model \(\mathcal {M} = \langle U,D, \tilde{\lnot }, \tilde{\rightarrow }, \tilde{\equiv }\rangle \) is a function \(V:\mathsf {FOR}\longrightarrow U\) such that for all it holds that \(V(\lnot \upvarphi ) = \tilde{\lnot } V(\upvarphi )\) and , for \(\# \in \{\rightarrow , \equiv \}\). An element \(a\in U\) such that \(a = V(\upvarphi )\) is called the denotation of \(\upvarphi \). Interestingly, \(\mathsf {SCI}\)-model can be defined alternatively as a triple \(\mathcal {M} = \langle U,D,V \rangle \), where a valuation \(V:\mathsf{FOR} \longrightarrow U\) needs to satisfy the conditions analogous to (1)–(3) (for instance, \(V(\lnot \upvarphi )\in D\) iff \(V(\upvarphi )\notin D\) etc.). In the original approach V may as well be defined only for atomic formulas and then lifted up homomorphically to the set of all formulas, like in classical propositional logic. In the latter setting it is not the case, as a valuation defined solely for atoms does usually not have a unique extension to all formulas. We say that a formula \(\upvarphi \) is satisfied in an \(\mathsf {SCI}\)-model \(\mathcal {M} = \langle U,D, \tilde{\lnot }, \tilde{\rightarrow }, \tilde{\equiv }\rangle \) and a valuation V in \(\mathcal {M}\), and refer to it as \(\mathcal {M}, V \models _\mathsf{SCI}\upvarphi \), if its denotation belongs to D. We call a formula \(\upvarphi \) satisfiable if it is satisfied in some \(\mathsf {SCI}\)-model by some valuation. We say that a formula \(\upvarphi \) is true in a model \(\mathcal {M} = \langle U,D, \tilde{\lnot }, \tilde{\rightarrow }, \tilde{\equiv }\rangle \), and refer to it as \(\mathcal {M}\models _\mathsf{SCI}\upvarphi \), whenever it is satisfied in \(\mathcal {M}\) by all the valuations in \(\mathcal {M}\). We call a formula \(\upvarphi \) valid, and refer to it as \(\models _\mathsf{SCI}\upvarphi \), if it is true in all \(\mathsf {SCI}\)-models. Note that over the class of models where D and \(U\setminus D\) are singletons \(\mathsf {SCI}\) collapses to classical propositional logic. In fact all formulas which are \(\mathsf {SCI}\)-instances of formulas valid in classical propositional are also valid in \(\mathsf {SCI}\). It suffices, however, to take a three-element model to tell \(\leftrightarrow \) and \(\equiv \) apart, as shown in the following example.

Example 1

Although the formula \(\lnot \lnot p \leftrightarrow p\) is a tautology of classical propositional logic, the formula \(\lnot \lnot p \equiv p\) is not valid in \(\mathsf {SCI}\). Indeed, consider an \(\mathsf {SCI}\)-model \(\mathcal {M}=\langle U, D, \tilde{\lnot }, \tilde{to}, \tilde{\equiv }\rangle \), where \(U = \{0, 1, 2\}\), \(D = \{1, 2\}\), and the operations \(\tilde{\lnot }\), \(\tilde{\rightarrow }\), \(\tilde{\equiv }\) are defined by:

$$\begin{aligned} \tilde{\lnot }a = {\left\{ \begin{array}{ll} 0,&{}\text {if } a\ne 0,\\ 1,&{}\text {otherwise}. \end{array}\right. }\ \ a \tilde{\rightarrow } b = {\left\{ \begin{array}{ll} 0,&{} \text {if } a \ne 2 \text { and }\\ &{}b = 0\text {,}\\ 2,&{} \text {if } a = b,\\ 1,&{} \text {otherwise.} \end{array}\right. }\ \ a \tilde{\equiv } b = {\left\{ \begin{array}{ll} 0,&{} \text {if } a \ne b\\ a,&{} \text {if } a = b \text { and }\\ &{}a \ne 0\text {,}\\ 1,&{} \text {otherwise.} \end{array}\right. } \end{aligned}$$

It is easy to verify that such a structure is an SCI-model. Then, the following hold:

  • \(\tilde{\lnot }\tilde{\lnot }2 = 1\), and so, \(\mathcal {M}\) and a valuation V in \(\mathcal {M}\) such that \(V(p) = 2\) falsify the formula \(\lnot \lnot p \equiv p\),

  • \(1 \tilde{\rightarrow } 2 = 1\), but \(\tilde{\lnot }2 \tilde{\rightarrow } \tilde{\lnot }1 = 2\), and so, the formula \((p \rightarrow q) \equiv (\lnot q \rightarrow \lnot p)\) is not true in \(\mathcal {M}\).

What is also characteristic of \(\mathsf {SCI}\) is that identical formulas can be interchanged within other formulas with not only truth preservation, but also identity preservation. For instance, if \(p \equiv (p \rightarrow q)\), then \(p \equiv ((p \rightarrow q)\rightarrow q)\), \(p \equiv (((p \rightarrow q)\rightarrow q)\rightarrow q)\) and so on. On the other hand, identity of two formulas does not automatically yield identity of their subformulas. For example, if \(\lnot p \equiv \lnot q\), it does not necessarily mean that \(p \equiv q\). It is worth noting that in \(\mathsf {SCI}\) we lack the usual equivalence between treating \(\wedge \), \(\vee \), and \(\leftrightarrow \) as abbreviations involving \(\lnot \) and \(\rightarrow \) and treating them as independent connectives whose mutual relations are established axiomatically. For instance, when is just a notational variant for , then is, of course, \(\mathsf{SCI}\)-valid; however, it would not be the case if we regarded \(\wedge \) as a separate connective. Nevertheless, extending our results to other connectives introduced as independent logical constants is a matter of routine.

3 Tableaux

In this section, we provide a characterization of a sound, complete and terminating labelled tableau system for the logic \(\mathsf {SCI}\), which we call \(\mathsf {T}_\mathsf {SCI}\).

Let \(\mathsf L^+\), \(\mathsf L^-\) be countably infinite disjoint sets and let \(\mathsf {L}=\mathsf {L}^+\cup \mathsf {L}^-\). We will call an expression \(w:\upvarphi \) a labelled formula, where \(w\in \mathsf {L}\) and \(\upvarphi \in \mathsf {FOR}\), and w will be called a label. We will abbreviate the set of all labelled formulas by \(\mathsf LF\). Any labels superscribed with ‘\(+\)’ are restricted to belong to \(\mathsf {L}^+\) and labels superscribed with ‘−’ to belong to \(\mathsf {L}^-\). Labels without a superscript are not restricted. Intuitively, w stands for the denotation of \(\upvarphi \) in an intended model. Labels with ‘\(+\)’ in the superscript denote elements of D, whereas labels with superscribed ‘−’ represent elements of \(U\setminus D\). Thus, expressions of the form \(w=v\) or \(w\ne v\) reflect, respectively, the equality or distinctness of two denotations. By we denote the sets of, respectively, all equalities and all inequalities of labels. Finally, we let .

A tableau generated by the system for the logic \(\mathsf {SCI}\) is a derivation tree whose nodes are assigned labelled formulas and (in)equality expressions. A simple path \(\mathcal {B}\) from the root to a leaf in a tableau \(\mathcal {T}\) is called branch of \(\mathcal {T}\). We will identify a branch \(\mathcal {B}\) with the set of labelled formulas and (in)equalities occurring on \(\mathcal {B}\).

The rules of our tableau system have the following general form: , where is the set of premises and each , for \(i\in \{1,\ldots ,n\}\), is a set of conclusions. Intuitively, the ‘\(\mid \)’ symbol should be read as a meta-disjunction. A rule with only one set of conclusions is called a non-branching rule. A rule with several sets of conclusions is a branching rule. In \(\mathsf {T}_\mathsf {SCI}\) all rules where , for \(i\in \{1,\ldots ,n\}\) contain labelled formulas are called decomposition rules. All rules with a single equality statement as the conclusion are called equality rules. The remaining rules, in which \(\bot \) occurs as the conclusion, are referred to as closure rules. If we have a decomposition rule \((\mathsf R)\) with \(w:\upvarphi \) as its premise, then \((\mathsf R)\) is applicable to \(w:\upvarphi \) occurring on a branch \(\mathcal {B}\) if it has not been applied to \(w:\upvarphi \) on \(\mathcal {B}\) before. Otherwise \(w:\upvarphi \) is called \((\mathsf R)\)-expanded on \(\mathcal {B}\). For an equality rule \((\mathsf R)\) with as the set of premises and \(w=v\) as the conclusion, \((\mathsf R)\) is applicable to if \(w=v\) is not present on \(\mathcal {B}\). Otherwise is \((\mathsf R)\)-expanded on \(\mathcal {B}\). Intuitively, if a set of premises is (\(\mathsf R\))-expanded on \(\mathcal {B}\), then applying (\(\mathsf R\)) to would not add any new information to \(\mathcal {B}\).

A branch \(\mathcal {B}\) of a tableau \(\mathcal {T}\) is extended by applying rules of the system to sets of labelled formulas and (in)equality statements that are already on \(\mathcal {B}\). A label w is present on \(\mathcal {B}\) if there exists a formula \(\upvarphi \) such that \(w:\upvarphi \) occurs on \(\mathcal {B}\). Otherwise w is fresh on \(\mathcal {B}\). A branch \(\mathcal {B}\) is called closed if one of the closure rules has been applied to it, that is, when an inconsistency occurs on \(\mathcal {B}\). A branch that is not closed, is open. A branch \(\mathcal {B}\) is fully expanded if it is closed or no rules are applicable on it. A tableau \(\mathcal {T}\) is called closed if all of its branches are closed. Otherwise \(\mathcal {T}\) is called open. We call \(\mathcal {T}\) fully expanded if all of its branches are fully expanded.

Analytic tableaux are satisfiability checkers, so a tableau proof of a formula \(\upvarphi \) is a closed tableau with a labelled formula \(w^-:\upvarphi \) at its root. A formula is tableau-valid if all tableaux with \(w^-:\upvarphi \) at the root are closed. On the other hand, a formula \(\varphi \) is tableau-satisfiable if there exists an open and fully expanded tableau with a labelled formula \(w^+:\upvarphi \) at its root. Note that our notion of tableau-satisfiability matches the usual notion of satisfiability as a failure of finding a proof. Indeed, if a formula \(\upvarphi \) is not tableau-valid, that is, there exists a tableau with \(w^-:\upvarphi \) at the root which has an open branch, then \(\lnot \upvarphi \) is tableau-satisfiable. Thus, the standard duality between validity and satisfiability is reflected in the concepts of tableau-validity and tableau-satisfiability.

Fig. 1.
figure 1

Tableau system \(\mathsf {T}_\mathsf {SCI}\)

3.1 Tableau System for \(\mathsf {SCI}\)

The rules presented in Figure 1 constitute the tableau system \(\mathsf {T}_\mathsf {SCI}\) for the logic \(\mathsf {SCI}\). The decomposition rules \((\lnot ^+)\), \((\lnot ^-)\), \((\rightarrow ^+)\), \((\rightarrow ^-)\), \((\equiv ^+)\), \((\equiv ^-)\) reflect the semantics of \(\lnot \), \(\rightarrow \) and \(\equiv \) defined in the conditions 13 from Section 2. Note that an application of any of these rules introduces to a branch fresh labels for each of the subformulas into which the premise formula is decomposed. By that means, all occurrences of subformulas of the input formula \(\upvarphi \) are assigned their unique labels. A few words of extra commentary on the rule \((\equiv ^-)\) are in order. It decomposes a formula involving the \(\equiv \) connective, which is assumed to be false. By the semantics of \(\equiv \) we know that the constituents of the initial \(\equiv \)-formula have distinct denotations. If these denotations have different polarities, representing different truth values (disjuncts 2 and 3 in the denominator of the rule), then no additional information has to be stored about the distinctness of these denotations. If, on the other hand, the denotations have the same polarity, representing the same truth value (disjuncts 1 and 4 in the denominator of the rule), then extra information is added, namely that the denotations of both formulas are distinct. The rules \((\equiv ^\lnot )\), \((\equiv ^\rightarrow )\) and \((\equiv ^\equiv )\) are tableau-counterparts of the axioms 5, 6, and 7, respectively. The rule \((\mathsf {F})\) ensures that a valuation that can be read off from an open branch is a function, i.e., that all denotations assigned to the same formula on a branch are equal. The rules \((\mathsf sym)\) and \((\mathsf tran)\) guarantee that equalities appearing on a branch preserve all properties of the \(=\)-relation. Note that an application of a closure rule to a branch is always a result of transformations of equality statements. While executing \(\mathsf {T}_\mathsf {SCI}\) we always apply closure rules eagerly, that is, whenever a closure rule can be applied, it should be applied. An example of a tableau proof generated by \(\mathsf {T}_\mathsf {SCI}\) can be found in Figure 2.

Fig. 2.
figure 2

Tableau proof for the axiom

The tableau system \(\mathsf {T}_\mathsf {SCI}\) is a user-friendly and elegant solution to the problem most non-labelled systems for \(\mathsf {SCI}\) struggle with, namely substitutability of identical formulas within other formulas with identity preservation. In a derivation that can result in yielding conclusions of greater complexity than premises, as shown at the end of Section 2. It often leads to a loss of subformula property in a deduction system. \(\mathsf {T}_\mathsf {SCI}\), on the other hand, reduces the whole reasoning to a simple equality calculus where only identities or non-identities between labels are substantial for the result of a given derivation. It allows us to circumvent the abovementioned problem by replacing it with a question: are labels representing given formulas equal or distinct?

3.2 Soundness and Completeness

First, we will prove soundness of the tableau system \(\mathsf {T}_\mathsf {SCI}\).

Let AB be finite sets such that \(A \subseteq \mathsf {LF}\) and \(B \subseteq \mathsf {Id}\). A set \(A \cup B\) is said to be satisfied in an \(\mathsf {SCI}\)-model \(\mathcal {M}= \langle U, D, \tilde{\lnot }, \tilde{\rightarrow }, \tilde{\equiv }\rangle \) by a valuation V in \(\mathcal {M}\) and a function \(f : \mathsf {L} \longrightarrow U\) if and only if the following hold: (1) \(V(\upvarphi ) = f(w)\), for all \(w \in \mathsf {L}\) and \(\upvarphi \in \mathsf {FOR}\) such that \(w : \upvarphi \in A\), (2) \(f(w) \in D\) iff \(w \in \mathsf {L}^+\), for all labels w that occur in \(A \cup B\), (3) \(f(w) = f(v)\), for all \(w, v \in \mathsf {L}\) such that \(w=v \in B\), (4) \(f(w) \ne f(v)\), for all \(w, v \in \mathsf {L}\) such that \(w\ne v \in B\). A set \(A \cup B\) is said to be \(\mathsf {SCI}\)-satisfiable whenever there exist an \(\mathsf {SCI}\)-model \(\mathcal {M}= \langle U, D, \tilde{\lnot }, \tilde{\rightarrow }, \tilde{\equiv } \rangle \), a valuation V in \(\mathcal {M}\), and a function \(f : \mathsf {L} \longrightarrow U\) such that \(A \cup B\) is satisfied in \(\mathcal {M}\) by V and f.

Proposition 1

For every satisfiable \(\mathsf {SCI}\)-formula \(\upvarphi \) and for all \(w^+ \in \mathsf {L}^+\) it holds that \(\{w^+ : \upvarphi \}\) is \(\mathsf {SCI}\)-satisfiable.

Proposition 2

For all \(w, v \in \mathsf {L}\), \(w^+ \in \mathsf {L}^+\), and \(v^- \in \mathsf {L}^-\), and for all finite \(X \subseteq \mathsf {LF} \cup \mathsf {Id}\), the sets \(X \cup \{w=v, w \ne v\}\) and \(X \cup \{w^+=v^-\}\) are not \(\mathsf {SCI}\)-satisfiable.

Let \((\mathsf {R})\) , for \(n \ge 1\), be a decomposition or equality rule of the tableau system \(\mathsf {T}_\mathsf {SCI}\). A rule \((\mathsf {R})\) is referred to as sound whenever, for every finite set \(X \subseteq \mathsf {LF} \cup \mathsf {Id}\), it holds that is \(\mathsf {SCI}\)-satisfiable iff is \(\mathsf {SCI}\)-satisfiable for some \(i \in \{1, \ldots , n\}\).

Proposition 3

Decomposition and equality rules of the tableau system \(\mathsf {T}_\mathsf {SCI}\) are sound.

Theorem 1 (Soundness)

The tableau system \(\mathsf {T}_\mathsf {SCI}\) is sound, that is, if an \(\mathsf {SCI}\) formula \(\upvarphi \) is satisfiable, then \(\upvarphi \) is tableau-satisfiable.

Proof

We prove the contrapositive. Let \(\mathcal {T}\) be a closed \(\mathsf {T}_\mathsf {SCI}\)-tableau with \(w^+ : \upvarphi \) at its root. Then, each branch of \(\mathcal {T}\) contains either \(w^+ = v^-\) or both \(w=v\) and \(w \ne v\), for some \(w,v \in \mathsf {L}\), \(w^+ \in \mathsf {L}^+\), \(v^- \in \mathsf {L}^-\). By Proposition 2, both sets \(X\cup \{w^+ = v^-\}\) and \(X \cup \{w=v, w\ne v\}\) are not \(\mathsf {SCI}\)-satisfiable, for any finite set \(X \subseteq \mathsf {LF} \cup \mathsf {Id}\). By Proposition 3, each application of \(\mathsf {T}_\mathsf {SCI}\)-rules preserves \(\mathsf {SCI}\)-satisfiability. Hence, going from the bottom to the top of the tree \(\mathcal {T}\), on each step of the construction of \(\mathsf {T}_\mathsf {SCI}\)-tableau we get \(\mathsf {SCI}\)-unsatisfiable sets. Thus, we can conclude that \(w^+ : \upvarphi \) is not \(\mathsf {SCI}\)-satisfiable, and thus by Proposition 1 we obtain that \(\upvarphi \) is not SCI-satisfiable. Therefore, each satisfiable \(\mathsf{SCI}\)-formula \(\upvarphi \) is tableau-satisfiable.   \(\square \)

To prove completeness of the system \(\mathsf {T}_\mathsf {SCI}\) we need to show that if, for a given formula \(\upvarphi \), \(\mathsf {T}_\mathsf {SCI}\) does not yield a tableau proof, then \(\upvarphi \) is not valid, i.e., there exists a countermodel \(\mathcal {M}=\langle U,D,V\rangle \) such that \(\mathcal {M}\not \models \upvarphi \).

Suppose that we want to obtain a tableau-proof for a formula \(\upvarphi \). To that end, we run the \(\mathsf {T}_\mathsf {SCI}\)-tableau algorithm with a labelled formula \({\mathbf {w}^-}: \upvarphi \) at the root of the tableau, for \(\mathbf {w}^- \in \mathsf {L}^-\). Suppose that it yields an open tableau as a result. It means that the tableau contains an open and fully expanded branch \(\mathcal {B}\). We will demonstrate how to construct a structure \(\mathcal {M}_{\mathcal {B}}=\langle U,D, \tilde{\lnot }, \tilde{\rightarrow }, \tilde{\equiv }\rangle \) using information stored on \(\mathcal {B}\) and show that it actually is an \(\mathsf {SCI}\)-countermodel falsifying \(\upvarphi \). Let \(\mathsf {L}_{\mathcal {B}}^+\) be the set of all labels superscribed with ‘\(+\)’ occurring on \(\mathcal {B}\), let \(\mathsf {L}_{\mathcal {B}}^-\) be the set of all labels superscribed with ‘−’ occurring on \(\mathcal {B}\) and let \(\mathsf {L}_{\mathcal {B}}=\mathsf {L}_{\mathcal {B}}^+\cup \mathsf {L}_{\mathcal {B}}^-\). Moreover, let \(\mathsf {FOR}_{\mathcal {B}}\) be the set of all \(\mathsf {SCI}\)-formulas \(\upvarphi \) such that \(w: \upvarphi \) occurs on \(\mathcal {B}\), for some \(w \in \mathsf {L}_{\mathcal {B}}\). Note that all elements of \(\mathsf {FOR}_{\mathcal {B}}\) are subformulas of \(\upvarphi \). Before we characterize the construction of \(\mathcal {M}_{\mathcal {B}}\), we define a binary relation \(\sim \subseteq \mathsf {L}_{\mathcal {B}}\times \mathsf {L}_{\mathcal {B}}\) in the following way:

$$\begin{aligned} w\sim v\qquad \text { iff} \qquad w=v \text { occurs on }\mathcal {B}. \end{aligned}$$

Proposition 4

The relation \(\sim \) is an equivalence relation and \((\mathsf {L}_{\mathcal {B}}^+\times \mathsf {L}_{\mathcal {B}}^-)\cap {\sim }=\emptyset \).

Let \(\mathsf {ML}_\mathcal {B}^+\) be a set resulting from choosing exactly one label from each element of \(({\mathsf {L}_{\mathcal {B}}^+})_{/\sim }\). Sets \(\mathsf {ML}_\mathcal {B}^-\) and \(\mathsf {ML}_\mathcal {B}\) are defined analogically with the assumption that \(\mathbf {w}^- \in \mathsf {ML}_\mathcal {B}^-\), where \(\mathbf {w}^-\) is such that \(\mathbf {w}^- : \upvarphi \) is at the root of an open tableau. Of course, neither of these sets is uniquely determined.

Proposition 5

For all and \(w, v \in \mathsf {L}_{\mathcal {B}}\) the following holds:

We say that \(w \in \mathsf {ML}_\mathcal {B}\) is \((\lnot )\)-closed whenever there are , \(u \in \mathsf {ML}_\mathcal {B}\), and \(v, t \in \mathsf {L}_{\mathcal {B}}\) such that \(w \sim v\), \(u \sim t\) and labelled formulas , belong to \(\mathcal {B}\). Let \(w, v \in \mathsf {ML}_\mathcal {B}\) and \(\# \in \{\rightarrow , \equiv \}\). The pair (wv) is said to be \((\#)\)-closed whenever there exist , \(u \in \mathsf {ML}_\mathcal {B}\), and \(t, x, y \in \mathsf {L}_{\mathcal {B}}\) such that \(w \sim t\), \(v \sim x\), \(u \sim y\) and labelled formulas , \(x : \uptheta \), occur on the branch \(\mathcal {B}\).

The branch structure \(\mathcal {M}_{\mathcal {B}} = \langle U, D, \tilde{\lnot }, \tilde{\rightarrow }, \tilde{\equiv }\rangle \) is defined as follows:

  • \(D=\{w^+\mid w^+\in \mathsf {ML}_\mathcal {B}^+\}\cup \{\mathbf {w}^+\}\), where \(\mathbf {w}^+\notin \mathsf {L}_{\mathcal {B}}\)

  • \(U=D\cup \mathsf {ML}_\mathcal {B}^-\).

It follows from the above that \(U\setminus D=\mathsf {ML}_\mathcal {B}^-\). The operations \(\tilde{\lnot }, \tilde{\rightarrow }, \tilde{\equiv }\) are defined for all \(w, v \in U\) in the following way:

figure a

Due to the properties of the sets \(\mathsf {ML}_\mathcal {B}^+\) and \(\mathsf {ML}_\mathcal {B}^-\), we obtain:

Proposition 6

The sets D and \(U \setminus D\) are non-empty and \(D \cap (U \setminus D) = \emptyset \).

The following series of results ensure that the operations \(\tilde{\lnot }\), \(\tilde{\rightarrow }\), and \(\tilde{\equiv }\) reflect the semantics of \(\mathsf {SCI}\).

Proposition 7

\(\tilde{\lnot }\) is a function on U and for all \(w \in U\):

\((*)\):

\(\tilde{\lnot }w \in D\) iff \(w \not \in D\).

Proposition 8

\(\tilde{\rightarrow }\) is a function on U and for all \(w, v \in U\), the following holds:

\((*)\):

\(w \tilde{\rightarrow }v \in D\) iff \(w \not \in D\) or \(v \in D\).

Proposition 9

\(\tilde{\equiv }\) is a function on U and for all \(w, v \in U\) the following holds:

\((*)\):

\(w \tilde{\equiv }v \in D\) iff \(w =v\).

Propositions 69 imply:

Proposition 10

The structure \(\mathcal {M_B}\) is an \(\mathsf {SCI}\)-model.

In what follows, the structure \(\mathcal {M}_{\mathcal {B}}\) will be referred to as branch model.

Now, let \(V : \mathsf {FOR} \longrightarrow U\) be a function such that for all \(p \in \mathsf {AF}\):

$$\begin{aligned} V(p) = {\left\{ \begin{array}{ll}u \in \mathsf {ML}_\mathcal {B}, &{}\text {if there is }w \in \mathsf {L}_{\mathcal {B}}\text { such that }w : p \in \mathcal {B}\text { and }w \sim u\\ \mathbf {w}^+, &{}\text { otherwise }\end{array}\right. } \end{aligned}$$

and for all the following hold:

, for \(\# \in \{\rightarrow , \equiv \}\).

Proposition 11

The function V is well defined and it is a valuation in \(\mathcal {M}_{\mathcal {B}}\).

Proposition 12

For all and \(w \in \mathsf {L}_{\mathcal {B}}\) it holds that:

\((*)\):

If , then .

Theorem 2 (Completeness)

The tableau system \(\mathsf {T}_\mathsf {SCI}\) is complete, that is, if a formula \(\upvarphi \) is \(\mathsf {SCI}\)-valid, then \(\upvarphi \) has a tableau proof.

Proof

Let \(\upvarphi \) be a valid \(\mathsf {SCI}\)-formula. Suppose that \(\upvarphi \) does not have a tableau proof. Then, each \(\mathsf {T}_\mathsf {SCI}\)-tableau with \(\mathbf {w}^- : \upvarphi \) at its root is open. Let \(\mathcal {B}\) be an open and fully expanded branch of an open tableau for \(\mathbf {w}^- : \upvarphi \). By Proposition 10, the structure \(\mathcal {M_B} = \langle U, D, \tilde{\lnot }, \tilde{\rightarrow }, \tilde{\equiv }\rangle \) is an \(\mathsf {SCI}\)-model. Let V be a valuation in \(\mathcal {M_B}\) defined as before Proposition 11 Then, by Proposition 12, \(\mathbf {w}^- \sim V(\upvarphi )\), and hence \(V(\upvarphi ) \not \in D\). Thus, \(\upvarphi \) is not true in \(\mathcal {M_B}\), which contradicts the assumption that \(\upvarphi \) is \(\mathsf {SCI}\)-valid.   \(\square \)

3.3 Termination

It turns out that the system presented in Section 3.1 terminates without any external blocking mechanisms involved which would impose some additional restrictions on rule-application. The only caveat that has to be added to the system is the one that we have already expressed, namely that no rule (R) can be applied to the set of premises that is (R)-expanded.

Theorem 3

The tableau system \(\mathsf {T}_\mathsf {SCI}\) is terminating.

Proof

The argument hinges on two observations. First, the decomposition rules are the only rules that introduce fresh labels to a branch \(\mathcal {B}\) of a \(\mathsf {T}_\mathsf {SCI}\)-tableau \(\mathcal {T}\), and, as mentioned before, on a branch \(\mathcal {B}\) each occurrence of a subformula of the initial formula \(\upvarphi \) is assigned its unique label. Thus, since an application of any of the above rules decreases the complexity of the processed formula and the rule cannot be applied twice to the same premise, the total number of labels occurring on a branch does not exceed the size of \(\upvarphi \) measured as the number of all occurrences of subformulas of \(\upvarphi \) (henceforth denoted by \(|\upvarphi |\)). Secondly, the equality rules can only add equalities between labels to a branch, provided that such an equality statement is not already present thereon. The maximal number of such equalities is quadriatic in the total number of labels occurring on a branch. Thus, for each \(\mathsf {SCI}\)-formula \(\upvarphi \), on any branch \(\mathcal {B}\) of a \(\mathsf {T}_\mathsf {SCI}\)-tableau for \(\upvarphi \), rules are applied at most \(|\upvarphi |+|\upvarphi |^2+1\) times, where ‘1’ in the formula represents an application of a closure rule. This makes the whole derivation finite.   \(\square \)

Corollary 1

For each \(\mathsf {SCI}\)-formula \(\upvarphi \) every branch \(\mathcal {B}\) of a \(\mathsf {T}_\mathsf {SCI}\)-tableau derivation for \(\upvarphi \) is of polynomial size with respect to the size of \(\upvarphi \).

Since \(\mathsf {SCI}\) contains classical propositional logic, it inherits the NP-lower bound for the satisfiability problem therefrom. Together with membership of \(\mathsf {SCI}\)-satisfiability in NP it gives the following:

Theorem 4

\(\mathsf {T}_\mathsf {SCI}\) is a complexity-optimal decision procedure for the NP-complete problem of \(\mathsf {SCI}\)-satisfiability.

Proof

Immediate from Corollary 1 and the fact that each branching rule of \(\mathsf {T}_\mathsf {SCI}\) is finitely branching.   \(\square \)

3.4 Limiting the Number of Labels

To boost the performance of the system \(\mathsf {T}_\mathsf {SCI}\) we propose a refinement thereof. It consists in limiting the number of fresh labels introduced to a tableau by decomposition rules by introducing an additional condition called urfather blocking

Given a formula \(\upvarphi \) for which we construct a \(\mathsf {T}_\mathsf {SCI}\)-tableau \(\mathcal {T}\), for each subformula of \(\upvarphi \), let’s call the first occurrence of a labelled formula on a branch \(\mathcal {B}\) of \(\mathcal {T}\) the -urfather on \(\mathcal {B}\). The system \(\mathsf {T}_\mathsf {SCI}+(\mathsf{UB})\) (tableau system for SCI with urfather blocking) is composed of the rules of \(\mathsf {T}_\mathsf {SCI}\) and an additional constraint:

\((\mathsf {UB})\):

For each labelled formula \(w:\upvarphi \) that occurs on a branch \(\mathcal {B}\), no decomposition rule can be applied to \(w:\upvarphi \) unless it is the \(\upvarphi \)-urfather on \(\mathcal {B}\).

It turns out that deflist\(\mathsf {T}_\mathsf {SCI}\) with \(\mathsf (UB)\) does not lead to any unwanted consequences such as giving up the completeness.

Proposition 13

For every \(\mathsf SCI\)-formula \(\upvarphi \), if \(\upvarphi \) has a \(\mathsf{T}_\mathsf{SCI}\)-tableau proof, then \(\upvarphi \) has \(\mathsf TC_{SCI}+(UB)\)-tableau proof.

Theorem 5

\(\mathsf {T}_\mathsf {SCI}+(\mathsf{UB})\) is sound, complete, terminating, and complexity-optimal for \(\mathsf {SCI}\)-satisfiability.

Proof

The soundness of \(\mathsf {T}_\mathsf {SCI}+(\mathsf{UB})\) straightforwardly follows from the soundness of \(\mathsf {T}_\mathsf {SCI}\) and the fact that both systems share the full set of rules. The argument for termination of \(\mathsf {T}_\mathsf {SCI}+(UB)\) and complexity-optimality of \(\mathsf {T}_\mathsf {SCI}+(UB)\) for \(\mathsf {SCI}\)-satisfiability goes along the same lines as the proofs of Theorems 3 and 4, and rests on the fact that, for each formula \(\upvarphi \), a \(\mathsf {T}_\mathsf {SCI}+(\mathsf{UB})\)-tableau contains at most as many labels as a \(\mathsf {T}_\mathsf {SCI}\)-tableau. The completeness of \(TSCI+(UB)\) is a direct consequence of Proposition 13 and Theorem 2.   \(\square \)

4 Implementation

4.1 Overview

We have written proof-of-concept type implementations of the labelled tableau system described in the present article and its variant with urfather blocking, as well as a dual-tableau-based theorem prover for \(\mathsf {SCI}\) based on the system from [5]. Since the last system does not enjoy the termination property, the implementation relies on heuristics in this respect. All three provers are implemented in the Haskell language using similar programming techniques in a casual manner, without any serious attempt to optimize the code or to test it extensively, as the programs are only intended as temporary aids to ongoing research.

In testing, the labelled-tableau provers turned out to need drastically more computing resources even in many quite modest test cases. For instance, the axiom \(((\textsf {p} \equiv \textsf {q}) \wedge (\textsf {r} \equiv \textsf {s})) \rightarrow ((\textsf {p} \equiv \textsf {r}) \equiv (\textsf {q} \equiv \textsf {s}))\) generates a labelled tableau of depth 37 consisting of 619 nodes, which urfather blocking reduces to depth 33 and 555 nodes, while the tree of the dual-tableau prover has depth 18 and only 67 nodes. The difference appears to be mostly due to the large branching factor of the identity rules of the labelled-tableau system. However, in some test cases the labelled-tableau system yields a smaller tree than the other prover. In general, the labelled tableau method seems to tolerate relatively well formulas consisting of a large number of very simple identitities.

4.2 Technical Notes

Unlike the abstract tree described above, each node of which contains only a single labelled formula, each node of the tree built by the program contains a list of all the labelled formulas encountered so far on the branch. This allows the program to freely manipulate the list to keep track of what rules have already been applied to which formulas. There are three main types of nodes: normal nodes, identity nodes, and leaves. First, the decomposition rules are applied in normal nodes. Once they have been applied to exhaustion, the tree is extended with identity nodes, in which the identity rules are applied. At any point, one of the closure rules \((\bot _1)\) or \((\bot _2)\) can be applied to append a special closure leaf node. An open leaf node is appended whenever there are no more rules to apply in an identity node and the branch remains open.

4.3 Test Results

We found a randomly generated provable \(\mathsf {SCI}\)-formula that turned out to be somewhat challenging to an earlier prover. The formula, which we will call the \(\upvarphi \) here, looks as follows:

$$\begin{aligned} (((\textsf {q} \equiv \textsf {p})&\rightarrow (\textsf {p} \rightarrow \textsf {r})) \equiv ((\textsf {p} \rightarrow (\textsf {p} \leftrightarrow \textsf {p})) \equiv \textsf {p}))\\&\rightarrow (((\textsf {r} \wedge \textsf {p}) \leftrightarrow (\textsf {p} \equiv \textsf {p})) \vee ((\textsf {p} \wedge \textsf {p}) \vee \lnot \textsf {q})) \end{aligned}$$

We denote by  the formula obtained by replacing each occurrence of \(\textsf {p}\) in \(\upvarphi \) by \(\upvarphi \) itself. We defined a provability-preserving transformation T that turns an \(\mathsf {SCI}\)-formula into a Horn clause consisting of very simple identities.

We present the results of attempting to prove the formulas \(\upvarphi \), \(\lnot \upvarphi \), , , \(T(\upvarphi )\), and \(T(\lnot \upvarphi )\). These are chosen to illustrate some of the variety of outcomes we observed. As noted above, \(\upvarphi \) is provable, and therefore also  and \(T(\upvarphi )\) are provable. The results are of the form depth/size, where depth is the maximal branch length and size is the number of nodes in the entire tree. There are entries for the dual-tableau-based prover (\(\mathsf DT_{SCI}\)), the current labelled-tableau prover (\(\mathsf {T}_\mathsf {SCI}\)), and the same with the urfather blocking condition (\(\mathsf {T}_\mathsf {SCI}+ (\mathsf{UB})\)). Several entries are missing due to exhaustion of memory (the programs were tested on a machine with 8GB of RAM; adding several gigabytes of swap space did not make a difference).

Formula

\(\mathsf DT_{\mathsf {SCI}}\)

\(\mathsf {T}_\mathsf {SCI}\)

\(\mathsf {T}_\mathsf {SCI}+ (\mathsf{UB})\)

 

depth

size

depth

size

depth

size

\(\upvarphi \)

27

299

37

4724

32

4659

\(\lnot \upvarphi \)

12

42

202

111539

106

95724

61

17729

46

3023804

42

602

\(T(\upvarphi )\)

143

40230

106

34158

\(T(\lnot \upvarphi )\)

529

52789

490

46153

5 Conclusions

In this paper we introduced the system \(\mathsf {T}_\mathsf {SCI}\) which is the first complexity-optimal decision procedure for the logic \(\mathsf {SCI}\) devised in the paradigm of labelled tableaux. \(\mathsf {T}_\mathsf {SCI}\) is conceptually simple and directly reflects the semantics of the logic. The reasoning performed in \(\mathsf {T}_\mathsf {SCI}\) has two components: decomposition and equality reasoning. Interestingly, it is the latter that is responsible for closing tableau branches, and thus, yielding tableau proofs for formulas. In this respect \(\mathsf {T}_\mathsf {SCI}\) is based on similar conceptual foundations as calculi generated by the tableau-synthesis framework from [20].We provided an implementation of \(\mathsf {T}_\mathsf {SCI}\) and a variant with urfather blocking, and we compared their performance with the performance of another implemented deduction system for \(\mathsf {SCI}\) which has not been proven to be terminating or complete. There was no unique winner; the new system was better at dealing with formulas with complex networks of identities, while the old, unproven system handled other types of formulas better. Urfather blocking yielded modest reductions in depth and total size.

In future research we want to address three main problems. First, we would like to optimize our tableau algorithm by introducing further refinements to it, such as decreasing the branching factor of the rule \((\rightarrow ^+)\) and, by that means, making it “information-deleting”. Some prelimiary results on the implementation of \(\mathsf {T}_\mathsf {SCI}\) with the modified rule \((\rightarrow ^+)\) show a promising reduction of the size of generated tableaus. Moreover, we plan to search for heuristics and rule-application strategies which would, too, allow to minimize the size of tableaux yielded by \(\mathsf {T}_\mathsf {SCI}\) for certain classes of formulas. It seems that it is not always necessary to fully decompose the input formula before performing any equality reasoning, if a contradiction is to be reached on a branch. Secondly, we would like to develop the dual-tableau systems from [5] and [10] to full-fledged decision procedures, implement them, and compare the performance of all three algorithms on an extensive set of various \(\mathsf {SCI}\)-formulas. Thirdly, we intend to extend the labelled tableaux-based approach presented in this paper to other non-Fregean logics, both classical (such as modal non-Fregean logics) and deviant (such as intuitionistic or many-valued non-Fregean logics, or Grzegorczyk’s logic). Finally, we would like to take a closer look at various normal forms of \(\mathsf SCI\) formulas, one of which was mentioned in Section 4, and decide in what cases it pays off to transform a formula into a normal form before running a decision procedure, rather than running it directly on the initial formula.