Articles

More efficient proof-search for sequents of temporal logic

Efektyvesne˙ laiko logikos sekvenciju˛ i˛rodymo paieška

Romas Alonderis
Vilnius University, Lituania

More efficient proof-search for sequents of temporal logic

Lietuvos matematikos rinkinys, vol. 63 Ser. A, pp. 1-8, 2022

Vilniaus Universitetas

Recepción: 03 Mayo 2022

Publicación: 10 Diciembre 2022

Abstract: The present paper deals with efficiency improvement of backward proof-search of sequents of propositional linear temporal logic, using a loop-type sequent calculus. The improvement is achieved by syntactic transformation of sequents into equivalent to them simpler ones. It is proved that some formulas can be removed from sequents with no impact on their derivability.

Keywords: temporal logics, backward proof-search, loop-type sequent calculi.

Summary: Šiame straipsnyje pateikiamas dalinis metodas leidžiantis gauti efektyvesnę sekvenciju˛ i˛rodymo paiešką propozicinei tiesinio laiko logikai, naudojant ciklini˛ sekvencini˛ skaičiavimą. Šis metodas yra pagri˛stas sintaksine sekvenciju˛ transformacija i˛ joms ekvivalenčias paprastesnes sekvencijas. Straipsnyje taip pat parodoma, kad kai kurios formule˙s gali buŻti pašalintos iš sekvenciju˛ niekaip nepaveikiant ju˛ i˛rodomumo.

Keywords: laiko logika, atgaline˙, irodymo paieška, cikliniai sekvenciniai skaičiavimai.

1 Introduction

Propositional linear temporal logic (PLTL) is used in computer science for specification and verification of programs [2, 5]. Sequent calculi are convenient tools for check of formula validity by means of proof-search. Various tableaux and sequent deductive systems are considered in the literature: tableaux proof-search systems [9, 13]; infinitary sequent calculi containing ω-type induction rule [10]; sequent calculi with invariant-like rule [7, 11, 12]; saturated sequent calculi [8]; a cut-free and invariant-free sequent calculus [4]; loop-type sequent calculi based on sequent history method [3, 6]; loop-type sequent calculus based on derivation loop check [1]. Backward proof-search using the sequent calculus GLT introduced in [1] involves checks of global conditions, so called derivation loops. The checks hinder efficiency of proof-search. The present paper concerns with some partial methods allowing us to make proof-search shorter, reducing the number of the checks and hence making the proof-search more efficient. This is achieved by syntactic transformation of sequents into equivalent to them simpler ones. It has been proved that some formulas can be removed from sequents with no impact of their derivability. The present paper is organized as follows. In Section 2, we recall the syntax and semantics of PLTL and the calculus GLT. The correct sequents are defined in Section 3. Sequent simplification and backward proof-search reduction are considered in Section 4. Some concluding remarks are in Section 5.

2 Syntax, semantics, and sequent calculus GLT

The language of PLTL contains a set P of propositional symbols { p , p 1 , p 2 , . . . , q , q 1 , q 2 , . . . } the logical operators ¬,∨,∧,⊃, , temporal operators □ (“henceforth always”) and ⃝ (“next”). The language does not contain the temporal operator ♢ (“sometimes”), assuming that = ¬ ¬ . Propositional symbols are called atomic formulas. The formulas of PLTL are inductively defined as follows:

: := p ¬ ψ ψ ψ

The Greek letters and ψ are used to denote arbitrary formulas. The expression O n denotes the sequence of n ' o ' - s , e . g . , o 2 p = o o p . .

An interpretation M= (N,I) consists of the set of natural numbers and the function I : 2 , where 2 is the set of subsets of . The semantics of PLTL formulas is provided by the satisfaction relation :

M , j p , i f f p I ( j ) ;

M , i ¬ , i f f M , i ;

M , i V ψ , i f f M , i o r M , i ψ ;

M , i ψ , i f f M , i a n d M , i ψ ;

M , i ψ , i f f M , i o r M , i ψ ;

M , i O , i f f M , i + 1 ;

M , i , i f f M , j $ f o r a l l j i .

An interpretation M is a model for a formula , iff M,0|= . A formula is called valid, in notation, iff every interpretation is a model for

The sequent calculus GLT is defined in [1]. We recall here some definitions. The temporal rules:

| T Σ , o T o , Σ ' ( o ) , o , T , T ( ) ,

T , T , o T , ( )

Here: Γ,∆,Σ,Σ′ denote finite, possibly empty, multisets of formulas, where Σ∪Σ′ consists of atomic formulas; the conclusion is not an axiom and T θ in (O).

Given a sequent S, a GLT proof-search tree with the sequent S at the root is constructed in usual way by subsequently applying backwards the GLT derivation rules to S and the sequents obtained in the course of the tree construction. A proof search tree is denoted by V. The expression V(S) denotes that S is the root of V.

We say that a sequent S′ subsumes S ( S ' S in notation), iff S′ can be inferred from S by the structural rule of weakening. If S′ = S , then we say S′ strongly subsumes S.

Definition 1. Given a proof-search tree, the upward path p from some sequent S in the tree to S′ inclusive is called a (strong) derivation loop, [S − S′] in notation, iff: 1) the length of p is greater than 0 and 2) S′ ⪰ S (S′ = S) . The nodes marked with S and S′ are called the base and terminal of [S − S′] , respectively. The sequents S and S′ are called the base and terminal sequents of [S − S′] , respectively. It is true that λ(S) ⩽λ (S′) .

Definition 2. A (strong) derivation loop [S − S′] is called a (strong) derivation loop with the universality formula , iff: 1) S = (Γ⇒ ∆,θ), 2) S′= Π,Γ ⇒ ∆,θ,Λ where θ { , } , and 3) [S − S′] contains the right premise of ( ) , and does not contain the left premise of ( ) .

If a derivation loop is not the derivation loop with a universality formula, then the derivation loop is called α-void.

The following proposition is proved in [1]:

Proposition 1.Any derivation loop [S − S′] has an application of. (O).

Definition 3. A sequent S is called derivable in GLT ( ⊢ S in notation), iff there exists a backward proof-search tree V(S) such that each leaf of V(S) is an axiom or a terminal sequent of a derivation loop with some universality formula. Such a tree V(S) is called a derivation of S or a derivation tree.

3 Correct sequents

We write ψ ≡ φ , iff M , i implies M , i and vice versa for any pair M,i.

Proposition 2.

O ( θ ψ ) O θ ψ , O η η O ,

where θ ∈ {∨,∧,⊃} and η ∈ {□,¬} .

Proof. Let us consider, e.g., the case when η = □ . If M , i O ψ , then M , i + 1 ψ . Hence M , j + 1 ψ for all j i . This fact implies M , j O ψ for all j i . We obtain M , i O ψ .

If M , i O ψ , then M , j O ψ for all j i . Hence M , j + 1 ψ for all j i .

This fact implies M , i + 1 ψ . It follows that M , i O ψ .

The remaining cases are considered similarly, using the semantics of propositional connectives and ' O ' .

Corollary 1. If ψ , then i f f ψ .

Using Proposition 2,wepusheach ' O ' inward in formulas so that it binds only propositional symbols and other ' O ' . For example, the formula

O ( q O ¬ ( p q 1 ) )

is transformed into the formula ( O q ¬ ( O O p O O q 1 ) . Such formulas are called correct. A sequent S is called correct, iff each member of S is correct or of the type O , where is correct.

Proposition 3. If S is correct, then all sequents in any backward proof-search tree V (S) are correct.

Proof. The proof follows from the obvious fact that if the conclusion of an arbitrary GLT derivation rule is a correct sequent, then any premise of this rule is a correct sequent too.

From now on, we consider only correct sequents. The generality is not lost, since any formula can be transformed into a correct formula ψ such that ψ , using Proposition 2. Hence i f f ψ , based on Corollary 1 and the fact that GLT is sound and complete, according to Theorems 4.4 and 5.4, respectively, in [1].

4 Sequent and backward proof-search simplification

The sequent τ(S) is obtained from S by substituting q i for. O n p i , where n > 0 , O n p i is not a sub-formula of O O n p i in S, and all q i are different and do not occur in S. The obtained sequent has no formulas of the type O n p , where n > 0 . For example:

T ( o ( o o p o o o p ) o o o p , p , q ) = o ( q 1 q 2 ) q 1 , p , q .

A signed formula σ is defined inductively as follows:

σ { p σ i f = p , 1 σ θ σ 2 σ i f = 0 θ 2 , w h e r e θ { , V } , 1 η σ 2 σ i f = 1 2 σ i f = ¬ ψ θ σ Ψ σ i f = θ ψ , w h e r e θ { O , }

where η, σ ∈ {l,r} and η σ (“l” stands for left side of the sequent (antecedent) and “r” stands for the right side of the sequent (succedent)). If T = ( q 1 , . . . , q m ) , then T σ = ( q 1 σ , . . . , q m σ ) . If S = (Π ⇒ ∆) , then

s s g = l r

S s g is called a signed sequent. A sequent S is called l - f r e e , if S s g does not contain l . The maximal class of l - f r e e sequents is denoted by ( \ l ) .

Lemma 1.If S ( \ l ) , then any path in V(S) that goes via the conclusion and left premise of ( ) is not a derivation loop.

Proof. If

| T | | T O , | T , ( )

is in V(S), then any sequent in any upward path π 1 starting with the left premise contains at least one occurrence of less than any sequent in any upward path π 2 ending by the conclusion. Hence no sequent in π 1 can subsume any sequent in π 2 .

Lemma 2.If S ( \ l ) , then any derivation loop in V S) consists of sequents of the type O , and is strong.

Proof. Let us consider any path π in V(S). Assume that π starts with a sequent of the type O , . If π is a derivation loop, then there is no left premise of ( ) in π , according to Lemma 1.Hence π consists of sequents of type O ' , Λ ' and is strong. If the path π starts with a sequent which is not of the type O , Λ , then it cannot subsume any sequent above (O) in π . Hence π is not a derivation loop, based on Proposition 1.

Lemma 3.If S ( \ l ) , then any connected component in any V(S) consists of one derivation loop.

Proof. The proof follows from Lemmas 1 and 2.

Corollary 2.If S ( l ) , then there is no β-void derivation loop in any V(S).

Theorem 1.If S ( \ l ) , then iff T ( S ) .

Proof. The Theorem is proved by induction on the derivation height h. If h = 0 , then both S and T ( S ) are axioms. Let h > 0 . If S is not of type ( O , Λ ) , then neither S nor T ( S ) can be in a derivation loop, according to Lemma 2.Thetheoremisproved traditionally by the inductive hypothesis in this case. Let S : ( O , , Λ ) be the base sequent of a derivation loop [ S S 1 ] and the derivation of S start at the bottom by

| , , O Λ | | O , Λ | S : , , O ( )

We have S = S 1 , by Lemma 2.Lemma 1 implies that any sequent S L that is the left premise of any application of ( ) the conclusion of which is in [ S S 1 ] cannot be in [ S S 1 ] . Based on this fact, we apply the inductive hypothesis to each such S L in the considered derivation tree. S = S 1 implies T ( S ) = T ( S 1 ) . Hence [ T ( S ) T ( S 1 ) ] is a derivation loop. We get T ( S ) . The direction from T ( S ) to S is considered in the same way.

Let S : ( O Λ ) be the base sequent of a derivation loop [ S S 1 ] and the derivation of S start at the bottom by

| Λ | S : O Λ ( O )

Only ( ) can be backward applied to the premise and we consider this case in the same way as the previous one.

Example 1. If S ( \ l ) , then S iff T ( S ) , according to Theorem1. Hence we can use T ( S ) so that to check if S is derivable. The reduction of S to T ( S ) may substantially reduce backward proof-search because the number of ' O ' in T ( S ) is diminished in comparison with S. For example, let S = ( p , o p , o o p p ) . The backward proof-search of S is as follows:

s 1 : p o p p p p p o p p p p , o p p p , o p o p p , o p p p , o p , o o p p p , o p , o o p o p p , o p , o o p p

We get S because no rule is backward applicable to S 1 . Using t ( s ) = ( p , q , q 1 p ) instead of S, the same result is achieved as follows:

S 1 : p o p p p , q , q 1 p p , q , q 1 o p p , q , q 1 p

We obtain T ( S ) because no rule is backward applicable to S 1 . Hence S , according to Theorem 1.Wehave 3 rule applications in the backward proof-search of T ( S ) versus 8 rule applications in the backward proof-search of S.

Example 2. Let S be any non-axiom sequent of the type Ξ Ξ 1 , where each formula in Ξ and Ξ 1 is of the type O n p ( n 0 ) . It follows from Theorem 1 that S is not derivable because T ( S ) is an atomic non-axiom sequent, i.e., no further backward proof-search is needed.

Sequents of the type Ξ , T , Ξ 1 , where only propositional symbols and ' O ' occur in ( Ξ , Ξ 1 ) , are called canonical. Let O n p ( n 0 ) be a member of a canonical sequent Ξ , T , Ξ 1 . The formula O n p is called redundant in the sequent if p does not occur in ( T , ) .

A backward proof-search tree V is called a one-step reduction tree, iff 1) there is at most one application of ( O ) on each branch and 2) each non-atomic and non-axiom leaf of V is a premise of ( O ) . It is easy to see that every leaf of any one-step reduction tree is an axiom or a canonical sequent. We have that proof-search of an arbitrary sequent can be reduced to proof-search of canonical sequents.

Theorem 2.If S ' is obtained from a non-axiom canonical sequent S by dropping redundant formulas, then S iff S ' .

Proof. If S ' , then S , using the rule of weakening and Theorem 6.5 in [1]. Let S . It follows that S because GLT is sound, Theorem 4.4 in [1]. It is easy to see that this fact implies S ' . Hence S ' because GLT is complete, Theorem 5.4 in [1].

Dropping redundant members allows us to simplify sequents and reduce backward proof-search in some cases. Let us consider, e. g., the sequent S = ( p o o p ) . The formula o o q is redundant in S. We drop it and obtain p . This sequent is equivalent to S by Theorem 2.

5 Concluding remarks

In the present paper, correct sequents have been defined and it has been shown that any sequent S is equivalent to some correct sequent. The sequent T ( S ) for any correct sequent S and the class of sequents ( \ l ) have been defined. We have proved that if S belongs to this class, then it is derivable if and only if T ( S ) is derivable, Theorem 1.Thatenablestocheckderivabilityof S by means of a simpler sequent T ( S ) , which substantially reduces backward proof-search in cases when S has many occurrences of ' O ' . Also, redundant formulas have been defined and it has been proved that dropping redundant formulas from a canonical sequent has no impact on its derivability, Theorem 2. Theoptimizationsofbackwardproof-searchpresentedin the present paper concern only partial cases. The general case could be a topic for further investigation.

References

[1] R. Alonderis, R. Pliuškevičius, A. Pliuškevičiene˙, H. Giedra. Loop-type sequent calculi for temporal logic. J. Autom. Reason, 64(8):1663–1684, 2020.

[2] C. Baier, J.P. Katoen. Principles of Model Checking. The MIT Press Cambridge, Massachusetts, London, England, 2008.

[3] K. Brünnler, M. Lange. Cut-free sequent systems for temporal logic. J. Log. Algebr. Program.,76(2):216–225, 2008.

[4] J. Gaintzarain, M. Hermo, P. Lucio, M. Navarro, F. Orejas. A cut-free and invariantfree sequent calculus for pltl. In J. Duparc, T.A. Henzinger(Eds.), Computer Science Logic. CSL 2007, volume 4646 of Lect. Notes Comput. Sci., pp. 481–495, 2007. https://doi.org/10.1007/978-3-540-74915-8_36.

[5] M. Huth, M. Ryan. Logic in Computer Science: Modelling and Reasoning about Systems. Cambridge University Press, 2012.

[6] I. Kokkinis, T. Studer. Cyclic proofs for linear temporal logic. In D. Probst, P. Schuster(Eds.), Concepts of Proof in Mathematics, Philosophy, and Computer Science, pp. 171–192. De Gruyter, Berlin, Boston, 2016.

[7] B. Paech. Gentzen-systems for propositional temporal logics. In E. Börger, H.K. Büning, M.M. Richter (Eds.), CSL ’88. CSL 1988, volume 385 of Lect. Notes Comput. Sci., pp. 240–253. Springer, Berlin, Heidelberg, 1988. https://doi.org/10.1007/BFb0026305.

[8] R. Pliuškevičius. On saturated calculi for linear temporal logic. In A.M. Borzyszkowski, S. Sokołowski(Eds.), Mathematical Foundations of Computer Science 1993. MFCS 1993, volume 711 of Lect. Notes Comput. Sci., pp. 640–649. Springer, Berlin, Heidelberg, 1993. https://doi.org/10.1007/3-540-57182-5_55.

[9] S. Schwendimann. A new one-pass tableau calculus for PLTL. In Automated Reasoning with Analytic Tableaux and Related Methods. TABLEAUX 1998, volume 1397 of Lect. Notes Comput. Sci., pp. 277–291. Springer, Berlin, Heidelberg, 1998. https://doi.org/10.1007/3-540-69778-0_28.

[10] G. Sundholm. A completeness proof for an infinitary tense-logic. Theoria, 43:47–51, 1977. https://doi.org/10.1111/j.1755-2567.1977.tb00778.x.

[11] M. Valiev. On temporal logic of von Vright. In Soviet-Finland Colloquim on Logic, Moscow, pp. 7–11, 1979 (in Russian).

[12] M.K. Valiev. Decision complexity of variants of propositional dynamic logic. In P. Dembinski(Ed.), Mathematical Foundations of Computer Science 1980. MFCS 1980, volume 88 of Lect. Notes Comput. Sci., pp. 656–664, Berlin, 1980. Springer-Verlag.

[13] P. Wolper. The tableau method for temporal logic: an overview. Log. Anal., 28:119–136, 1985.

HTML generado a partir de XML-JATS4R por