A trustworthy mechanized formalization of R
A trustworthy mechanized formalization of R
复制标题
R 的值得信赖的机械化形式化
DOI:
--
复制
发表时间:
2018
期刊:
影响因子:
--
通讯作者:
É. Tanter
中科院分区:
文献类型:
--
作者:
Martin Bodin;Tomás Díaz;É. Tanter
The R programming language is very popular for developing statistical software and data analysis, thanks to rich libraries, concise and expressive syntax, and support for interactive programming. Yet, the semantics of R is fairly complex, contains many subtle corner cases, and is not formally specified. This makes it difficult to reason about R programs. In this work, we develop a big-step operational semantics for R in the form of an interpreter written in the Coq proof assistant. We ensure the trustworthiness of the formalization by introducing a monadic encoding that allows the Coq interpreter, CoqR, to be in direct visual correspondence with the reference R interpreter, GNU R. Additionally, we provide a testing framework that supports systematic comparison of CoqR and GNU R. In its current state, CoqR covers the nucleus of the R language as well as numerous additional features, making it pass a significant number of realistic test cases from the GNU R and FastR projects. To exercise the formal specification, we prove in Coq the preservation of memory invariants in selected parts of the interpreter. This work is an important first step towards a robust environment for formal verification of R programs.
DOI:
10.1145/2535838.2535876
发表时间:
2014
期刊:
--
影响因子:
--
作者:
Bodin M
通讯作者:
Bodin M