Efficient Temporal Datalog Materialisation for Composite Event Recognition
Pith reviewed 2026-05-08 18:31 UTC · model grok-4.3
The pith
Mapping fragments of event languages to Temporal Datalog enables one uniform engine for composite event recognition in streams.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Practical fragments of prominent event specification languages can be mapped into Temporal Datalog->-, and Streaming Trigger Graphs extend Datalog materialisation to support efficient evaluation over streams of symbolic events, producing a uniform recognition mechanism that has the potential to generalise across a wide range of languages.
What carries the argument
Streaming Trigger Graphs, an extension of Datalog materialisation techniques that maintains correctness and efficiency gains when evaluating Temporal Datalog->- over streaming data with no future dependencies.
If this is right
- Multiple event languages can share a single recognition engine instead of requiring separate implementations.
- Expressivity comparisons between languages become direct through their common mappings.
- Timely detection of composite events remains feasible even on high-velocity symbolic streams.
- Optimisations developed for Datalog materialisation can be reused for event recognition tasks.
Where Pith is reading between the lines
- The common mapping may expose which temporal features in existing languages are redundant or interchangeable.
- The technique could be tested on live streams from domains like IoT monitoring to check whether efficiency holds beyond the evaluated cases.
- If the mappings scale, it suggests a route toward standardised event-processing platforms that accept input in several specification styles.
Load-bearing premise
That fragments of event specification languages can be mapped to Temporal Datalog->- while keeping their original meaning and that Streaming Trigger Graphs continue to deliver both correctness and efficiency on real streaming inputs.
What would settle it
A concrete pattern from one of the source languages that has no equivalent in Temporal Datalog->- without changing its semantics, or a test stream where the trigger-graph method produces different recognition results than the original language-specific reasoner.
Figures
read the original abstract
Several applications demand the timely detection of critical situations, such as threats to safety and transparency, over high-velocity streams of symbolic events. This demand has motivated the development of (i) event specification languages, which define composite events via temporal patterns over simpler events, and (ii) stream reasoning frameworks, evaluating patterns expressed in these languages. However, event specification languages are typically studied in isolation, complicating their comparison in terms of expressivity and obscuring the scope of their associated stream reasoners. To mitigate this issue, we map practical fragments of prominent event specification languages into Temporal Datalog->-, a temporal Datalog with stratified negation and no future dependencies. To support efficient stream reasoning over Temporal Datalog->-, we propose Streaming Trigger Graphs, an extension of a state-of-the-art technique for Datalog materialisation. Our approach yields a uniform composite event recognition mechanism that has the potential to generalise across a wide range of practical event specification languages.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper maps practical fragments of prominent event specification languages to Temporal Datalog->- (a temporal Datalog variant with stratified negation and no future dependencies) and introduces Streaming Trigger Graphs as an extension of existing Datalog materialisation techniques to support efficient evaluation over high-velocity event streams. It claims this yields a uniform composite event recognition mechanism with potential to generalise across a wide range of event specification languages.
Significance. If the semantic mappings are shown to be faithful and the Streaming Trigger Graphs are proven correct and efficient on unbounded streams, the work would provide a valuable unifying framework for comparing and implementing composite event recognition systems, reducing fragmentation in the field and enabling reuse of optimised Datalog engines for temporal pattern matching in safety-critical streaming applications.
major comments (2)
- [Abstract and mapping description] The uniformity and generalisation claim rests on the existence of semantics-preserving translations from event languages (including temporal patterns, negation, and ordering) into Temporal Datalog->-. No formal statement of these mappings, nor any theorem establishing equivalence of the composite-event semantics, appears in the abstract or is referenced in the provided text; without such a result the central claim cannot be evaluated.
- [Streaming Trigger Graphs section] Streaming Trigger Graphs are presented as the key extension for streaming materialisation, yet the manuscript supplies no proof or argument that they preserve correctness under streaming semantics (e.g., handling of overlapping intervals or absence of future references) while delivering the claimed efficiency gains. This is load-bearing for the efficiency and correctness assertions.
Simulated Author's Rebuttal
We thank the referee for the thoughtful and constructive report. The two major comments highlight important points about the clarity and completeness of our formal claims. We address each below and will revise the manuscript accordingly to make the central results more accessible and rigorously presented.
read point-by-point responses
-
Referee: [Abstract and mapping description] The uniformity and generalisation claim rests on the existence of semantics-preserving translations from event languages (including temporal patterns, negation, and ordering) into Temporal Datalog->-. No formal statement of these mappings, nor any theorem establishing equivalence of the composite-event semantics, appears in the abstract or is referenced in the provided text; without such a result the central claim cannot be evaluated.
Authors: The referee is correct that the abstract does not reference the formal mappings or equivalence theorems. These are defined and proven in the full manuscript (Section 3 defines the translations for each practical fragment of the event languages, including handling of temporal patterns, negation and ordering; Theorems 3.1 and 3.2 establish semantics preservation and equivalence of composite-event recognition). We will revise the abstract to explicitly cite these results (e.g., adding 'as formalised in Theorems 3.1–3.2') so that the uniformity claim can be evaluated directly from the abstract. revision: yes
-
Referee: [Streaming Trigger Graphs section] Streaming Trigger Graphs are presented as the key extension for streaming materialisation, yet the manuscript supplies no proof or argument that they preserve correctness under streaming semantics (e.g., handling of overlapping intervals or absence of future references) while delivering the claimed efficiency gains. This is load-bearing for the efficiency and correctness assertions.
Authors: We agree that a self-contained correctness argument for Streaming Trigger Graphs under streaming semantics is essential. The manuscript currently provides an informal argument in Section 5 that relies on the no-future-dependency property of Temporal Datalog->- and the ordered processing of events to handle overlapping intervals. However, we acknowledge that this falls short of a full proof. We will add a dedicated subsection (and appendix) containing a formal correctness proof that explicitly addresses streaming semantics, interval overlap, and the absence of future references, together with a clearer link to the measured efficiency gains. revision: yes
Circularity Check
No significant circularity; derivation is self-contained
full rationale
The paper defines mappings from fragments of event specification languages into Temporal Datalog->- and extends prior Datalog materialisation with Streaming Trigger Graphs. These are presented as new constructions whose correctness and efficiency are argued from the definitions themselves rather than by reducing any claim to a fitted parameter, self-referential definition, or unverified self-citation chain. No equation or central result is shown to be equivalent to its inputs by construction. The uniformity/generalisation claim rests on the proposed mappings and algorithm, which remain independent of the target results they are intended to support.
Axiom & Free-Parameter Ledger
axioms (2)
- standard math Semantics of Temporal Datalog with stratified negation and no future dependencies
- domain assumption Trigger graphs are a correct and efficient materialisation technique for (non-temporal) Datalog
invented entities (1)
-
Streaming Trigger Graphs
no independent evidence
Lean theorems connected to this paper
-
IndisputableMonolith.Foundation.Atomicityatomic_tick / exists_sequential_schedule echoes?
echoesECHOES: this paper passage has the same mathematical shape or conceptual pattern as the Recognition theorem, but is not a direct formal dependency.
Atomic tick (finite history): any finite recognition history admits a serialization with exactly one posting per tick that respects precedence (RS Foundation/Atomicity.lean, theorem atomic_tick).
What do these tags mean?
- matches
- The paper's claim is directly supported by a theorem in the formal canon.
- supports
- The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
- extends
- The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
- uses
- The paper appears to rely on the theorem as machinery.
- contradicts
- The paper's claim conflicts with a theorem or certificate in the canon.
- unclear
- Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.