First-Order and Temporal Logics for Nested Words
Authors:
- Rajeev AlurRARajeev Alur
- Marcelo ArenasMAMarcelo Arenas
- Pablo BarceloPBPablo Barcelo
- Kousha EtessamiKEKousha Etessami
- Neil ImmermanNINeil Immerman
- Leonid LibkinLLLeonid Libkin
Preprint
Abstract
Nested words are a structured model of execution paths in procedural programs, reflecting their call and return nesting structure. Finite nested words also capture the structure of parse trees and other tree-structured data, such as XML. We provide new temporal logics for finite and infinite nested words, which are natural extensions of LTL, and prove that these logics are first-order expressively-complete. One of them is based on adding a "within" modality, evaluating a formula on a subword, to a logic CaRet previously studied in the context of verifying properties of recursive state machines (RSMs). The other logic, NWTL, is based on the notion of a summary path that uses both the linear and nesting structures. For NWTL we show that satisfiability is EXPTIME-complete, and that model-checking can be done in time polynomial in the size of the RSM model and exponential in the size of the NWTL formula (and is also EXPTIME-complete). Finally, we prove that first-order logic over nested words has the three-variable property, and we present a temporal logic for nested words which is complete for the two-variable fragment of first-order.Keywords
All Related Versions
This publication has 16 references indexed in Scilit:
- Regularity Problems for Visibly Pushdown LanguagesLecture Notes in Computer Science, 2006
- Adding Nesting Structure to Words2006
- A Temporal Logic of Nested Calls and Returns2004
- The complexity of first-order and monadic second-order logic revisited2003
- Query automata over finite treesTheoretical Computer Science, 2002
- Temporal logic with forgettable past2002
- A BDD-Based Model Checker for Recursive Programs2001
- Bebop: A Symbolic Model Checker for Boolean Programs2000
- Expressive completeness of temporal logic of treesJournal of Applied Non-Classical Logics, 1992
- Definability with bounded number of bound variablesInformation and Computation, 1989