UTC时间,形式化验证
UTC Time, Formally Verified
AI总结:
本文介绍了基于Coq开发的时间转换验证库FV Time,其实现了现有库普遍缺失的闰秒功能,还产出了可复用的数值精化包与有限域自动证明策略,阐释了Coq软件验证方法论。
摘要:
FV Time是一个借助Coq证明助手、使用Mathematical Components库开发的小型验证项目。它是一个用于管理时间格式(UTC与时间戳)之间转换,以及提供常用时间算术函数的库。作为时间转换库,其创新点在于实现了闰秒功能——闰秒是UTC标准的一部分,但现有库通常未予实现。由于FV Time中已验证的函数相当简单却又并非微不足道,它很好地阐释了我们使用Coq验证软件的方法论。在本文中,我们对该项目进行了介绍,重点阐述了开发该库过程中遇到的主要问题,以及作为副产品产出的、可用于其他验证项目的一些通用解决方案。这些方案包括面向证明的MathComp数值与Coq标准库中面向计算的原生数值之间的精化包,以及一组通过蛮力计算自动证明有限范围内某些可判定命题的tactic(证明策略)。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。