Programming with Dependent Types in Coq: a Study of Square Matrices - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Pré-Publication, Document De Travail Année : 2004

Programming with Dependent Types in Coq: a Study of Square Matrices

Résumé

The Coq proof system allows users to write (functional) programs and to reason about them in a formal way. We study how to program using dependently typed data structures in such a setting. Using dependently typed data structures enables programmers to have more precise specifications for their programs before starting proving any significant properties (e.g. total correctness) about these programs. We particularly focus on an operational description of square matrices and their operations. Matrices are represented using dependent types. A matrix is a vector of rows,which are themselves vectors indexed by natural numbers. We also take advantage of Coq modules system to have matrices parametrised by a carrier set. Finally, this operational description can be extracted into a mainstream functional programming language like Ocaml.
Fichier principal
Vignette du fichier
matricesinCoq.pdf (314.64 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-00955444 , version 1 (04-03-2014)

Identifiants

  • HAL Id : hal-00955444 , version 1

Citer

Nicolas Magaud. Programming with Dependent Types in Coq: a Study of Square Matrices. 2004. ⟨hal-00955444⟩
253 Consultations
116 Téléchargements

Partager

Gmail Facebook X LinkedIn More