FV Time is a small-scale verification project developed in the Coq proof assistant using the Mathematical Components libraries. It is a library for managing conversions between time formats (UTC and timestamps), as well as commonly used functions for time arithmetic. As a library for time conversions, its novelty is the implementation of leap seconds, which are part of the UTC standard but usually not implemented in existing libraries. Since the verified functions of FV Time are reasonably simple yet non-trivial, it nicely illustrates our methodology for verifying software with Coq. In this paper we present a description of the project, emphasizing the main problems faced while developing the library, as well as some general-purpose solutions that were produced as by-products and may be used in other verification projects. These include a refinement package between proof-oriented MathComp numbers and computation-oriented primitive numbers from the Coq standard library, as well as a set of tactics to automatically prove certain decidable statements over finite ranges through brute-force computation.
翻译:FV Time是一个使用数学组件库在Coq证明助手中开发的小规模验证项目。它是一个用于管理时间格式(UTC和时间戳)之间转换以及常用时间算术函数的库。作为时间转换库,其新颖之处在于实现了闰秒——这是UTC标准的一部分,但通常未在现有库中实现。由于FV Time经过验证的功能虽然相对简单但并非微不足道,它很好地说明了我们使用Coq验证软件的方法论。本文介绍了该项目的描述,重点阐述了开发该库时面临的主要问题,以及作为副产品产生的一些通用解决方案,这些方案可用于其他验证项目。其中包括一个在面向证明的MathComp数字与Coq标准库中面向计算的原生数字之间的精化包,以及一组通过蛮力计算自动证明有限范围上某些可判定语句的策略。