# 区间时序逻辑

区间时序逻辑（Interval Temporal Logic，ITL）是一族模态逻辑，其公式在时间区间上求值——区间表示为状态的有序对或序列——而非在单个时间点上求值，用于规约和推理并发与实时系统的行为。哈尔彭（Halpern）和肖哈姆（Shoham）将其区间逻辑构建为基于点的模态时序逻辑的推广：状态与公式之间的满足关系被替换为区间与公式之间的满足关系。<sup>[1](https://www.cs.cornell.edu/home/halpern/papers/interval_temporal_logic.pdf)</sup>这一语义转变的主要后果是表达能力大幅提高，但代价是计算复杂性急剧上升。<sup>[2](https://users.dimi.uniud.it/~dario.dellamonica/pubs/beatcs11.pdf)</sup>该族包括基于切分（chop）的命题ITL和一阶ITL、哈尔彭–肖哈姆逻辑（HS），以及持续时间演算（Duration Calculus）——一种面向实时和混合系统的ITL扩展。<sup>[3](https://lmcs.episciences.org/759/pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 语义对象 | 公式在区间（有限或无限状态序列）上成立，而非在点上成立；单状态区间的长度为0<sup>[4](http://antonio-cau.co.uk/ITL/itlhomepage.pdf)</sup> |
| 核心算子 | 切分（\( f_{1};f_{2} \)）将区间分为满足\( f_{1} \)的前缀和满足\( f_{2} \)的后缀<sup>[3](https://lmcs.episciences.org/759/pdf)</sup> |
| HS模态 | 区间对之间的12种非相等艾伦（Allen）排序关系各对应一个模态（相等是第13种艾伦关系）<sup>[5](https://doi.org/10.4230/lipics.fsttcs.2016.26)</sup> |
| 可满足性 | 对于所有相关类别的线性序上的完整HS，以及其大多数片段，是不可判定的<sup>[5](https://doi.org/10.4230/lipics.fsttcs.2016.26)</sup> |
| 可判定片段 | PNL在NEXPTIME中可判定；扩展了开始/结束模态的PNL是PSPACE完全的，与LTL的复杂性相同<sup>[2](https://users.dimi.uniud.it/~dario.dellamonica/pubs/beatcs11.pdf)</sup><sup> • </sup><sup>[6](https://link.springer.com/chapter/10.1007/978-3-319-40229-1_27)</sup> |
| 与LTL的表达力对比 | 基于迹的HS等价于LTL，但至少指数级地更简洁<sup>[5](https://doi.org/10.4230/lipics.fsttcs.2016.26)</sup> |
| 实时扩展 | 持续时间演算用区间长度扩展ITL，面向实时和混合系统<sup>[3](https://lmcs.episciences.org/759/pdf)</sup> |

## 工作原理

ITL区间是有限或无限的状态序列，每个状态将整数变量映射到\( \mathbb{Z} \)，将命题变量映射到{真, 假}。区间\( \sigma_{0} \ldots \sigma_{n} \)的长度\( \lvert \sigma \rvert \)为\( n \)，即状态数减一，这是ITL长期以来的惯例。<sup>[4](http://antonio-cau.co.uk/ITL/itlhomepage.pdf)</sup>基本构造是切分：\( \sigma \models A \frown B \)当且仅当存在某个\( i \)（\( 0 \leq i \leq \lvert \sigma \rvert \)），使得\( \sigma_{0:i} \models A \)且\( \sigma_{i}\uparrow \models B \)；也就是说，区间分解为满足\( A \)的前缀和满足\( B \)的后缀。<sup>[3](https://lmcs.episciences.org/759/pdf)</sup>其迭代类似物切分星\( f^{*} \)在区间分解为有限个各自满足\( f \)的子区间时成立。<sup>[4](http://antonio-cau.co.uk/ITL/itlhomepage.pdf)</sup>

投影是另一个标志性算子：\( \Pi \)在仅保留参考区间中满足第一个操作数的点（包括端点）所得到的区间上，对其第二个操作数求值。投影算子用于简洁地规约时间粒度，适用于组件以独立时钟速率运行的系统。<sup>[7](https://www.math.bas.bg/~gelevdp/pdf/jlc2004.pdf)</sup>

HS走的是另一条路线：其语义定义在线性序上的严格区间\( [x,y] \)上，以12种艾伦区间关系作为克里普克（Kripke）可达关系，每种关系及其逆各对应一个存在模态\( \langle X \rangle \)。<sup>[8](https://drops.dagstuhl.de/storage/00lipics/lipics-vol355-time2025/html/LIPIcs.TIME.2025.4/LIPIcs.TIME.2025.4.html)</sup>哈尔彭和肖哈姆使用了“开始”、“结束”和“之后”的模态算子及其转置；费内马（Venema）表明，仅用开始和结束算子及其转置就可以表达12种艾伦关系。<sup>[1](https://www.cs.cornell.edu/home/halpern/papers/interval_temporal_logic.pdf)</sup>对于模型检测，通常假设一个命题字母在区间上成立当且仅当它在每个组成状态上成立，即齐性假设。<sup>[5](https://doi.org/10.4230/lipics.fsttcs.2016.26)</sup>

## 如何实施

典型的规约工作流将ITL视为线性时序逻辑的扩展，增加了用于时间相关概念的算子，直接捕获编程构造：赋值（通过\( A \) gets \( B \equiv \mathrm{keep}(B = \odot A) \)实现）、当型循环、迭代\( w^{e} \)，以及投影构造\( w_{1} \) proj \( w_{2} \)，后者在标记公式\( w_{1} \)为真的点上对\( w_{2} \)求值。<sup>[9](http://i.stanford.edu/pub/cstr/reports/cs/tr/83/969/CS-TR-83-969.pdf)</sup>Tempura是一种基于ITL的原型编程语言，使这类规约可执行。Tempura解释器用Prolog编写；C版本C-Tempura由罗杰·黑尔（Roger Hale）于1985年初在剑桥大学（Cambridge University）编写。<sup>[4](http://antonio-cau.co.uk/ITL/itlhomepage.pdf)</sup>

对于机械检查，ITL的语法、语义和证明系统已被纳入PVS定理证明器。<sup>[10](http://antonio-cau.co.uk/ITL/publications/pubs/1997-2.pdf)</sup>AnaTempura执行运行时验证：插入源代码中的断言点将生成的状态序列馈送给Tempura解释器，后者检查以ITL表达的时序、安全性或信息安全属性。<sup>[4](http://antonio-cau.co.uk/ITL/itlhomepage.pdf)</sup>对于自动可满足性检查，ITLFinSat工具测试完整切分式ITL的有界可满足性——每个界上是NP完全的——方法是通过在递增的模型长度上进行增量SAT编码；它是可靠的，不产生假阳性，但一般不能检测不可满足性。<sup>[11](https://www.ruediger-ehlers.de/papers/ijcar2014.pdf)</sup>

## 起源

哈尔彭和肖哈姆于1991年在《美国计算机学会杂志》（Journal of the ACM）上报告了他们的命题时间区间模态逻辑。持续时间演算由周巢尘、C.A.R.霍尔（C.A.R. Hoare）和安德斯·P·拉文（Anders P. Ravn）于1991年在《信息处理快报》（Information Processing Letters）上报告。它是面向实时系统的命题ITL的扩展，而稠密时间ITL的完备证明系统将产生持续时间演算的完备演绎系统，这表明两者紧密相连而非彼此独立的逻辑。伊德·费内马（Yde Venema）的CDT——一种用于切分区间的模态逻辑——于1991年发表在《逻辑与计算杂志》（Journal of Logic and Computation）上。离散时间ITL的分离定理由迪米塔尔·P·格列夫（Dimitar P. Guelev）和本·莫什科夫斯基（Ben Moszkowski）于2022年发表。<sup>[12](https://doi.org/10.1145/115234.115351)</sup><sup> • </sup><sup>[13](https://doi.org/10.1016/0020-0190%2891%2990122-x)</sup><sup> • </sup><sup>[2](https://users.dimi.uniud.it/~dario.dellamonica/pubs/beatcs11.pdf)</sup><sup> • </sup><sup>[14](https://brunodutertre.github.io/publis/TR-CSD-94-3.pdf)</sup><sup> • </sup><sup>[15](https://doi.org/10.1093/logcom/1.4.453)</sup><sup> • </sup><sup>[16](https://doi.org/10.1080/11663081.2022.2050135)</sup>

## 变体

该族涵盖命题ITL（PITL）、HS及其片段（如命题邻域逻辑（PNL，即AA片段））、CDT以及一阶持续时间演算。其复杂性图景十分广阔。在有理数上，HS片段AABB（以及由对称性得到的AAEE）是非原始递归的；逻辑A、其转置和AA是NEXPTIME完全的；子区间逻辑D及其变体是PSPACE完全的；BBLL是NP完全的。<sup>[17](https://users.dimi.uniud.it/~dario.dellamonica/pubs/ic19.pdf)</sup>HS的有效性复杂性范围从NP完全、PSPACE完全、EXPSPACE完全、非原始递归完全直到不可判定，取决于算子子集。<sup>[8](https://drops.dagstuhl.de/storage/00lipics/lipics-vol355-time2025/html/LIPIcs.TIME.2025.4/LIPIcs.TIME.2025.4.html)</sup>

模型检测呈现类似的情况。在基于状态的齐性语义下，对有限克里普克结构检测完整HS是可判定的，但EXPSPACE困难的，而唯一已知的上界——通过一种称为描述符的路径抽象表示——是非初等的；EXPSPACE困难性已经对具有被开始（started-by）和被结束（finished-by）模态的片段成立，并传播到完整HS。<sup>[18](https://www.sciencedirect.com/science/article/abs/pii/S0890540120301280)</sup><sup> • </sup><sup>[6](https://link.springer.com/chapter/10.1007/978-3-319-40229-1_27)</sup>在一阶方面，除受限片段外，持续时间演算和ITL是不可判定的。<sup>[14](https://brunodutertre.github.io/publis/TR-CSD-94-3.pdf)</sup>CDT的几乎所有仅含C、D或T的真片段都是不可判定的。<sup>[19](https://www.hindawi.com/journals/isrn/2012/616087/)</sup>

## 应用

区间推理已被应用于时序相关硬件，从延迟元件到时钟乘法器和ALU位片。<sup>[9](http://i.stanford.edu/pub/cstr/reports/cs/tr/83/969/CS-TR-83-969.pdf)</sup>ITL和Tempura还被应用于一个大规模系统——事件处理器EP/3，其实现可以翻译为Verilog等硬件和软件语言。<sup>[10](http://antonio-cau.co.uk/ITL/publications/pubs/1997-2.pdf)</sup>ITL影响了时序"e"断言语言，它是IEEE标准1647的一部分。<sup>[3](https://lmcs.episciences.org/759/pdf)</sup>ITLFinSat的基准测试包括菲舍尔互斥协议（Fischer Mutex protocol），其中有界可满足性检查揭示：当等待阶段对某些智能体来说太短时，互斥会失败。<sup>[11](https://www.ruediger-ehlers.de/papers/ijcar2014.pdf)</sup>除验证之外，基于区间的时序推理还服务于时序规划、时序数据库和自然语言分析。<sup>[2](https://users.dimi.uniud.it/~dario.dellamonica/pubs/beatcs11.pdf)</sup>

## 局限与替代方案

完整逻辑难以自动化：HS可满足性在所有相关类别的线性序上不可判定，大多数片段不可判定，一阶ITL和持续时间演算在受限片段之外不可判定。<sup>[5](https://doi.org/10.4230/lipics.fsttcs.2016.26)</sup><sup> • </sup><sup>[14](https://brunodutertre.github.io/publis/TR-CSD-94-3.pdf)</sup>即使在可判定的情况下，完整HS的模型检测也是EXPSPACE困难的，且只有非初等的上界。<sup>[18](https://www.sciencedirect.com/science/article/abs/pii/S0890540120301280)</sup>

与基于点的逻辑相比，比较取决于语义：具有基于迹（线性）语义的HS等价于LTL，但至少指数级地更简洁；具有计算树语义的HS等价于有限CTL*；具有基于状态语义的HS与LTL、CTL和CTL*不可比较。<sup>[5](https://doi.org/10.4230/lipics.fsttcs.2016.26)</sup>基于约束（代数）的区间推理方法是逻辑方法的一种替代。<sup>[19](https://www.hindawi.com/journals/isrn/2012/616087/)</sup>

开放问题仍然存在：按可满足性可判定性对HS片段进行完整分类（超过90%已被分类），以及针对认知哈尔彭–肖哈姆（Epistemic Halpern–Shoham，EHS）规约的多智能体系统模型检测的精确复杂性——2019年已证明其可判定，具有非初等复杂性和EXPSPACE下界。<sup>[2](https://users.dimi.uniud.it/~dario.dellamonica/pubs/beatcs11.pdf)</sup><sup> • </sup><sup>[5](https://doi.org/10.4230/lipics.fsttcs.2016.26)</sup>

## References

1. [A propositional modal logic of time intervals (Halpern & Shoham)](https://www.cs.cornell.edu/home/halpern/papers/interval_temporal_logic.pdf)
2. [Interval Temporal Logics (survey, Bulletin of the EATCS, Goranko, Montanari, Sciavicco)](https://users.dimi.uniud.it/~dario.dellamonica/pubs/beatcs11.pdf)
3. [Completeness for propositional ITL with infinite time (Moszkowski, Logical Methods in Computer Science)](https://lmcs.episciences.org/759/pdf)
4. [Interval Temporal Logic (ITL technical report / homepage document)](http://antonio-cau.co.uk/ITL/itlhomepage.pdf)
5. [Interval vs. Point Temporal Logic Model Checking: an Expressiveness Comparison (FSTTCS 2016)](https://doi.org/10.4230/lipics.fsttcs.2016.26)
6. [Interval Temporal Logic Model Checking: The Border Between Good and Bad HS Fragments (Springer)](https://link.springer.com/chapter/10.1007/978-3-319-40229-1_27)
7. [A Complete Proof System for First Order Interval Temporal Logic with Projection (Guelev, J. Logic and Computation 2004)](https://www.math.bas.bg/~gelevdp/pdf/jlc2004.pdf)
8. [Assessing the (In)Ability of LLMs to Reason in Interval Temporal Logic (LIPIcs TIME 2025)](https://drops.dagstuhl.de/storage/00lipics/lipics-vol355-time2025/html/LIPIcs.TIME.2025.4/LIPIcs.TIME.2025.4.html)
9. [Reasoning in Interval Temporal Logic (Moszkowski & Manna, Stanford CS-TR-83-969)](http://i.stanford.edu/pub/cstr/reports/cs/tr/83/969/CS-TR-83-969.pdf)
10. [Refining Interval Temporal Logic Specifications (Cau et al., 1997)](http://antonio-cau.co.uk/ITL/publications/pubs/1997-2.pdf)
11. [A Tool that Incrementally Approximates Finite Satisfiability in Full Interval Temporal Logic (IJCAR 2014)](https://www.ruediger-ehlers.de/papers/ijcar2014.pdf)
12. [Joseph Y. Halpern, Yoav Shoham (1991). A propositional modal logic of time intervals. Journal of the ACM.](https://doi.org/10.1145/115234.115351)
13. [A calculus of durations (Information Processing Letters, 1991)](https://doi.org/10.1016/0020-0190%2891%2990122-x)
14. [Completeness results for first-order interval temporal logic (Dutertre, CSD-94-3)](https://brunodutertre.github.io/publis/TR-CSD-94-3.pdf)
15. [YDE VENEMA (1991). A Modal Logic for Chopping Intervals. Journal of Logic and Computation.](https://doi.org/10.1093/logcom/1.4.453)
16. [Dimitar P. Guelev, Ben Moszkowski (2022). A separation theorem for discrete-time interval temporal logic. Journal of Applied Non-Classical Logics.](https://doi.org/10.1080/11663081.2022.2050135)
17. [Decidability and Complexity of the Fragments of the Modal Logic of Allen's Relations over the Rationals](https://users.dimi.uniud.it/~dario.dellamonica/pubs/ic19.pdf)
18. [Complexity analysis of a unifying algorithm for model checking interval temporal logic (Information and Computation, 2020)](https://www.sciencedirect.com/science/article/abs/pii/S0890540120301280)
19. [Reasoning with Time Intervals: A Logical and Computational Perspective (ISRN Artificial Intelligence)](https://www.hindawi.com/journals/isrn/2012/616087/)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › Formal logic and foundations › Logical calculi and logical syntax › Modal and temporal logic › Temporal logic

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/interval-temporal-logic

English original: https://www.edgepedia.org/interval-temporal-logic
