TY - GEN
T1 - Validity of Contextual Formulas
AU - Esparza, Javier
AU - Rubio, Rubén
N1 - Publisher Copyright:
© Javier Esparza and Rubén Rubio.
PY - 2024/9
Y1 - 2024/9
N2 - Many well-known logical identities are naturally written as equivalences between contextual formulas. A simple example is the Boole-Shannon expansion c[p] ≡ (p ∧ c[true]) ∨ (¬ p ∧ c[false]), where c denotes an arbitrary formula with possibly multiple occurrences of a “hole”, called a context, and c[φ] denotes the result of “filling” all holes of c with the formula φ. Another example is the unfolding rule µX.c[X] ≡ c[µX.c[X]] of the modal µ-calculus. We consider the modal µ-calculus as overarching temporal logic and, as usual, reduce the problem whether φ1 ≡ φ2 holds for contextual formulas φ1, φ2 to the problem whether φ1 ↔ φ2 is valid. We show that the problem whether a contextual formula of the µ-calculus is valid for all contexts can be reduced to validity of ordinary formulas. Our first result constructs a canonical context such that a formula is valid for all contexts iff it is valid for this particular one. However, the ordinary formula is exponential in the nesting-depth of the context variables. In a second result we solve this problem, thus proving that validity of contextual formulas is EXP-complete, as for ordinary equivalences. We also prove that both results hold for CTL and LTL as well. We conclude the paper with some experimental results. In particular, we use our implementation to automatically prove the correctness of a set of six contextual equivalences of LTL recently introduced by Esparza et al. for the normalization of LTL formulas. While Esparza et al. need several pages of manual proof, our tool only needs milliseconds to do the job and to compute counterexamples for incorrect variants of the equivalences.
AB - Many well-known logical identities are naturally written as equivalences between contextual formulas. A simple example is the Boole-Shannon expansion c[p] ≡ (p ∧ c[true]) ∨ (¬ p ∧ c[false]), where c denotes an arbitrary formula with possibly multiple occurrences of a “hole”, called a context, and c[φ] denotes the result of “filling” all holes of c with the formula φ. Another example is the unfolding rule µX.c[X] ≡ c[µX.c[X]] of the modal µ-calculus. We consider the modal µ-calculus as overarching temporal logic and, as usual, reduce the problem whether φ1 ≡ φ2 holds for contextual formulas φ1, φ2 to the problem whether φ1 ↔ φ2 is valid. We show that the problem whether a contextual formula of the µ-calculus is valid for all contexts can be reduced to validity of ordinary formulas. Our first result constructs a canonical context such that a formula is valid for all contexts iff it is valid for this particular one. However, the ordinary formula is exponential in the nesting-depth of the context variables. In a second result we solve this problem, thus proving that validity of contextual formulas is EXP-complete, as for ordinary equivalences. We also prove that both results hold for CTL and LTL as well. We conclude the paper with some experimental results. In particular, we use our implementation to automatically prove the correctness of a set of six contextual equivalences of LTL recently introduced by Esparza et al. for the normalization of LTL formulas. While Esparza et al. need several pages of manual proof, our tool only needs milliseconds to do the job and to compute counterexamples for incorrect variants of the equivalences.
KW - contextual rules
KW - temporal logic
KW - µ-calculus
UR - http://www.scopus.com/inward/record.url?scp=85203553871&partnerID=8YFLogxK
U2 - 10.4230/LIPIcs.CONCUR.2024.24
DO - 10.4230/LIPIcs.CONCUR.2024.24
M3 - Conference contribution
AN - SCOPUS:85203553871
T3 - Leibniz International Proceedings in Informatics, LIPIcs
BT - 35th International Conference on Concurrency Theory, CONCUR 2024
A2 - Majumdar, Rupak
A2 - Silva, Alexandra
PB - Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
T2 - 35th International Conference on Concurrency Theory, CONCUR 2024
Y2 - 9 September 2024 through 13 September 2024
ER -