Formalising exact arithmetic in type theory

  • Authors:
  • Milad Niqui

  • Affiliations:
  • Institute for Computing and Information Sciences, Radboud University Nijmegen, The Netherlands

  • Venue:
  • CiE'05 Proceedings of the First international conference on Computability in Europe: new Computational Paradigms
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this work we focus on a formalisation of the algorithms of lazy exact arithmetic á la Potts and Edalat [1]. We choose the constructive type theory as our formal verification tool. We discuss an extension of the constructive type theory with coinductive types that enables one to formalise and reason about the infinite objects. We show examples of how infinite objects such as streams and expression trees can be formalised as coinductive types. We study the type theoretic notion of productivity which ensures the infiniteness of the outcome of the algorithms on infinite objects. Syntactical methods are not always strong enough to ensure the productivity. However, if some information about the complexity of a function is provided, one may be able to show the productivity of that function. In the case of the normalisation algorithm we show that such information can be obtained from the choice of real number representation that is used to represent the input and the output.