pith. sign in

arxiv: 1812.03318 · v1 · pith:FCTWOIRKnew · submitted 2018-12-08 · 💻 cs.SE

A Verified Timsort C Implementation in Isabelle/HOL

classification 💻 cs.SE
keywords implementationtimsortverifiedsimplbeenformalformallyisabelle
0
0 comments X
read the original abstract

Formal verification of traditional algorithms are of great significance due to their wide application in state-of-the-art software. Timsort is a complicated and hybrid stable sorting algorithm, derived from merge sort and insertion sort. Although Timsort implementation in OpenJDK has been formally verified, there is still not a standard and formally verified Timsort implementation in C programming language. This paper studies Timsort implementation and its formal verification using a generic imperative language - Simpl in Isabelle/HOL. Then, we manually generate an C implementation of Timsort from the verified Simpl specification. Due to the C-like concrete syntax of Simpl, the code generation is straightforward. The C implementation has also been tested by a set of random test cases.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.