At present, most of the first-order logic theorem provers use a binary-resolution method, which can effectively solve the general first-order logic problems to a certain extent.However, the cooperative processing ability of this method for multiple clauses is insufficient, and it is easy to cause rapid expansion of clause set in the deductive process.In this paper, we propose a novel first-order logic theorem prover based on the standard contradiction separation (S-CS) rule.This prover can realize the dynamic cooperative deduction of multiple clauses in each deduction process, as well as it can effectively learn and control the deduction process.This paper incorporates the S-CS rule with the well-known prover Prover9, to build a combined system, which effectively integrates the advantages of the two methods, not only improves the binary-resolution prover's ability, but also solves more than 100 problems that cannot be solved by other provers.
INTRODUCTION
As an essential branch of artificial intelligence, automated reasoning has always been a research hotspot, especially the development of formal verification puts forward higher requirements for the automated theorem prover (ATP) [1][2][3].At present, most of first-order theorem (FOF) provers (in the sequel simply provers) are based on the resolution method proposed by Robinson [4].Mainly adopt the saturation algorithm framework for proof search [5].That is, given two sets of the P (processed set) and the U (unprocessed set), initializing all clauses into the U and selecting one clause from U each time.Then making a binary resolution with the clauses in process, and putting the resolvents into U.This method inevitably produces a large number of resolvents, and hence bring a rapid expansion of the proof-search space.Furthermore, only two clauses are resolved at a time.Not only the processing efficiency is low, but the correlation between multiple clauses is ignored.Modern provers introduces hyper-resolution [6] into the saturation algorithm framework, and achieves the resolution of one clause and multiple unit-clauses.To some extent, the collaborative processing ability between multiple clauses is considered, and excellent results have been achieved in practice.However, multiple nonunit clauses cannot be processed cooperatively.In 2018, Xu et al. [7] proposed a standard-contradiction-separation rule (in the sequel simply S-CS, also see Section 2)-based dynamic multi-clause synergized automated deduction.The standard contradiction separation (S-CS) rule is a novel inference rule.Unlike binary resolution, the S-CS rule allows multi-clause to deduction together (also call synergy).And the rule implies the thought of dynamic control of the deduction process, which has higher deductive efficiency.In the paper [8] shown this point.
INTRODUCTION
In this paper, our contribution is, firstly, we propose an architecture of prover based on S-CS Rule.We were discussing some problems of applying the S-CS rule to proof-search.Then analyzed the characteristics of heuristic strategy based on S-CS rule.Finally, we proposed and implement a novel combinational system, CoProver, which integrates the advantages of the S-CS rule and traditional binary resolution.Experimental results show that the S-CS rule has better poof-search ability than traditional binary resolution.Furthermore, the CoProver solves more than 100 problems with rating = 1 that cannot be solved by other existing provers in the TPTP library.
INTRODUCTION
The structure of this paper is as follows: Firstly, we review the current development of ATP and analyze the problems of the traditional binary resolution methods.Section 2 introduces the basic concepts of the Contradiction Separation rule and notations and conventions of ATP.
INTRODUCTION
In Section 3, we describe the specific design strategy of our proposed prover based on S-CS rule and describe the key technologies for implementing this prover.
INTRODUCTION
Section 4 introduces the construction of a hybrid system based on our proposed provers.
INTRODUCTION
In Section 5, a series of experiments are conducted, and the experimental results are evaluated.
INTRODUCTION
Finally, in Section 6, we give conclusions and our future research directions.
PRELIMINARIES
In this paper, we are primarily interested in the first-order formula in conjunctive normal forms (CNF).We assume the following notations and conventions.
PRELIMINARIES
Definition 2.1.[9] (Term).A term is defined inductively as follows:
PRELIMINARIES
i.Each free variable and each constant is a term.
PRELIMINARIES
ii.If t 1 , .., t n are terms and f is an n-ary function symbol, the f(t 1 , .., t n ) is also a term.
PRELIMINARIES
The set of all terms is called T. We write the T = (F, V), F is a finite set of function symbols with an n-ary function (denoted f1, f2), if n = 0 the T is a constant term, is written "a 1 , a 2, ..., a n ."V is a finite set of variable symbols (denoted x 1 , x 2 ).
PRELIMINARIES
A term is written as lower-case with a number, e.g., "t 1 , s 1 , " especially, term t (t ∈ T) is ground term if it contains no variables, the symbol G noted the set of ground term, and the symbol "g" is a ground term g ∈ G.
Definition 2.2. [10] (literal).
A literal is an expression A (a positive literal) or ~A (a negative literal), where A is an atom.
Definition 2.2. [10] (literal).
An atom (or atomic formula) is an expression P(t 1 , ..., t n ) where P is a predicate symbol of arity n and t 1 , ..., t n are terms.Two literals A and ~A are said to be complementary.
Definition 2.2. [10] (literal).
We write the letter "l" with a number for literal, e.g., l 1 , l 2 .Let S is a clause set, usually, is written
Definition 2.2. [10] (literal).
Definition 2.4.[9] (substitution).A (variable) substitution is a mapping ∶ V → T. Such that (x) ≠ x for only finitely many
Definition 2.2. [10] (literal).
Xu [7] proposed the new reference rules standard contradiction separation rule (S-CS).For each C i (i = 1, 2, … , m), firstly apply a substitution i to C i ( i could be an empty substitution but not necessarily the most general unifier), denoted as
Definition 2.2. [10] (literal).
, where
Definition 2.2. [10] (literal).
ii.
Definition 2.2. [10] (literal).
, there exists at least one complementary pair among {x 1 ,…, x m }.
PROVER BASED ON S-CS RULE AND KEY TECHNOLOGIES
This section will discuss the design strategy of a novel prover based on the CS rule and the solutions to critical technologies.From Section 2, we can see that the core of CS rule is constructing the SC and obtaining the contradiction separation clause (S), which is the C + part.When the C + is empty, i.e., the original formula set S is proved.
The Architecture of Provers Based on the S-CS Rule
We build two sets of U (unprocessed clause set) and P (processed clause set) by using the current mainstream given-clause framework.We initialize the clauses and put all of them into U to present an improved architecture, as shown in Figure 1.
The Architecture of Provers Based on the S-CS Rule
The workflow is as follows:
The Architecture of Provers Based on the S-CS Rule
Step 1. Initializing and preprocessing all clauses in S and put them into U.
The Architecture of Provers Based on the S-CS Rule
Figure 1 The architecture of provers based on standard contradiction separation (S-CS) rules.
The Architecture of Provers Based on the S-CS Rule
Step 2. Obtaining the given-clause C g according to heuristic strategy.
The Architecture of Provers Based on the S-CS Rule
Step 3. Simplifying C g, according to some simplified rules and puts the result into set P.
The Architecture of Provers Based on the S-CS Rule
Step 4. Applying the S-CS Rule to C g to divide it into C − i and C + i , and building a new contradiction C − with the other clauses in P.
The Architecture of Provers Based on the S-CS Rule
Step 5. Applying CS Rule to obtain the contradiction separation clause C + .
The Architecture of Provers Based on the S-CS Rule
Step 6.If C + is empty, then S is UNSAT and the process end, else switching to Step 7.
The Architecture of Provers Based on the S-CS Rule
Step 7. Obtaining a new clause C' from C + .and simplifying C'.If C' is not trivial, then adding C' to U.
The Architecture of Provers Based on the S-CS Rule
Step 8. Repeating Step 1.
The Architecture of Provers Based on the S-CS Rule
As can be seen from the above framework process, implementing the ATP based on the S-CS Rule needs to solve the following key points:
The Architecture of Provers Based on the S-CS Rule
1. Constructing the SC C − and get the contradiction separation clause C + efficiently.
The Architecture of Provers Based on the S-CS Rule
2. Obtaining the given-clause C g .
The process of separating SC
Unlike a traditional binary resolution, the CS rule is essentially a dynamic, multi-clauses deduction rule.It should be noted that the contradiction separation clause C + is not only the result of two clause resolutions but also the cooperative deduction result of multi-clauses in the P.
The process of separating SC
The SC is separated from multi-clauses in the P. Intuitively, the deductive based on S-CS Rule is the process of obtaining C + by separating contradictions from P until C + is empty.
The process of separating SC
According to Definition 2.1, the contradiction is a cartesian set.The core of applying the S-CS rule is effectively separating CS from multi-clauses to obtain the contradiction separation clause C + .
The process of separating SC
Thus, we propose a method to obtain C + quickly.We assume the processed clause set P = {C 1 , C 2 , ..., C m }, and the literals in each clause are divided into two parts.That is, C
The process of separating SC
The process is as follows:
The process of separating SC
Step 1. Obtaining given-clause C g = {l 1 , … , l n } from U according to clause selection strategy.Putting all literal into C + g , then
The process of separating SC
Step 2. Find a substitute i make
Figure 2
The pseudo-code for Bulid standard constradiction algorithm.
Figure 2
Step 3. If
Figure 2
is empty, canceling all substitutions and returning to step 1.
Figure 2
Step 4. Finding a substitute i to make i l i {l i ∈ C + g }, and
Figure 2
Step 5. Repeating Step2 until no substitute i is found.
Figure 2
Step 6. Putting C + g into C + .The pseudo-code in Figure 2 is correspond to the above process of build SC, when C g added to P, we can obtain a new contradiction separation clause C + in the deduction.This process is dynamic.Finally, C + is the result of multi-clauses cooperating.
Figure 2
In the above process, there will be some cases of given-clause C g : i.All literals need to be removed from C i + g (a) Because they are complementary to ∼ i l j l j ∈ C − (Step 3).We think this inference is invalid because C g has no direct effect on obtaining the C + (no increase, no decrease).
Figure 2
(b) Because they are complementary to
Figure 2
).This case will be discussed in Section 3.2.2.
Figure 2
ii.No literal is removed from C g .
Figure 2
No newly generated CS and C g remain in P.
Figure 2
iii.Some literals are removed from C i + g .It is the most common case, which means that the S-CS rule is successfully applied with C g so that the new C + can be obtained.
Restart
The technology for finishing the current CS construction process and starting a new deduction process is called the restart.Employing some restart strategies can avoid falling into a local search.
Restart
i. Restarting when all literals are removed from C g in Step 4.
Restart
Obviously, in this case, the number of words in the C + is the least.Thus, by removing some literals from C + without adding new ones in it, we can restore all substitution (rollback) and put the C g back to U.
Restart
ii. Restarting when the clause cannot be selected from U.
Restart
In this case, either set U is empty, or each clause in U participating in the deduction is invalid.
Restart
Note that we say a clause is invalid has two situations: the case i) and some constraints are not met.For example, the maximum number of literals in C + is 2, but when some given-clauses participate in deduction, this limit is exceeded.
Restart
The restart process is as follows:
Restart
i. Adding all clauses in P to U and clearing the set p.
Restart
ii. Simplifying set U and removing redundant clauses.
Restart
iii.Selecting clause C g from U again and putting it into P according to the selection strategy to start a new round of deduction.
Clause Selection Strategy Based on S-CS Rule
A powerful ATP requires three elements [11]: 1).Powerful inference rules; 2).Good heuristic search strategy; 3).Efficient data structure.
Clause Selection Strategy Based on S-CS Rule
The traditional binary resolution is due to the simple deduction rules: only two clauses for resolution.Therefore, most of the ATPs focuses on the research of heuristic search strategies.For example, vampire [12] has hundreds of different heuristic strategies.Furthermore, some articles [13,14] employ artificial intelligence or machine learning to generate different search strategies.These search strategies can improve the performance of ATPs to a certain extent.However, usually, too many strategies lead to too complicated heuristic strategies, or they are only useful for certain types of problems.These drawbacks make it difficult to find a generally good heuristic strategy.
Clause Selection Strategy Based on S-CS Rule
In this section, firstly, we propose rules for formulating heuristic strategies based on the characteristics of the S-CS Rule, and then give the clause selection strategy based on the S-CS Rule.
Heuristic strategy based on S-CS rule
The traditional binary resolution based on saturate employs various heuristic strategies.These strategies usually come from two considerations:
Heuristic strategy based on S-CS rule
i. Controlling the expansion of the proof-search space as much as possible to avoid too fast expansion of the clause set.However, such control is limited.In most cases, it is difficult to avoid the rapid expansion of the search space because the decision time increases.
Heuristic strategy based on S-CS rule
ii.Based on the goal-oriented strategy, employing the conjecture clause is preferred in the resolution process.It is a rough heuristic strategy, so the conjecture-clause participation in resolution will generate a large number of lemma clauses.Therefore, most of ATPs will generally combine the goal clause with the minimum age of the hybrid strategy.
Heuristic strategy based on S-CS rule
Compared with the binary resolution method, the deduction method based on the S-CS rule comes with an outstanding feature: If and only if the contradiction separation clause C + is empty, the clause set S is UNSAT.Therefore, for the heuristic strategy based on S-CS rule, the following two rules are followed:
Heuristic strategy based on S-CS rule
Rule 1: The literals in the contradiction separation clause C + is as little as possible.
Heuristic strategy based on S-CS rule
Rule 2: The effect of unification/substitution on literals in C − is as small as possible.
Heuristic strategy based on S-CS rule
For rule 1, there are two meanings.The first is to make the most use of the unit clause.The priority to use the unit clause must satisfy rule 1.Secondly, make full use of the coordination of multi-clause when there are more than two clauses in P. The more synergized effectors of all clauses are involved, the more literals will be removed from given-clause C g .
Heuristic strategy based on S-CS rule
For rule 2, the literal P(x) has better synergy than literal P(a).So we do not want the literal instanced too early, which will be discussed in Section 3.4.
Heuristic strategy based on S-CS rule
Compared with the traditional binary resolution, the above two rules make the heuristic strategy based on the S-CS rule pay more attention to dynamic control of the deductive process, as well as are comfortable to be implemented.
Clause selection
Clause selection is the most crucial choice point of resolutionbased provers [5].The VAMPIRE prover was the CASC (Conference on Automated Deduction ATP System Competition) winner in recent years, which uses two parameters for clause selection: the age and the weight of a clause [12].Another powerful purely equational theorem prover E prover uses some heuristic strategiesy [5]: first-in/first-out FIFO, symbols count, and goal-directed evaluation function.GKC [15] is a fresh resolution prover, which uses a 2-layer clause selection queues algorithm.The first layer uses the common ratio-based algorithm.Further, the second layer uses four separate queues based on the clause's age.
Clause selection
In the ATP based on the S-CS rule, we perform the selection of a given clause by employing a dynamic-static combined strategy to satisfy the above rules, as has been proposed in Section 3. Setting the threshold N is also a dynamic learning process.For example, with an initial value N = 1, when all the given-clause C g from U are invalid, then N = N + 1;
(b) Least |C + | priority strategy
The dynamic strategy is different from the static strategy.When N > 1 and there are some candidate clauses C 1 ,..., C m with the same number of literals.We can try to inference with them separately, so the clause with the smallest |C + i |, (i ∈ m) is preferred.Due to trying each candidate clauses, the deduction efficiency is affected.In practice, the candidate clause with more complementary predicates in the C − is preferred.
(c) Older clause or goal clause priority strategy
Firstly, the older clause needs to be chosen; the two clauses are of the same age, choosing the goal clause or the descendants of the goal clause.
Dynamic Learning Heuristics Strategy
According to the analysis in Section 3.3.1,there are two guiding rules for the heuristic strategy based on the S-CS rule, where Rule 2 primarily refers to the control over the literal instances during the inference process.
Dynamic Learning Heuristics Strategy
In this section, we will propose a weight evaluation method and discuss a dynamic learning heuristics strategy based on Term Stability.
Weight function based on term stability
In the unification and substitution process, the variable in firstorder logic probably replaces other variables and constants.Term stability is applied to evaluate how easy it is for a term to substitute for another term during the inference process, which reflects the complexity of the term's substitution.Thus we the term f (x) is more stable than x, and ground term f (a), a is the most stable.
Weight function based on term stability
Definition 3.1.Let t be a term in first-order logic, t ∈ T, term stability S(t) is defined as if S ∶ T ↦ R + , which satisfies
Weight function based on term stability
In ( 1) V is a finite set of variable symbols, G denotes the set of ground terms, F v indicates a set of function terms with variables, and t f is a function term involve variables.W x , W g are the weight of variable and ground-term, respectively.They are fixed values and satisfy W g > W x > 0. W(t f ) is the weight of t f :
Weight function based on term stability
where |t| g denotes the number of ground terms in the term t.
Weight function based on term stability
|t| DX i represents the sum of the nesting depths of variable x i in term t, e.g., there is a term t 1 t 1 = f5(f (x 1 ), f2(x 2 , x 3 ), x 4 , f1(a 1 ), a 2 ).Then
Weight function based on term stability
Example 3.1.Calculate the term stability of the following three terms:
Weight function based on term stability
.
Weight function based on term stability
W(t 3 ) = 5.636, S(t 3 ) = 1.849.
Definition 3.2. (Clause stability) There is a clause
Clause stability of C is defined as
Definition 3.2. (Clause stability) There is a clause
When selecting C g , the clauses with smaller S c are preferred to participate in the deduction.
Definition 3.2. (Clause stability) There is a clause
In practice, if there are multiple literals with the same variable in a clause, then any variables instance will affect more than one literal.For example, for clause C1: P2(x 1 , x 2 )∨P1(f (x 1 )), if x 1 in P1(f (x 1 )) is substituted as a 1 , then P2(x 1 , x 2 ) changes to P2(a 1 , x 2 ) by substitution :{a 1 /x 1 }.
Definition 3.2. (Clause stability) There is a clause
We call this correlation between such kind of literals is literalrelational in the same clause.
Definition 3.2. (Clause stability) There is a clause
where |V| c denotes the total number of variables in C and ∑ |l| x i indicates the variable x i in literal l.
Example 3.2.
There is a clause
Example 3.2.
|V| c = 7, then literal-relational of each literal is as follows:
Literal selection
During the S-CS building process, it needs to find a substitute i that makes i l i {l i ∈ C + g } and ∼ i l j {l j ∈ C − or l j ∈ C + } a complementary pair.It is known that different substitution sequences lead to different results.For example, there is a set C − in P and a given clause.
Literal selection
If we prefer literal P3(a 1 , a 2 , a 3 ), we will obtain a substitution 1 :{a 1 /x 1 , a 2 /x 2 , a 3 /x 3 }.Obviously, there is no complementary pair in C − for the literals P2(x 11 , a 1 ), Q2(x 12 , a 1 ).They will be added into the C + .But if we find for literal P2(x 11 , a 1 ), at first.Then only literal P3(a 1 , a 2 , a 3 ) is retained.In other words, literal selection strategies directly affect ATP performance.
Literal selection
Actually, we hope that literal selection strategies can achieve the following effects:
Literal selection
A. Keeping the literals as few as possible in C g B. Avoiding literal instance in C − , if possible, in the deduction process.To has the minimum influence on the C − after the unification.
Literal selection
Therefore, we employ some literal-selection strategies as follows: i. Literal-stability priority queues.It gives higher priority to literal with smaller S(l).
Literal selection
ii. Literal-relational priority queues.It gives higher priority to literal with smaller R(l).
Other dynamic restriction strategies
According to the limitation of computing resources, such as CPU time, memory size, and storage space,we give the dynamic restriction strategies based on the S-CS rule.
Other dynamic restriction strategies
The main idea is to set some thresholds, initially small values.When some property of a new clause exceeds these thresholds, discard this new clause.If the S-CS rule fails and the proof-search restart, these thresholds are increased.
Other dynamic restriction strategies
These limits are as follows:
Other dynamic restriction strategies
• Limit the maximum function layer of clause.
Other dynamic restriction strategies
At first, we count the maximum function nesting layer of the original clause, let
Other dynamic restriction strategies
The proof-search begin of the limit f limit , if maximum funcion nesting layer of C + exceeds f limit , it is discarded.If the S-CS proof-search fails, f limit = f limit+1.
Other dynamic restriction strategies
• Limit the maximum size of clause.As same, count the maximum length of clause in S, let
THE COMBINED ATP BASED ON S-CS RULES
The CoProver is a hybrid inference system constructed by SCS-Prover and Prover9.Figure 3 shows the main framework of CoProver.
THE COMBINED ATP BASED ON S-CS RULES
SCS-Prover is an ATP system based on S-CS rule, while Prover9 is a famous resolution-based prover, its overall architecture is very similar to that of Otter-3.3 [16,17].In the works of other scholars, Prover9 is often used nowadays as a benchmark to measure the performances of the proposed provers.
THE COMBINED ATP BASED ON S-CS RULES
The workflow of CoProver is as follows:
THE COMBINED ATP BASED ON S-CS RULES
Step 1. SCS-Prover is first applied to the initial set of clauses S for deduction and generates an inference result, i.e., contradiction separation clause C + .
THE COMBINED ATP BASED ON S-CS RULES
Step 2. If C + is empty, the proof is found, output UNSAT.Otherwise, putting C + into the clause set R.
THE COMBINED ATP BASED ON S-CS RULES
Step 3. If the terminating condition of S-CS rule is reached, then we obtaining new clause set S' = S ∪ R. Otherwise, go Step1.
THE COMBINED ATP BASED ON S-CS RULES
Step 4. Input S' into the Prover9 for proof-search and obtaining a result.
THE COMBINED ATP BASED ON S-CS RULES
In the above process, there are some points.
THE COMBINED ATP BASED ON S-CS RULES
i.The termination condition for SCS-Prover mainly includes time limit and restart times limit.
THE COMBINED ATP BASED ON S-CS RULES
ii.The clause set R can be regarded as a lemma set of S.
THE COMBINED ATP BASED ON S-CS RULES
According to the features of S-CS rules, we can control the C + in the deduction process; to generate as more unit clauses and ground clauses as possible.Experiments show that the addition of these lemmas can greatly improve the ability of Prover9.
EXPERIMENTS
C++ in the 64-bit Unbuntu operating system is used to implement the first-order logic prover CSC-Provers based on the S-CS rule, and the combined system CoProver.
The Result of Competition Problems
We testify CoProver by the first-order logic problems taken from the category FOFs of the last three years CASC [18] competition (2017-2019).We assign the value 2 to the Max literals number of C + (|C + | = 2).For the problems in 2017 and 2018, the CoProver runs with a CPU time limit of 300 s per problem; specifically, the CPU time limit of CSC-prover is 180s, and the CPU time limit of Prove9 is 120s.In addition, for the competition problems in 2019, we set the total CPU time limit to 180s.first, the maximum CPU time of CSC-prover was 120s, and then 60s is left to Prover9
The Result of Competition Problems
All the experiments are done in an Intel(R) CPU I7 @ 3.4 GHz and 8GB of main memory.The experimental results are presented in Table 1.
The Result of Competition Problems
Table 1 shows the comparison result of Prover9 and CoProver solving the competition problems in 2017-2019.The "Ratio" row is the radio of the number of solved problems of CoProver and Prover9.
The Result of Competition Problems
We can see that CoProver can solve 63% more problems than by Prover9.
The Result of Competition Problems
Next, the performance of the hybrid ATP system is analyzed further.Table 2 shows the results of different phases of CoProver.
The Result of Competition Problems
The "CSC-Prover" denotes the results that only the CSC-Prover based on S-CS rule is used in the first phase, the "Prover9+" row denotes the results of the second phase.In this stage, the input clause set S' for Prover9 is S ∪ R, where S is the original clauses set, and R is the obtained lemma set by CSC-Prover.The "New Solved" indicates the number of newly solved problems.That is, these problems cannot be proved by using Prover9 itself alone.For example, for the problems in 2017, the "Prover9+" can only solve 55 problems of them, while the other 18 problems cannot be solved only by Prover9.
The Result of Competition Problems
The "Ratio" is the ratio of the above two values.Higher ratios indicate that the combined system has a better performance than other provers.That is, the lemma-set R is more helpful to improve for Prover9.
The Result of Competition Problems
Table 2 also shows that the lemmas provided by S-CS rule-based ATP have a significant effect on improving Prover9's performance.
The Result of Competition Problems
Especially for the problems in 2019, even if they are harder.Actually, the performance of Prover9 has been improved to 47.22%.
The Result of Competition Problems
Figure 4 shows the relationship between the solution number and CPU time.It can be seen that with some lemmas (i.e., contradiction separation clause) are provided by CSC-Prover, most problems can be solved in a short time, where many problems cannot be solved by Prover9.
The Result of Benchmark Problems in TPTP
We testify CoProver on the first-logic problems with rating = 1 from the TPTP-v6.1.0[19] problems library.The rating is an indicator of how hard the problem is, so the problem with rating = 1 meant that it could not be solved by any ATPs system.However, we proposed a hybrid ATP system based on the S-CS rule.Namely, the CoProver can solve 103 problems with rating = 1, within the CPU time limit 300 s.See the detailed proof in Appendix.
CONCLUSIONS AND FUTURE WORKS
In this paper, we firstly proposed a simplified and effective implementation scheme for the S-CS rule.We also presented a dynamic heuristic strategy based on the S-CS rule scheme.Then, we introduced the CoProver as a novel combined ATP based on S-CS rule for more effectively and efficiently solving the problems with rating = 1.
CONCLUSIONS AND FUTURE WORKS
Experimental results showed that compared with the provers based on binary resolution, the performance of the prover based on S-CS rule is significantly improved.As a result, in the TPTP problem library, our proposed combinational ATP system CoProver successfully solved 103 problems, which could not be solved by any other existing prover.
CONCLUSIONS AND FUTURE WORKS
In the future, we will further optimize the dynamic coordination strategy based on the separation rules of contradictions.Notably, the first-order logic formula decision strategy of equivalent words will be optimized and improved.
Definition 2 . 3 .
[9] (clause).A clause C is a finite set of literals and their disjunction, written as C = {l 1 , ..., l n }.The empty clause is denoted by.Especially if C has only on literal, the clause is called a Unit clause.
Definition 2 . 5 .
[7] (Contradiction) Suppose a clause setS = {C 1 , C 2 , … , C m } is a standard contradiction (SC).If ∀(l 1 , … , l m ) ∈ ∏m i=1 C i there exists at least one complementary pair among{l 1 ,…, l m }.The symbol ∏ m i=1 C i denotes the cartesian product of C 1 , C 2 , … , C m .If S = Λ m i=1 C i is unsatisfiable, then S = Λ m i=1 C i is called a quasi contradiction (QC).Definition 2.6.[7] (S-CS Rule in First-Order Logic) Suppose a clause set S = {C 1 , C 2 , … , C m } in first-order logic.Without loss of generality, assume that there does not exist the same variables among C 1 , C 2 ,…, C m .The following inference rule that produces a new clause from S is called a standard contradiction separation rule, in short, an S-CS rule.
3 . 1 .
Our clause selection strategy based on S-CS rule as follows: i. Static clause selection strategy (a) Selecting clauses from one of the queues by Least literals priority.(b) Selecting clauses from one of the queues by employing a stability-weight ratio.That will be discussed in Section 3.4.ii.Dynamic clause selection strategy Unlike the binary resolution, the dynamic strategy is one of the significant advantages of S-CS rule.The core idea is to guide the entire deduction process by the control strategy of the contradiction separation clause C + .(a) Dynamic strategy for controlling the number of literals in C + Each deduction based on the S-CS rule will generate a C + .In order to make the literals in C + be as little as possible, we set a threshold N r .Let |C + |denote the number of literals in C + .If |C + | > N, contradiction separation fails, i.e., this inference is invalid.Rollback and put the C g back to U, reselect given clause.
Figure 3
Figure 3 The framework of CoProver.
Table 1
Comparison
Table 1
of the number of solved problems from Conference on Automated Deduction ATP System Competition (CASC).
Table 2
Analysis at the different phase of CoProver.
Table 2
Figure 4 First-order theorem (FOF) results-proof-time by CoProver.
Table A . 1
List of problem with rating = 1 by CoProver.
섹션 본문 147문단 · 27,305자
(제목 없음)
1At present, most of the first-order logic theorem provers use a binary-resolution method, which can effectively solve the general first-order logic problems to a certain extent.However, the cooperative processing ability of this method for multiple clauses is insufficient, and it is easy to cause rapid expansion of clause set in the deductive process.In this paper, we propose a novel first-order logic theorem prover based on the standard contradiction separation (S-CS) rule.This prover can realize the dynamic cooperative deduction of multiple clauses in each deduction process, as well as it can effectively learn and control the deduction process.This paper incorporates the S-CS rule with the well-known prover Prover9, to build a combined system, which effectively integrates the advantages of the two methods, not only improves the binary-resolution prover's ability, but also solves more than 100 problems that cannot be solved by other provers.
INTRODUCTION
2As an essential branch of artificial intelligence, automated reasoning has always been a research hotspot, especially the development of formal verification puts forward higher requirements for the automated theorem prover (ATP) [1][2][3].At present, most of first-order theorem (FOF) provers (in the sequel simply provers) are based on the resolution method proposed by Robinson [4].Mainly adopt the saturation algorithm framework for proof search [5].That is, given two sets of the P (processed set) and the U (unprocessed set), initializing all clauses into the U and selecting one clause from U each time.Then making a binary resolution with the clauses in process, and putting the resolvents into U.This method inevitably produces a large number of resolvents, and hence bring a rapid expansion of the proof-search space.Furthermore, only two clauses are resolved at a time.Not only the processing efficiency is low, but the correlation between multiple clauses is ignored.Modern provers introduces hyper-resolution [6] into the saturation algorithm framework, and achieves the resolution of one clause and multiple unit-clauses.To some extent, the collaborative processing ability between multiple clauses is considered, and excellent results have been achieved in practice.However, multiple nonunit clauses cannot be processed cooperatively.In 2018, Xu et al. [7] proposed a standard-contradiction-separation rule (in the sequel simply S-CS, also see Section 2)-based dynamic multi-clause synergized automated deduction.The standard contradiction separation (S-CS) rule is a novel inference rule.Unlike binary resolution, the S-CS rule allows multi-clause to deduction together (also call synergy).And the rule implies the thought of dynamic control of the deduction process, which has higher deductive efficiency.In the paper [8] shown this point.
3In this paper, our contribution is, firstly, we propose an architecture of prover based on S-CS Rule.We were discussing some problems of applying the S-CS rule to proof-search.Then analyzed the characteristics of heuristic strategy based on S-CS rule.Finally, we proposed and implement a novel combinational system, CoProver, which integrates the advantages of the S-CS rule and traditional binary resolution.Experimental results show that the S-CS rule has better poof-search ability than traditional binary resolution.Furthermore, the CoProver solves more than 100 problems with rating = 1 that cannot be solved by other existing provers in the TPTP library.
4The structure of this paper is as follows: Firstly, we review the current development of ATP and analyze the problems of the traditional binary resolution methods.Section 2 introduces the basic concepts of the Contradiction Separation rule and notations and conventions of ATP.
5In Section 3, we describe the specific design strategy of our proposed prover based on S-CS rule and describe the key technologies for implementing this prover.
6Section 4 introduces the construction of a hybrid system based on our proposed provers.
7In Section 5, a series of experiments are conducted, and the experimental results are evaluated.
8Finally, in Section 6, we give conclusions and our future research directions.
PRELIMINARIES
9In this paper, we are primarily interested in the first-order formula in conjunctive normal forms (CNF).We assume the following notations and conventions.
10Definition 2.1.[9] (Term).A term is defined inductively as follows:
11i.Each free variable and each constant is a term.
12ii.If t 1 , .., t n are terms and f is an n-ary function symbol, the f(t 1 , .., t n ) is also a term.
13The set of all terms is called T. We write the T = (F, V), F is a finite set of function symbols with an n-ary function (denoted f1, f2), if n = 0 the T is a constant term, is written "a 1 , a 2, ..., a n ."V is a finite set of variable symbols (denoted x 1 , x 2 ).
14A term is written as lower-case with a number, e.g., "t 1 , s 1 , " especially, term t (t ∈ T) is ground term if it contains no variables, the symbol G noted the set of ground term, and the symbol "g" is a ground term g ∈ G.
Definition 2.2. [10] (literal).
15A literal is an expression A (a positive literal) or ~A (a negative literal), where A is an atom.
16An atom (or atomic formula) is an expression P(t 1 , ..., t n ) where P is a predicate symbol of arity n and t 1 , ..., t n are terms.Two literals A and ~A are said to be complementary.
17We write the letter "l" with a number for literal, e.g., l 1 , l 2 .Let S is a clause set, usually, is written
18Definition 2.4.[9] (substitution).A (variable) substitution is a mapping ∶ V → T. Such that (x) ≠ x for only finitely many
19Xu [7] proposed the new reference rules standard contradiction separation rule (S-CS).For each C i (i = 1, 2, … , m), firstly apply a substitution i to C i ( i could be an empty substitution but not necessarily the most general unifier), denoted as
20, where
21ii.
22, there exists at least one complementary pair among {x 1 ,…, x m }.
PROVER BASED ON S-CS RULE AND KEY TECHNOLOGIES
23This section will discuss the design strategy of a novel prover based on the CS rule and the solutions to critical technologies.From Section 2, we can see that the core of CS rule is constructing the SC and obtaining the contradiction separation clause (S), which is the C + part.When the C + is empty, i.e., the original formula set S is proved.
The Architecture of Provers Based on the S-CS Rule
24We build two sets of U (unprocessed clause set) and P (processed clause set) by using the current mainstream given-clause framework.We initialize the clauses and put all of them into U to present an improved architecture, as shown in Figure 1.
25The workflow is as follows:
26Step 1. Initializing and preprocessing all clauses in S and put them into U.
27Figure 1 The architecture of provers based on standard contradiction separation (S-CS) rules.
28Step 2. Obtaining the given-clause C g according to heuristic strategy.
29Step 3. Simplifying C g, according to some simplified rules and puts the result into set P.
30Step 4. Applying the S-CS Rule to C g to divide it into C − i and C + i , and building a new contradiction C − with the other clauses in P.
31Step 5. Applying CS Rule to obtain the contradiction separation clause C + .
32Step 6.If C + is empty, then S is UNSAT and the process end, else switching to Step 7.
33Step 7. Obtaining a new clause C' from C + .and simplifying C'.If C' is not trivial, then adding C' to U.
34Step 8. Repeating Step 1.
35As can be seen from the above framework process, implementing the ATP based on the S-CS Rule needs to solve the following key points:
361. Constructing the SC C − and get the contradiction separation clause C + efficiently.
372. Obtaining the given-clause C g .
The process of separating SC
38Unlike a traditional binary resolution, the CS rule is essentially a dynamic, multi-clauses deduction rule.It should be noted that the contradiction separation clause C + is not only the result of two clause resolutions but also the cooperative deduction result of multi-clauses in the P.
39The SC is separated from multi-clauses in the P. Intuitively, the deductive based on S-CS Rule is the process of obtaining C + by separating contradictions from P until C + is empty.
40According to Definition 2.1, the contradiction is a cartesian set.The core of applying the S-CS rule is effectively separating CS from multi-clauses to obtain the contradiction separation clause C + .
41Thus, we propose a method to obtain C + quickly.We assume the processed clause set P = {C 1 , C 2 , ..., C m }, and the literals in each clause are divided into two parts.That is, C
42The process is as follows:
43Step 1. Obtaining given-clause C g = {l 1 , … , l n } from U according to clause selection strategy.Putting all literal into C + g , then
44Step 2. Find a substitute i make
Figure 2
45The pseudo-code for Bulid standard constradiction algorithm.
46Step 3. If
47is empty, canceling all substitutions and returning to step 1.
48Step 4. Finding a substitute i to make i l i {l i ∈ C + g }, and
49Step 5. Repeating Step2 until no substitute i is found.
50Step 6. Putting C + g into C + .The pseudo-code in Figure 2 is correspond to the above process of build SC, when C g added to P, we can obtain a new contradiction separation clause C + in the deduction.This process is dynamic.Finally, C + is the result of multi-clauses cooperating.
51In the above process, there will be some cases of given-clause C g : i.All literals need to be removed from C i + g (a) Because they are complementary to ∼ i l j l j ∈ C − (Step 3).We think this inference is invalid because C g has no direct effect on obtaining the C + (no increase, no decrease).
52(b) Because they are complementary to
53).This case will be discussed in Section 3.2.2.
54ii.No literal is removed from C g .
55No newly generated CS and C g remain in P.
56iii.Some literals are removed from C i + g .It is the most common case, which means that the S-CS rule is successfully applied with C g so that the new C + can be obtained.
Restart
57The technology for finishing the current CS construction process and starting a new deduction process is called the restart.Employing some restart strategies can avoid falling into a local search.
58i. Restarting when all literals are removed from C g in Step 4.
59Obviously, in this case, the number of words in the C + is the least.Thus, by removing some literals from C + without adding new ones in it, we can restore all substitution (rollback) and put the C g back to U.
60ii. Restarting when the clause cannot be selected from U.
61In this case, either set U is empty, or each clause in U participating in the deduction is invalid.
62Note that we say a clause is invalid has two situations: the case i) and some constraints are not met.For example, the maximum number of literals in C + is 2, but when some given-clauses participate in deduction, this limit is exceeded.
63The restart process is as follows:
64i. Adding all clauses in P to U and clearing the set p.
65ii. Simplifying set U and removing redundant clauses.
66iii.Selecting clause C g from U again and putting it into P according to the selection strategy to start a new round of deduction.
Clause Selection Strategy Based on S-CS Rule
67A powerful ATP requires three elements [11]: 1).Powerful inference rules; 2).Good heuristic search strategy; 3).Efficient data structure.
68The traditional binary resolution is due to the simple deduction rules: only two clauses for resolution.Therefore, most of the ATPs focuses on the research of heuristic search strategies.For example, vampire [12] has hundreds of different heuristic strategies.Furthermore, some articles [13,14] employ artificial intelligence or machine learning to generate different search strategies.These search strategies can improve the performance of ATPs to a certain extent.However, usually, too many strategies lead to too complicated heuristic strategies, or they are only useful for certain types of problems.These drawbacks make it difficult to find a generally good heuristic strategy.
69In this section, firstly, we propose rules for formulating heuristic strategies based on the characteristics of the S-CS Rule, and then give the clause selection strategy based on the S-CS Rule.
Heuristic strategy based on S-CS rule
70The traditional binary resolution based on saturate employs various heuristic strategies.These strategies usually come from two considerations:
71i. Controlling the expansion of the proof-search space as much as possible to avoid too fast expansion of the clause set.However, such control is limited.In most cases, it is difficult to avoid the rapid expansion of the search space because the decision time increases.
72ii.Based on the goal-oriented strategy, employing the conjecture clause is preferred in the resolution process.It is a rough heuristic strategy, so the conjecture-clause participation in resolution will generate a large number of lemma clauses.Therefore, most of ATPs will generally combine the goal clause with the minimum age of the hybrid strategy.
73Compared with the binary resolution method, the deduction method based on the S-CS rule comes with an outstanding feature: If and only if the contradiction separation clause C + is empty, the clause set S is UNSAT.Therefore, for the heuristic strategy based on S-CS rule, the following two rules are followed:
74Rule 1: The literals in the contradiction separation clause C + is as little as possible.
75Rule 2: The effect of unification/substitution on literals in C − is as small as possible.
76For rule 1, there are two meanings.The first is to make the most use of the unit clause.The priority to use the unit clause must satisfy rule 1.Secondly, make full use of the coordination of multi-clause when there are more than two clauses in P. The more synergized effectors of all clauses are involved, the more literals will be removed from given-clause C g .
77For rule 2, the literal P(x) has better synergy than literal P(a).So we do not want the literal instanced too early, which will be discussed in Section 3.4.
78Compared with the traditional binary resolution, the above two rules make the heuristic strategy based on the S-CS rule pay more attention to dynamic control of the deductive process, as well as are comfortable to be implemented.
Clause selection
79Clause selection is the most crucial choice point of resolutionbased provers [5].The VAMPIRE prover was the CASC (Conference on Automated Deduction ATP System Competition) winner in recent years, which uses two parameters for clause selection: the age and the weight of a clause [12].Another powerful purely equational theorem prover E prover uses some heuristic strategiesy [5]: first-in/first-out FIFO, symbols count, and goal-directed evaluation function.GKC [15] is a fresh resolution prover, which uses a 2-layer clause selection queues algorithm.The first layer uses the common ratio-based algorithm.Further, the second layer uses four separate queues based on the clause's age.
80In the ATP based on the S-CS rule, we perform the selection of a given clause by employing a dynamic-static combined strategy to satisfy the above rules, as has been proposed in Section 3. Setting the threshold N is also a dynamic learning process.For example, with an initial value N = 1, when all the given-clause C g from U are invalid, then N = N + 1;
(b) Least |C + | priority strategy
81The dynamic strategy is different from the static strategy.When N > 1 and there are some candidate clauses C 1 ,..., C m with the same number of literals.We can try to inference with them separately, so the clause with the smallest |C + i |, (i ∈ m) is preferred.Due to trying each candidate clauses, the deduction efficiency is affected.In practice, the candidate clause with more complementary predicates in the C − is preferred.
(c) Older clause or goal clause priority strategy
82Firstly, the older clause needs to be chosen; the two clauses are of the same age, choosing the goal clause or the descendants of the goal clause.
Dynamic Learning Heuristics Strategy
83According to the analysis in Section 3.3.1,there are two guiding rules for the heuristic strategy based on the S-CS rule, where Rule 2 primarily refers to the control over the literal instances during the inference process.
84In this section, we will propose a weight evaluation method and discuss a dynamic learning heuristics strategy based on Term Stability.
Weight function based on term stability
85In the unification and substitution process, the variable in firstorder logic probably replaces other variables and constants.Term stability is applied to evaluate how easy it is for a term to substitute for another term during the inference process, which reflects the complexity of the term's substitution.Thus we the term f (x) is more stable than x, and ground term f (a), a is the most stable.
86Definition 3.1.Let t be a term in first-order logic, t ∈ T, term stability S(t) is defined as if S ∶ T ↦ R + , which satisfies
87In ( 1) V is a finite set of variable symbols, G denotes the set of ground terms, F v indicates a set of function terms with variables, and t f is a function term involve variables.W x , W g are the weight of variable and ground-term, respectively.They are fixed values and satisfy W g > W x > 0. W(t f ) is the weight of t f :
88where |t| g denotes the number of ground terms in the term t.
89|t| DX i represents the sum of the nesting depths of variable x i in term t, e.g., there is a term t 1 t 1 = f5(f (x 1 ), f2(x 2 , x 3 ), x 4 , f1(a 1 ), a 2 ).Then
90Example 3.1.Calculate the term stability of the following three terms:
91.
92W(t 3 ) = 5.636, S(t 3 ) = 1.849.
Definition 3.2. (Clause stability) There is a clause
93Clause stability of C is defined as
94When selecting C g , the clauses with smaller S c are preferred to participate in the deduction.
95In practice, if there are multiple literals with the same variable in a clause, then any variables instance will affect more than one literal.For example, for clause C1: P2(x 1 , x 2 )∨P1(f (x 1 )), if x 1 in P1(f (x 1 )) is substituted as a 1 , then P2(x 1 , x 2 ) changes to P2(a 1 , x 2 ) by substitution :{a 1 /x 1 }.
96We call this correlation between such kind of literals is literalrelational in the same clause.
97where |V| c denotes the total number of variables in C and ∑ |l| x i indicates the variable x i in literal l.
Example 3.2.
98There is a clause
99|V| c = 7, then literal-relational of each literal is as follows:
Literal selection
100During the S-CS building process, it needs to find a substitute i that makes i l i {l i ∈ C + g } and ∼ i l j {l j ∈ C − or l j ∈ C + } a complementary pair.It is known that different substitution sequences lead to different results.For example, there is a set C − in P and a given clause.
101If we prefer literal P3(a 1 , a 2 , a 3 ), we will obtain a substitution 1 :{a 1 /x 1 , a 2 /x 2 , a 3 /x 3 }.Obviously, there is no complementary pair in C − for the literals P2(x 11 , a 1 ), Q2(x 12 , a 1 ).They will be added into the C + .But if we find for literal P2(x 11 , a 1 ), at first.Then only literal P3(a 1 , a 2 , a 3 ) is retained.In other words, literal selection strategies directly affect ATP performance.
102Actually, we hope that literal selection strategies can achieve the following effects:
103A. Keeping the literals as few as possible in C g B. Avoiding literal instance in C − , if possible, in the deduction process.To has the minimum influence on the C − after the unification.
104Therefore, we employ some literal-selection strategies as follows: i. Literal-stability priority queues.It gives higher priority to literal with smaller S(l).
105ii. Literal-relational priority queues.It gives higher priority to literal with smaller R(l).
Other dynamic restriction strategies
106According to the limitation of computing resources, such as CPU time, memory size, and storage space,we give the dynamic restriction strategies based on the S-CS rule.
107The main idea is to set some thresholds, initially small values.When some property of a new clause exceeds these thresholds, discard this new clause.If the S-CS rule fails and the proof-search restart, these thresholds are increased.
108These limits are as follows:
109• Limit the maximum function layer of clause.
110At first, we count the maximum function nesting layer of the original clause, let
111The proof-search begin of the limit f limit , if maximum funcion nesting layer of C + exceeds f limit , it is discarded.If the S-CS proof-search fails, f limit = f limit+1.
112• Limit the maximum size of clause.As same, count the maximum length of clause in S, let
THE COMBINED ATP BASED ON S-CS RULES
113The CoProver is a hybrid inference system constructed by SCS-Prover and Prover9.Figure 3 shows the main framework of CoProver.
114SCS-Prover is an ATP system based on S-CS rule, while Prover9 is a famous resolution-based prover, its overall architecture is very similar to that of Otter-3.3 [16,17].In the works of other scholars, Prover9 is often used nowadays as a benchmark to measure the performances of the proposed provers.
115The workflow of CoProver is as follows:
116Step 1. SCS-Prover is first applied to the initial set of clauses S for deduction and generates an inference result, i.e., contradiction separation clause C + .
117Step 2. If C + is empty, the proof is found, output UNSAT.Otherwise, putting C + into the clause set R.
118Step 3. If the terminating condition of S-CS rule is reached, then we obtaining new clause set S' = S ∪ R. Otherwise, go Step1.
119Step 4. Input S' into the Prover9 for proof-search and obtaining a result.
120In the above process, there are some points.
121i.The termination condition for SCS-Prover mainly includes time limit and restart times limit.
122ii.The clause set R can be regarded as a lemma set of S.
123According to the features of S-CS rules, we can control the C + in the deduction process; to generate as more unit clauses and ground clauses as possible.Experiments show that the addition of these lemmas can greatly improve the ability of Prover9.
EXPERIMENTS
124C++ in the 64-bit Unbuntu operating system is used to implement the first-order logic prover CSC-Provers based on the S-CS rule, and the combined system CoProver.
The Result of Competition Problems
125We testify CoProver by the first-order logic problems taken from the category FOFs of the last three years CASC [18] competition (2017-2019).We assign the value 2 to the Max literals number of C + (|C + | = 2).For the problems in 2017 and 2018, the CoProver runs with a CPU time limit of 300 s per problem; specifically, the CPU time limit of CSC-prover is 180s, and the CPU time limit of Prove9 is 120s.In addition, for the competition problems in 2019, we set the total CPU time limit to 180s.first, the maximum CPU time of CSC-prover was 120s, and then 60s is left to Prover9
126All the experiments are done in an Intel(R) CPU I7 @ 3.4 GHz and 8GB of main memory.The experimental results are presented in Table 1.
127Table 1 shows the comparison result of Prover9 and CoProver solving the competition problems in 2017-2019.The "Ratio" row is the radio of the number of solved problems of CoProver and Prover9.
128We can see that CoProver can solve 63% more problems than by Prover9.
129Next, the performance of the hybrid ATP system is analyzed further.Table 2 shows the results of different phases of CoProver.
130The "CSC-Prover" denotes the results that only the CSC-Prover based on S-CS rule is used in the first phase, the "Prover9+" row denotes the results of the second phase.In this stage, the input clause set S' for Prover9 is S ∪ R, where S is the original clauses set, and R is the obtained lemma set by CSC-Prover.The "New Solved" indicates the number of newly solved problems.That is, these problems cannot be proved by using Prover9 itself alone.For example, for the problems in 2017, the "Prover9+" can only solve 55 problems of them, while the other 18 problems cannot be solved only by Prover9.
131The "Ratio" is the ratio of the above two values.Higher ratios indicate that the combined system has a better performance than other provers.That is, the lemma-set R is more helpful to improve for Prover9.
132Table 2 also shows that the lemmas provided by S-CS rule-based ATP have a significant effect on improving Prover9's performance.
133Especially for the problems in 2019, even if they are harder.Actually, the performance of Prover9 has been improved to 47.22%.
134Figure 4 shows the relationship between the solution number and CPU time.It can be seen that with some lemmas (i.e., contradiction separation clause) are provided by CSC-Prover, most problems can be solved in a short time, where many problems cannot be solved by Prover9.
The Result of Benchmark Problems in TPTP
135We testify CoProver on the first-logic problems with rating = 1 from the TPTP-v6.1.0[19] problems library.The rating is an indicator of how hard the problem is, so the problem with rating = 1 meant that it could not be solved by any ATPs system.However, we proposed a hybrid ATP system based on the S-CS rule.Namely, the CoProver can solve 103 problems with rating = 1, within the CPU time limit 300 s.See the detailed proof in Appendix.
CONCLUSIONS AND FUTURE WORKS
136In this paper, we firstly proposed a simplified and effective implementation scheme for the S-CS rule.We also presented a dynamic heuristic strategy based on the S-CS rule scheme.Then, we introduced the CoProver as a novel combined ATP based on S-CS rule for more effectively and efficiently solving the problems with rating = 1.
137Experimental results showed that compared with the provers based on binary resolution, the performance of the prover based on S-CS rule is significantly improved.As a result, in the TPTP problem library, our proposed combinational ATP system CoProver successfully solved 103 problems, which could not be solved by any other existing prover.
138In the future, we will further optimize the dynamic coordination strategy based on the separation rules of contradictions.Notably, the first-order logic formula decision strategy of equivalent words will be optimized and improved.
Definition 2 . 3 .
139[9] (clause).A clause C is a finite set of literals and their disjunction, written as C = {l 1 , ..., l n }.The empty clause is denoted by.Especially if C has only on literal, the clause is called a Unit clause.
Definition 2 . 5 .
140[7] (Contradiction) Suppose a clause setS = {C 1 , C 2 , … , C m } is a standard contradiction (SC).If ∀(l 1 , … , l m ) ∈ ∏m i=1 C i there exists at least one complementary pair among{l 1 ,…, l m }.The symbol ∏ m i=1 C i denotes the cartesian product of C 1 , C 2 , … , C m .If S = Λ m i=1 C i is unsatisfiable, then S = Λ m i=1 C i is called a quasi contradiction (QC).Definition 2.6.[7] (S-CS Rule in First-Order Logic) Suppose a clause set S = {C 1 , C 2 , … , C m } in first-order logic.Without loss of generality, assume that there does not exist the same variables among C 1 , C 2 ,…, C m .The following inference rule that produces a new clause from S is called a standard contradiction separation rule, in short, an S-CS rule.
3 . 1 .
141Our clause selection strategy based on S-CS rule as follows: i. Static clause selection strategy (a) Selecting clauses from one of the queues by Least literals priority.(b) Selecting clauses from one of the queues by employing a stability-weight ratio.That will be discussed in Section 3.4.ii.Dynamic clause selection strategy Unlike the binary resolution, the dynamic strategy is one of the significant advantages of S-CS rule.The core idea is to guide the entire deduction process by the control strategy of the contradiction separation clause C + .(a) Dynamic strategy for controlling the number of literals in C + Each deduction based on the S-CS rule will generate a C + .In order to make the literals in C + be as little as possible, we set a threshold N r .Let |C + |denote the number of literals in C + .If |C + | > N, contradiction separation fails, i.e., this inference is invalid.Rollback and put the C g back to U, reselect given clause.
Figure 3
142Figure 3 The framework of CoProver.
Table 1
143Comparison
144of the number of solved problems from Conference on Automated Deduction ATP System Competition (CASC).
Table 2
145Analysis at the different phase of CoProver.
146Figure 4 First-order theorem (FOF) results-proof-time by CoProver.