Trace-Based Coinductive Operational Semantics for While
Trace-Based Coinductive Operational Semantics for While
复制标题
While 的基于跟踪的共导操作语义
DOI:
--
复制
发表时间:
2009
期刊:
影响因子:
--
通讯作者:
Tarmo Uustalu
中科院分区:
文献类型:
--
作者:
Keiko Nakata;Tarmo Uustalu
We present four coinductive operational semantics for the While language accounting for both terminating and non-terminating program runs: big-step and small-step relational semantics and big-step and small-step functional semantics. The semantics employ traces (possibly infinite sequences of states) to record the states that program runs go through. The relational semantics relate statement-state pairs to traces, whereas the functional semantics return traces for statement-state pairs. All four semantics are equivalent. We formalize the semantics and their equivalence proofs in the constructive setting of Coq.