Next Article in Journal
Efficient Joint Estimation of Carrier Frequency and Sampling Frequency Offsets for MIMO-OFDM ATSC Systems
Previous Article in Journal
Hybrid Synchronization Problem of a Class of Chaotic Systems by an Universal Control Method
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Set-Blocked Clause and Extended Set-Blocked Clause in First-Order Logic

National-Local Joint Engineering Laboratory of System Credibility Automatic Verification, Southwest Jiaotong University, Chengdu 610031, China
*
Author to whom correspondence should be addressed.
Symmetry 2018, 10(11), 553; https://doi.org/10.3390/sym10110553
Submission received: 11 October 2018 / Revised: 23 October 2018 / Accepted: 24 October 2018 / Published: 28 October 2018

Abstract

:
Due to scale and complexity of first-order formulas, simplifications play a very important role in first-order theorem proving, in which removal of clauses and literals identified as redundant is a significant component. In this paper, four types of clauses with the local redundancy property were proposed, separately called a set-blocked clause (SBC), extended set-blocked clause (E-SBC), equality-set-blocked clause (ESBC) and extended equality-set-blocked clause (E-ESBC). The former two are redundant clauses in first-order formulas without equality while the latter two are redundant clauses in first-order formulas with equality. In addition, to prove the correctness of the four proposals, the redundancy of the four kinds of clauses were proved. It was guaranteed eliminating clauses with the four forms has no effect on the satisfiability or the unsatisfiability of original formulas. In the end, effectiveness and confluence properties of corresponding clause elimination methods were analyzed and compared.

1. Introduction

Simplifications have been diffusely recognized as an indispensable component of both propositional SAT solving and first-order theorem proving. Clause elimination has always been crucial among simplification techniques. In 2010, blocked clause elimination in propositional logic was proposed for reducing the size of formulas and speeding up SAT solvers as a preprocessing technique [1]. After that, there have been published further research work related to blocked clause. Hidden blocked clause and asymmetric blocked clause were created by combining hidden literal addition and asymmetric literal addition with blocked clause at the same year [2,3]. Then, abcdSAT [4] based on blocked clause decomposition [5] won the SAT-Race 2015 competition. In 2016, the extension of blocked clause was widened further. Super-blocked clause and set-blocked clause in propositional logic were produced, in which super-blocked clause had the most general local redundancy property [6]. After that, Blocked clause was successfully lifted to first-order logic in 2017 [7], which as a preprocessing technique of Vampire boosted the efficiency of Vampire [8].
In the paper, we generalize the conception of blocked clause further in first-order logic. Set-blocked clause (SBC) and extended set-blocked clause (E-SBC) in first-order logic without equality are presented, which are generalizations of blocked clause in first-order logic. The evolution is that SBC is blocked by a subset of its literals while blocked clause (BC) is blocked by one of its literals. Similarly, E-SBC can be considered as a further generalization based on SBC. Informally, if a clause C is an E-SBC, for any assignment β over the external ground atoms of the clause C, there exists a subset S β of literals of C, C is a SBC upon S β in F | β . Assignments over the external ground atoms of C may transform resolution environment of C into a different one from the original resolution environment, in addition, the subset S β is able to be various along with the diversity of the assignment β , which makes the requirement for a clause to be an extended set-blocked clause is quite flexible compared with the requirement for an SBC. To guarantee those clauses are capable to be eliminated from formulas without influencing the satisfiability or unsatisfiability, the redundancy of the two categories of clauses are proved. The proof is not given directly under the circumstance of first-order logic but lower it to propositional logic and connect with the variant of Herbrand’s Theorem: if a first-order formula F is satisfiable if and only if it is satisfiable for all the finite ground instances of F. After that, their abilities to simplify formulas are contrasted with blocked clause elimination (BCE) by comparing their effectiveness. Furthermore, set-blocked clause elimination (SBCE) and extended set-blocked clause elimination (E-SBCE) have the confluence properties just the same as blocked clause elimination.
The paper is not only relevant to first-order formulas without equality but also first-order formulas with equality. Because of the peculiarities of equality, there will be some mistakes if we remove clauses according to the definitions of SBC and E-SBC. The solution is to combine SBC and E-SBC with flattening and flat resolution, developing the new two categories of clauses: equality-set-blocked clause (ESBC) and extend equality-set-blocked clause (E-ESBC). The combination can erase the “confusion jamming” caused by the characteristics of equality that some different literals with distinct items have the same truth values under any assignment. Similarly, redundancy, effectiveness and confluence properties of ESBC and E-ESEB are also demonstrated, analyzed and compared.
The contribution of the paper mainly is: (1) Establish the concepts of SBC and E-SBC in formulas without equality and ESBC and E-ESBC in formulas with equality; (2) Prove all the four types of clauses are redundant; (3) Contrast the four corresponding clause elimination methods’ effectiveness; (4) Illuminate the confluence properties of the four clause elimination methods.
The rest of the paper is organized as follows. After some necessary preliminaries are introduced in Section 2, we propose SBC and E-SBC, and prove the redundancy of the two types of clauses in Section 3. In Section 4, we present ESBC and E-ESBC, show how they can deal with formulas with equality and prove the redundancy of the two types of clauses. Finally, we compare and analyze those clause elimination methods’ effectiveness and confluence properties in Section 5.

2. Preliminaries

In the section, we introduce some necessary notations, definitions and theorems for the paper.
Here we only consider first-order formulas in conjunctive normal form (CNF). A formula is a conjunction of clauses. A clause is a disjunction of literals. A literal is an atom or the negation of an atom. An atom is made up of a predicate symbol and items. Items can be the mixture of variables, constants and functions or just single variable, constant or function. Variables are usually represented by x , y , constants are represented by a , b , c and functions are represented by f , g , h [9].
A propositional assignment is a mapping from ground atoms to the truth values 1 (true) and 0 (false). Accordingly, a set V of ground clause is propositionally satisfiable if there exists a propositional assignment which can assign every ground clause in V to the truth value 1. A clause is valid when it is true under any assignment, tautology is one case of valid clause. Let F be a formula and α be an assignment, F | α is defined as { C | C F and α does not satisfy C } . Two formulas F and F are satisfiability equivalent if they are either both satisfiable or unsatisfiable. A clause C is redundant w.r.t. F if F and F \ { C } are satisfiability equivalent. A substitution is a mapping from variables to terms. A ground substitution is a mapping of which the range consists only of ground terms. For a literal, clause or formula F, a t o m { F } denotes the atoms in F and G a t o m { F } denotes the ground atoms in F.
A clause is a blocked clause upon L C in a first-order formula F without equality, if all its L-resolvents are tautologies. L-resolvent is defined below [7]:
Definition 1.
Given two clauses C = L C 1 and D = N 1 N m D 1 such that there exists a substitution σ which can unify L , ¬ N 1 ¬ N m , the clause ( C 1 D 1 ) σ is called as the L-resolvent of C and D.
For a clause C in a formula F, the resolution environment, e n v F ( C ) , of C in first-order formula F without equality is the set of all the clauses in F \ { C } which can be resolved with C: e n v F ( C ) = { C F \ { C } | ¬ L in C such that L C and L and L can be unified}
And for those atoms in e n v F ( C ) but not appearing in C and not able to be unified with a t o m { C } , they are called as the external atoms of C. The definition is: e x t F ( C ) = { A A a t o m { e n v F ( C ) } , A a t o m { C } and there is no unification between A and a t o m { C } } . The set of external ground atoms is defined as e x t G F ( C ) .
Since first-order CNF formulas with equality will be discussed in this paper, equality axioms ε L is introduced here [10]: (1) x = x ; (2) x y y = x (3) x y y z x = z (4) if f is a n-ary function symbol, x 1 y 1 x n y n f ( x 1 , , x n ) = f ( y 1 , , y n ) ; (5) if P is a n-ary predicate symbol, x 1 y 1 x n y n P ( x 1 , , x n ) ¬ P ( y 1 , , y n )
Flattening and flat resolution [11] are the constituent parts of E-SBC and E-ESBC. The definitions are showed below [7].
Definition 2.
After flattening the literal L ( s 1 , s 2 , , s n ) of the clause C = L ( s 1 , s 2 , , s n ) C 1 , the new flattened literal is L = L ( x 1 , x 2 , , x n ) and the new flattened clause is C = 1 i n x i s i L ( x 1 , x 2 , , x n ) C 1 with x i ( i = 1 , 2 , , n ) being variables not occurring in C
Definition 3.
Suppose C = L C 1 and D = N 1 N 2 N m D 1 and L , ¬ N 1 , , ¬ N m have the same predicate symbol but the opposite polarity. After flattening L in C and N 1 , , N m in D, the new flattened clauses C = L C 1 and D = N 1 N m D 1 are obtained. In addition, the resolvent ( C \ { L } ) σ ( D \ { N 1 , , N m } ) σ of C and D is called as a flat L-resolvent of C and D.
A clause C is an equality-blocked clause (EBC) upon L C in a formula F with equality, if all its flat L-resolvents are valid.
The resolution environment of a clause C in a formula F with equality is different from the definition in formulas without equality. The existence of equality makes the clauses own literals, which can be resolved with some literal in C, cannot consist of the whole resolution environment of C, but extend to clauses contain literals have the same predicate but the contrary polarity with some literal in C. e n v F E = { C F \ { C } | ¬ L C such that L C and L and L have the same predicate symbol}.
Meanwhile, the external atoms in e n v F E ( C ) , of C in first-order formulas with equality are also distinguished from the definition of external atom in first-order formulas without equality: e x t F E ( C ) = { A | A a t o m { e n v F E ( C ) } , A a t o m { C } and A has no same predicate symbol as a t o m { C } } , in which the set of ground external atoms is defined as e x t G F E ( C ) .
In a formula F with equality, flipping the truth value of a ground literal L = P ( s 1 , , s n ) under a propositional assignment β , it should flip the truth value of all the ground literals with the form L = P ( t 1 , , t n ) such that β ( s i = t i ) = 1 for all 1 i n rather than simply flip the truth value of L [7].
Definition 4.
Given a propositional assignment β and a ground literal L = P ( t 1 , , t n ) of which the predicate symbol is not equality symbol. The definition of a propositional assignment β is obtained from β by equivalence flipping the truth value of L = P ( t 1 , , t n ) is below:
β ( L ) = 1 β ( L ) i f L = P ( s 1 , s 2 , , s n ) a n d β ( t i s i ) = 1 f o r a l l 1 i n β ( L ) o t h e r w i s e
The following are two variants of Herbrand’s Theorm we adopt in the rest part of the paper. One is suitable for first-order CNF formulas without equality, while the other is suitable for first-order CNF formulas with equality [10].
Theorem 1.
For a first-order formula F without equality predicate, it is satisfiable if and only if every finite set of ground instances of clauses in F is propositionally satisfiable.
Theorem 2.
For a first-order formula F with equality predicate, it is satisfiable if and only if every finite set of ground instances of clauses in F ε L is propositionally satisfiable.

3. Set-Blocked Clause and Extended Set-Blocked Clause in First-Order Logic without Equality

In this section, we demonstrate set-blocked clause and extended set-blocked clause in formulas without equality. First, we give the definition of L i S -resolvent as follows, which is different from the definition of L-resolvent of a clause C in the paper [7]. The former includes substituted literals from negations of some literals in the clause C while the latter has no such characteristics in it.
Definition 5.
Given two clauses, C = L 1 L 2 L n C with the subset S = { L 1 , L 2 , , L n } C such that L i ( 1 i n ) and L j ( 1 j n ) cannot be resolved with each other, and D = N 1 N 2 N m D . If one of literals L i S ( 1 i n ) , ¬ N 1 , , ¬ N m can be unified by an mgu σ, the clause C σ D σ ( S ¯ \ { ¬ L i } ) σ is called L i S -resolvent of C and D.
Example 1.
Let the clause C = Q ( b ) P ( b ) R ( c ) with S = { Q ( b ) , P ( b ) , R ( c ) } and the clause D = ¬ P ( b ) ¬ P ( x ) Q ( x ) . P ( b ) , P ( b ) and P ( x ) can be unified by the substitution σ = { x b } . We can know that C σ = Φ , D σ = Q ( b ) and ( S ¯ \ { ¬ L i } ) σ = ¬ Q ( b ) ¬ R ( c ) . Therefore, Q ( b ) ¬ Q ( b ) ¬ R ( c ) is the P ( b ) { Q ( b ) , P ( b ) , R ( c ) } -resolvent of C and D.
Next is the definition of set-blocked clause, a generalization from blocked clause by extending one blocking literal of clause C to multiple blocking literals of clause C.
Definition 6.
A clause C is a set-blocked clause (SBC) in the formula F if there exists a set S = { L 1 , L 2 , , L n } C such that L i ( 1 i n ) and L j ( 1 j n ) cannot be resolved with each other and all its L i S -resolvent ( 1 i n )
Example 2.
Let the clause C = Q ( a ) P ( b ) R ( c ) , S = { Q ( a ) , P ( b ) } and the formula F = { Q ( a ) P ( b ) R ( c ) , ¬ P ( x ) Q ( a ) , ¬ Q ( a ) P ( b ) , P ( x ) ¬ R ( x ) } . We can see that there is only one P ( b ) { Q ( a ) , P ( b ) } -resolvent and one Q ( a ) { Q ( a ) , P ( b ) } -resolvent of C and D, separately obtained by resolving C with ¬ P ( x ) Q ( a ) and resolving C with ¬ Q ( a ) P ( b ) . P ( b ) { Q ( a ) , P ( b ) } -resolvent is R ( c ) Q ( a ) ¬ Q ( a ) which is a tautology and Q ( a ) { Q ( a ) , P ( b ) } -resolvent is R ( c ) P ( b ) ¬ P ( b ) which is also a tautology. Then, all the L i S -resolvents ( 1 i n ) are tautologies. Therefore, C is set-blocked upon S w.r.t. F.
In Example 2, the clause C is an SBC; however, the clause C is not blocked no matter upon Q ( a ) , P ( b ) or R ( c ) .
To justify it has no impact on the satisfiability or unsatisfiability of formulas by removing SBCs in formulas, the redundancy property of SBC is proved subsequently.
Lemma 1.
Given a clause C is set-blocked upon S = { L 1 , L 2 , , L n } C in a formula F. Let α be an assignment that propositionally satisfies all the ground instances of clauses in F \ { C } but falsifies a ground instance C λ of C. Then, the assignment α , obtained from α by flipping all the truth values of ground literals L 1 λ , L 2 λ , , L n λ in S λ , still satisfies all the ground instances in F \ { C } .
Proof. 
Let D τ be a ground instance of D in F \ { C } . D τ may be falsified according to the assignment α by flipping all the truth values of ground literals L 1 λ , L 2 λ , , L n λ in S λ , only if D τ contains a set of literals { ¬ L i 1 λ , ¬ L i 2 λ , , ¬ L i m λ } { ¬ L 1 λ , ¬ L 2 λ , , ¬ L n λ } . Without loss of generality, assume that D τ contains the literal ¬ L 1 λ (if D τ contains more than one literal from { ¬ L 1 λ , ¬ L 2 λ , , ¬ L n λ } , the proof process is the same) and let N 1 , , N k be all the literals in D such that N i τ = ¬ L 1 λ for 1 i k . Then, the substitution λ τ (note that C and D are variable disjoint by assumption) is a unifier of ¬ L 1 , N 1 , , N k . Hence, R L 1 S = ( C \ S ) σ ( D \ { N 1 , , N k } ) σ ( S ¯ \ { ¬ L 1 } ) σ , with σ an mgu of ¬ L 1 , N 1 , , N k , is an L 1 S -resolvent of C, which is a tautology due to the fact that the clause C is a set-blocked clause.
As the substitution σ is the most general unifier, there exists a substitution θ such that σ θ = λ τ . We can obtain the following equation:
( C \ S ) σ θ ( D \ { N 1 , , N k } ) σ θ ( S ¯ \ { ¬ L 1 } ) σ θ = ( C \ S ) λ τ ( D \ { N 1 , , N k } ) λ τ ( S ¯ \ { ¬ L 1 } ) λ τ = ( C \ S ) λ ( D \ { N 1 , , N k } ) τ ( S ¯ \ { ¬ L 1 } ) λ
which is a ground instance of R L 1 S , so it is a tautology of which the truth value is 1. Because α falsifies C λ and α is acquired by flipping all the truth values of L 1 λ , L 2 λ , , L n λ to be true while the truth values of all the other ground literals are maintained. Therefore, α falsifies ( C \ S ) λ and ( S ¯ \ { ¬ L 1 } ) λ . Meanwhile, since the truth value of ( C \ S ) λ ( D \ { N 1 , , N k } ) τ ( S ¯ \ { ¬ L 1 } ) λ is 1, then the truth value of ( D \ { N 1 , , N k } ) τ must be 1. Therefore, α satisfies ( D \ { N 1 , , N k } ) , and of course α satisfies D τ . Hence, flipping the truth values of ground literals L 1 λ , L 2 λ , , L n λ will not falsify any ground instances in F \ { C } , so α satisfies all the ground instances in F \ { C } .
Lemma 1 demonstrates that flipping the truth values of ground literals in S has no influence on the truth values of ground instances of clauses in F \ { C } . However, it may falsify other ground instances of C. Here is an example. □
Example 3.
Assume C = ¬ P ( x ) P ( f ( y ) ) ¬ Q ( u ) Q ( f ( v ) ) is a SBC upon S = { P ( f ( y ) ) , Q ( f ( v ) ) } in a formula F. Consider two ground instances of C, C 1 = ¬ P ( a ) P ( f ( a ) ) ¬ Q ( a ) Q ( f ( a ) ) and C 2 = ¬ P ( f ( a ) ) P ( f ( b ) ) ¬ Q ( f ( a ) ) Q ( f ( b ) ) . The assignment P ( a ) ¬ P ( f ( a ) ) Q ( a ) ¬ Q ( f ( a ) ) ¬ P ( f ( b ) ) ¬ Q ( f ( b ) ) falsifies C 1 , but we can satisfy C 1 by flipping the truth values of ground instances P ( f ( a ) ) and Q ( f ( a ) ) in S 1 C 1 and we can obtain the new assignment P ( a ) P ( f ( a ) ) Q ( a ) Q ( f ( a ) ) ¬ P ( f ( b ) ) ¬ Q ( f ( b ) ) , apparently the new assignment satisfies C 1 ; however, it falsifies the other ground instance C 2 of C.
Even though flipping the truth values of ground literals of the set S 1 , one ground instance of S in a ground instance C 1 of C, may falsify other ground instances of C, it has no severe consequence. Assume that flipping the truth values of ground literals in S 1 falsifies another ground instances C 2 of C, then there are no identical ground literals in S 2 C 2 , one ground instance of S in the ground instance C 2 . Now that S 2 contains totally different ground literals from S 1 , and ground literals in S 2 are not capable to be resolved with ground literals in S 1 according to the definition of SBC, then it will not falsify C 1 by flipping the truth value of ground literals in S 2 . We can conclude that both C 1 and C 2 can keep their truth values as true, by flipping the truth values of ground literals as true in S 1 and S 2 .
Theorem 3.
If a clause C is set-blocked upon S = { L 1 , L 2 , , L n } C in a formula F, the clause C is redundant w.r.t. F.
Proof. 
Given a clause C is set-blocked upon S = { L 1 , L 2 , , L n } C in a formula F. Assume that F \ { C } is satisfiable. Let F and F C be finite sets of ground instances of clauses in F \ { C } and { C } . Since F \ { C } is satisfiable, there exists a propositional assignment α satisfies F . Assume that it falsifies some ground instances { C 1 , C 2 , , C k } of C which are contained in F C . Flipping all the truth value of ground literals of ground instance S i of S in C i ( 1 i k ) , has no influence on ground instances in F according to Lemma 1, but it may falsify some other ground instances of F C . Nevertheless, since F C is finite, we can satisfy those ground instances of F C by flipping orderly the truth value of ground literals of the ground instances of S in those falsified ground instances of C. Eventually, all the ground instances of F C are satisfied. According to Theorem 1, F is satisfiable, which means F and F \ { C } are satisfiability equivalent. Therefore, the clause C is redundant w.r.t. F. □
Apparently the redundancy property of set-blocked clause is local. A clause can be assessed whether it is an SBC, by only considering its resolution environment rather than the whole formula. If a clause C is an SBC in a formula F and the clause C has the same resolution environment in another formula F , then the clause C is also an SBC in F .
Next, we introduce extended set-blocked clause (E-SBC), a generalization of SBC. With respect to E-SBC, another factor, external ground atoms, is added into consideration. external ground atoms of a clause C are ground atoms in the resolution environment of C but not occurring in C and not able to be unified with atoms in a t o m { C } , which means variations of truth values of external ground axioms and truth values of C are not relevant. In other words, if a clause C is true because of the truth values of several external ground atoms of C in C , then the clause C will not be falsified under any change of the truth values of literals in C.
Definition 7.
A clause C is an extended set-blocked clause (E-SBC) in a formula F if, for every assignment β over the external ground atoms e x t G F ( C ) , there exists a subset S β = { L 1 , L 2 , , L n β } C such that C is set-blocked upon S β = { L 1 , L 2 , , L n β } C in F | β .
Example 4.
Suppose C = P ( x ) Q ( x ) and the resolution environment of C: e n v F ( C ) = { ¬ P ( a ) Q ( a ) T ( z ) R ( a ) , ¬ Q ( b ) ¬ R ( a ) , ¬ Q ( f ( y ) ) P ( f ( y ) ) } . Apparently, the clause C is not a set-blocked clause, because not all the L i S -resovlents ( 1 i n ) are tautologies no matter which subset of C has been chosen to be S. The external ground atoms of C is e x t G F ( C ) = { R ( a ) } . If an assignment α satisfies α ( R ( a ) ) = 1 and α ( ¬ R ( a ) ) = 0 , then α ( ¬ P ( a ) Q ( a ) T ( z ) R ( a ) ) = 1 and ¬ P ( a ) Q ( a ) T ( z ) R ( a ) will not be included in F | α according to the definition of F | α . Therefore, we only consider ¬ Q ( b ) ¬ R ( a ) and ¬ Q ( f ( y ) ) P ( f ( y ) ) as the resolution environment of C in F | α . If we choose S as S = { P ( x ) } , C cannot be resolved with either ¬ Q ( b ) ¬ R ( a ) or ¬ Q ( f ( y ) ) P ( f ( y ) ) upon S, clause C is trivially set-blocked upon S = { P ( x ) } in F | α . If another assignment λ satisfies λ ( R ( a ) ) = 0 and λ ( ¬ R ( a ) ) = 1 , then λ ( ¬ Q ( b ) ¬ R ( a ) ) = 1 and it is not covered in F | λ . We only need to consider ¬ P ( a ) Q ( a ) T ( z ) R ( a ) and ¬ Q ( f ( y ) ) P ( f ( y ) ) as the resolution environment of C in F | λ . If we choose S as S = { P ( x ) , Q ( x ) } , the P ( x ) { P ( x ) , Q ( x ) } -resolvents Q ( a ) T ( x ) R ( a ) ¬ Q ( a ) and Q ( x ) { P ( x ) , Q ( x ) } -resolvent ¬ P ( f ( y ) ) P ( f ( y ) ) both are tautologies by resolving C with ¬ P ( a ) Q ( a ) T ( z ) R ( a ) and ¬ Q ( f ( y ) ) P ( f ( y ) ) . Therefore, clause C is set-blocked upon S = { P ( x ) , Q ( x ) } in F | λ . Because α and λ cover all the possible assignments over R ( a ) , then we can conclude that C is set-blocked in F | β for any assignment β over the external ground atoms e x t G F ( C ) . Therefore, the clause C is an E-SBC.
Evaluating whether a clause C is an E-SBC when there are no external ground atoms, it only needs to evaluate if the clause C is an SBC. No external ground atoms means no way to influence the resolution environment of C, therefore, F | β is equal to F all the time for any assignment β .
Lemma 2.
Given a clause C is an E-SBC in a formula F. Let α be an assignment that propositionally satisfies all the ground instances of clauses in F \ { C } but falsifies a ground instance C λ of C. Then, there exist a subset S λ = { L 1 λ , L 2 λ , , L n λ } of C λ such that the assignment α , obtained from α by flipping all the truth values of ground literals L 1 λ , L 2 λ , , L n λ in S λ , still satisfies all the ground instances in F \ { C } .
Proof. 
Since flipping the truth values of ground literals of C can only affect the truth values of ground clauses in the resolution environment of C, we only consider the ground instances in the resolution environment of C whether they will be falsified by flipping the truth values of ground literals in C. It is analyzed in two cases:
Case 1: In the resolution environment e n v F ( C ) of C, there are no external ground atoms. Since C is an E-SBC and there is no ground atoms in the resolution environment of C, it means that C is set-blocked in the formula F. Now that C is set-blocked in the formula F, there exists a subset S λ = { L 1 λ , L 2 λ , , L n λ } of C λ such that the assignment α , obtained from α by flipping all the truth values of ground literals L 1 λ , L 2 λ , , L n λ in S λ , still satisfies all the ground instances in F \ { C } according to Lemma 1.
Case 2: In the resolution environment e n v F ( C ) of C, there exist external ground atoms { A 1 , A 2 , , A m } . Since α is an assignment which covers all the ground instances of clauses in F \ { C } , it also assigns the truth values of those external ground atoms { A 1 , A 2 , , A m } to be true or false. Assume that the assignment α to the external ground atoms { A 1 , A 2 , , A m } make the truth values of clauses { C 1 , C 2 , , C k } in the resolution environment of C are true. Since clause C is extended set-blocked in a formula F, there exist a subset S = { L 1 , L 2 , , L n } of C, C is set-blocked upon S in F | α , which means C is set-blocked upon S in the formula F \ { C 1 , C 2 , , C k } . Now that C is set-blocked upon S in the formula F \ { C 1 , C 2 , , C k } , flipping all the truth values of ground literals L 1 λ , L 2 λ , , L n λ in S λ will not falsify any ground instances of F \ { C , C 1 , C 2 , , C k } . Furthermore, α already satisfies all the ground instances of { C 1 , C 2 , , C k } by its assignment to those external ground atoms { A 1 , A 2 , , A m } according to the assumption, flipping all the truth values of ground literals L 1 λ , L 2 λ , , L n λ in S λ will not falsify any ground instances of { C 1 , C 2 , , C k } . Hence, flipping all the truth values of ground literals L 1 λ , L 2 λ , , L n λ in S λ will not falsify any ground instances of F \ { C } . Therefore, the assignment α , obtained from α by flipping all the truth values of ground literals L 1 λ , L 2 λ , , L n λ in S λ , still satisfies all the ground instances in F \ { C } . □
Theorem 4.
If a clause C is an E-SBC in a formula F, it is redundant w.r.t. F.
Proof. 
Given finite ground instances F and F C are sets of finite ground instances of F \ { C } and { C } . Assume that F \ { C } is satisfiable, then there exists a propositional assignment α satisfies all the ground instances of F , but it may falsify some ground instances in F C . According to Lemma 2, there exists a subset S = { L 1 , L 2 , , L n } of C, it will not affect the truth values of ground instances in F by flipping the truth values of ground literals of S in those falsified ground instances of C. Even though flipping those truth values of ground literals in those falsified ground instances of C may falsify other ground instances of C in F C ; however, we can flip the truth values of ground literals in ground instances of S in those falsified ground instances successively, until all the truth values of falsified ground instances become true. According to Theorem 1, F is satisfiable. Therefore, the clause C is redundant w.r.t. F. □

4. Equality-Set-Blocked Clause and Extended Equality-Blocked Clause in First-Order Logic Formulas with Equality

In the last section, SBC and E-SBC in formulas without equality are discussed. In fact, the conceptions of SBC and E-SBC can only be adopted in first-order formulas without equality, if they are utilized in first-order formulas with equality, some clauses will be removed mistakenly. A counter-example is given as follows:
Example 5.
Let C = R ( a ) P ( a ) and the formula F = { R ( a ) P ( a ) , ¬ R ( b ) , ¬ P ( b ) , a = b } . According to the definition of SBC in Section 3, clause C is trivially set-blocked upon { R ( a ) , P ( a ) } , because there is no clauses in F \ { C } can be directly resolved with clause C upon { R ( a ) , P ( a ) } , which means clause C can be removed from formula F without influencing the satisfiability or unsatisfiability. However, F is unsatisfiable while F \ { C } is satisfiable.
The reason why this situation happens is because the definitions of SBC and E-SBC are not involved with equality. For example, the truth values of R(a) and R(b) are always the same even though their forms are diverse in Example 5, nevertheless, this situation is not considered in the definitions of SBC and E-SBC. But if we combine the definitions of SBC and E-SBC in Section 3 with flattening and flat resolution, this problem can be solved.
The definition of flat L i S -resolvent of clause C in first-order logic with equality is given below. It deletes a subset of substituted literals from literals in clause C but adds the subset of substituted literals from the negations of literals in clause C compared with flat L-resolvent of clause C.
Definition 8.
Given two clauses, C = L 1 L 2 L n C with S = { L 1 , L 2 , , L n } such that L k ( 1 k n ) does not contain the predicate symbol = and L i ( 1 i n ) and L j ( 1 j n ) do not have the same predicate symbol but the opposite polarity, and D = N 1 N 2 N m D . If a literal L i S ( 1 i n ) and ¬ N 1 , , ¬ N m have the same predicate symbol and polarity, by flattening L i , N 1 , , N m , new literals L i f , N 1 f , , N m f can be obtained from L i , N 1 , , N m and new flattened clauses C f and D f can be obtained from C and D. If the mgu of L i f , N 1 f , , N m f is σ, the clause ( C f \ L i f ) σ ( D f \ { N 1 f , , N m f } ) σ ( S ¯ \ { ¬ L i } ) σ is called the flat L i S -resolvent of C and D.
Example 6.
Let C = P ( b ) Q ( b ) ( S = { P ( b ) , Q ( b ) } ) and D = ¬ Q ( c ) P ( b ) . After flattening Q ( b ) and ¬ Q ( c ) , two new flattened clauses C f = P ( b ) Q ( x ) x b and D f = y c ¬ Q ( y ) P ( b ) can be obtained from C and D. Then, the flat Q ( b ) { P ( b ) , Q ( b ) } -resolvent of C and D is x b x c P ( b ) ¬ P ( b ) via substitution δ = { y x } .
Compared with equality-blocked clause, equality-set-blocked clause is obtained by generalizing one blocking literal in equality-blocked clause to multiple blocking literals.
Definition 9.
For a clause C in a formula F, if there exists a subset S = { L 1 , L 2 , , L n } C such that L k ( 1 k n ) does not contain the predicate = and L i ( 1 i n ) and L j ( 1 j n ) do not have the same predicate symbol but the opposite polarity. If all the flat L i S -resolvents ( 1 i n ) of C are valid, then the clause C is called as an equality-set-blocked clause (ESBC) upon S in the formula F.
Example 7.
Let C = P ( b ) Q ( b ) , S = { P ( b ) , Q ( b ) } , and the formula F = { P ( b ) Q ( b ) , ¬ Q ( c ) P ( b ) , ¬ P ( z ) Q ( z ) } . About Q ( b ) , there is only the clause ¬ Q ( c ) P ( b ) in F \ { C } contains the literal ¬ Q ( c ) has the same predicate symbol and the opposite polarity with the literal Q ( b ) in S. Hence, the only flat Q ( b ) { P ( b ) , Q ( b ) } -resolvent of C is x b x c P ( b ) ¬ P ( b ) which is valid. In addition, with respect to P ( b ) , there is only the clause ¬ P ( z ) Q ( z ) in F \ { C } contains the literal ¬ P ( z ) has the same predicate symbol and the opposite polarity with the literal P ( b ) in the set S, then the only one flat P ( b ) { P ( b ) , Q ( b ) } -resolvent is y b Q ( y ) ¬ Q ( b ) and it is valid. According to Definition 9, the clause C is ESBC upon S = { P ( b ) , Q ( b ) } in the formula F.
ESBC is also redundant in first-order formulas with equality. Before proving its redundancy, a Lemma is introduced first.
Lemma 3.
Suppose a clause C is an ESBC upon S = { L 1 , , L m } C in a formula F. β is a propositional assignment satisfying all the ground instances of equality axioms and all the ground instances of clauses in F \ { C } , but falsifies a ground instance C λ of C. β is a propositional assignment obtained from β by equivalence flipping all the truth values of ground literals L 1 λ , , L m λ in the set S λ , then β satisfies all the ground instances of clauses in F \ { C } and all the ground instances of equality axioms.
Proof. 
Let the clause C = L 1 ( t 11 , , t 1 k 1 ) L m ( t m 1 , , t m k m ) C and S = { L 1 ( t 11 , , t 1 k 1 ) , , L m ( t m 1 , , t m k m ) } . Assume that equivalence flipping the truth values of ground literals L 1 ( t 11 , , t 1 k 1 ) λ , , L m ( t m 1 , , t m k m ) λ in the set S λ falsifies the truth value of a ground instance D γ in F \ { C } , the form of the clause must be D with at least one literal ¬ L i ( s i 1 , , s i k i ) ( ( 1 i m ) in it and it has β ( t i j λ = s i j γ ) = 1 for all 1 j k i . Without loss of generality, we assume that the clause D with the literal ¬ L 1 .
Let the clause D be a clause with literals ¬ L 1 ( s 11 , , s 1 k 1 ) , , ¬ L 1 ( p 11 , , p 1 k 1 ) such that β ( t 1 j λ = s 1 j γ ) = 1 , , β ( t 1 j λ = p 1 j γ ) = 1 for 1 j k 1 . To simplify the presentation and without loss of generality, we assume that ¬ L 1 ( s 11 , , s 1 k 1 ) and ¬ L 1 ( p 11 , , p 1 k 1 ) are all such literals in the clause D, therefore D = ¬ L 1 ( s 11 , , s 1 k 1 ) ¬ L 1 ( p 11 , , p 1 k 1 ) D .
Since C is equality-set-blocked upon S, then all the flat L 1 ( t 11 , , t 1 k 1 ) S -resolvents are valid. Therefore, the flat L 1 ( t 11 , , t 1 k 1 ) S -resolvent between C and D:
R = ( C D ( S ¯ \ ¬ L 1 ( t 11 , , t 1 k 1 ) ) ( 1 j k 1 x 1 j t 1 j y 1 j s 1 j z 1 j p 1 j ) σ
is valid, where σ is an mgu of the literals L 1 ( x 11 , , x 1 k 1 ) , L 1 ( y 11 , , y 1 k 1 ) and L 1 ( z 11 , , z 1 k 1 ) , obtained by flattening L 1 ( t 11 , , t 1 k 1 ) , L 1 ( s 11 , , s 1 k 1 ) and L 1 ( p 11 , , p 1 k 1 ) . Without loss of generality, we assume that σ = { y 1 j x 1 j , z 1 j x 1 j | 1 j k 1 } , then the flat L 1 ( t 11 , , t 1 k 1 ) S -resolvent can be written as:
R = C D ( S ¯ \ ¬ L 1 ( t 11 , , t 1 k 1 ) ) ( 1 j k 1 x 1 j t 1 j x 1 j s 1 j x 1 j p 1 j )
Because R is valid, then the assignment β must satisfy all the ground instances of R. A ground instance R δ of R can be created by implementing the following substitution:
δ ( x ) = t 1 j λ if x x 11 , , x 1 k 1 x λ if x C x γ if x D x λ if x ( S ¯ \ L ¯ 1 ( t 11 , , t 1 k 1 ) )
Then R δ can be written as follows:
R δ = C λ D γ ( S ¯ \ ¬ L 1 ( t 11 , , t 1 k 1 ) ) λ ( 1 j k 1 t 1 j λ t 1 j λ t 1 j λ s 1 j γ t 1 j λ p 1 j γ )
which must be satisfied by β because it is valid. In R δ , all the t 1 j λ t 1 j λ , all the t 1 j λ s 1 j γ , all the t 1 j λ p 1 j γ (according to the assumption) and C λ are falsified by β , we can conclude that all the t 1 j λ t 1 j λ , all the t 1 j λ s 1 j γ , all the t 1 j λ p 1 j γ and C λ are also falsified by β . In addition, because β satisfies ( S ¯ \ ¬ L 1 ( t 11 , , t 1 k 1 ) ) λ and β is obtained by equivalence flipping the truth values of ( S ¯ \ ¬ L 1 ( t 11 , , t 1 k 1 ) ) λ from β , β falsifies ( S ¯ \ ¬ L 1 ( t 11 , , t 1 k 1 ) ) λ . As a result, D γ must contain at least one literal which is satisfied by β due to β ( R δ ) = 1 . Hence, D γ is satisfied by β . Therefore, β satisfies not only C λ but also all the ground instances of clauses in F \ { C } and all the ground instances of equality axioms. □
Theorem 5.
If a clause C is an ESBC upon S = { L 1 , , L m } C in a formula F, it is redundant w.r.t. F.
Proof. 
Given there are some finite ground instances F C , F and F E of C F \ { C } ε L and assume β is a propositional assignment which satisfies F and F E . Suppose the assignment β falsifies some ground instances in F C , those ground instances can be satisfied by equivalence flipping the truth values of ground literals of ground instances of S in those ground instances without influencing the satisfiability of F and F E according to Lemma 3. Even though it may falsify other ground instances in F C by equivalence flipping, those ground instances can be satisfied by equivalence flipping the truth values of ground literals of ground instances of S in those falsified ground instances of C in F C without affecting the satisfiability of the previous ground instances. Because those ground instances are finite in F C , all the ground instances in F C can be satisfied by orderly equivalence flipping the truth values of ground literals of ground instances of S in those ground instances which have been falsified. Therefore, for any satisfying propositional assignment β of ground instances F and F E of F \ { C } ε L , there exists a satisfying propositional assignment β , obtained by orderly equivalence flipping the truth values of ground literals of ground instances of S in those falsified ground instances of C from β . Hence, F ε L is satisfiable according to Theorem 2. Therefore, F ε L and F \ { C } ε L are satisfiable equivalent, then the clause C is redundant w.r.t. F. □
Similarly, there is a generalization of ESBC in first-order logic with equality, by adding a new factor, the assignments over the external ground atoms.
Definition 10.
A clause C is an extended equality-set-blocked clause (E-ESBC) in a formula F if, for every assignment β over the external ground atoms e x t G F E ( C ) , there exists a subset S β = { L 1 , L 2 , , L n β } C , C is equality-set-blocked upon S β = { L 1 , L 2 , , L n β } C in F | β .
Example 8.
Suppose C = P ( a ) Q ( a ) and the resolution environment of C: e n v F E ( C ) = { ¬ P ( x ) x = a R ( a ) , Q ( a ) ¬ P ( y ) , ¬ P ( a ) ¬ R ( a ) } . We can see that external ground atoms e x t G F E ( C ) = { R ( a ) } . If an assignment α satisfies α ( R ( a ) ) = 1 and α ( ¬ R ( a ) ) = 0 , then α ( ¬ P ( x ) x a R ( a ) ) = 1 . Therefore, Q ( a ) ¬ P ( y ) and ¬ P ( a ) ¬ R ( a ) are the clauses in the resolution environment in C in F | α . Since if the subset { Q ( a ) } is chosen as the S α , Q ( a ) ¬ P ( y ) and ¬ P ( a ) ¬ R ( a ) cannot be resolved with the clause C, hence the clause C is trivially equality-set-blocked upon S α = { Q ( a ) } in F | α . If the assignment λ satisfies λ ( R ( a ) ) = 0 and λ ( ¬ R ( a ) ) = 1 , then λ ( ¬ P ( a ) ¬ R ( a ) ) = 1 . ¬ P ( x ) x = a R ( a ) and Q ( a ) ¬ P ( y ) consist of the resolution environment of C in F | λ . When S λ = { P ( a ) , Q ( a ) } , two flat P ( a ) S λ -resolvents x 1 a x 1 x x = a R ( a ) ¬ Q ( a ) and y 1 a y 1 y Q ( a ) ¬ R ( a ) ¬ Q ( a ) both are valid. For Q ( a ) , there is no Q ( a ) S λ -resolvents. As a result, the clause C is equality-set-blocked upon S λ = { P ( a ) , Q ( a ) } in F | λ . Hence, the clause C is an E-ESBC.
Lemma 4.
Suppose a clause C is an E-ESBC in a formula F. β is a propositional assignment satisfying all the ground instances of equality axioms and all the ground instances of clauses in F \ { C } , but falsifies a ground instance C λ of C. There exist a subset S = { L 1 , , L n } such that β , obtained from β by equivalence flipping all the truth values of ground literals L 1 λ , , L n λ in the set S λ , satisfies all the ground instances of clauses in F \ { C } and all the ground instances of equality axioms.
Proof. 
We only consider whether the ground instances of clauses will be falsified in the resolution environment of C. It is analyzed in two cases.
Case 1: In the resolution environment e n v F E ( C ) of C, there is no external ground atoms. Since there are no external ground atoms in the resolution environment of C and C is an extended equality-set-blocked clause in the formula F, it means that C is equality-set-blocked in the formula F. In addition, because C is equality-set-blocked in the formula F, there must exist a subset S λ = { L 1 λ , L 2 λ , , L n λ } of C λ and the assignment β , obtained from β by flipping all the truth values of ground literals L 1 λ , L 2 λ , , L n λ in S λ , still satisfies all the ground instances in F \ { C } and all the ground instances of equality axioms according to Lemma 3.
Case 2: In the resolution environment e n v F E ( C ) of C, there exist external ground atoms { A 1 , A 2 , , A m } . Since β is an assignment which covers all the ground instances of clauses in F \ { C } , it also assigns the truth values of those external ground atoms { A 1 , A 2 , , A m } . Assume that the assignment to the external ground atoms make the truth values of clauses { C 1 , C 2 , , C k } in the resolution environment of C are true. Therefore, there exist a subset S = { L 1 , L 2 , , L n } of C, C is equality-set-blocked upon S in the formula F \ { C 1 , C 2 , , C k } . Now that C is equality-set-blocked upon S in the formula F \ { C 1 , C 2 , , C k } , flipping all the truth values of ground literals L 1 λ , L 2 λ , , L n λ in S λ will not falsify any ground instances of F \ { C , C 1 , C 2 , , C k } . Furthermore, α satisfies all the ground instances of { C 1 , C 2 , , C k } by its assignment to those external ground atoms { A 1 , A 2 , , A m } , as a result, equivalence flipping all the truth values of ground literals L 1 λ , L 2 λ , , L n λ in S λ will not falsify any ground instances of { C 1 , C 2 , , C k } . Hence, equivalence flipping all the truth values of ground literals L 1 λ , L 2 λ , , L n λ in S λ will not falsify any ground instances of F \ { C } . Therefore, the assignment β , obtained from β by flipping all the truth values of ground literals L 1 λ , L 2 λ , , L n λ in S λ , still satisfies all the ground instances in F \ { C } and all the ground axioms of equality axioms. □
Theorem 6.
If a clause C is an E-ESBC in a formula F, it is redundant w.r.t. F.
Proof. 
For every finite ground instances of F \ { C } { C } ε L and any assignment β propositionally satisfies finite ground instances of F \ { C } ε L , there exists a subset S C , equivalence flipping the truth values of ground literals of the subset S in some ground instances of C will not affect the truth values of those finite ground instances in F \ { C } ε L according to Lemma 4. Besides, since the ground instances of C are finite, those falsified ground instances of C can become true by equivalence flipping the ground literals in ground instances of S in those falsified ground instances of C successively. Therefore, F \ { C } { C } ε L is satisfiable according to Theorem 2. Hence, the clause C is redundant w.r.t. F. □

5. Effectiveness and Confluence Property

In this section, we evaluate effectiveness and confluence properties of the four corresponding clause elimination methods set-blocked clause elimination, extended set-blocked clause elimination, equality-set-blocked clause elimination and extended equality-set-blocked clause elimination.

5.1. Comparison of Effectiveness

Effectiveness is a significant evaluation standard for a clause elimination method. It reflects the capability of clause elimination methods to simplify formulas. The more effective a kind of clause elimination method is, the more clauses can be removed from the formulas. Below is the definition of effectiveness [2].
Definition 11.
Given two clause elimination methods C E 1 and C E 2 , and a CNF formula F. After the clause elimination method C E 1 or C E 2 is implemented, the new formula is C E 1 ( F ) or C E 2 ( F ) . If C E 1 ( F ) C E 2 ( F ) , it is called that C E 1 is at least as effective as C E 2 . In addition, if C E 1 ( F ) C E 2 ( F ) exists and there exists a formula F , C E 1 ( F ) C E 2 ( F ) , then C E 1 is more effective than C E 2 .
First, we compare the effectiveness between blocked clause elimination (BCE) and set-blocked clause elimination (SBCE).
Theorem 7.
SBCE is more effective than BCE.
Proof. 
If a clause C is a BC upon L C in a formula F, it must be a SBC upon S = { L } C . Assume that there is a clause D = N 1 N 2 N m D in the formula and L , ¬ N 1 , , ¬ N m can be unified by an mgu σ , then L S -resolvent of C and D is C σ D σ ( S ¯ \ { ¬ L i } ) σ = C σ D σ , which is the same as the L-resolvent C D σ of C and D. Therefore, L S -resolvent of C and D is a tautology. This situation can generalize to all the L S -resolvent of C, so all the L S -resolvent of C are tautologies. Hence, the clause C is an SBC upon S = { L } . On the contrary, the situation is not the same vice versa. For example, the clause C is an SBC but it is not a BC in Example 2. Therefore, we can conclude that SBCE is more effective than BCE. □
Next, effectiveness between extended set-blocked clause elimination (E-SBCE) and set-blocked clause (SBCE) is compared.
Theorem 8.
E-SBCE is more effective than SBCE.
Proof. 
If a clause C is a set-blocked clause upon S = { L 1 , L 2 , , L n } C in a formula F, it must be an extended set-blocked clause. It is analyzed by two cases.
Case 1: There is no external ground atoms of the clause C. When there are no external ground atoms, the clause C is trivially an E-SBC when it is an SBC.
Case 2: Some external ground atoms { A 1 , A 2 , , A m } exist in the resolution environment of C. For any assignment α over { A 1 , A 2 , , A m } , it may assign some clauses { C 1 , C 2 , , C k } in e n v F ( C ) as true and it only needs to consider e n v F ( C ) \ { C 1 , C 2 , , C k } as the resolution environment of C in F | α . Since C is a SBC upon S C , all the L i S -resovlents ( 1 i n ) obtained by resolving C with clauses in e n v F ( C ) are tautologies, then there is no doubt that all the L i S -resovlents ( 1 i n ) obtained by resolving C with clauses in e n v F ( C ) \ { C 1 , C 2 , , C k } are tautologies. Therefore, C is an SBC upon S in F | α . As a result, C is an E-SBC.
However, if a clause C is an E-SBC, it may not be an SBC. For example, the clause C is an E-SBC but it is not an SBC in Example 4. □
Since effectiveness has the property of transitivity, then E-SBCE is more effective than BCE. Similarly, situation is analogous among those clause elimination methods dealing with first-order formulas with equality.
Theorem 9.
Equality-set-blocked clause elimination (ESBCE) is more effective than equality-blocked clause elimination (EBCE).
Proof. 
If a clause is an EBC upon L C in a formula F, it must be an ESBC upon S = { L } C in the formula F. The reason is because all the flat L S -resolvents of C are the same as all the flat L-resolvents of C, then it is no doubt all the flat L S -resolvents of C are also valid. Therefore, the clause C is also an ESBC. However, if a clause is an EBC, it may not be an EBC. For example, in Example 7, the clause C is an ESBC but it is not an EBC. Hence, ESBC is more effective than EBCE. □
Theorem 10.
Extended equality-set-blocked clause elimination (E-ESBCE) is more effective than equality-set-blocked clause elimination (ESBCE).
Proof. 
If a clause C is an ESBC upon S = { L 1 , L 2 , , L n } C in a formula F, then for all possible assignments over the external ground atoms of C, C must be an ESBC upon S = { L 1 , L 2 , , L n } C . Therefore, we can conclude that C is also an E-ESBC. Nevertheless, if a clause is an E-ESBC, it may not be an ESBC. For example, in Example 8, the clause C is an E-ESBC but it is not an ESBC. □
Figure 1 shows the effectiveness among those clause elimination methods, separately in the circumstance of first-order logic without equality and first-order logic with equality.

5.2. Confluence Property

Confluence property is also a crucial evaluation standard for a clause elimination method. It illuminates whether the difference of the sequence of eliminating clauses in a formula will cause the final obtained new formula different. If a clause elimination method has the confluence property, the final obtained new formula is the same no matter what the elimination sequence is. However, the final obtained formula will vary according to the distinction of elimination sequence if the clause elimination method has no confluence property, as a result, making a good strategy for elimination sequence determines how much clauses can be removed. In this subsection, we discuss the four clause elimination methods’ confluence properties. Below is the definition of diamond property [12]:
Definition 12.
If a relation R has the diamond property, for x , y , z with x R y and x R z , there exists a v with y R v and z R v .
If a relation has the diamond property, it also has the confluence property [12]. Clause elimination methods can be seen as relations, which is between original formulas and new formulas after the elimination. Next, we prove all the four clause elimination methods have the confluence properties.
Theorem 11.
SBCE is confluent.
Proof. 
Assume that there are two SBCs C 1 and C 2 in a formula F. Here we prove the other clause still can be removed no matter which clause will be removed first. Without loss of generality, assume that C 1 is removed earlier and C 2 is not an SBC in F \ { C 1 } after that. Since C 2 is an SBC in the formula F, there exists S = { L 1 , L 2 , , L n } C 2 such that all the L i S -resovlents ( 1 i n ) obtained by resolving C 2 with clauses in F \ { C 2 } are tautologies. Now that C 2 is not an SBC after removing the clause C 1 , then there exists at least one L j S -resovlents ( 1 j n ) acquired by resolving C 2 with clauses in F \ { C 1 , C 2 } is not a tautology which is contradictory with the fact that C 2 is an SBC in the formula F. Therefore, C 2 is still a SBC after removing the clause C 1 . As a result, we can conclude that SBCE is confluent. □
Theorem 12.
E-SBCE is confluent.
Proof. 
Here we prove E-SBC is confluent by proving a clause C is still an E-SBC in a subset F of the formula F if it is an E-SBC in the formula F. Assume that the clause C is not an E-SBC in the subset F , then there exists at least one assignment α over the external ground atoms of C, satisfying that there exists a subset S α = { L 1 , L 2 , , L n } C , such that C is not a set-blocked clause upon S α in F | α , but C is a set-blocked clause upon S α in F | α . Then there is at least one L i S α -resovlents ( 1 i n ) is not a tautology by resolving C with the clauses in F | α \ { C } , which is a contradiction against the fact C is a set-blocked clause upon S α in F | α . E-SBCE is confluent. □
Theorem 13.
ESBCE is confluent.
Proof. 
Assume that there are two ESBCs C 1 and C 2 in a formula F. We prove that the order of eliminating clauses has no effect on the redundancy of ESBCs. Without loss of generality, we assume that the clause C 1 is removed first and C 2 is not an ESBC in F \ { C 1 } after eliminating C 1 . Since C 2 is not an ESBC after removing C 1 , then for arbitrary subset S = { L 1 , L 2 , , L n } C 2 , there exists at least one flat L i S -resovlents ( 1 i n ) is not valid obtained by resolving C 2 with clauses in F \ { C 1 , C 2 } , which is contradictory to the fact C 2 is an ESBC in F. Therefore, C 2 is also an ESBC in F \ { C 1 } . Hence, equality-set-blocked clause is confluent. □
Theorem 14.
E-ESBCE is confluent.
Proof. 
Assume that a clause C is an E-ESBC in a formula F, then the clause C must be an E-ESBC in any subset of F. Assume that C is not an E-ESBC in a subset F of F, then there exists an assignment α over the external ground atoms such that C is equality-set-blocked upon subset S α = { L 1 , L 2 , , L n } C in F | α while C is not equality-set-blocked upon S in F | α , which means there exists a flat L i S α -resovlents ( 1 i n ) is not valid obtained by resolving C with clauses in F | α \ { C } . Apparently it is a contradiction that C is an equality-set-blocked clause upon S α = { L 1 , L 2 , , L n } C in F | α . Therefore, C is also an E-ESBC in F . Hence, E-ESBC is confluent. □
Table 1 shows that all the novel clause elimination methods have the confluence property.

6. Conclusions

In the paper, we generalized blocked clause in first-order logic further, proposing four types of redundant clauses set-blocked clause, extended set-blocked clause, equality-set-blocked clause and extended equality-set-blocked clause, of which the former two were suitable for formulas without equality while the latter two were suitable for formulas with equality. Besides, we proved the redundancies of the four types of clauses and they could be removed from formulas without influencing the satisfiability or unsatisfiability of the original formulas. Finally, we discussed and analyzed their effectiveness and confluence properties. It shows that the four clause elimination methods are more effective compared with blocked clause elimination and equality-blocked clause elimination, and all the four clause elimination methods have the confluence properties.
The paper is a theoretical work about the properties of the four types of clauses. Even though all the four clause elimination methods are more effective than blocked clause elimination and equality-blocked clause elimination, identification of the four types of clauses will be more complicated and more time-consuming in the specific implementation. In future work, we will implement those clause elimination methods as preprocessing techniques of first-order theorem provers by considering the balance between effectiveness and time consumption, expecting to improve the performance of first-order theorem provers.

Author Contributions

Conceptualization, X.N.; methodology, X.N.; validation, H.F., G.W. and Y.X.; writing—original draft preparation, X.N.; writing—review and editing, X.N.; supervision, Y.X.; funding acquisition, Y.X.

Funding

This research was funded by National Natural Science Foundation of China grant number 61673320 and Fundamental Research Funds for the Central Universities grant number 2682018ZT10.

Acknowledgments

This work is supported by the National Natural Science Foundation of China (Grant No. 61673320), and by the Fundamental Research Funds for the Central Universities (Grant No. 2682018ZT10).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Järvisalo, M.; Biere, A.; Heule, M. Blocked clause elimination. In International Conference on Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2010); Lecture Notes in Computer Science (LNCS); Springer: Berlin/Heidelberg, Germany, 2010; pp. 129–144. [Google Scholar]
  2. Heule, M.J.H.; Järvisalo, M.; Biere, A. Clause elimination procedures for CNF formulas. In Proceedings of the 17th International Conference on Logic for Programming, Artificial Intelligence, and Reasoning (LPAR-17), LNCS; Springer: Berlin/Heidelberg, Germany, 2010; pp. 357–371. [Google Scholar]
  3. Järvisalo, M.; Heule, M.J.H.; Biere, A. Inprocessing rules. In International Joint Conference on Automated Reasoning (IJCAR-4); Springer: Berlin/Heidelberg, Germany, 2012; pp. 355–370. [Google Scholar]
  4. Chen, J. Fast Blocked Clause Decomposition with High Quality. arXiv, 2015; arXiv:1507.00459. [Google Scholar]
  5. Heule, M.; Biere, A. Blocked clause decomposition. In International Conference on Logic for Programming, Artificial Intelligence, and Reasoning (LPAR-19); Springer: Berlin/Heidelberg, Germany, 2013; pp. 423–438. [Google Scholar]
  6. Kiesl, B.; Seidl, M.; Tompits, H.; Biere, A. Super-Blocked Clauses. In International Joint Conference on Automated Reasoning (IJCAR); Springer: Cham, Switzerland, 2016; pp. 45–61. [Google Scholar]
  7. Kiesl, B.; Suda, M.; Seidl, M.; Tompits, H.; Biere, A. Blocked Clauses in First-Order Logic. arXiv, 2017; arXiv:1702.00847. [Google Scholar]
  8. Kovács, L.; Voronkov, A. First-order theorem proving and Vampire. In International Conference on Computer Aided Verification (CAV 2013); Lecture Notes in Computer Science (LNCS); Springer: Berlin/Heidelberg, Germany, 2013; pp. 1–35. [Google Scholar]
  9. Kiesl, B.; Suda, M. A unifying principle for clause elimination in first-order logic. In International Conference on Automated Deduction (CADE 2017); Lecture Notes in Artificial Intelligence (LNAI 10395); Springer: Cham, Switzerland, 2017; pp. 274–290. [Google Scholar]
  10. Liu, X. Automated Reasoning based on Resolution; Science Press: Beijing, China, 1994. [Google Scholar]
  11. Khasidashvili, Z.; Korovin, K. Predicate elimination for preprocessing in first-order theorem proving. In International Conference on Theory and Applications of Satisfiability Testing; Springer: Cham, Switzerland, 2016; pp. 361–372. [Google Scholar]
  12. Baader, F.; Nipkow, T. Term Rewriting and All That; Cambridge University Press: Cambridge, UK, 1998. [Google Scholar]
Figure 1. Effectiveness among those clause elimination methods. A arrow from A to B means A is more effective than B.
Figure 1. Effectiveness among those clause elimination methods. A arrow from A to B means A is more effective than B.
Symmetry 10 00553 g001
Table 1. Confluence properties of clause elimination methods.
Table 1. Confluence properties of clause elimination methods.
Clause elimination methodConfluence
SBCEYes
E-SBCEYes
ESBCEYes
E-ESBCEYes

Share and Cite

MDPI and ACS Style

Ning, X.; Xu, Y.; Wu, G.; Fu, H. Set-Blocked Clause and Extended Set-Blocked Clause in First-Order Logic. Symmetry 2018, 10, 553. https://doi.org/10.3390/sym10110553

AMA Style

Ning X, Xu Y, Wu G, Fu H. Set-Blocked Clause and Extended Set-Blocked Clause in First-Order Logic. Symmetry. 2018; 10(11):553. https://doi.org/10.3390/sym10110553

Chicago/Turabian Style

Ning, Xinran, Yang Xu, Guanfeng Wu, and Huimin Fu. 2018. "Set-Blocked Clause and Extended Set-Blocked Clause in First-Order Logic" Symmetry 10, no. 11: 553. https://doi.org/10.3390/sym10110553

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