• Media type: E-Book; Report
  • Title: A Formalization of JML in the Coq Proof System
  • Contributor: Kägi, Andreas [Author]; Lehner, Hermann [Author]; Müller, Peter [Author]
  • imprint: ETH, Department of Computer Science, 2009
  • Published in: Technical report, 714
  • Language: English
  • DOI: https://doi.org/20.500.11850/68882; https://doi.org/10.3929/ethz-a-006903145
  • Keywords: SEMANTICS OF PROGRAMMING LANGUAGES + SYNTAX OF PROGRAMMING LANGUAGES ; SPECIFICATION LANGUAGES (SOFTWARE ENGINEERING) ; computer science ; Data processing ; DEDUCTION + THEOREM PROVING (ARTIFICIAL INTELLIGENCE) ; SPEZIFIKATIONSSPRACHEN (SOFTWARE ENGINEERING) ; SEMANTIK VON PROGRAMMIERSPRACHEN + SYNTAX VON PROGRAMMIERSPRACHEN ; DEDUKTION + BEWEISEN VON THEOREMEN (KÜNSTLICHE INTELLIGENZ)
  • Origination:
  • Footnote: Diese Datenquelle enthält auch Bestandsnachweise, die nicht zu einem Volltext führen.
  • Description: JML is a complex specication language for Java. Its large scale and manifold features make it hard to precisely dene its semantics in a reference manual. It is thus desirable to formally specify the syntax and semantics of JML. There are many good reasons for a formalized semantics of JML in a theorem prover: It can be used to develop a sound verication condition generator for JML constructs. By formally defining the semantics in a theorem prover, we can detect and eliminate ambiguousities in the language. When using the semantics with an operational semantics for Java source code, we can dene a runtime assertion checker and prove it's soundness with respect to the semantics in Coq. We divide the problem of dening JML in Coq into several steps. Firstly, we dene a basic JML subset that has the full expressiveness of JML, but without syntactic sugar. We define the semantics for this subset in Coq. We introduce an extended (full) JML Syntax and a syntactic rewriting function from the extended syntax into the basic syntax. Finally, we built a translation frontend that transforms a JML-annotated Java program into it's equivalent in Coq. We managed to dene the full JML and Java syntax in Coq, minus some very rare and not clearly described concepts and minus everything related to floating point numbers. We implemented a lightweight translation frontent in Java. We defined a large set of rewritings that simplify the syntax of JML without loosing any precision. We then dened the semantics of the desugared JML, using Bicolano as a basis for the semantic domain. Finally, we conducted a case study evaluating the feasibility of proving on top of the formalisation.
  • Access State: Open Access
  • Rights information: In Copyright - Non-commercial Use Permitted