Skip to main content
QUICK REVIEW

[Paper Review] A library of Taylor models for PVS automatic proof checker

Francisco Cháves, Marc Daumas|arXiv (Cornell University)|Feb 3, 2006
Numerical Methods and AlgorithmsComputer Science10 references5 citations
TL;DR

This paper presents a formally verified library of Taylor models integrated into the PVS proof assistant, enabling users to compute with validated numerical bounds and generate machine-checkable proofs. By leveraging PVS's higher-order logic and automatic proof checker, the library ensures correctness of arithmetic operations and interval containment through rigorous type checking and theorem proving, offering a trustworthy alternative for safety-critical applications where numerical errors must be formally ruled out.

ABSTRACT

We present in this paper a library to compute with Taylor models, a technique extending interval arithmetic to reduce decorrelation and to solve differential equations. Numerical software usually produces only numerical results. Our library can be used to produce both results and proofs. As seen during the development of Fermat's last theorem reported by Aczel 1996, providing a proof is not sufficient. Our library provides a proof that has been thoroughly scrutinized by a trustworthy and tireless assistant. PVS is an automatic proof assistant that has been fairly developed and used and that has no internal connection with interval arithmetic or Taylor models. We built our library so that PVS validates each result as it is produced. As producing and validating a proof, is and will certainly remain a bigger task than just producing a numerical result our library will never be a replacement to imperative implementations of Taylor models such as Cosy Infinity. Our library should mainly be used to validate small to medium size results that are involved in safety or life critical applications.

Motivation & Objective

  • To develop a formally verified library of Taylor models within the PVS proof assistant to support both numerical evaluation and machine-checkable proofs.
  • To address the limitations of traditional numerical software by integrating interval arithmetic with Taylor model techniques to reduce decorrelation and improve accuracy.
  • To provide a trustworthy framework for validating small to medium-sized numerical results in safety- and life-critical applications where formal proof is required.
  • To demonstrate that formal verification via PVS can be applied to advanced numerical methods like Taylor models, even when such methods are not natively supported in the proof system.
  • To lay the foundation for future extensions of the library with elementary functions (e.g., sine, cosine, square root) and improved user abstraction via automated proof strategies.

Proposed method

  • The library defines a new abstract data type for Taylor models in PVS, representing each model as a polynomial plus an interval remainder.
  • It integrates with an existing PVS library for interval arithmetic to ensure soundness and consistency in interval operations.
  • Operations such as addition, multiplication, and function inversion are formally proven correct using PVS's type system and theorem proving capabilities.
  • The system uses PVS's subtype mechanism to enforce constraints (e.g., non-zero denominators, non-negative radicals), ensuring that operations are only applied in valid domains.
  • The library relies on a custom polynomial library and proves foundational theorems in analysis and algebra to support Taylor model arithmetic.
  • PVS's ground evaluator and PVSio extension are used to execute and test expressions, enabling evaluation of Taylor model expressions in Common Lisp.

Experimental results

Research questions

  • RQ1Can Taylor models be formally verified within a higher-order logic proof assistant like PVS, ensuring correctness of both arithmetic and interval containment?
  • RQ2How can interval arithmetic and polynomial operations be combined in a type-safe way to represent Taylor models with rigorous error bounds?
  • RQ3What is the feasibility and practicality of using PVS to generate machine-checkable proofs for numerical results involving transcendental functions and nonlinear operations?
  • RQ4To what extent can PVS's proof infrastructure be extended to support advanced numerical techniques such as Taylor models without compromising trustworthiness?
  • RQ5How can the complexity of formal proofs be reduced for end-users while preserving formal correctness in safety-critical numerical computations?

Key findings

  • The library successfully implements and formally verifies core Taylor model operations, including addition, multiplication, and inversion, with machine-checked proofs in PVS.
  • The system correctly handles non-zero constraints for division and reciprocal operations by using subtype predicates to exclude invalid inputs.
  • A toy example demonstrates that the library can compute a degree-5 Taylor model of the expression ch(2x/1000) × sh(3x/1000), yielding a polynomial with coefficients up to P(5) = 521/4×10^16 and an interval remainder bounded by ±1.996×10^-28.
  • The ground evaluator in PVS, extended via PVSio, successfully extracts and evaluates the polynomial and interval components of the Taylor model, confirming the correctness of the symbolic representation.
  • The library is designed to be extensible, with plans to support elementary functions such as sine, cosine, square root, and arctangent, along with higher-level proof strategies to abstract low-level details.
  • The development demonstrates that formal verification of numerical software is feasible within PVS, even for complex numerical methods, when supported by expert tutoring and incremental proof construction.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.