We study the semantics of an untyped lambda-calculus equipped with operators representing read and write operations from and to a global store. We adopt the monadic approach to model side-effects and treat read and write as algebraic operations over a monad. We introduce an operational semantics. The intersection type assignment system is indeed derived by solving a suitable domain equation in the category of omega-algebraic lattices; the solution consists of a filter-model generalizing the well-known construction for ordinary lambda-calculus. Then the type system is obtained out of the term interpretations into the filter-model itself. The so obtained type system satisfies the "type-semantics" property by construction. Finally, we prove that types are invariant under reduction and expansion of term and state configurations, and characterize convergent terms via their typings.
翻译:我们研究一个非型式羊羔计算器的语义学,该计算器配备了代表全球商店的读写操作的操作员。我们采用寺院法来模拟副作用,并将读写作为对月球的代数操作处理。我们引入了一个操作的语义学。交叉型分配系统确实通过在千兆赫-藻类拉链类类别中找到一个合适的域方程式而产生;解决方案包括一个过滤模型,将众所周知的普通羊驼计算器的构造加以概括。然后从术语解释中获取类型系统,进入过滤模型本身。如此获得的型号系统通过构建满足“类型-语义”属性。最后,我们证明类型在缩短和扩大期限和状态配置中是无差异的,并通过打字来描述一致术语。