Next Article in Journal
Planning, Execution, and Control of Operations in SC Activities—Baja California Manufacturing Case Study
Previous Article in Journal
On Some Examples of Trajectories in R7
Previous Article in Special Issue
Interpolation and Uniform Interpolation in Quantifier-Free Fragments of Combined First-Order Theories
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Decidability Preservation and Complexity Bounds for Combined Logics

by
Carlos Caleiro
*,† and
Sérgio Marcelino
Security and Quantum Information Group—Instituto de Telecomunicações, Department Matemática—Instituto Superior Técnico, Universidade de Lisboa, 1049-001 Lisbon, Portugal
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Mathematics 2022, 10(19), 3481; https://doi.org/10.3390/math10193481
Submission received: 1 June 2022 / Revised: 14 September 2022 / Accepted: 15 September 2022 / Published: 23 September 2022
(This article belongs to the Special Issue Decidability of Logics and Their Theories and Combinations)

Abstract

:
Transfer theorems for combined logics provide essential tools and insight for reasoning about complex logical systems. In this paper, we present the first sufficient criterion (contextual extensibility) for decidability to be preserved through combination of propositional logics, and we study the complexity upper bounds induced by the method. In order to assess the scope and usability of our criterion, we illustrate its use in re-obtaining two standard important (though partial) results of the area: the preservation of decidability for disjoint combinations of logics, and the preservation of decidability for fusions of modal logics. Due to the very abstract nature and generality of the idea underlying contextual extensibility, we further explore its applicability beyond propositional logics. Namely, we explore the particular case of 2-deductive systems, and as a byproduct, we obtain the preservation of decidability for disjoint combinations of equational logics and discuss the relationship of this result and of our criterion with several related results with meaningful applications in satisfiability modulo theories.
MSC:
03B62; 03B22; 03B35

1. Introduction

Combining logics is a powerful and appealing idea—namely when coupled with powerful results that may allow the transfer of useful properties from the simpler logics being combined to the more complex resulting logic—proposed in its general form by Dov Gabbay in [1,2]. Given its fundamental character, the understanding of combined logics is a key ingredient of the general theory of universal logic [3,4] as well as a valuable tool for the construction and analysis of complex logics, a subject of growing importance in application fields such as software engineering and artificial intelligence (see, for instance, the FroCoS series of events and publications in [5]).
Despite the long track of work on combined logics, leading to a substantial understanding of their semantics and proof-theory (see [6,7,8,9,10,11,12]), automated support for combined logics is still lacking. This happens, in particular, because decidability-preservation results are scarce. Namely, we know from [13,14] that decidability is preserved by disjoint combinations of propositional logics, a result that is still far from most interesting practical uses. The only general result related to (but still distant from) decidability is [15], where the preservation of the semantic notion of finite model property is studied. There is also a proof of decidability preservation for fusions of modal logics [16,17], but which uses ideas and results from modal semantics that cannot be easily generalized. In a related, but somewhat different vein, there are a number of interesting and important decidability results about combined theories of equational and first-order logic [18,19,20,21,22,23,24,25,26,27] that explore similar ideas but that do not exactly fit the same purpose.
It is tempting to try to use semantic arguments to address the decidability of combined logics. However, only recently have we obtained usable general denotational semantics for combined propositional logics [12], which naturally builds models of the combined logic from models of the component logics. In this paper, we shall not use semantics, but we will take advantage, in an essential way, the breakthroughs allowed by this gained understanding beyond the disjoint case, in order to formulate a natural and abstract criterion for decidability preservation when combining logics in context extensibility. It is worth noting that, in general (see, for instance, [14]), decidability is not preserved nor reflected by combination, and that our criterion is a sufficient condition for decidability to be transferrable.
The main contributions of this paper are: (i) the definition, for the first time, of such an abstract criterion for decidability preservation, in the form of an extensibility condition with respect to a contextual syntactic function (Section 2.4); (ii) the fact that our proof of decidability preservation is constructive, which allows us to show how to put up decision procedures for the combined logic using decision procedures for the components and to study the resulting complexity upper bounds (Theorem 2); (iii) the illustrations provided show that the notion of contextual extensibility is not too strong, as it can be used to recover two previous results in the area, namely, the preservation of decidability for disjoint combinations of logics [14] and the preservation of decidability for fusions of modal logics [16] (Section 2.5); and (iv) finally, but notably, the smooth extension of our results beyond the propositional case, and in particular to the setting of 2-deductive systems (Section 3) allows us to prove the preservation of decidability for disjoint combinations of equational logics (Section 3.5.2). This last application is definitely related to the literature on decidability of combined theories already mentioned and as we discuss further, and somehow opens the way for a hopefully fruitful track of future results.
The rest of the paper consists, essentially, of two similar parts, namely comprising Section 2 and Section 3. The first of these is dedicated to combined propositional logics, while the other extends all the results to the setting of 2-deductive systems, but both essentially follow the same structure, including a characterization of combined logics, our criterion for decidability preservation, and then meaningful illustrations. The paper closes in Section 4 with a summary of the results achieved and an outlook of future research.

2. Logics and Their Combination

We first study Tarski-style consequence relations (propositional logics), their combination, and the transference of decidability from the logics being combined to the resulting combined logic.

2.1. Syntax

The syntax of a (propositional) logic is defined, as usual, by means of a signature, an indexed family Σ = { Σ ( n ) } n N 0 of denumerable sets, where each Σ ( n ) contains all allowed n-place connectives, and an infinite denumerable set P of variables (which we consider fixed once and for all). As standard, L Σ ( P ) denotes the set of all formulas constructed from the variables in P using the connectives in Σ . We will use p , q , r , to denote variables, A , B , C , to denote formulas, and Γ , Δ , Θ , to denote sets of formulas, in all cases possibly with annotations.
We use var ( A ) , sub ( A ) , hd ( A ) to denote, respectively, the set of variables occurring in A, the set of subformulas of A, and the head constructor of A, given a formula A L Σ ( P ) . These notations have simple inductive definitions: var ( p ) = sub ( p ) = { p } , and hd ( p ) = p for p P ; and if © Σ ( n ) and A 1 , , A n L Σ ( P ) , var ( © ( A 1 , , A n ) ) = i = 1 n var ( A i ) , sub ( © ( A 1 , , A n ) ) = { © ( A 1 , , A n ) } i = 1 n sub ( A i ) , and hd ( © ( A 1 , , A n ) ) = c . All these notations extend to sets of formulas in the obvious way.
As we are considering combined logics with mixed syntax, we need to consider different signatures, as well as relations and operations between signatures. Signatures being families of sets, the usual set-theoretic notions can be smoothly extended to signatures. We sometimes abuse notation and confuse a signature Σ with the set ( n N 0 Σ ( n ) ) of all its connectives, and write © Σ when © is some n-place connective © Σ ( n ) . For this reason, the empty signature, with no connectives at all, will be simply denoted by ∅.
Let Σ , Σ 0 be two signatures. We say that Σ 0 is a subsignature of Σ and write Σ 0 Σ whenever Σ 0 ( n ) Σ ( n ) for every n N 0 . Expectedly, given signatures Σ 1 , Σ 2 , we can also define the shared subsignature  Σ 1 Σ 2 = { Σ 1 ( n ) Σ 2 ( n ) } n N 0 , the combined signature Σ 1 Σ 2 = { Σ 1 ( n ) Σ 2 ( n ) } n N 0 , and the difference signature Σ 1 \ Σ 2 = { Σ 1 ( n ) \ Σ 2 ( n ) } n N 0 . Clearly, Σ 1 Σ 2 is the largest subsignature of both Σ 1 and Σ 2 and contains the connectives shared by both. When there are no shared connectives, we have that Σ 1 Σ 2 = . Analogously, Σ 1 Σ 2 is the smallest signature that has both Σ 1 and Σ 2 as subsignatures, and it features all the connectives from both Σ 1 and Σ 2 in a combined signature. Furthermore, Σ 1 \ Σ 2 is the largest subsignature of Σ 1 that does not share any connectives with Σ 2 .
A substitution is a function σ : P L Σ ( P ) , which, of course, extends freely to a function σ : L Σ 0 ( P ) L Σ ( P ) for every Σ 0 Σ . As usual, we use A σ to denote the formula that results from A L Σ 0 ( P ) by uniformly replacing each variable p var ( A ) with σ ( p ) , and Γ σ = { A σ : A Γ } for each Γ L Σ ( P ) .
Note that if Σ 0 Σ , then L Σ 0 ( P ) L Σ ( P ) . Still, L Σ 0 ( P ) and L Σ ( P ) are both infinite denumerable. In fact, the pair can be endowed with a very useful bijection capturing the view of an arbitrary L Σ ( P ) formula from the point of view of Σ 0 , the skeleton function skel Σ 0 : L Σ ( P ) L Σ 0 ( P ) (or simply skel 0 , or even skel ), for which the underlying idea we borrow from [28]. Note that given A L Σ ( P ) , hd ( A ) may be in Σ \ Σ 0 , in which case we dub A a Σ 0 -monolith or simply a monolith. The idea is simply to replace monoliths with dedicated variables, just renaming the original variables. Let Mon ( Σ 0 , Σ ) be the set of all monoliths. It is easy to see that Mon ( Σ 0 , Σ ) is always denumerable, though it can be finite when Σ \ Σ 0 contains nothing but a finite set of 0-place connectives. In any case, Mon ( Σ 0 , Σ ) P is always infinite denumerable because P is, and thus we can fix a bijection η : Mon ( Σ 0 , Σ ) P P . The skel bijection is now easily definable from η , inductively, by letting skel ( p ) = η ( p ) for p P , and for © Σ ( n ) and A 1 , , A n L Σ ( P ) , skel ( © ( A 1 , , A n ) ) = © ( skel ( A 1 ) , , skel ( A n ) ) if © Σ 0 , and skel ( © ( A 1 , , A n ) ) = η ( © ( A 1 , , A n ) ) if © Σ \ Σ 0 .
The skel bijection thus defined can be easily inverted by means of the substitution unskel Σ 0 : P L Σ ( P ) (or simply unskel 0 , or even unskel ) defined by unskel ( p ) = η 1 ( p ) . Note, namely, that skel ( A ) unskel = A for every A L Σ ( P ) . Note also that the restriction of skel to P, skel : P L Σ 0 ( P ) (with a slight abuse of notation, we will use the same name) is a substitution, and skel ( A ) = A skel for every A L Σ 0 ( P ) .

2.2. Propositional Logics and Theories

Definition 1.
A logic is a pair Σ , where Σ is a signature and ( L Σ ( P ) ) × L Σ ( P ) is a relation satisfying:
(R)
  Γ A whenever A Γ (reflexivity);
(M)
Γ A whenever Γ A for Γ Γ (monoticity);
(T)
  Γ A whenever Θ A and Γ B for every B Θ (transitivity);
(S)
  Γ A implies Γ σ A σ for any substitution σ (subst. invariance).
We further say that Σ , is compact whenever it further satisfies:
(F) 
Γ A implies there is a finite Γ 0 Γ such that Γ 0 A .
The compact part of a logic Σ , is also a logic Σ , fin where Γ fin A if and only if there is a finite Γ 0 Γ such that Γ 0 A . Of course, Σ , is compact if and only if = fin .
We say that a set of rules  R ( L Σ ( P ) ) × L Σ ( P ) axiomatizes Σ , whenever ⊢ is the closure of R by (R), (M), (T), and (S), and write = R . Clearly, Σ , is compact if and only if it is axiomatized by a set of finitary rules R ; that is, Γ is finite for every rule ( Γ , A ) R , also simply denoted by Γ A .
A set of formulas Γ is said to be a theory of Σ , when for every A L Σ ( P ) , if Γ A , then A Γ . Given a set Γ , Γ is the least theory that contains Γ . We write Th ( Σ , ) = { Γ L Σ ( P ) : Γ = Γ } for the set of theories of Σ , . We always have that L Σ ( P ) Th ( Σ , ) . Every logic can be recovered from its set of theories, as Γ A if and only if A Δ whenever Γ Δ for every Δ Th ( Σ , ) . Furthermore, from (S), it immediately follows that the set Th ( Σ , ) is closed for inverse substitutions; that is, given σ : P L Σ ( P ) , Δ Th ( Σ , ) implies that σ 1 ( Δ ) Th ( Σ , ) . Further, given logics Σ , 1 and Σ , 2 , we have that 1 2 if and only if Th ( Σ , 2 ) Th ( Σ , 1 ) .
Example 1.
The smallest logic over a given signature Σ Σ , sml is given by Γ sml A if and only if A Γ . It is easy to see that Σ , sml is compact logic and is axiomatized by the empty set of rules. We have that Th ( Σ , sml ) = ( L Σ ( P ) ) .
It is relatively straightforward to check that intersections of consequence relations are consequence relations (see [29]). These facts make it relatively easy to enrich the signature of a logic. Namely, if Σ 0 Σ and Σ 0 , 0 is a logic, then the extension of Σ 0 , 0 to Σ, denoted by Σ , 0 Σ , is the least logic with signature Σ such that 0 0 Σ . The following is a useful alternative definition of such an extension.
Proposition 1.
For Γ { A } L Σ ( P ) , we have that Γ 0 Σ A if and only if skel ( Γ ) 0 skel ( A ) . Hence, Th ( Σ , 0 Σ ) = unskel ( Th ( Σ 0 , 0 ) ) .
Proof. 
Just note that for each substitution σ : P L Σ ( P ) , we have that ( skel σ ) : P L Σ 0 ( P ) is also a substitution, and also unskel ( skel σ ) = σ . We immediately obtain that 0 0 Σ , and also that if 0 and ⊢ satisfies (S), then 0 Σ . Since skel , unskel are bijections, it is straightforward to show that 0 Σ satisfies properties (R), (M), (T), and (S).    □
Thus, equivalently, Γ 0 Σ A if and only if there exists Γ 0 { A 0 } L Σ 0 ( P ) and σ : P L Σ ( P ) such that Γ 0 σ Γ , A 0 σ = A , and Γ 0 0 A 0 .

2.3. Combining Logics

Consider fixed signatures Σ 1 and Σ 2 and let Σ 12 = Σ 1 Σ 2 . It is quite natural to formulate the combination of logics (also known as fibring) as follows.
Definition 2.
The combination of logics Σ 1 , 1 , Σ 2 , 2 , which we denote by Σ 1 , 1 Σ 2 , 2 , is the least logic Σ 12 , 12 such that 1 , 2 12 . The combination is said to be disjoint if Σ 1 Σ 2 = .
We immediately obtain that Σ 1 , 1 Σ 12 , 2 is the smallest logic over Σ 12 that contains both Σ 1 , 1 Σ 12 and Σ 2 , 2 Σ 12 . Note that it also follows easily that the combination of compact logics is necessarily compact. Namely, if Σ 1 , 1 , Σ 2 , 2 are compact, then the least logic such that 1 , 2 12 is also the least logic such that 1 , fin , 2 , fin 12 . Since it is clear that 1 , fin , 2 , fin 12 , fin , it follows that 12 = 12 , fin . Similarly, we have that if 1 = R 1 and 2 = R 2 , then 12 = R 1 R 2 .
Example 2.
Let Σ 1 , 1 be a logic and Σ 2 a signature. Consider Σ 2 , sml to be the smallest logic over Σ 2 , as in Example 1. Since sml Σ 12 1 Σ 12 , we obtain that Σ 12 , 1 Σ 12 = Σ 1 , 1 Σ 2 , sml . Note, in particular, that
Th ( Σ 12 , 1 Σ 2 ) = Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , sml Σ 12 )
as Th ( Σ 12 , sml Σ 12 ) = unskel Σ 1 ( Th ( Σ 2 , sml ) ) = unskel Σ 1 ( ( L Σ 2 ( P ) ) ) = ( L Σ 12 ( P ) ) . The next result shows that this equality holds in general.
We can now provide an explicit characterization of 12 using only 1 and 2 or, more concretely, 1 Σ 2 and 2 Σ 1 .
Theorem 1.
Let Σ 12 , 12 = Σ 1 , 1 Σ 2 , 2 . For every Γ { A } L Σ 12 ( P ) , we have:
Γ 12 A
if   and   only   if
A Δ for every Δ Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) with Γ Δ .
Hence, Γ 12 is the smallest element of both Th ( Σ 12 , 1 Σ 12 ) and Th ( Σ 12 , 2 Σ 12 ) that contains Γ, and
Th ( Σ 1 , 1 Σ 2 , 2 ) = Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) .
Proof. 
Let Σ 12 , be defined by Γ A if and only if A Δ for every Γ Δ L Σ 12 ( P ) with Δ Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) .
Let us first show that Σ 12 , is a logic. Clearly, ⊢ satisfies (R) and (M); let us show it satisfies (T) and (S) also.
(T)
Assume that Θ A and Γ B for every B Θ . This means that A Δ 1 for every Θ Δ 1 Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) , and Θ Δ 2 for every Γ Δ 2 Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) . By (M) for each i Σ 12 , we conclude that A Θ 3 for for every Γ Θ 3 Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) . Therefore, Γ A .
(S)
Assume that Γ A , and thus A Δ 1 for every Γ Δ 1 Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) . By (S), for each i Σ 12 , we conclude that A σ Δ 2 for every Γ σ Δ 2 Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) . Therefore, Γ σ A σ .
By definition, Th ( Σ 12 , ) = Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) . Now, given Σ 12 , with 1 Σ 12 , 2 Σ 12 , we obtain that
Th ( Σ 12 , ) Th ( Σ 12 , ) Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) .
Hence, we can finally conclude that Th ( Σ 12 , ) = Th ( Σ 12 , ) and = = 12 .    □

2.4. Contextual Extensibility and Decidability Preservation

We say that a logic Σ , is decidable if there exists an algorithm D , which terminates when given any finite set Γ L Σ ( P ) and formula A L Σ ( P ) as input, and outputs D ( Γ , A ) = yes if Γ A , and D ( Γ , A ) = no if Γ A . We will henceforth assume without loss of generality that the logic at hand is compact, as this definition is equivalent to deciding the compact version Σ , fin of the logic.
Theorem 1 is quite appealing, and mathematically clean, but a decision procedure for Σ 1 , 1 Σ 2 , 2 based on it would require (potentially) running through all common theories of the given logics containing a given set of premisses. One may try to obtain a more usable version which, instead, may only need to go through fragments of theories of the given logics which agree on a suitable, possibly finite, set of formulas. For the purpose, we introduce the notion of context, as a function ctx : ( L Σ 12 ( P ) ) ( L Σ 12 ( P ) ) such that Ω ctx ( Ω ) . Aiming at decidability preservation, of course, we will further require that ctx ( Ω ) is finite for finite Ω L Σ 12 ( P ) .
Definition 3.
For a fixed context function ctx , we say that two logics Σ 1 , 1 , Σ 2 , 2 are ctx -extensible when for every Ω L Σ 12 ( P ) and theories Δ i of Σ 12 , i Σ 12 for i { 1 , 2 } ,
if
Δ 1 ctx ( Ω ) = Δ 2 ctx ( Ω )
then   there   exists   a   theory   Δ   of   Σ 12 , 12 such   that
Δ Ω = Δ 1 Ω = Δ 2 Ω .
That is, two logics are ctx -extensible if any theories of the given logics that agree on the formulas in ctx ( Ω ) can be extended to a theory of the combined logic that agrees with the given theories on the formulas in Ω .
Lemma 1.
Let Σ 1 , 1 , Σ 2 , 2 be ctx -extensible logics; Σ 1 , 1 Σ 2 , 1 = Σ 12 , 12 is their combination. For every Γ { A } L Σ 12 ( P ) , we have:
Γ 12 A
if   and   only   if
A Ω for   every   Ω = ( Ω 1 Σ 12 Ω 2 Σ 12 ) ctx ( Γ { A } ) with   Γ Ω .
Proof. 
Using Theorem 1, if Γ 12 A , then there exists Γ Δ A such that Δ is a theory of both Σ 12 , 1 Σ 12 and Σ 12 , 2 Σ 12 . Easily then, one has
( Δ ctx ( Γ { A } ) ) i Σ 12 ctx ( Γ { A } ) = Δ ctx ( Γ { A } )
for each i { 1 , 2 } , and Γ Δ ctx ( Γ { A } ) = Ω A .
Reciprocally, if there is Γ Ω ctx ( Γ { A } ) such that A Ω , but with Ω i Σ 12 ctx ( Γ { A } ) Ω for each i { 1 , 2 } , then it follows that Δ 1 = Ω 1 Σ 12 and Δ 2 = Ω 2 Σ 12 are theories, such that Δ 1 ctx ( Γ { A } ) = Δ 2 ctx ( Γ { A } ) . Thus, directly from ctx -extensibility, we can conclude that there exists a theory Δ of Σ 12 , 12 such that Δ ( Γ { A } ) = Δ 1 ( Γ { A } ) = Δ 2 ( Γ { A } ) . It follows that Γ Δ A , and so Γ 12 A .□
In order to apply these ideas toward decidability preservation, namely with the aim of analyzing the complexity of the underlying decision problems, we assume that the context function ctx is computable in TIME ( c ( n ) ) and SPACE ( d ( n ) ) , obviously with d ( n ) c ( n ) .
Theorem 2.
Let Σ 1 , 1 , Σ 2 , 2 be ctx -extensible logics. If the decision problems for Σ 1 , 1 , Σ 2 , 2 are both in complexity class C , then the decision problem for Σ 12 , 12 is in complexity class C , as given by Table 1.
Proof. 
Let D 1 , D 2 be deterministic algorithms deciding Σ 1 , 1 , Σ 2 , 2 , respectively, both running in time bounded by O ( t ( n ) ) and space bounded by O ( s ( n ) ) . To decide Σ 12 , 12 , consider the following deterministic algorithm D .
D : input Γ , A set Θ : = ctx ( Γ { A } ) set Ω 1 , Ω 2 : = Γ while A Ω 1 Ω 2 set Ω : = Ω 1 Ω 2 set Ω i : = { B Θ : D i ( Ω , B ) = yes } for i = 1 , 2 if Ω = Ω 1 Ω 2 output no output yes
The correctness of D is an immediate consequence of Lemma 1, as the algorithm builds precisely the least set Ω such that Ω = ( Ω 1 Σ 12 Ω 2 Σ 12 ) ctx ( Γ { A } ) and Γ Ω . The no output happens when a fixed point is reached, meaning that A Ω , and thus A Γ 12 . When the yes output is reached, we are sure that A Γ 12 , as A was reached by departing from Ω = Γ and iteratively adding formulas in ctx ( Γ { A } ) to Ω if they follow either
1 Σ 12 or 2 Σ 12 .
Let n be the size of Γ { A } . We know that Θ = ctx ( Γ { A } ) is computed in time bounded by O ( c ( n ) ) , and also that the number of formulas in Θ , as well as the size of each such formulas, is bounded by O ( d ( n ) ) . Therefore, the cycle is repeated O ( d ( n ) ) times, each time on inputs of size O ( d ( n ) ) , and D runs in time bounded by O ( c ( n ) + d ( n ) × ( 2 . t ( d ( n ) ) ) ) = O ( c ( n ) + d ( n ) × t ( d ( n ) ) ) .
Spacewise, we need to count the space used by each of Ω 1 , Ω 2 , but we can assume that the independent calls to D 1 , D 2 reuse space, and hence D runs in space O ( d ( n ) + 2 . d ( n ) + s ( d ( n ) ) ) = O ( d ( n ) + s ( d ( n ) ) ) .
Assume now that N 1 , N 2 are non-deterministic algorithms deciding the complementary problems Σ 1 , 1 , Σ 2 , 2 , respectively, both running in time bounded by O ( t ( n ) ) . To decide Σ 12 , 12 , consider the non-deterministic algorithm N .
N : input Γ , A set Θ : = ctx ( Γ { A } ) guess non-deterministically A Ω Θ for each B Θ \ Ω if N 1 ( Ω , B ) = no or N 2 ( Ω , B ) = no output no output yes
The correctness of N is again a direct consequence of Lemma 1, as the algorithm guesses a set Ω such that Ω Θ and A Ω , and then answers according to whether Ω = ( Ω 1 Σ 12 Ω 2 Σ 12 ) ctx ( Γ { A } ) . Easily, N answers yes precisely when Γ 12 A by guessing correctly a set Ω for which Ω 1 B and Ω 2 B , and, hence, with N 1 ( Ω , B ) = yes and N 2 ( Ω , B ) = yes for every B Θ \ Ω .
Similarly, the running time of N is bounded by O ( c ( n ) + d ( n ) × ( 2 . t ( d ( n ) ) ) ) = O ( c ( n ) + d ( n ) × t ( d ( n ) ) ) . □
We conclude that whenever the context function ctx is computable in polynomial time ( c ( n ) being a polynomial), then the combined logic often retains the same complexity upper bound of the logics being combined, notably in case C is P , coNP , PSPACE , EXPTIME , and beyond. When ctx is at least computable in polynomial space ( d ( n ) being a polynomial), the combined logic still retains the same space complexity class of the logics being combined, above polynomial space, namely when C is PSPACE , EXPSPACE .

2.5. Applications

We now illustrate the results with some particular applications of Theorem 2. These illustrations are crucial in order to assess that our sufficiency criterion is not too strong to be usable in concrete cases.

2.5.1. Combining Logics with Disjoint Signatures

First of all, we obtain a much simpler proof, using Theorem 2, of the major result of [14]: the preservation of decidability for disjoint combinations of logics. Assume that both Σ 1 , 1 , Σ 2 , 2 are decidable, and Σ 1 Σ 2 = . In order to prove that Σ 12 , 1 2 is decidable and obtain a complexity upper bound for deciding it, it is enough to show the following proposition.
Proposition 2.
Assuming Σ 1 Σ 2 = , we have that Σ 1 , 1 and Σ 2 , 2 are ctx -extensible for some context function ctx computable in polynomial time.
Proof. 
Let X ̲ = { X } be a singleton containing a theorem of either 1 or 2 ; that is, i X for some i { 1 , 2 } , if such a theorem exists. When none of the component logics has a theorem, then X ̲ = . We consider the context function
ctx ( Ω ) = sub ( Ω X ̲ ) ,
which can clearly be computed in quadratic time on size ( Ω ) .
Suppose now that for some Ω , there are Δ i Th ( Σ 12 , i Σ 12 ) for i = 1 , 2 such that Ω 1 ctx ( Ω ) = Ω 2 ctx ( Ω ) .
On the one hand, if Δ 1 ctx ( Ω ) = Δ 2 ctx ( Ω ) = , then none of the component logics has a theorem; X ̲ = . Hence, Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) , and by Theorem 1, we obtain Th ( Σ 12 , 12 ) .
On the other hand, if Δ 1 ctx ( Ω ) = Δ 2 ctx ( Ω ) = ctx ( Ω ) , then we can simply pick the largest theory of any logic containing every formula in its language L Σ 12 ( P ) Th ( Σ 12 , 12 ) .
Thus, we proceed knowing that we can fix formulas F , F + ctx ( Ω ) such that F Δ i and F + Δ i , where i { 1 , 2 } for the remainder of the proof. We now build Δ Th ( Σ 12 , 12 ) such that Δ Ω = Δ i Ω .
First, we modify Δ 1 , Δ 2 so that they also agree on P \ var ( ctx ( Ω ) ) (for simplicity, we chose to include none in Δ ). Consider the substitution σ : P L Σ 1 Σ 2 ( P ) such that
σ ( p ) = p if   p var ( ctx ( Ω ) ) F otherwise
Clearly, Δ i 0 = Δ i σ Th ( Σ 12 , i Σ 12 ) and Δ 1 σ Ω 0 = Δ 2 σ Ω 0 , where Ω 0 = P ctx ( Ω ) .
Let Ω k + 1 = Ω k { © ( A 1 , , A n ) : © Σ 12 ( k ) , A 1 , , A n Ω k } and obtain theories Δ 1 k + 1 Th ( Σ 12 , i Σ 12 ) and Δ 2 k + 1 Th ( Σ 12 , i Σ 12 ) coinciding with Δ i k in formulas of Ω k and further agreeing on Ω k + 1 . For each formula A Ω k + 1 \ Ω k with hd ( A ) Σ i we check if A Δ 3 i k and modify the skeleton variable skel i ( A ) accordingly when building Δ i k + 1 . Hence, consider for each i { 1 , 2 } the substitution σ i k : P L Σ i ( P ) such that
σ i k ( p ) = skel i ( F 0 ) if   p = skel i ( A ) , A Ω k + 1 \ Ω k , hd ( A ) Σ i , A Δ 3 i k , skel i ( F 1 ) if   p = skel i ( A ) , A Ω k + 1 \ Ω k , hd ( A ) Σ i , A Δ 3 i k , p otherwise .
Then, set Δ i k + 1 = unskel i ( ( skel i ( Δ i k ) ) σ i k ) . By Proposition 1, we know that Δ i k + 1 Th ( Σ 12 , i Σ 12 ) . Easily, if A Ω k , or A Ω k + 1 \ Ω k and hd ( A ) Σ i , then skel i ( A ) σ i k = skel i ( A ) . Thus, we define sequences for k N , Δ 1 k Th ( 1 Σ 12 ) and Δ 2 k ( 2 Σ 12 ) satisfying i = 1 , 2 :
Δ i k + 1 Ω k = Δ 1 k Ω k = Δ 2 k Ω k
Let Γ + k = Δ 1 k Ω k = Δ 2 k Ω k for k N 0 . It is clear that Γ + k Γ + k + 1 . Make Γ + = k N 0 Γ + k . For any formula A Γ + k , we have that Γ + i Σ 12 A for every k . By compactness, we conclude that Γ + i Σ 12 A . Hence, Δ = Γ + Th ( Σ 12 , i Σ 12 ) for i { 1 , 2 } .
Thus, Δ Th ( Σ 12 , 12 ) = Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) (using Theorem 1) and agrees with Δ 1 , Δ 2 on ctx ( Ω ) Ω , which concludes the argument. □
It immediately follows from Theorem 2 that combining logics with disjoint signatures preserves the decision complexity classes P , coNP , PSPACE , EXPTIME , and EXPSPACE .

2.5.2. Fusion of Modal Logics

One of the seminal examples of transfer theorem for combined logics is the preservation of decidability for the fusion of modal logics. We show here that this result can also be recovered using Theorem 2. The technicalities of our proof follow along the lines of the proofs in [16,17], where the reader can find further details. We also obtain an upper bound for the complexity of the fusion of two logics depending on their complexity.
Let Σ cls , cls stand for classical propositional logic, where Σ cls is a signature containing the usual classical connectives, namely ¬ Σ cls ( 1 ) and , , , Σ cls ( 2 ) . For i { 1 , 2 } , consider finite signatures Σ i such that Σ cls = Σ 1 Σ 2 is the shared signature. Every other connective Σ i ( n ) \ Σ 3 i ( n ) is understood as an n-place modal operator of the Σ i signature. Thus, we assume that each Σ i , i is a modal logic (see, for instance, [16]), which in particular is classically based; that is, Γ i A if and only if Γ cls A for Γ { A } L Σ cls ( P ) , and for every n-place modal operator, Σ i ( n ) satisfies { p 1 q 1 , , p n q n } i ( p 1 , , p n ) ( q 1 , , q n ) .
Proposition 3.
Any two modal logics Σ 1 , 1 and Σ 2 , 2 with Σ 1 Σ 2 = Σ cls are ctx -extensible for some context function ctx computable in exponential time and space.
Proof. 
For each finite set Ω L Σ 12 ( P ) , let Ω + = { A sub ( Ω ) : hd ( A ) Σ cls } , and given Ω ̲ Ω + , let ¬ Ω ¯ = { ¬ A : A Ω + \ Ω ̲ } , and consider the formula defined by C Ω ̲ = ( Ω ̲ ) ( ¬ Ω ¯ ) . Further, let Ω = { C Ω ̲ : Ω ̲ Ω + } . We show that the logics Σ 1 , 1 and Σ 2 , 2 are ctx -extensible, with
ctx ( Ω ) = sub ( { ¬ C : C Ω } ) .
It is clear that ctx ( Ω ) is exponentially larger than Ω and computable in exponential time.
Let Δ 1 Th ( Σ 12 , 1 Σ 12 ) , Δ 2 Th ( Σ 12 , 2 Σ 12 ) be such that Δ 1 ctx ( Ω ) = Δ 2 ctx ( Ω ) . If Δ 1 Ω = Δ 2 Ω = Ω , simply choosing the trivial theory Δ = L Σ 12 ( P ) would work. Hence, let us assume that this is not the case, and so neither Δ 1 nor Δ 2 are the trivial theory. Further, by Proposition 1, we have that Δ i = skel i ( Δ i ) Th ( Σ i , i ) . Since we could always add fresh variables if needed, we can assume, without loss of generality, that P \ var ( Δ i ) is infinite for both i = 1 , 2 .
For i = 1 , 2 , consider the congruences i L Σ i ( P ) defined as A i B if and only if Δ i i A B ; let A i be the quotient algebra L Σ i ( P ) / i . As observed in [30], the Σ cpl -reduct of each A i is an infinite countable boolean algebra (ciaB). Letting v i : L Σ i ( P ) A i be the algebra morphism given by v i ( A ) = [ A ] i and i be the top element of A i , we have that Δ i = v i 1 ( i ) .
Consider Υ = { C Ω : C , ¬ C Δ 1 Δ 2 } . Since both theories coincide on ctx ( Ω ) , we have that for each i { 1 , 2 } , Υ = { C Ω : v i ( skel i ( C ) ) { i , i } } . Here, we can split it into two cases:
  • If there is some C Ω with v i ( C ) = i , then Υ = , as actually we must have v i ( skel i ( A ) ) { i , i } for all A Ω . It is known that any two ciaBs are isomorphic. Since the top and bottom elements must be identified, we have v 1 ( skel 1 ( A ) ) and v 2 ( skel 2 ( A ) ) for every A Ω .
  • Using the boolean-valid equation x = ( x y ) ( x ¬ y ) , when Υ , it is clear that v i ( skel i ( Υ ) ) = v i ( skel i ( Ω ) ) = i . Furthermore, if C 1 , C 2 Υ and C 1 C 2 , then the boolean-valid equation x ¬ x = implies that v i ( skel i ( C 1 C 2 ) ) = i . This means that the set of values v i ( skel i ( Υ ) ) is a partition of A i . Again, it is known that there is an isomorphism of the two ciaBs that identifies v 1 ( skel 1 ( A ) ) and v 2 ( skel 2 ( A ) ) for every A Υ (and, by the same argument as in the previous case, for every A Ω \ Υ .
Hence, in either case, and by identifying the values in the two algebras A 1 and A 2 along the guaranteed suitable isomorphism, we obtain that v 1 ( skel 1 ( C ) ) = v 2 ( skel 2 ( C ) ) for every C Ω . Furthermore, we also have that v 1 ( skel 1 ( A ) ) = v 2 ( skel 2 ( A ) ) for every A Ω + . Namely, letting Υ A = { C Ω ̲ Ω : A Ω ̲ } , it is clear that v i ( skel i ( A ) ) = v i ( skel i ( Υ A ) ) = v i ( skel i ( Υ A ) ) = v i ( skel i ( Υ A ) ) ) . Note, in particular, that var ( Ω ) Ω + .
Let A 12 be the Σ 12 -algebra obtained by merging A 1 and A 2 along the considered isomorphism. We denote the top element of A 12 by 12   ( = 1 = 2 ) , and we have that A 12 ’s Σ cpl -reduct is isomorphic to the Σ cpl -reducts of the original algebras, and also that A 12 ( x 1 , , x n ) = A i ( x 1 , , x n ) for Σ i ( n ) (modulo the isomorphism). We know that f : var ( Ω ) A 12 such that f ( p ) = v 1 ( skel 1 ( p ) ) = v 2 ( skel 2 ( p ) ) extends to a homomorphism v : L Σ 12 ( P ) A 12 , which is uniquely determined for formulas with variables in var ( Ω ) . Thus, for every A Ω , v ( A ) = v 1 ( skel 1 ( A ) ) = v 2 ( skel 2 ( A ) ) . Consider Δ = v 1 ( 12 ) to be the theory induced by v, and let g i : L Σ i ( P ) A i be g i = v unskel Σ i , and for p P , let σ i ( p ) = B for some formula B with g i ( p ) = [ B ] ; then
Δ i = g i 1 ( i ) = σ i 1 ( v i 1 ( i ) ) = σ i 1 ( Δ i ) Th ( Σ i , i
since the set of theories of any logic is closed under inverse images of substitutions. Hence, Δ = unskel Σ i ( Δ i ) Th ( Σ 12 , i Σ 12 ) , and therefore
Δ Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) = Th ( Σ 12 , 12 ) .
Moreover, as for i = 1 , 2 and B Ω , we have B Δ iff v ( B ) = 12 iff v i ( skel ( B ) ) = i iff B Δ i ; we know that Δ agrees with Δ 1 , Δ 2 in Ω . Thus, we conclude that Σ 1 , 1 , Σ 2 , 2 are ctx -extensible. □
From this fact, and according to Theorem 2, we can conclude that deciding the fusion of logics decidable in EXPTIME is in 2 EXPTIME . This complexity upper bound is not too tight, in general, although the fact that it was obtained using a very general, not tailored, result such as Theorem 2 may help to explain why. Indeed, using our result, we can also conclude that combining two modal logics decidable in PSPACE yields an EXPSPACE upper bound for their fusion, whereas it is well known (see [17]) that the decision problem for the fusion of two copies of the basic normal modal logic K is in PSPACE , as is also the decision problem for the logic K .
It is worth noting, though, that an alternative proof of Proposition 3 using a simpler context function computable in polynomial time is impossible in the general case. For instance, modal logic S 5 is known to be in coNP , whereas deciding the fusion of two copies of S 5 is known to be a PSPACE-complete problem [17]. According to our Theorem 2, a polynomial time computable ctx function would yield a decision procedure for such a fusion in coNP , which is strictly below PSPACE unless there is a collapse of the polynomial hierarchy. However, as far as we know, there is no known counterexample eliminating the possibility of finding a suitable ctx computable in polynomial space, even if using exponential time, which would yield the preservation of PSPACE by fusion.
It should further be observed that, despite the fact that the context function obtained is exponential, for particular inputs Γ , A , with a logarithmic amount of □-headed subformulas, deciding if A follows from Γ can still be done with a polynomial time slowdown in the decision time of the algorithms used to decide the component logics using the algorithms in Theorem 2. This is natural, since formulas with head in Σ i \ Σ cpl are treated as (new) variables by 3 i . This behavior is analogous to the growth in complexity in the SAT -problem for classical logic being strongly dependent on the number of variables of the input rather than on its overall size.

3. Beyond Propositional Logics

We now study the generalization of the previous results beyond propositional logics, in particular in the realm of k-deductive systems [31]. These are consequence relations defined over a (possibly) non-freely generated language, as k-formulas are k-tuples of formulas in an algebraic language. Although, as it will become clear, all the results would be smoothly obtainable for arbitrary k, we focus our attention on the case k = 2 , and in particular on equational reasoning.

3.1. Syntax

Given a signature Σ , a 2-formula over Σ is a pair ( A , B ) with A , B L Σ ( P ) , which we will simply denote by A B . The set of all 2-formulas over Σ is Eqs ( L Σ ( P ) ) , where Eqs ( Γ ) = { A B : A , B Γ } . Given Θ Eqs ( L Σ ( P ) ) , it is also useful to define term ( Θ ) = { A , B : A B Θ } .
Other definitions in Section 2.1 are smoothly adapted to 2-formulas. Substitutions σ : P L Σ ( P ) act on 2-formulas and sets thereof in the expected way: ( A B ) σ = A σ B σ , and Γ σ = { ( A B ) σ : A B Γ } . Similarly, when Σ 0 Σ , we have skel Σ 0 ( A B ) = skel Σ 0 ( A ) skel Σ 0 ( B ) and unskel Σ 0 ( A B ) = unskel Σ 0 ( A ) unskel Σ 0 ( B ) .

3.2. 2-Logics, Equational Logics, and Their Theories

Let us start by lifting Definition 1 according to [31].
Definition 4.
A 2-logic is a pair Σ , , where Σ is a signature, and ( Eqs ( L Σ ( P ) ) ) × Eqs ( L Σ ( P ) ) is a relation satisfying, for Γ { A B } Eqs ( L Σ ( P ) ) :
(R )
  Γ A B whenever A B Γ ;
(M )
Γ A B whenever Γ A B for Γ Γ ;
(T
Γ A B whenever Δ A B , and Γ C D for every C D Δ ;
(S )
  Γ A B implies Γ σ A σ B σ for any substitution σ : P L Σ ( P ) .
We further say that Σ , is compact whenever it satisfies:
(F )
  Γ A B implies there is finite Γ 0 Γ such that Γ 0 A B .
We also say that a set R ( Eqs ( L Σ ( P ) ) ) × Eqs ( L Σ ( P ) ) axiomatizes Σ , whenever ⊢ is the closure of R by (R ), (M ), (T ), and (S ), and we write = R .
For Γ Eqs ( L Σ ( P ) ) , we still write Γ = { A B : Γ A B } and Th ( Σ , ) = { Γ Eqs ( L Σ ( P ) ) : Γ = Γ } for the set of theories of Σ , .
The notion of 2-logic covers, in particular, what we will call equational logics. Given a set of equations Eq = { A i B i : i I } Eqs ( L Σ ) , we denote by R Eq the following set of rules.
A i B i for i I
p p ref p q q p symm p q , q r p r trans
p 1 q 1 , , p k q k © ( p 1 , , p k ) © ( q 1 , , q k ) cong © for each © Σ ( k )
An equational logic is a 2-logic Σ , axiomatized by R Eq for some set of equations Eq Eqs ( L Σ ) ; that is, = R Eq . Note that since the rules in R Eq are always finitary for any Eq , we have that every equational logic is compact.
This notion of an equational logic corresponds to the quasi-equational theory of the variety axiomatized by Eq , V ( Eq ) . That is, A 1 B 1 , , A n B n R Eq A B if and only if the quasi-equation A 1 B 1 A n B n A B is valid in all algebras of the variety.
Theories in these logics are sets of equations satisfying Δ = Δ Eq . Clearly, every theory Δ Th ( Σ , Eq ) defines a congruence on L Σ ( P ) , identifying formulas A and B if and only if A B Δ .
Example 3.
The smallest 2-logic over a signature Σ, corresponding to Example 1, is such that Γ sml A B if and only if A B Γ , and correspondingly we have that Th ( Σ , sml ) = ( Eqs ( L Σ ( P ) ) ) . This 2-logic is axiomatizable by the empty set of rules.
However, the smallest equational logic is Σ , R , that is, the 2-logic axiomatized by rules ref , symm , trans , and cong © for each © Σ .
We also have that 2-logics are closed for intersections, and it still makes sense to define the extension of a 2-logic Σ 0 , 0 to a larger signature Σ 0 Σ as the least 2-logic with signature Σ such that 0 0 Σ . We can also lift Proposition 1 into an analogue statement characterizing the language extensions of 2-logics.
Proposition 4.
For Γ { A B } Eqs ( L Σ ( P ) ) , we have that Γ 0 Σ A B if and only if skel ( Γ ) 0 skel ( A ) skel ( B ) . Hence, Th ( Σ , 0 Σ ) = unskel ( Th ( Σ 0 , 0 ) ) .
Proof. 
The proof is completely analogous to the proof of Proposition 1, using the facts that unskel ( skel σ ) = σ , and skel and unskel are bijections, and the properties ( G ) instead of ( G ) for G { R , M , T , S } . □
Equivalently, Γ 0 Σ A if and only if there exist Γ 0 { A 0 B 0 } Eqs ( L Σ 0 ( P ) ) and σ : P L Σ ( P ) such that Γ 0 σ Γ , A 0 σ = A , B 0 σ = B , and Γ 0 0 A 0 B 0 .

3.3. Combining 2-Logics

At this point, it is easy to lift Definition 2.
Definition 5.
The combination of 2-logics Σ 1 , 1 , Σ 2 , 2 , which is once again denoted by Σ 1 , 1 Σ 2 , 2 , is the least 2-logic Σ 12 , 12 such that 1 , 2 12 . The combination is said to be disjoint if Σ 1 Σ 2 = .
Note that it also follows easily that the combination of compact 2-logics is necessarily compact. Namely, if Σ 1 , 1 and Σ 2 , 2 are compact, then so is Σ 12 , 12 . Further, if R 1 and R 2 axiomatize each of the given logics, then R 1 R 2 axiomatizes Σ 12 , 12 .
Example 4.
For equational logics Σ 1 , R Eq 1 and Σ 2 , R Eq 2 , we have
Σ 1 , R Eq 1 Σ 2 , R Eq 2 = Σ 12 , R Eq 1 Eq 2 ,
and Σ 12 , R Eq 1 Σ 12 = Σ 12 , R Eq 1 R = Σ 1 , R Eq 1 Σ 2 , R .
As the reader may already suspect, Theorem 1 also adapts to the analogue statement characterizing the combination of 2-logics.
Theorem 3.
Let Σ 12 , 12 = Σ 1 , 1 Σ 2 , 2 . For every Γ { A B } Eqs ( L Σ 12 ( P ) ) , we have:
Γ 12 A B
if   and   only   if
A B Δ   for   every   Δ Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) with   Γ Δ .
Hence, Γ 12 is the smallest element of both Th ( Σ 12 , 1 Σ 12 ) and Th ( Σ 12 , 1 Σ 12 ) that contains Γ, and
Th ( Σ 12 , 12 ) = Th ( Σ 12 , 1 Σ 12 ) Th ( Σ 12 , 2 Σ 12 ) .
Proof. 
The proof is analogous to the proof of Theorem 1 by using properties ( G ) instead of ( G ) for G { R , M , T , S } . □

3.4. Contextual Extensibility and Decidability Preservation Revisited

As before, a 2-logic Σ , is said to be decidable if there exists an algorithm D that terminates when given any finite set Γ Eqs ( L Σ ( P ) ) and A B Eqs ( L Σ ( P ) ) as input, and outputs D ( Γ , A B ) = yes if Γ A B and D ( Γ , A B ) = no if Γ A B .
Again, Theorem 3 is not enough to obtain a decision procedure for the combined logic. As in the propositional case, we consider context functions ctx : Eqs ( L Σ 12 ( P ) ) Eqs ( L Σ 12 ( P ) ) with Ω ctx ( Ω ) finite for finite Ω . Furthermore, we can naturally generalize the notion of ctx -extensibility to 2-logics.
Definition 6.
For a fixed context function ctx , we say that two 2-logics Σ 1 , 1 , Σ 2 , 2 are ctx -extensible when every Ω Eqs ( L Σ 12 ( P ) ) and theories Δ i Th ( Σ 12 , i Σ 12 ) for i { 1 , 2 } ,
if
Δ 1 ctx ( Ω ) = Δ 2 ctx ( Ω )
then   there   exists   a   theory   Δ Th ( Σ 12 , 12 ) such   that
Δ Ω = Δ 1 Ω = Δ 2 Ω .
Moreover, Lemma 1 easily lifts as well.
Lemma 2.
Let Σ 12 , 12 = Σ 1 , 1 Σ 2 , 2 be 2-logics. For every Γ { A B } Eqs ( L Σ 12 ( P ) ) , we have:
Γ 12 A B
if   and   only   if
A B Ω   for   every   Ω = ( ( Ω 1 Σ 12 Ω 2 Σ 12 ) ctx ( Γ { A B } ) )   with   Γ Ω .
Proof. 
Again, the proof is analogous to that of Lemma 1 by invoking Theorem 3 instead of Theorem 1. □
Gathering all these elements, we can also easily adapt the decidability preservation result of Theorem 2 to decide the combination of decidable 2-logics. As before, let ctx be a context function such that ctx is computable in TIME ( c ( n ) ) and SPACE ( d ( n ) ) , obviously with d ( n ) c ( n ) .
Theorem 4.
Let Σ 1 , 1 , Σ 2 , 2 be ctx -extensible 2-logics. If the decision problems for Σ 1 , 1 , Σ 2 , 2 are both in complexity class C , then the decision problem for Σ 12 , 12 is in complexity class C , as given by Table 1.
Proof. 
The proof is completely analogous to that of Theorem 2 by adapting the algorithms to work with 2-formulas instead of formulas. □

3.5. Applications

We shall now give two illustrative applications of Theorem 4. In both cases, we shall use the context function ctx : ( Eqs ( L Σ ( P ) ) ) ( Eqs ( L Σ ( P ) ) ) defined by
ctx ( Ω ) = Eqs ( sub ( term ( Ω ) ) ) ,
which works for both applications in this section. In a more explicit form:
ctx ( { A i B i : i I } ) = { C i D i : C i , D i sub ( { A i , B i : i I } ) } .
It is clear that ctx is computable in polynomial time.

3.5.1. Splitting the Smallest Equational Logic

With an eye on the fact that Theorem 4 can be iteratively applied to the combination of any finite number of 2-logics, we use the result to prove the well-known fact that the smallest equation logic Σ , R is decidable as a result of combining the decidable 2-logics corresponding, in isolation, to each of the forms ref , symm , trans , and cong .
Let x = { x } for x X = { ref , symm , trans } , and set cong = { cong © : © Σ } .
Proposition 5.
Fixed signature Σ and the 2-logics Σ , ref , Σ , symm , Σ , trans , and Σ , cong are jointly ctx -extensible.
Proof. 
Let Δ x Th ( Σ , x ) for x Y = X { cong } . Assuming that Δ x ctx ( Ω ) = Γ for every x Y for some fixed Ω Eqs ( L Σ ( P ) ) , we show that there is Δ x Y Th ( Σ , x ) such that Γ Ω = Δ Ω .
Consider Δ = Γ R x X Th ( Σ , r x ) = Th ( Σ , R ) . It is clear that Γ Δ ctx ( Ω ) . It is now sufficient to show that the other inclusion also holds.
Knowing that Δ x Th ( Σ , x ) and Γ = Δ x ctx ( Ω ) for x X , and using the fact that rules ref , symm , and trans are expressed using only variables, it follows that Γ X = Γ . Further, if D term ( ctx ( Ω ) ) and Γ { C D } X A B , then either A B Γ , A C Γ and B = D , or B C Γ and A = D .
Furthermore, from Δ cong Th ( Σ , cong ) and Γ = Δ cong ctx ( Ω ) , it follows that if C D Γ cong \ Γ , then either C or D is not in term ( ctx ( Ω ) ) . Let it be D, without loss of generality. If Γ { C D } X A B , then either A B Γ , A = D , or B = D . Thus, ( Γ { C D } ) X ctx ( Ω ) = Γ . This argument can be adapted to an arbitrary finite number of applications of congruence rules. If a derivation of A B Δ ctx ( Ω ) uses exactly k instances of congruence rules, introducing, respectively, C i D i ctx ( Ω ) for 1 i k , then if Γ { C j D j : 1 i k } X A B and, assuming without loss of generality, that D i term ( ctx ( Ω ) ) , we can conclude that either A B Γ , A { D i : 1 i k } , or B { D i : 1 i k } . Hence, since R is compact, A B Δ ctx ( Ω ) implies A B Γ . Therefore, since Ω ctx ( Ω ) , we have that Δ Ω = Γ Ω = Δ x Ω for every x Y . □
Now, the known result that congruences can be computed in polynomial time follows by Theorem 4 just from the fact that calculating ctx and the closures for each of its requirements (symmetry, reflexivity, transitivity, and congruence) can also separately be done polynomial time.
Corollary 1.
There is a problem deciding if Σ , R is in P .
Of course, the same also follows for the 2-logics generated by subsets of the rules in Y, e.g., rules corresponding to equivalence or tolerance relations. Further note that if no congruence rules are involved, it is enough to consider the simpler context function ctx ( Ω ) = Eqs ( term ( Ω ) ) .

3.5.2. Combining Equational Logics with Disjoint Signatures

We now study the combination of equational logics and analyze the preservation of decidability and complexity in the disjoint case along the lines of Theorem 4. This is a particularly interesting case, as it goes in the direction of a myriad of important modular decidability results for reasoning modulo equational theories, which we discuss later.
Proposition 6.
Assuming Σ 1 Σ 2 = , we have that equational logics Σ 1 , R Eq 1 and Σ 2 , R Eq 2 are ctx -extensible.
Proof. 
For simplicity, let i = R Eq i for i = 1 , 2 , Σ = Σ 12 , and = R Eq 1 Eq 2 . Further, given Ξ L Σ ( P ) and i = 1 , 2 , define
Σ i [ Ξ ] = j N 0 { © ( A 1 , , A j ) : A 1 , , A j Ξ , © Σ i ( j ) }
and let Σ [ Ξ ] = Σ 1 [ Ξ ] Σ 2 [ Ξ ] .
In order to prove that Σ 1 , 1 , Σ 2 , 2 are ctx -extensible, we show that, given Ω Eqs ( L Σ ( P ) ) , Δ 1 Th ( Σ , 1 Σ ) and Δ 2 Th ( Σ , 2 Σ ) such that Δ 1 ctx ( Ω ) = Δ 2 ctx ( Ω ) , there is Δ Th ( Σ , ) such that Δ Ω = Δ i Ω for i = 1 , 2 .
If Δ 1 ctx ( Ω ) = Δ 2 ctx ( Ω ) = ctx ( Ω ) , then picking the trivial theory Δ = Eqs ( L Σ ( P ) ) does the job. We proceed, otherwise, knowing Δ 1 ctx ( Ω ) = Δ 2 ctx ( Ω ) ctx ( Ω ) .
Let Ξ 0 = term ( ctx ( Ω ) ) , Ω 0 = Eqs ( Ξ 0 ) = ctx ( Ω ) , and for k 0 , define
-
Ξ k + 1 = Ξ k Σ [ Ξ k ] , and
-
Ω k + 1 = Eqs ( Ξ k + 1 ) .
Further, let Δ 1 0 = Δ 1 , Δ 2 0 = Δ 2 , and for k 0 and i = 1 , 2 , define
-
Γ i k = Δ i k Ω k ,;
-
Θ i k = ( Γ i k ) i Σ Ω k + 1 ;
-
Δ i k + 1 = ( Θ 1 k Θ 2 k ) i Σ .
By definition, we have that Δ 1 k Th ( Σ , 1 Σ ) and Δ 2 k Th ( Σ , 1 Σ ) for every k N 0 . We show below that for every k N 0 and i = 1 , 2 , we have the following two properties.
Δ 1 k Ω k = Δ 2 k Ω k Ω k
Δ i k + 1 Ω k = Δ i k Ω k
Thus, using compactness (which holds for any equational logic), we have that (by (1) and (2)) for i = 1 , 2 ,
Δ = k N 0 ( Δ i k Ω k ) Th ( Σ , 1 Σ ) Th ( Σ , 2 Σ ) .
This finishes the proof, as it immediately follows that Δ Ω = Δ i Ω = Δ i 0 Ω 0 for i = 1 , 2 as desired. To prove (1) and (2), we need two technical lemmas.
Lemma 3.
Assuming that Δ 1 k Ω k = Δ 2 k Ω k Ω k , we have, for i = 1 , 2 , that the following properties hold.
( Θ 1 k Θ 2 k ) Ω k = Θ i k Ω k = Δ i k Ω k = Γ i k Ω k
Θ i k Eqs ( Ξ k Σ i [ Ξ k ] ) { A A : A Σ 3 i [ Ξ k ] } Ω k + 1 }
Θ 1 k Θ 2 k = ( Θ 1 k Θ 2 k ) R Ω k + 1
Proof. 
Note that Ξ k + 1 = Ξ k Σ [ Ξ k ] = Ξ k Σ 1 [ Ξ k ] Σ 2 [ Ξ k ] , but in general, Eqs ( Ξ i Σ 1 ( Ξ k ) ) Eqs ( Ξ i Σ 2 ( Ξ k ) ) Eqs ( Ξ k + 1 ) . Still, since Δ i k Th ( Σ , i Σ ) , then Θ i k Ω k = Δ i k Ω k . Using ( Θ 1 k Θ 2 k ) Ω k = ( Θ 1 k Ω k ) ( Θ 2 k Ω k ) and the assumption that Δ 1 k Ω k = Δ 2 k Ω k Ω k , we conclude that (3) holds.
To see that (4) holds, assume by contradiction that we have A B such that A B Eqs ( Ξ k Σ i [ Ξ k ] ) , but A B Θ i k . Then either A or B (or both) must be in Σ 3 i [ Ξ k ] . Without loss of generality, let it be A. Since Σ 1 Σ 2 = , skel Σ i ( A ) is a variable, and skel Σ i ( A ) var ( skel Σ i ( Ξ k Σ i [ Ξ k ] { B } ) ) . Using the substitution invariance of i and Proposition 4, we obtain that ( Γ i k ) i Σ = Eqs ( L Σ ( P ) ) , which is absurd, since ( Γ i k ) i Σ Ω k = Θ i k Ω k Ω k by (3).
In particular, we have that A B Θ i k for any B A Σ 3 i [ Ξ k ] . Hence, A B Θ 1 k Θ 2 k for any A Σ 1 [ Ξ k ] and B Σ 2 [ Ξ k ] . This observation, together with (3) and the fact that R i , implies (5). □
Lemma 4.
Still assuming that Δ 1 k Ω k = Δ 2 k Ω k Ω k , for i = 1 , 2 , we have that
Δ i k + 1 Ω k + 1 = Θ 1 k Θ 2 k .
Proof. 
By definition, Δ i k + 1 = ( Θ 1 k Θ 2 k ) i Σ . Consider the following equivalence relations (for i = 1 , 2 ) on skel Σ i ( Ξ k + 1 ) , where
skel Σ i ( A ) i skel Σ i ( B ) if   and   only   if   Θ 1 k Θ 2 k R A B .
For each D skel Σ i ( Ξ k + 1 ) , let us pick a representative E D [ D ] i skel Σ i ( Ξ k + 1 ) , picking E D Ξ k skel Σ i [ Ξ k ] whenever possible. Let Q = { q skel Σ i ( Σ 3 i [ Ξ k ] ) : E q Ξ k } and Q = skel Σ i ( Σ 3 i [ Ξ k ] ) \ Q . By Lemma 3 (4) and (5), for q Q , E q Q .
Consider σ i : P ( P Ξ k Q ) defined by
σ i ( p ) = E p if   p skel Σ i ( Σ 3 i [ Ξ k ] ) p if   p skel Σ i ( Σ 3 i [ Ξ k ] )
By construction, Q σ i Ξ k and Q = ( Q ) σ i Q . Further, we have that
( skel Σ i ( Ξ k + 1 ) ) σ i = skel Σ i ( Σ 1 [ Ξ k ] ) ( skel Σ i ( Σ 3 i [ Ξ k ] ) ) σ i = skel Σ i ( Σ i [ Ξ k ] ) Q , and ( skel Σ i ( Θ 1 k Θ 2 k ) ) σ i = skel Σ i ( Θ i k ) { q q : q Q } .
As { q q : q Q } is contained in any theory of every equational logic, we have that ( ( skel Σ i ( Θ 1 k Θ 2 k ) ) σ i ) i = ( skel Σ i ( Θ i k ) ) i and note that
( skel Σ i ( Θ i k ) ) i skel Σ i ( Ω k + 1 ) = skel Σ i ( Θ i k ) { q q : q Q Q } .
Since inverse images of theories by substitutions are theories, we have that
T i = σ i 1 ( ( skel Σ i ( Θ i k ) ) i ) Th ( Σ , i ) ,
and from Proposition 4, we obtain that unskel Σ i ( T i ) Th ( Σ , i Σ ) .
By definition of σ i , using Lemma 3 (3) and (5), we obtain that
σ i 1 ( skel Σ i ( Θ i k ) { q q : q Q Q } ) = skel Σ i ( Θ 1 k Θ 2 k ) .
We now have that Θ 1 k Θ 2 k Δ i k + 1 unskel Σ i ( T i ) , and since skel Σ i and unskel Σ i are bijections,
unskel Σ i ( T i ) Ω k + 1 = unskel Σ i ( ( skel Σ i ( Θ i k ) ) i skel Σ i ( Ω k + 1 ) ) = unskel Σ i ( σ i 1 ( skel Σ i ( Θ i k ) { q q : q Q Q } ) = unskel Σ i ( skel Σ i ( Θ 1 k Θ 2 k ) ) = Θ 1 k Θ 2 k
Hence, Δ i k + 1 Ω k + 1 = ( Θ 1 k Θ 2 k ) i Σ Ω k + 1 = Θ 1 k Θ 2 k
We now prove properties (1) and (2) by induction on k N 0 .
For the base case k = 0 , we know that Δ 1 0 Ω 0 = Δ 2 0 Ω 0 ; thus, (1) holds. Now, we are in position to use Lemmas 3 and 4 with k = 0 . By Lemma 4, we have that Δ i 1 Ω 1 = Θ 1 0 Θ 2 0 , and from Lemma 3 (3), we know that ( Θ 1 0 Θ 2 0 ) Ω 0 = Δ i 0 Ω 0 . Since Ω 0 Ω 1 , we conclude that
Δ i 1 Ω 0 = ( Θ 1 0 Θ 2 0 ) Ω 0 = Δ i 0 Ω 0 ,
and thus (2) holds.
For the step, by induction hypothesis we have that Δ 1 k Ω k = Δ 2 k Ω k Ω k holds. Then again, as in the base case, Lemmas 4 and 3 (3) are available. By Lemma 4, we obtain that Δ 1 k + 1 Ω k + 1 = Θ 1 k Θ 2 k = Δ 2 k + 1 Ω k + 1 and thus (1) holds. As in the base case, we use the fact that Ω k Ω k + 1 and Lemma 3 (3) to conclude that
Δ i k + 1 Ω k = ( Θ 1 k Θ 2 k ) Ω k = Δ i k Ω k .
Thus, (2) holds for i = 1 , 2 . □
From Theorem 4 and the fact that ctx ( Ω ) can be calculated in polynomial time on the size of Ω , we conclude that combining equational logics with disjoint signatures thus preserves the upper bound complexity classes for the given logics P , coNP , PSPACE , EXPTIME , and EXPSPACE .
As far as we know, this exact result has not been stated and proven before, but it is very closely related to many similar and even more ambitious results in the literature. Indeed, in [16], a similar statement is obtained, but in the context of varieties of algebras whose reducts are boolean algebras. Other results focused on deciding the word problem (theoremhood) rather than the associated consequence relations. In [18], it is shown that the Turing degree of the word problem for the variety V ( Eq 1 Eq 2 ) , i.e., deciding whether Eq 1 Eq 2 A B , is the join of the Turing degrees for the word problems for V ( Eq 1 ) and V ( Eq 2 ) . In Theorem 4, we assume more and obtain more. Still, our result implies Pigozzi’s whenever we depart from from decidable Eq 1 and Eq 2 . This is so, in particular, when one can reduce the problem of deciding Eq to the word problem for V ( Eq ) , for instance, when both varieties have a strong ternary deductive term [32]. Our result is also reminiscent of Nelson–Oppen-like results, showing preservation of decidability of combined first-order quantifier-free stably-infinite theories with equality over disjoint signatures [19]. Of course, assuming decidability of boolean combinations of equations is more demanding than assuming the decidability of the underlying equational logic. Note, still, that the extra expressivity raises compatibility issues related to the cardinality of the models. These observations also apply to interesting variations and extensions of Nelson and Oppen’s seminal result, including some non-disjoint cases such as [18,19,20,21,22,23,24,25,26].

4. Concluding Remarks

In this paper, we proposed the first generally applicable criterion for the preservation of decidability when combining logics, and analyzed the complexity bounds thus obtained. It is clear from our development that in order to be applied as in Theorem 2 and Theorem 4, the notion of ctx -compatibility can be imposed only for finite Ω since we are considering deciding statements regarding finite sets of hypotheses. Further note that these theorems could be adapted to join any finite set of logics at once by imposing ctx -compatibility as a bunch, the advantage being that the number of logics being combined would enter as a multiplicative factor in the complexity bound obtained, thus improving the bound obtained by joining them iteratively. When joining logics with polynomial time or space, as in Section 3.5.1, this is not so relevant, as it would only affect the degree of the resulting polynomial, but in general it may really yield better upper bounds.
Further, we have shown that our criterion works by providing new proofs for previous results in the area, uniformly using the same abstract idea of contextual extensibility of theories. What is more, due to the generality and abstractness of our notion of extensibility, we have shown that the technique of contextual extensibility can be applied well beyond propositional-based logics, namely in the context of 2-deductive systems and in particular of equational logics. In order to best establish the relationship of our criterion and subsequent decidability preservation proofs, namely with the myriad of important known results for combined equational and first-order theories, it will of course be crucial to adopt other useful extensions of the plain Tarskian notion of logic, namely in order to cover, at least, Horn, clausal, and boolean combinations of atomic formulas, such as equations.
There are several other topics for further research. An obvious one is to pursue specialized decidability preservation results for propositional logics sharing a common base, sufficiently well-behaved but not necessarily classical, thus extending the result for fusions of modal logics covered in Section 2.5.2, for which [21] may be useful. The semantic characterizations of [12], using non-determinism and partiality, may play a crucial role in this setting. Another interesting question is whether there may be a criterion akin to ctx -extensibility that allows us to decide the preservation of decidability of the theoremhood relation of the logics, or of the corresponding satisfiability problem, which in the concrete case of disjoint signatures and by using the ideas in Lemmas 3 and 4, could help us in mimicking Piggozi’s proof in [18]. Last but not least, we envisage studying the relationship between our notion of contextual extensibility and model-theoretic techniques involving forms of amalgamation, namely in the lines of [24,33,34,35].

Author Contributions

Data curation, C.C.; formal analysis, C.C.; funding acquisition, C.C. and S.M.; investigation, S.M.; project administration, S.M. All authors have read and agreed to the published version of the manuscript.

Funding

Research funded by FCT/MCTES through national funds and, when applicable, co-funded by the EU under project UIDB/50008/2020.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Gabbay, D. Fibred Semantics and the Weaving of Logics Part 1: Modal and Intuitionistic Logics. J. Symb. Log. 1996, 61, 1057–1120. [Google Scholar] [CrossRef]
  2. Gabbay, D. Fibring Logics. In Oxford Logic Guides; Clarendon Press: Oxford, UK, 1999; Volume 38. [Google Scholar]
  3. Béziau, J.Y. Universal logic. In Proceedings of the VIII International Symposium, LOGICA’94, Liblice, Czechia, 7–10 June 1994; Childers, T., Majers, O., Eds.; Czech Academy of Sciences: Prague, Czechia, 1994; pp. 73–93. [Google Scholar]
  4. Béziau, J.Y. The challenge of combining logics. Log. J. IGPL 2011, 19, 543. [Google Scholar] [CrossRef]
  5. FroCoS. The International Symposium on Frontiers of Combining Systems. Available online: http://frocos.cs.uiowa.edu (accessed on 31 May 2022).
  6. Beckert, B.; Gabbay, D. Fibring Semantic Tableaux. In Automated Reasoning with Analytic Tableaux and Related Methods; Lecture Notes in Computer Science; de Swart, H., Ed.; Springer: Berlin/Heidelberg, Germany, 1998; Volume 1397, pp. 77–92. [Google Scholar]
  7. Caleiro, C.; Carnielli, W.; Rasga, J.; Sernadas, C. Fibring of logics as a universal construction. In Handbook of Philosophical Logic, 2nd ed.; Gabbay, D., Guenthner, F., Eds.; Kluwer: Dordrecht, The Netherlands, 2005; Volume 13, pp. 123–187. [Google Scholar]
  8. Carnielli, W.; Coniglio, M.; Gabbay, D.; Gouveia, P.; Sernadas, C. Analysis and Synthesis of Logics: How to Cut and Paste Reasoning Systems; Applied Logic; Springer: Berlin/Heidelberg, Germany, 2008; Volume 35. [Google Scholar]
  9. Rasga, J.; Sernadas, A.; Sernadas, C.; Viganò, L. Fibring Labelled Deduction Systems. J. Log. Comput. 2002, 12, 443–473. [Google Scholar] [CrossRef]
  10. Sernadas, A.; Sernadas, C.; Caleiro, C. Fibring of Logics as a Categorial Construction. J. Log. Comput. 1999, 9, 149–179. [Google Scholar] [CrossRef]
  11. Zanardo, A.; Sernadas, A.; Sernadas, C. Fibring: Completeness preservation. J. Symb. Log. 2001, 66, 414–439. [Google Scholar] [CrossRef]
  12. Caleiro, C.; Marcelino, S. Modular semantics for combined many-valued logics. 2021; submitted. [Google Scholar]
  13. Marcelino, S.; Caleiro, C.; Baltazar, P. Deciding theoremhood in fibred logics without shared connectives. In The Road to Universal Logic—Volume 2; Studies in Universal Logic; Koslow, A., Buchsbaum, A., Eds.; Springer: Berlin/Heidelberg, Germany, 2015; pp. 387–406. [Google Scholar]
  14. Marcelino, S.; Caleiro, C. Decidability and complexity of fibred logics without shared connectives. Log. J. IGPL 2016, 24, 673–707. [Google Scholar] [CrossRef]
  15. Coniglio, M.; Sernadas, A.; Sernadas, C. Preservation by fibring of the finite model property. J. Log. Comput. 2011, 21, 375–402. [Google Scholar] [CrossRef]
  16. Wolter, F. Fusions of modal logics revisited. In Advances in Modal Logic; Kracht, M., de Rijke, M., Wansing, H., Zakharyaschev, M., Eds.; CSLI Publications: Stanford, CA, USA, 1998; Volume 1, pp. 361–379. [Google Scholar]
  17. Gabbay, D.; Kurucz, A.; Wolter, F.; Zakharyaschev, M. Many-Dimensional Modal Logics: Theory and Applications; Studies in Logic and the Foundations of Mathematics; Elsevier: Amsterdam, The Netherlands, 2003; Volume 148. [Google Scholar]
  18. Pigozzi, D. The join of equational theories. Colloq. Math. 1974, 30, 15–25. [Google Scholar] [CrossRef]
  19. Nelson, G.; Oppen, D. Simplification by Cooperating Decision Procedures. ACM Trans. Program. Lang. Syst. 1979, 1, 245–257. [Google Scholar] [CrossRef]
  20. Shostak, R. Deciding Combinations of Theories. J. ACM 1984, 31, 1–12. [Google Scholar] [CrossRef] [Green Version]
  21. Baader, F.; Ghilardi, S.; Tinelli, C. A New Combination Procedure for the Word Problem That Generalizes Fusion Decidability Results in Modal Logics. Inf. Comput. 2006, 204, 1413–1452. [Google Scholar] [CrossRef]
  22. Tinelli, C.; Ringeissen, C. Unions of Non-disjoint Theories and Combinations of Satisfiability Procedures. Theor. Comput. Sci. 2003, 290, 291–353. [Google Scholar] [CrossRef]
  23. Ranise, S.; Ringeissen, C.; Zarba, C. Combining Data Structures with Nonstably Infinite Theories Using Many-sorted Logic. In Frontiers of Combining Systems; Lecture Notes in Computer Science; Gramlich, B., Ed.; Springer: Berlin/Heidelberg, Germany, 2005; Volume 3717, pp. 48–64. [Google Scholar]
  24. Ghilardi, S. Model-Theoretic Methods in Combined Constraint Satisfiability. J. Autom. Reason. 2004, 33, 221–249. [Google Scholar] [CrossRef]
  25. Casal, F.; Rasga, J. Many-sorted equivalence of shiny and strongly polite theories. J. Autom. Reason. 2018, 60, 221–236. [Google Scholar] [CrossRef]
  26. Chocron, P.; Fontaine, P.; Ringeissen, C. Politeness and Combination Methods for Theories with Bridging Functions. J. Autom. Reason. 2020, 64, 97–134. [Google Scholar] [CrossRef]
  27. Rasga, J.; Sernadas, C. Decidability of Logical Theories and Their Combination; Birkhäuser: Basel, Switzerland, 2020. [Google Scholar]
  28. Marcelino, S.; Caleiro, C. On the characterization of fibred logics, with applications to conservativity and finite-valuedness. J. Log. Comput. 2016, 27, 2063–2088. [Google Scholar] [CrossRef]
  29. Wójcicki, R. Theory of Logical Calculi; Kluwer: Dordrecht, The Netherlands, 1988. [Google Scholar]
  30. Thomason, S. Independent propositional modal logics. Stud. Log. 1980, 39, 143–144. [Google Scholar] [CrossRef]
  31. Blok, W.; Pigozzi, D. Algebraic semantics for universal Horn logic without equality. Univers. Algebra Quasigroup Theory 1992, 19, 111–112. [Google Scholar]
  32. Blok, W.; Pigozzi, D. On the structure of varieties with equationally definable principal congruences III. Algebra Universalis 1994, 32, 545–608. [Google Scholar] [CrossRef]
  33. Ghilardi, S.; Gianola, A. Interpolation, Amalgamation and Combination (The Non-disjoint Signatures Case). In Frontiers of Combining Systems (FroCoS 2017); Lecture Notes in Computer Science; Dixon, C., Finger, M., Eds.; Springer: Berlin/Heidelberg, Germany, 2017; pp. 316–332. [Google Scholar]
  34. Ghilardi, S.; Gianola, A. Modularity results for interpolation, amalgamation and superamalgamation. Ann. Pure Appl. Log. 2018, 169, 731–754. [Google Scholar] [CrossRef]
  35. Ghilardi, S.; Gianola, A. Interpolation and Uniform Interpolation in Quantifier-Free Fragments of Combined First-Order Theories. Mathematics 2022, 3, 461. [Google Scholar] [CrossRef]
Table 1. Complexity bounds for deciding the combination of ctx -extensible logics.
Table 1. Complexity bounds for deciding the combination of ctx -extensible logics.
C C
TIME ( t ( n ) ) TIME ( c ( n ) + d ( n ) × t ( d ( n ) ) )
SPACE ( s ( n ) ) SPACE ( d ( n ) + s ( d ( n ) ) )
coNTIME ( t ( n ) ) coNTIME ( c ( n ) + d ( n ) × t ( d ( n ) ) )
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Caleiro, C.; Marcelino, S. Decidability Preservation and Complexity Bounds for Combined Logics. Mathematics 2022, 10, 3481. https://doi.org/10.3390/math10193481

AMA Style

Caleiro C, Marcelino S. Decidability Preservation and Complexity Bounds for Combined Logics. Mathematics. 2022; 10(19):3481. https://doi.org/10.3390/math10193481

Chicago/Turabian Style

Caleiro, Carlos, and Sérgio Marcelino. 2022. "Decidability Preservation and Complexity Bounds for Combined Logics" Mathematics 10, no. 19: 3481. https://doi.org/10.3390/math10193481

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop