|
Certified grammar transformation to Chomsky normal form in F*
M. I. Polubelova, S. N. Bozhko, S. V. Grigorev Saint Petersburg State University
Abstract:
Certified programming allows to prove that the program meets its specification. The check of correctness of a program is performed at compile time, which guarantees that the program always runs as specified. Hence, there is no need to test certified programs to ensure they work correctly. There are numerous toolchains designed for certified programming, but F* is the only language that support both general-purpose programming and semi-automated proving. The latter means that F* infers proofs when it is possible and a user can specify more complex proofs if necessary. We work on the application of this technique to a grammarware research and development project YaccConstructor. We present a work in progress verified implementation of transformation of Context-free grammar to Chomsky normal form, that is making progress toward the certification of the entire project. Among other features, F* system allows to extract code in F# or OCaml languages from a program written in F*. YaccConstructor project is mostly written in F#, so this feature of F* is of particular importance because it allows to maintain compatibility between certified modules and those existing in the project which are not certified yet. We also discuss advantages and disadvantages of such approach and formulate topics for further research.
Keywords:
F*, certified programming, F*, program verification, context-free grammar, Chomsky normal form, grammar transformation, dependent type, refinement type.
Citation:
M. I. Polubelova, S. N. Bozhko, S. V. Grigorev, “Certified grammar transformation to Chomsky normal form in F*”, Proceedings of ISP RAS, 28:2 (2016), 127–138
Linking options:
https://www.mathnet.ru/eng/tisp24 https://www.mathnet.ru/eng/tisp/v28/i2/p127
|
Statistics & downloads: |
Abstract page: | 154 | Full-text PDF : | 148 | References: | 40 |
|