Sequent Calculi for Data-Aware Modal Logics
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Computer Science. The day in computer science: software, systems and theory on arXiv.
Tom: I'm Tom.
Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.
Tom: We're looking at the paper: "Sequent Calculi for Data-Aware Modal Logics".
Paper summary: Jane: To summarize what they did, this paper introduces HXPathD, which is a hybrid modal logic designed to capture the navigational core of XPath along with features like data comparisons and node labels or keys. It essentially extends modal logic to handle the interplay between structure and data in graph-based systems.
Tom: The main claim they are making is that these logics can be viewed as modal systems capable of expressing both reachability statements and data-aware properties, such as value comparisons, which is what makes them powerful for querying semi-structured data.
Lu: They focus on HXPathD because it's particularly expressive in this landscape, capturing not just the navigational core but also data comparisons and key-based navigation operators. This allows them to handle things that purely navigational logics simply can't manage on their own.
Meng: From what I see, the paper is laying out a formal syntax for this language, defining path expressions and node expressions using specific symbols for things like empty paths or various logical combinations of propositions and nominals. It’s getting pretty detailed about how the logic is built syntactically.
Lalam: They define the grammar for HXPathD, showing how path expressions are defined by symbols like a symbol alpha or beta, while node expressions are defined by things like a proposition p or a nominal i. This defines exactly what kind of queries we can write in this system.
Tom: The paper then focuses on presenting the formal syntax and semantics of HXPathD, assuming certain sets of symbols for propositions, nominals, modalities, and data comparisons being disjoint sets of symbols. It sets up the mathematical environment for reasoning about these things.
Jane: And they specify that Modality and Comparison are finite while Proposition and Nominal are countably infinite. That’s a key detail because it helps them keep the system expressive but still manageable in terms of complexity analysis.
Lu: The paper then defines several abbreviations to complete all the cases to allow arbitrary paths inside a unary modality, using symbols like epsilon for the empty path or various abbreviations for standard logical operations like negation and conjunction. This is just making sure they cover every possible case defined by their grammar.
Meng: It’s interesting that they use these specific abbreviations, it shows they are really trying to ensure no case gets missed when defining the rules of the logic. That level of detail in the syntax suggests a lot of rigorous thought went into building this formal system.
Lalam: And ultimately, by presenting this formalism, they establish a framework for reasoning about queries over graph-structured data that can incorporate these necessary data comparison features formally.
Tom: So it’s establishing the language and semantics first, and then moving on to the proof theory which is where they show how strong this system actually is in terms of what it can prove.
Conclusion: Jane: So looking at the whole picture of this paper, it’s about providing a rigorous mathematical foundation for these data-aware modal logics, specifically focusing on HXPathD and its sequent calculus. The authors are Carlos Areces and Valentin Cassano, among others.
Tom: It turns out the main result they've achieved is presenting a sound and complete Gentzen-style sequent calculus for HXPathD that includes invertibility of all rules and cut elimination, which means their formal system is very well-behaved mathematically.
Lu: The implication for researchers in this field is that we now have a way to perform deep logical analysis of query languages over graph data by using these calculi, which helps us understand the structure and limitations of what these languages can actually achieve.
Meng: For those of us in production, it means we have a solid proof-theoretic basis for trusting the underlying logic when building systems that process semi-structured queries. It gives us confidence that the formal logic is robust enough to handle complex data interactions.
Lalam: It sets the groundwork for extending proof-theoretic techniques to a broader class of modal systems, which means this isn't just about one specific query language; it opens up new avenues for analyzing similar complex semi-structured data manipulation systems.
Jane: In simple terms, this paper gives us a complete set of rules—the sequent calculus—for HXPathD so we can rigorously study the expressive power of these query languages and understand exactly what they are capable of doing.
Tom: The authors are Carlos Areces, Valentin Cassano, Danae Dutto, and Raul Fervari, and it provides a formal way to reason about queries that mix navigation with data comparisons.
Lu: So the big picture is that this work contributes to the proof-theoretic foundations of data-aware modal logics by enabling a deeper logical analysis of query languages over graph-structured data.
Jane: It’s important because it shows how to formally handle those complex, mixed requirements in a way that's both expressive and analyzable.
Universidad Nacional de Córdoba · Universidad Nacional de Río Cuarto
cs.LO
Submitted: 2025-10-02
Updated: 2026-12-02
Comments: In Proceedings LSFA 2025, arXiv:2509.23739. Full technical details and omitted proofs can be found in an enclosed ancillary file
Journal ref: EPTCS 430, 2025, pp. 8-25
DOI: 10.4204/EPTCS.430.2
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 83/100
The gist: Data-aware modal logics offer a powerful formalism for reasoning about semi-structured queries in languages such as DataGL, XPath, and GQL.
Key concepts
- DataGL/XPath/GQL
- These are query languages used to navigate and extract information from semi-structured data stored in graph databases. They allow users to define complex paths and conditions to retrieve specific pieces of information, making them the target domain for these new logics.
- HXPathD
- This is a hybrid modal logic that combines the navigational core of XPath with features for handling data comparisons, node labels (keys), and key-based navigation operators. It allows logical reasoning over both the structure of graph data and specific data values.
- Sequent Calculus
- A sequent calculus is a formal system used to prove theorems in logic. It works by manipulating 'sequents,' which are statements that look like logical formulas on either side of a turnstile symbol (⊢). The rules define how to transform one sequent into another, allowing for the systematic proof of logical validity.
- Invertible Rules
- Invertible rules mean that every inference rule in the calculus has a corresponding inverse operation. This property is important because it ensures that if you can prove something using a rule, you can also effectively reverse that process, which simplifies the overall logical analysis.
Terminology
Summary
Data-aware modal logics offer a powerful formalism for reasoning about semi-structured queries in languages such as DataGL, XPath, and GQL. p. 0 ar
Raul Fervari
Universidad Nacional de Córdoba
and CONICET, Argentina
rfervari@unc. ar
Data-aware modal logics offer a powerful formalism for reasoning about semi-structured queries in
languages such as DataGL, XPath, and GQL.Where the paper says it
Introduction to Data-Aware Logics
Semi-structured data organization is reemerging as a flexible paradigm for representing and storing information, offering a contrast to the rigid rows-and-columns model of traditional relational databases. To support such range of applications, graph databases rely on expressive query languages designed to navigate and extract information from their underlying structures,ϕ,ψ:= p i ⊥ ϕ → ψ @iϕ ⟨a⟩ϕ ⟨α =c β⟩ ⟨α̸=c β⟩, where p ∈ Prop, i ∈ Nom, a ∈ Mod, and c ∈ Cmp. p. 0 Graph databases are widely adopted in domains such as the web,
social networks, fraud detection, and recommendation engines, and are implemented in tools like Neo4j
and Amazon Neptune. To support such range of applications, graph databases rely on expressive query
languages designed to navigate and extract information from their underlying structures. Definition 2. A (hybrid data) model is a tuple M = ⟨N,{Ra}a∈Mod,{≈c}c∈Cmp,g,V⟩, where N is a nonempty set of nodes; each Ra is a (binary) accessibility relation on N; each ≈c is an equivalence relation
on N, called a comparison; g : Nom → N is a nominal assignment; and V : Prop → 2
N is a valuation.Where the paper says it
Where the paper says it
Sequent Calculus Construction
The calculus G for HXPathD draws inspiration from the modal system with equality developed in [35], but extends it to accommodate the distinctive features of HXPathD: nominals, satisfiability modalities, path expressions, and data comparisons. The inference rules are organized into five groups corresponding to different fragments of HXPathD. p. 5 PROPOSITIONAL RULES
(Ax)‡
ϕ,Γ ⊢ ∆,ϕ
(⊥) @i⊥,Γ ⊢ ∆
Γ ⊢ ∆,@iϕ @iψ,Γ ⊢ ∆
(→L) @i(ϕ → ψ),Γ ⊢ ∆
@iϕ,Γ ⊢ ∆,@iψ
(→R)
Γ ⊢ ∆,@i(ϕ → ψ)
‡ ϕ is of the form @i p, @i j, or ⟨i: =c j:⟩
RULES FOR NOMINALS
@ii,Γ ⊢ ∆
(@T)
Γ ⊢ ∆
@jk,@i j,@ik,Γ ⊢ ∆
(@5) @i j,@ik,Γ ⊢ ∆
@i j,Γ ⊢ ∆
(Nom)†
Γ ⊢ ∆
@jϕ,@i j,@iϕ,Γ ⊢ ∆
(S1)
‡
@i j,@iϕ,Γ ⊢ ∆
@i⟨a⟩k,@jk,@i⟨a⟩j,Γ ⊢ ∆
(S2) @jk,@i⟨a⟩j,Γ ⊢ ∆
⟨j: =c k:⟩,@i j,⟨i: =c k:⟩,Γ ⊢ ∆
(S3) @i j,⟨i: =c k:⟩,Γ ⊢ ∆
†
j is not in the conclusion ‡ ϕ is of the form p, ⊥, or ⟨a⟩k
RULES FOR MODALITIES
@iϕ,Γ ⊢ ∆
(@L) @j@iϕ,Γ ⊢ ∆
Γ ⊢ ∆,@iϕ
(@R)
Γ ⊢ ∆,@j@iϕ
@i⟨a⟩j,@jϕ,Γ ⊢ ∆
(⟨a⟩L)†
@i⟨a⟩ϕ,Γ ⊢ ∆
@i⟨a⟩j,Γ ⊢ ∆,@i⟨a⟩ϕ,@jϕ
(⟨a⟩R) @i⟨a⟩j,Γ ⊢ ∆,@i⟨a⟩ϕ
@i⟨α⟩j,@i⟨β⟩k,⟨j: ▲ k:⟩,Γ ⊢ ∆
(⟨▲⟩L)‡
@i⟨α ▲ β⟩,Γ ⊢ ∆
@i⟨α⟩j,@i⟨β⟩k,Γ ⊢ ∆,@i⟨α ▲ β⟩,⟨j: ▲ k:⟩
(⟨▲⟩R) @i⟨α⟩j,@i⟨β⟩k,Γ ⊢ ∆,@i⟨α ▲ β⟩
†
j is not in the conclusion ‡
j and k are different and not in the conclusion
RULES FOR DATA COMPARISON
⟨i: =c i:⟩,Γ ⊢ ∆
(EqT)
Γ ⊢ ∆
⟨j: =c k:⟩,⟨i: =c j:⟩,⟨i: =c k:⟩,Γ ⊢ ∆
(Eq5)
⟨i: =c j:⟩,⟨i: =c k:⟩,Γ ⊢ ∆
Γ ⊢ ∆,⟨i: =c j:⟩
(NEqL)
⟨i: ̸=c j:⟩,Γ ⊢ ∆
⟨i: =c j:⟩,Γ ⊢ ∆
(NEqR)
Γ ⊢ ∆,⟨i: ̸=c j:⟩
STRUCTURAL RULES
Γ ⊢ ∆,ϕ ϕ,Γ
′ ⊢ ∆
′
(Cut)
Γ,Γ
′ ⊢ ∆,∆
′
Γ ⊢ ∆
(WL)
ϕ,Γ ⊢ ∆
Γ ⊢ ∆
(WR)
Γ ⊢ ∆,ϕ
Figure 2: Sequent Calculus G for HXPathD. The inference rules of G are organized into five groups, each corresponding to a different fragment
of the language of HXPathD.Where the paper says it
Proof-Theoretic Properties
The calculus G enjoys soundness, completeness, and invertibility of rules. Theorem 9 (Soundness). p. 7 Soundness of G follows from Lemma 8 by induction on the structure of a derivation of a sequent. Theorem 9 (Soundness). Theorem 9 (Soundness). Every provable sequent in G is valid, i. iff n = n
′ and M,n ⊩ ϕ
M,n,n
′ ⊩ αβ iff exists n′′ ∈ N s. M,n,n
′′ ⊩ α and M,n
′′
,n
′ ⊩ β
M,n ⊩ p iff n ∈ V(p)
M,n ⊩ i iff g(i) = n
M,n ⊩ ⊥ never
M,n ⊩ ϕ → ψ iff M,n ⊩ ϕ implies M,n ⊩ ψ
M,n ⊩ @iϕ iff M,g(i) ⊩ ϕ
M,n ⊩ ⟨a⟩ϕ iff exists n′ ∈ N s. Soundness of G follows from Lemma 8 by induction on the structure of a derivation of a sequent. Theorem 9 (Soundness). Theorem 11. Every rule in G is invertible.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Correspondence with Basic Hybrid Logic
The calculus G′ simulates the sequent calculus for H (@) in [17], which we refer to as GH (@). This shows that every derivation in GH (@) can be simulated in G′ <ref:1071. p. 3 The following example clarifies this intuition. 1 shows a simple example of a data graph. Once again, one can consider generalized versions of the diamond rules in which
the atomic modality a is replaced by an arbitrary path expression α. These generalized forms are
available as derived rules within the system.Where the paper says it
Where the paper says it
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Robust reasoning over semi-structured data structures: The system can reason about reachability statements and data-aware properties, such as value comparisons, in languages like DataGL and XPath through the use of HXPathD.
-
Formal proof analysis of query languages: The system enables a deeper logical analysis of query languages over graph-structured data by providing a sound and complete Gentzen-style sequent calculus for HXPathD.
-
Verification and consistency checking: The calculus allows for the checking of consistency in XML documents and the verification of properties expressed through complex node expressions, as seen in Example 1.
-
Automated proof search capabilities: Because all rules in the sequent calculus are invertible, the system is well-suited for proof search procedures, allowing backward reasoning from conclusions to premisses without loss of validity.
-
Simulation of existing logic systems: A subcalculus derived from G can simulate the sequent calculus for Basic Hybrid Logic H (@), which is beneficial when extending G to more expressive fragments.
Abstract
Data-aware modal logics offer a powerful formalism for reasoning about semi-structured queries in languages such as DataGL, XPath, and GQL. In brief, these logics can be viewed as modal systems capable of expressing both reachability statements and data-aware properties, such as value comparisons. One particularly expressive logic in this landscape is HXpathD, a hybrid modal logic that captures not only the navigational core of XPath but also data comparisons, node labels (keys), and key-based navigation operators. While previous work on HXpathD has primarily focused on its model-theoretic properties, in this paper we approach HXpathD from a proof-theoretic perspective. Concretely, we present a sound and complete Gentzen-style sequent calculus for HXpathD. Moreover, we show all rules in this calculus are invertible, and that it enjoys cut elimination. Our work contributes to the proof-theoretic foundations of data-aware modal logics, and enables a deeper logical analysis of query languages over graph-structured data. Moreover, our results lay the groundwork for extending proof-theoretic techniques to a broader class of modal systems.
Sources
Related papers
- Bit-Precise CHC Satisfiability Using Theory-Modular Reasoning
- interwhen: A Generalizable Framework for Steering Reasoning Models with Test-time Verification
- On Higher-Order Reachability Games vs May Reachability
- A Non-Dichotomy for CSPs of Stable omega-Categorical Structures
- A Deeper Look at Depth: Stable Generation Accounting for Quantifier Reasoning
- Formalizing Hyperspaces and Operations on Subsets of Polish Spaces over Abstract Exact Real Numbers