Mathematics, Logic and Computation

A Satellite workshop of ICALP03

In honour of N.G. de Bruijn's 85th anniversary

4-5 July 2003

Eindhoven, the Netherlands

http://www.cedar-forest.org/forest/events/Bruijn03/


A simple Canonical Representation of Rational Numbers

Yves Bertot

Abstract

We propose to use a simple inductive type as a basis to represent the field of rational numbers. We describe the relation between this representation of numbers and the representation as fractions of non-zero natural numbers. The usual operations of comparison, multiplication, and addition are then defined in a naive way. The whole construction is used to build a model of the set of rational numbers as an ordered archimedian field. All constructions have been modeled and verified in the Coq proof assistant.