Abstract
In this paper we consider general continuous propositional logics and prove some basic properties about them. First, we characterize full systems of continuous connectives of the form  where f is a unary connective. We also show that, in contrast to the classical propositional logic, a full system of continuous propositional logic cannot contain only one continuous connective. We then construct a closed full system of continuous connectives without any constants. Such a system does not have any tautologies. For the rest of the paper we consider the standard continuous propositional logic as defined by Yaacov, I.B and Usvyatsov, A. We show that Strong Compactness and Craig Interpolation fail for this logic, but approximated versions of Strong Compactness and Craig Interpolation hold true. In the last part of the paper, we introduce various notions of satisfiability, falsifiability, tautology, and fallacy, and show that they are either NP-complete or co-NP-complete.
    Keywords:
                                                                    continuous propositional logic;                    full system of connectives;                    strong compactness;                    Craig interpolation;                    satisfiability;                    NP-complete        MSC:
                Primary 03B50, 03B25; Secondary 03B60
            1. Introduction
In [] Ben Yaacov and Usvyatsov developed continuous first-order logic as a variant of the logic studied by Chang and Keisler []. This logic turns out to be very useful in the study of metric structures. For instance, Ben Yaacov [] proved that the linear isometry group of the Gurarij space is universal among all Polish groups by viewing Banach spaces as continuous first-order structures. Another example is the metric Scott analysis developed in [] where the infinitary continuous first-order logic is used.
In this paper we study continuous propositional logic in the framework of continuous first-order logic of [], because some basic questions about continuous propositional logic have not been addressed in previous research. For example, in [] the notion of full connective systems was defined, it was shown that the system  is full, and this system had then been adopted as the standard connective system for the rest of the study. Here we give a more complete analysis of full connective systems. In particular, we give a characterization of the unary connectives f where  forms a full system. Another curious issue is the existence of a full system of connectives with only one connective. In the case of classical propositional logic, such systems exist; an example is  where | denotes the Sheffer stroke (also known as the nand operation), which is a binary connective. We will show that the situation is quite different in continuous propositional logic, that no such singleton system can be full, regardless of the arity of the connective. We will also construct a closed full system of connectives which contains no constants. This is curious because in the corresponding continuous propositional logic there are no tautologies.
In [] Ben Yaacov and Pedersen introduced a deductive system and showed that the Completeness theorem holds for continuous first-order logic. It follows that the Compactness theorem holds, which states that a set of formulas in continuous first-order logic is satisfiable iff every finite subset of it is satisfiable. The axioms they used for continuous propositional logic is a natural extension of the axioms of Łukasiewicz logic (cf. e.g., []). In fact Ben Yaacov in [] gave a more explicit treatment of continuous propositional logic and verified directly its Completeness. Here we consider Strong Compactness, which is the possible equivalence between  and  for a finite subset  of . We will see that this Strong Compactness fails, and instead we establish an Approximated Compactness theorem in a style similar to an Approximated Completeness theorem proved by Ben Yaacov []. Similarly, we give examples where the Craig Interpolation theorem fails, but prove an Approximated Interpolation theorem for continuous propositional logic.
In the last part of the paper we consider the complexity of decidability problems for continuous propositional logic. In analogy with the classical propositional logic, we show that the satisfiability problem for continuous propositional logic is NP-complete and the tautology problem for continuous propositional logic is co-NP-complete, except that the satisfiability problem and the tautology problem for continuous propositional logic take more than one form according to a set threshold. Formally, in Section 4 we define, for rationals  and  the notions of -satisfiability, -tautologies, -falsifiability, -fallacies, -satisfiability, -tautologies, -falsifiability, and -fallacies. We define a particular full system of connectives , which is a natural extension of the standard system . We completely characterize the complexity for these notions as follows.
Theorem 1. 
Let  be a finite subset of . Suppose  contains . Then for all rational  and :
- the following sets of formulas in are NP-complete:
- 1.
 - -satisfiable formulas;
 - 2.
 - α-falsifiable formulas;
 - 3.
 - β-satisfiable formulas;
 - 4.
 - -falsifiable formulas;
 
 - the following sets of formulas in are co-NP-complete:
- 5.
 - -tautologies;
 - 6.
 - α-fallacies;
 - 7.
 - β-tautologies;
 - 8.
 - -fallacies.
 
 
Mundici [] had shown that for , the set of all <1-satisfiable formulas in  is NP-complete. Our result is a generalization.
The rest of the paper is organized as follows. In Section 2 we study fullness of connective systems. In Section 3 we discuss the Strong Compactness and Craig Interpolation theorems. In Section 4 and Section 5 we investigate the decidability problems considered in Theorem 1 and determine their complexity.
2. Fullness of Connective Systems
Our presentation of the continuous propositional logic will (almost) follow [], with only two exceptions, which we will explain soon below.
For , an n-ary continuous connective is a continuous function from  to .
The set of all 0-ary continuous connectives consists of all constant functions  for . They serve as continuous truth values. They generalize traditional discrete truth values  and . Note that, following [], truth corresponds to 0 and fallacy corresponds to 1, for good technical reasons.
The set of all unary continuous connectives consists of all continuous functions from  to . In classical propositional logic there is only one unary connective ¬ (negation). Here we define
      
      
        
      
      
      
      
    
      for . Obviously  iff , and  iff ; thus the definition is consistent with the traditional definition of ¬.
In classical propositional logic, ∧ (conjunction), ∨ (disjunction) are standard binary connectives. In continuous propositional logic, we define them as follows:
      
        
      
      
      
      
    
One can check that they generalize the traditional definitions, that is,
      
      
        
      
      
      
      
    
The reason we are presenting these obvious computations is that in [] and all other recent literature their definitions were swapped. Of course, our system is isomorphic to theirs.
It is well known that in classical propositional logic, one can express any connective of arbitrary arity using either  or . This is no longer true in continuous propositional logic. An important development is to consider the binary continuous connective ∸, defined as
      
      
        
      
      
      
      
    
In the presence of ¬, we do not lose expressive power by adopting  ∸ instead of ∨ or ∧, because
      
      
        
      
      
      
      
    
Sometimes it is convenient to use the following redundant binary continuous connective as a dual of ∸: 
      
        
      
      
      
      
    
As for continuous connectives of higher arity, we only specify the projections as below. For  and ,
      
      
        
      
      
      
      
    
It is conventional to consider only connective systems of continuous propositional logic where all the  are present.
Definition 1. 
A system of continuous connectives is a sequence  where each  is a collection of continuous functions from  to . The closure of , denoted , is the smallest system  of continuous connectives satisfying:
- for all , ;
 - for all and , ; and
 - if and , then .
 
 is closed if .
Although it is a slight abuse of notation, we usually present a system  as a single set of connectives if the arities of the connectives are clear from the context. The above definition is slightly different from that in []; this definition formalizes the above convention that all projections are considered part of any connective system.
Definition 2 
([]). A system of continuous connectives  is full if, letting , for every , the set  is dense in the space of all continuous functions from  to , equipped with the compact-open topology (equivalently, uniform convergence topology).
Note that fullness does not require that the closure of the system has constants. Later in this section we will give an example of a closed full system without any constants.
The basic tool to study full connective systems in continuous propositional logic is the following lattice version of the Stone–Weierstrass theorem.
Theorem 2 
(Stone–Weierstrass Theorem, lattice version []). Let X be a compact Hausdorff space containing at least two points. Equip  with the uniform convergence topology. Let  be a sub-lattice (i.e., for  we have ) such that for every distinct , , and , there is  such that . Then  is dense in .
The following theorem was proved in [].
Theorem 3 
([]). Let X be a compact Hausdorff space. Assume that  is closed under ¬ and ∸, separates points in X (i.e., for any two distinct , there is  such that ), and satisfies either of the following two additional properties:
- (i)
 - The set is dense in .
 - (ii)
 - is closed under the function .
 
Then  is dense in .
The proof of Theorem 3 gives that the following system of continuous connectives is full: 
      
        
      
      
      
      
    
      where  is dense.
Theorem 3 also implies that
      
      
        
      
      
      
      
    
      is a full set of continuous connectives. This system has been adopted as the standard connective system for continuous propositional logic. However, before we focus on this system, we will prove some basic results about general connective systems.
What follows is a characterization of unary continuous functions f where  is full.
Definition 3. 
A set  is a-algebra if A contains 0 and is closed under ¬ and ∸. Let . The -algebra generated by S, denoted , is the smallest -algebra containing all elements of S. A is finitely generated  if  for some finite set .
Lemma 1. 
For any nonempty finitely generated -algebra A, exactly one of the following holds:
- (i)
 - There is an irrational such thatIn particular, A is dense in .
 - (ii)
 - A is finite, and there is an such that .
 
Proof.  
Note that any -algebra contains 0 and 1 and is closed under ∸ and ∔. If A contains an irrational , then  and A is dense. Otherwise, A contains only rational numbers. Since A is closed under ∸ and ∔, for any , , where  is the great common divisor of a and b, i.e., the largest rational c such that  and  are both integers. It follows that A is finite if A has only finitely many rational generators. Letting  be the smallest nonzero number in A, then . This means that  for some . We have .□
Definition 4. 
Let  be a continuous function. Define
      
        
      
      
      
      
    
Let .  is called the -algebra generated by f.
Proposition 1. 
Let  be a continuous function. Then the following are equivalent:
- 1.
 - is a full system of continuous connectives.
 - 2.
 - is infinite.
 
Proof.  
Since ∔ can be expressed from ¬ and  ∸, when  is infinite the set of all constants in the closure of  is dense in . By Theorem 3,  is full. Conversely, suppose  is finite. It is easy to see by induction that for any n-ary function g of the closure of , , if  then . Thus the set of n-ary functions of the closure of  is not dense in .  □
Some examples of f that give fullness include 
- 1.
 - any continuous f that is strictly increasing and satisfies or ;
 - 2.
 - any continuous f that is strictly decreasing and satisfies or ;
 - 3.
 - any continuous f with irrational.
 
Next we turn to some examples of non-full systems.
It follows from Proposition 1 that  is not full. Since the closure of  contains  it follows that  is also not full.
Lemma 2. 
Suppose  contains only functions that are 1-Lipschitz in each variable. Then  is not full.
Proof.  
The set of 1-Lipschitz unary functions is not dense in .  □
Example 1.  
The system  is not full. By induction one can verify that every function in the closure of the system is 1-Lipschitz in every variable.
In classical propositional logic the system  is full, where ∣ is the Sheffer stroke (or nand), defined as
      
      
        
      
      
      
      
    
The following result shows that in continuous propositional logic there is not a single function f such that  is full.
Proposition 2. 
For every continuous function ,  is not a full system of continuous connectives.
Proof.  
Define . Then  and has a fixed point . Now we claim that for all h in the closure of , . This is proved by induction. When  or h is a projection, this is obvious. For compositions, it is true by induction. Now  is not full since the unary functions in the closure of  is not dense in .  □
We do not know if there is a unary function f such that  is full.
Definition 5. 
A tautology in continuous propositional logic is a formula  such that  for all . A formula  is satisfiable if there are  such that .
Note that the projection functions are always satisfiable, so the set of satisfiable formulas is always nonempty.
Proposition 3. 
There exists a closed full system of continuous connectives without any constants. In particular, there are no tautologies in this system.
Proof.  
Let  consist of all piecewise linear functions f on  (i.e., there is a finite sequence  such that  is linear on ) such that f is not constant on any interval. Consider the system  where  is defined as above, , and  for . Then  is a closed system,  separates points, and the set of all n-ary functions of , for any , is a sub-lattice in . Theorem 2 implies that  is full.
We verify that  does not contain constant functions. First, note that  is closed under composition, ∧, and ∨, and it does not contain constant functions. Next, we claim that for any n-ary g of , , . This can be seen by noting that it is true for  for all  and , and is preserved under composition, ∧, and ∨. Thus g is not a constant function.  □
We will use the following observation in the next section.
Lemma 3. 
The constant formulas in the closure of the system  takes values only in dyadic rationals.
Proof.  
By induction one can verify that the linear functions used to express any formula in the closure of  has dyadic rationals as coefficients. Now if  is a constant function in the closure of  then the constant value is , which is a dyadic rational.     □
3. Strong Compactness and Craig Interpolation
Throughout this section we fix the full system  for continuous propositional logic.
The deduction system for continuous propositional logic is an adaptation of the Łukasiewicz axioms studied in many-valued logics, particularly fuzzy logic. The reader can refer to [,] for more background information about fuzzy logic, many-valued logic, and their basic model theory.
The Łukasiewicz axioms are: 
      
        
      
      
      
      
    
The Modus Ponens rule specifies the procedure to make deductions: 
      
        
      
      
      
      
    
This deduction system consistitutes the Łukasiewicz logic, denoted as Ł, which is a many-valued logic originally proposed by  Łukasiewicz.
Following [,] we consider two more axioms in continuous propositional logic: 
      
        
      
      
      
      
    
Denote the deduction system as CŁ. We write  if p is deducible from the formulas in , together with axioms (A1)–(A6), by repeatedly applying the Modus Ponens rule in CŁ. Similarly, we also write  if all truth value assignments that evaluate all formulas in  to be 0 also evaluate p to be 0. If the context is clear we omit the superscripts for notational simplicity.
Satisfiability and consistency of a set of formulas are defined in the most natural way. The soundness of the continuous propositional logic is obvious. The following Completeness theorem was proved in [].
Theorem 4 
([]). Let Σ be a set of formulas in continuous propositional logic. Then Σ is consistent iff Σ is satisfiable.
The following weak Compactness theorem is a corollary of the above theorem.
Theorem 5. 
Let Σ be a set of formulas in continuous propositional logic. Then Σ is satisfiable iff any finite subset  of Σ is satisfiable.
The following Approximated Strong Completeness for continuous propositional logic is also a corollary of the Completeness theorem.
Theorem 6 
([]). Let Σ be set of formulas and p be a formula in continuous propositional logic. Then  iff  for all .
This is the best one can do; the Strong Completeness for continuous propositional logic fails. To see this, consider , where p is an atomic formula. Then  but .
This same example also shows that the Strong Compactness for continuous propositional logic fails, since we have  but there is no finite  with .
We do, however, have an approximated version of the Strong Compactness theorem as a corollary of the Approximated Strong Completeness theorem.
Theorem 7 
(Approximated Strong Compactness). Let Σ be set of formulas and p be a formula in continuous propositional logic. If  and  then there is a finite  such that .
Proof.  
Suppose  and . By Theorem 6 . Thus there is a finite  such that . By Theorem 4 we have .  □
Next we note that the Craig Interpolation theorem for continuous propositional logic fails. Let  be atomic propositions and consider
      
      
        
      
      
      
      
    
Observe that for all  we have
      
      
        
      
      
      
      
    
Thus . Assume  is any formula satisfying  and . Observe further that for any ,
      
      
        
      
      
      
      
    
We conclude that , that is, it is a constant unary function that takes value , contradicting Lemma 3.
The following is an Approximated Craig Interpolation theorem for continuous propositional logic.
Theorem 8 
(Approximated Craig Interpolation). Let  and  be formulas in continuous propositional logic. Suppose . Then for any  there is a formula  such that  and . Similarly, for any  there is a formula  such that  and .
Proof.  
From  we conclude that for any ,
        
      
        
      
      
      
      
    
Let . Then f is continuous. By the fullness of continuous propositional logic, there is a formula  such that
        
      
        
      
      
      
      
    
Let . Then for any ,
        
      
        
      
      
      
      
    
        and thus . On the other hand,
        
      
        
      
      
      
      
    
Thus .  □
4. Complexity of Decidability Problems, Part I
In this and the next sections we prove Theorem 1. First we define the relevant concepts. Recall that we have defined the notion of tautology and satisfiability. Here we expand to some other notions.
Definition 6. 
A formula  of continuous propositional logic is
- a fallacy if is a tautology, i.e., for all ,
 - falsifiable if there are such that .
 
Definition 7. 
Fix . A formula  of continuous propositional logic is
- an-tautology if for all , ;
 - an-fallacy if for all , ;
 - -satisfiable if there are such that ;
 - -falsifiable if there are such that .
 
One can similarly define the notion of -tautology and -satisfiability for  and that of -fallacy and -falsifiability for .
Note that
      
      
        
      
      
      
      
    
In this section we investigate the computational complexity of these sets of formulas in continuous propositional logic. The following lemma is easy to prove; it provides P-time reductions between various sets.
Lemma 4. 
Suppose  contains ¬. Let . Then for any  and , the following hold:
- p is -satisfiable iff p is not an α-fallacy iff is -falsifiable iff is not a -tautology;
 - p is β-satisfiable iff p is not an -fallacy iff is -falsifiable iff is not a -tautology.
 
Our objective is to show that satisfiability in continuous propositional logic is in NP. To do this we first construct a particular full system  of continuous connectives as follows.
For , an element  is a rational point if  are all rational numbers. Let  be the set of all vertices of , i.e.,  iff each  for . Given finitely many points , a polyhedronization of  with extreme points  is a decomposition of  as a complex that consists of convex polyhedra with extreme points that are among  and the elements of . For each , let  be the set of all continuous functions f from  to  such that there is a polyhedronization of  with finitely many rational extreme points such that f is a linear function with rational coefficients on each of the polyhedron in the polyhedronization. Let .
Lemma 5. 
 is full.
Proof.  
When   is a dense subset of the set of unary functions considered in the previous proof. Obviously  separates points. Now it is easy to check that . Thus the n-ary functions of , for any , form a sub-lattice of . By Theorem 2,  is full.  □
Lemma 6. 
 is closed under composition.
Proof.  
Suppose  are n-ary functions of , f is an m-ary function of , and . Each , , is piecewise linear with a polyhedronization  of  (i.e., f is linear on every convex polyhedron and agrees on their boundaries) . Let P be the largest common refinement of all . Then the extreme points of P are among
        
- the extreme points of ,
 - elements of , and
 - extreme points of the intersections of polyhedra in .
 
		For the last kind, note that the intersection of any number of polyhedra is still convex, and therefore is itself a polyhedron. Their extreme points are solutions of linear equations with rational coefficients, and therefore are also rational points. Let  be a polyhedronization of  such that f is linear on each polyhedron in . Consider a particular polyhedron in P, and denote it as S. Note that each  is a linear function on S. Let  be these linear functions corresponding respectively to . They have rational coefficients. Let  be a polyhedron in . Now  is given by a number of linear inequalities in m variables. Denote these inequalities as, for instance, , for . The coefficients of these inequalities are all rational. Consider the subset of  that satisfies
        
      
        
      
      
      
      
    
        for all . This is again a system of linear inequalities with rational coefficients. Note that the solution set is convex, and thus its intersection with S, if nonempty, is also convex, and therefore is a polyhedron. Traversing all  in  would give a complete polyhedronization of S into polyhedra with rational extreme points, and on each polyhedron the function  is linear. This shows that h is an n-ary function of .  □
Thus  is a full, closed system of continuous connectives. It is easy to check that the standard connective system  is a subsystem of . Hence the satisfiability problem for the standard continuous propositional logic is a subproblem of that for . Also, since each function of  is determined by a polyhedronization with finitely many rational extreme points and linear functions with rational coefficients, we can code all functions of  by natural numbers.
Now consider an arbitrary finite subset  of the system . For any rational  and , we show that the sets of -satisfiable formulas and -satisfiable formulas in  are in NP.
Recall that each n-ary function  is determined by a polyhedronization  of  with rational extreme points and a linear function with rational coefficients on each polyhedron in . Furthermore, each polyhedron in  is given by a number of linear inequalities of the form
      
      
        
      
      
      
      
    
      or
      
      
        
      
      
      
      
    
      where the coefficients  are rational numbers. We refer to the linear functions appearing on the left hand sides of the inequalities used in the polyhedronization of  as type I linear forms and the linear functions in the definition of f as type II linear forms.
For each linear form  of either type, we define its standard form to be the form
      
      
        
      
      
      
      
    
      where  and  are integers such that
      
      
        
      
      
      
      
    
Also define
      
      
        
      
      
      
      
    
Similarly, for a tuple of rational numbers  we also define its standard form to be the form
      
      
        
      
      
      
      
    
      where  and  are integers and , and let
      
      
        
      
      
      
      
    
      when , and  when .
Lemma 7. 
Let  be linear forms with variables  such that the system
      
        
      
      
      
      
    has a unique solution . Then .
Proof.  
This is a direct consequence of Cramer’s rule. Let A be the matrix consisting of the coefficients of  in , and for each  let  be the matrix obtained from A by replacing its j-th column by the constant terms of . Then
        
      
        
      
      
      
      
    
		Let  be the common denominators appearing in the forms , respectively. We can write
        
      
        
      
      
      
      
    
        noting that both the numerator and the denominator are integers. We have
        
      
        
      
      
      
      
    
Similarly
        
      
        
      
      
      
      
    
The conclusion of the lemma follows.  □
We will not need the following lemma but it is a converse as well as a consequence of Lemma 7.
Lemma 8. 
Let λ be a linear form in variables  with 1 as its constant term and let  be rational points in  which determine the hyperplane . Then .
Proof.  
Suppose
        
      
        
      
      
      
      
    
        such that  are integers,  and . For each , say , also consider the form
        
      
        
      
      
      
      
    
Then
        
      
        
      
      
      
      
    
        is the unique solution of the system
        
      
        
      
      
      
      
    
By Lemma 7,
        
      
        
      
      
      
      
    
        which implies that
        
      
        
      
      
      
      
      □
Lemma 9. 
Let μ be a linear form in m variables and let  be linear forms in variables . Let
      
        
      
      
      
      
    
Then .
Proof.  
Write  in standard linear forms. The conclusion of the lemma is by straightforward computations. In fact, the common denominator of the form  is bounded by the product of the common denominators of forms , hence bounded by . The coefficients of the form  for each variable  is bounded by . The constant term of the form  is bounded by
        
      
        
      
      
      
      
      □
Let  be a positive integer that is larger than all of the following: 
- the number of functions in ,
 - the arities of the functions in ,
 - for each n-ary , the number of polyhedra, as well as the number of faces in all such polyhedra, in the polyhedronization in the definition of f,
 - , for each and a standard linear form of either type in the definition of f.
 
Definition 8. 
Given any system , a connective tree is a finite labeled, rooted, ordered tree  such that
- if t is a terminal node of T, then is a variable or a constant;
 - if t is a non-terminal node and t has n-many children for , then is an n-ary function of .
 
Here ordered means that for every node t there is a linear ordering of the children of t.
Every connective tree T gives rise to a formula f. Let  be all the variables appearing as a label of a terminal node of T. Inductively, we can define a formula for each non-terminal node as follows. If a non-terminal node t has label f, which is an m-ary function of , and suppose inductively the children of f has been associated with formulas , listed in the order of the children, then the formula associated with t is . Let  denote the formula given by the tree T. It is easy to see that every formula f in  admits a connective tree T with .
Now we come back to the consideration of formulas in . As mentioned above each  is associated with a connective tree  with either variables (atomic propositions) and constants (0-ary functions) as labels for terminal nodes and elements of  as labels for non-terminal nodes. We let  denote the size (cardinality) of . Thus  represents the size of the formula p.
By Lemma 6 each n-ary  is also associated with a polyhedronization  such that on each polyhedron in , p is a linear function with rational coefficients. We similarly refer to the linear forms appearing in this description of p as type I and type II, respectively.
Lemma 10. 
Let  and let λ be a standard type II linear form for p. Then .
Proof.  
We prove this by induction on . When  this is obvious. Consider a general p where . Suppose
        
      
        
      
      
      
      
    
        where  is m-ary, and . Let  be a type II linear form for p. Then
        
      
        
      
      
      
      
    
        where  is an m-ary linear form of type II for f and  are linear forms of type II for , respectively. By the inductive hypothesis,  for all . Then by Lemma 9,
        
      
        
      
      
      
      
      □
Lemma 11. 
Let  and let λ be a standard type I linear form for p. Then .
Proof.  
We prove this by induction on . When  this is obvius. Consider a general p where . Suppose
        
      
        
      
      
      
      
    
        where  is m-ary, and . Let  be a type I linear form for p. Then either  is a type I linear form of some , or there is a type I linear form  for f and type II linear forms  for  respectively, such that
        
      
        
      
      
      
      
    
In the former case, by the inductive hypothesis  for some , and hence . In the latter case, by Lemma 10,  for . Then by Lemma 9 we have
        
      
        
      
      
      
      
      □
Lemma 12. 
Let  and r be an extreme point of the polyhedronization for p. Then .
Proof.  
Suppose p is n-ary. Note that , and that r is the unique solution of a system of linear equations  where each  is a type I linear form for p. By Lemmas 7 and 11, we have
        
      
        
      
      
      
      
      □
Theorem 9. 
Let  be any finite subset of . For any rational  and , the set of -satisfiable formulas and the set of β-satisfiable formulas in  are in NP.
Proof.  
Let . We prove the statement for -satisfiability. The statement for -satisfiability is similar. Note that p is -satisfiable iff there is an extreme point r of the polyhedronization  for p such that . By Lemma 12,
        
      
        
      
      
      
      
    
Suppose p is n-ary. Then . Write  and let  be the size of r as an input to a Turing machine. Then . To complete the proof it suffices to show that the statement  can be decided in P-time in terms of .
We prove that it takes P-time to compute . We need the following notation for our discussion. Let  be the connective tree for p. For each node t, let  be the subtree of T below t, and let . Our algorithm to compute  is by induction on  to compute the value , and finally  where  is the root of T. Note that for each terminal node , , and for each non-terminal node  with children ,
        
      
        
      
      
      
      
    
The entire algorithm will take exactly  steps, corresponding to  many nodes of T.
Before counting the computation time at each step, we claim that . We prove the claim by induction on . If t is a terminal node then . Suppose t is a non-terminal node with children . For  let . By the inductive hypothesis  for . Also note that . Since , we have that
        
      
        
      
      
      
      
    
Now assume . We count the time needed to compute  from , which consists of n many binary multiplications of rational numbers and an -ary addition of rational numbers. Each of the binary multiplication takes time no more than
        
      
        
      
      
      
      
    
        for some constant . The -ary addition takes time no more than
        
      
        
      
      
      
      
    
        for some constant . Therefore, the computation of  takes time no more than
        
      
        
      
      
      
      
    
In summary, the computation of  takes time no more than
        
      
        
      
      
      
      
    
        which is a polynomial in .  □
Corollary 1. 
Let  be a finite subset of . Suppose  contains ¬. Then for all rational  and :
- the following sets of formulas in are in NP:
- 1.
 - -satisfiable formulas;
 - 2.
 - α-falsifiable formulas;
 - 3.
 - β-satisfiable formulas;
 - 4.
 - -falsifiable formulas;
 
 - the following sets of formulas in are in co-NP:
- 5.
 - -tautologies;
 - 6.
 - α-fallacies;
 - 7.
 - β-tautologies;
 - 8.
 - -fallacies.
 
 
Proof.  
This follows immediately from Theorem 9 and Lemma 4.  □
5. Complexity of Decidability Problems, Part II
In this section we prove the other direction of Theorem 1, namely that satisfiability for continuous propositional logic is NP-complete.
Lemma 13. 
Let . Then for every  and n-ary function p of , for all ,
      
        
      
      
      
      
    
Proof.  
By induction on p. If  for some variable  the statement is obvious. The case  is straightforward. Consider . Let . Then by the inductive hypothesis, . Without loss of generality we may assume . If  then  and we are done. Suppose . Then consider two cases.
Case 1: . In this case, . Since , we have .
Case 2: . In this case, . Since , we have .  □
Proposition 4. 
Let  be a finite subset of . Suppose  contains . Then for all rational  and , the set of all -satisfiable formulas and the set of all β-satisfiable formulas of  are NP-hard.
Proof.  
Let L be classical propositional logic with only connectives . By our assumption on , for each p a formula of L we can associate a  by replacing all occurrences of ¬ and ∧ by appropriate formulas in . The mapping  is P-time computable.
Let SAT be the set of all satisfiable formulas in L. Then SAT is NP-complete by Cook’s Theorem. We show that for all rational  and  and ,  iff  is -satisfiable iff  is -satisfiable.
Suppose first . Then there is a truth value assignment r such that . Thus  is -satisfiable for all rational  and -satisfiable for all rational .
For the converse, suppose . Assume p is n-ary. Then for every truth value assignment , . Let . For each , let  if  and  if . Let . Then . By Lemma 13,
        
      
        
      
      
      
      
    
Since ,  and . This shows that  is not -satisfiable for all rational  and is not -satisfiable for all rational .  □
Proposition 5. 
Let . Then every formula of  is -satisfiable.
Proof.  
By induction one can verify that p takes value  at  for all .  □
Proposition 6. 
Let  be a finite subset of . Suppose  contains . Then for all rational  and , the set of all -satisfiable formulas and the set of all β-satisfiable formulas of  are NP-hard.
Proof.  
By Proposition 4, for all rational  and , the set of all -satisfiable formulas and the set of all -satisfiable formulas of  are NP-hard. Now consider . We show that the set of -satisfiable formulas is NP-hard. Since , there is a unique  such that . For any  let . Then  is P-time computable, and, letting ,
        
      
        
      
      
      
      
    
Since the set of all -satisfiable formulas is NP-hard, so is the set of all -satisfiable formulas.
Next consider . We show that the set of -satisfiable formulas is NP-hard. Since , there is a unique  such that . Define the map  similarly as above, and let , then
        
      
        
      
      
      
      
    
Since the set of all -satisfiable formulas is NP-hard, so is the set of all -satisfiable formulas.  □
Note that in the above proof the case of -satisfiability is not addressed. In fact, for  a subsystem of that defined in Proposition 3, every  is <1-satisfiable. Hence the set of all <1-satisfiable formulas is not NP-hard
Theorem 10. 
Let  be a finite subset of . Suppose  contains . Then for all rational  and , the set of all -satisfiable formulas and the set of all β-satisfiable formulas are NP-hard.
Proof.  
For all  let . Then  is P-time computable. Moreover, for all rational , we have
        
      
        
      
      
      
      
    
Since , by Proposition 4 the set of all -satisfiable formulas is NP-hard. Hence the set of all -satisfiable formulas is NP-hard. Similarly, for all , the set of all -satisfiable formulas is NP-hard.   □
Corollary 2 
(Mundici []). Let . The set of all -satisfiable formulas in  is NP-complete.
Proof.  
This immediately follows from Theorems 9 and 10.     □
Now Theorem 1 immediately follows from Corollary 1 and Theorem 10. In particular the conclusions hold for the continuous propositional logic with connectives .
6. Conclusions
Through the characterization we gave in Section 1, we conclude that there are many unary functions f such that the system  is full. On the other hand, no single connectives can make a full system.
While Strong Compactness and Craig Interpolation fail for continuous propositional logic, we showed that some versions of Approximated Strong Compactness and Approximated Craig Interpolation hold.
We also defined and studied different notions of satisfiability, falsifiablity, tautology, and fallacy, and established the NP-completeness and co-NP-completeness for these notions.
For future research we plan to extend these results to continuous predicate logic.
Funding
This research was funded by Innovation and Entrepreneurship Training Program for College Students of Tianjin, no. 202210055334.
Acknowledgments
I would like to thank my supervisor Su Gao for introducing me to the subject and for all the guidance he generously provided in the duration of the project.
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
- Yaacov, I.B.; Usvyatsov, A. Continuous first order logic and local stability. Trans. Am. Math. Soc. 2010, 362, 5213–5259. [Google Scholar] [CrossRef]
 - Chang, C.C.; Keisler, H.J. Continuous Model Theory; Princeton University Press: Princeton, NJ, USA, 1966. [Google Scholar]
 - Yaacov, I.B. The linear isometry group of the Gurarij space is universal. Proc. Am. Math. Soc. 2014, 142, 2459–2467. [Google Scholar] [CrossRef]
 - Yaacov, I.B.; Doucha, M.; Nies, A.; Tsankov, T. Metric Scott analysis. Adv. Math. 2017, 318, 46–87. [Google Scholar] [CrossRef]
 - Yaacov, I.B.; Pedersen, A.P. A proof of completeness for continuous first-order logic. J. Symb. Log. 2010, 75, 168–190. [Google Scholar] [CrossRef]
 - Hájek, P. Metamathematics of Fuzzy Logic; Trends in Logic—Studia Logica Library; Kluwer Academic Publishers: Dordrecht, The Netherlands, 1998; Volume 4. [Google Scholar]
 - Yaacov, I.B. On theories of random variables. Isr. J. Math. 2013, 194, 957–1012. [Google Scholar] [CrossRef]
 - Mundici, D. Satisfiability in many-valued sentential logic in NP-complete. Theor. Comput. Sci. 1987, 52, 145–153. [Google Scholar] [CrossRef]
 - Cintula, P.; Fermüller, C.G.; Noguera, C. (Eds.) Handbook of Mathematical Fuzzy Logic; College Publications: London, UK, 2015; Volumes 1–3. [Google Scholar]
 - Novak, V.; Perfilieva, I.; Mockor, J. Mathematical Principles of Fuzzy Logic; Kluwer: Boston, MA, USA, 1999. [Google Scholar]
 
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.  | 
© 2022 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).