异步流方程的节奏类型
Pacing Types for Asynchronous Stream Equations
AI总结:
本文提出一种名为节奏类型的类型系统,用于确保RTLola框架中异步流监控器的时间一致性,并给出了形式化语义和正确性证明。
摘要:
基于流的监控是一种运行时验证方法,其中监控器聚合来自传感器和其他来源的输入数据流,以提供系统健康状况的实时统计和评估。设计可靠的基于流的监控器的核心挑战之一是处理数据流的异步性质:在具体应用中,被监控的不同传感器以不同的速度产生值,监控器有责任正确响应不同值流的异步到达。为了简化这一过程,现代基于流的监控框架(如RTLola)允许用户通过一套节奏注释系统精细地指定数据同步策略。虽然这一特性简化了监控器的设计,但也可能导致用户编写不一致的策略,即通过注释显式请求两个流之间的同步,但并非总能实现。为了缓解这一问题,本文提出了节奏类型,一种在RTLola中实现的新型类型系统,以确保异步流的监控器没有时间不一致性。我们为RTLola核心片段的节奏注释给出了形式化语义,并给出了节奏类型系统的正确性证明。为了提供额外层次的保证,我们使用Rocq证明助手对正确性证明进行了机器检查。
英文摘要:
Stream-based monitoring is a runtime verification approach where a monitor aggregates streams of input data from sensors and other sources to give real-time statistics and assessments of a system's health. One of the central challenges in designing reliable stream-based monitors is to deal with the asynchronous nature of data streams: in concrete applications, the different sensors being monitored produce values at different speeds, and it is the monitor's responsibility to correctly react to the asynchronous arrival of different streams of values. To ease this process, modern frameworks for stream-based monitoring such as RTLola enable users to finely specify data synchronization policies via a system of pacing annotations. While this feature simplifies the design of monitors, it can also lead users to write inconsistent policies, where synchronization between two streams is explicitly requested via annotations, but cannot always be achieved. To mitigate this issue, this paper presents pacing types, a novel type system implemented in RTLola to ensure that monitors for asynchronous streams are free of timing inconsistencies. We give a formal semantics to pacing annotations for a core fragment of RTLola, and present a soundness proof of the pacing type system. For an additional level of guarantees, we machine-checked the soundness proof using the Rocq proof assistant.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。