RUS  ENG
Full version
JOURNALS // Proceedings of the Institute for System Programming of the RAS // Archive

Proceedings of ISP RAS, 2016 Volume 28, Issue 2, Pages 127–138 (Mi tisp24)

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.

Language: English

DOI: 10.15514/ISPRAS-2016-28(2)-8



Bibliographic databases:


© Steklov Math. Inst. of RAS, 2024