Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/1389449.1389461acmconferencesArticle/Chapter ViewAbstractPublication PagesppdpConference Proceedingsconference-collections
research-article

Fixed point semantics and partial recursion in Coq

Published: 15 July 2008 Publication History

Abstract

We propose to use the Knaster-Tarski least fixed point theorem as a basis to define recursive functions in the Calculus of Inductive Constructions. This widens the class of functions that can be modelled in type-theory based theorem proving tools to potentially nonterminating functions. This is only possible if we extend the logical framework by adding some axioms of classical logic.We claim that the extended framework makes it possible to reason about terminating or non-terminating computations and we show that extraction can also be extended to handle the new functions

References

[1]
S. Abian and A. B. Brown. A theorem on partially ordered sets with applications to fixed point theorems. Canadian J. Math., 13:78--82, 1961.
[2]
P. Aczel. An introduction to inductive definitions. In J. Barwise, editor, Handbook of Mathematical Logic, volume 90 of Studies in Logic and the Foundations of Mathematics. North Holland, 1977.
[3]
R. C. Backhouse. Fixed point calculus. In R. C. Backhouse, R. Crole, and J. Gibbons, editors, Algebraic and Coalgebraic Methods in the Mathematics of Program Construction, volume 2297 of LNCS. Springer-Verlag, 2002.
[4]
A. Balaa and Y. Bertot. Fonctions récursives générales par itération en théorie des types. In Journées Francophones pour les Langages Applicatifs, Jan. 2002.
[5]
Y. Bertot. Theorem proving support in programming language semantics, 2007. htp:/hal.inra.fr/inra-016309.
[6]
Y. Bertot and P. Castéran. Interactive theorem proving and program development, Coq'art: the calculus of inductive constructions. Texts in Theoretical Computer Science: an EATCS series. Springer-Verlag, 2004.
[7]
Y. Bertot and V. Komendantsky. Proofs on domain theory and partial Yves.Breecrutrosio/nt,a2r0s0k8i.htmlp:/w-sop.inra.fr/marel/ .
[8]
A. Bove. General recursion in type theory. In H. Geuvers and F. Wiedijk, editors, Types for Proofs and Programs, International Workshop TYPES 2002, The Netherlands, number 2646 in Lecture Notes in Computer Science, pages 39--58, March 2003.
[9]
A. Bove and V. Capretta. Computation by prophecy. In S. R. D. Rocca, editor, Typed Lambda Calculi and Applications, 8th International Conference, TLCA 2007, Paris, France, June 26-28, 2007, Proceedings, volume 4583 of Lecture Notes in Computer Science, pages 70--83. Springer, 2007.
[10]
J. Camilleri and T. Melham. Reasoning with inductively defined relations in the HOL theorem prover. Technical report, University of Cambridge, 1992.
[11]
L. Chicli, L. Pottier, and C. Simpson. Mathematical quotients and quotient types in Coq. In H. Geuvers and F. Wiedijk, editors, Types for Proofs and Programs, number 2646 in LNCS, pages 95--107. Springer, 2003.
[12]
D. Clément, J. Despeyroux, T. Despeyroux, and G. Kahn. A simple applicative language: Mini-ML. In proceedings of the 1986 ACM Conference on Lisp and Functional Programming, Aug. 1986.
[13]
Coq development team. The Coq Proof Assistant Reference Manual, version 8.1, 2006.
[14]
C. Dubois and V. V. Donzeau-Gouge. A step towards the mechanization of partial functions: domains as inductive predicates, July 1998. www.cs.bham.uk/~mmk/cade98-partialty.
[15]
S. Glondu. Garantie formelle de correction pour l'extraction Coq, 2007. htp:/stephane.glondu.net/raport.207.pdf.
[16]
J. Harrison. Inductive definitions: Automation and application. In P. J. Windley, T. Schubert, and J. Alves-Foss, editors, Higher Order Logic Theorem Provoing and Its Applications: Proceedings of the 8th International Workshop, volume 971 of Lecture Notes in Computer Sciences. Springer-Verlag, 1995.
[17]
G. Huet. Induction principles formalized in the calculus of constructions. In TAPSOFT'87, volume 249 of LNCS, pages 276--286. Springer, 1987.
[18]
G. Kahn. Elements of constructive geometry group theory and domain theory, 1995. available as a Coq user contribution at http://coq.inra.fr/contribs-eng.html.
[19]
P. Letouzey. A new extraction for Coq. In H. Geuvers and F.Wiedijk, editors, TYPES 2002, volume 2646 of Lecture Notes in Computer Science. Springer-Verlag, 2003.
[20]
A. Megacz. A coinductive monad for prop-bounded recursion. In A. Stump and H. Xi, editors, Proceedings of the ACM Workshop Programming Languages meets Program Verification, PLPV 2007, pages 11--20, New York, NY, USA, 2007. ACM.
[21]
O. Müller, T. Nipkow, D. v. Oheimb, and O. Slotosch. HOLCF = HOL + LCF. Journal of Functional Programming, 9:191--223, 1999.
[22]
H. R. Nielson and F. Nielson. Semantics with Applications: A Formal Introduction. Wiley, 1992.
[23]
T. Nipkow. Winskel is (almost) right:towards a mechanized semantics textbook. Formal Aspects of Computing, 10:171--186, 1998.
[24]
B. Nordström. Terminating general recursion. BIT, 28:605--619, 1988.
[25]
C. Paulin-Mohring. Inductive Definitions in the System Coq - Rules and Properties. In M. Bezem and J.-F. Groote, editors, Proceedings of the conference Typed Lambda Calculi and Applications, number 664 in Lecture Notes in Computer Science, 1993. LIP research report 92--49.
[26]
C. Paulin-Mohring. A constructive denotational semantics for Kahn networks in Coq, 2007. paulin07kahn.pdf htp:/w.lri.fr/~paulin/PUBLIS/ .
[27]
C. Paulin-Mohring and B. Werner. Synthesis of ML programs in the system Coq. Journal of Symbolic Computation, 15:607--640, 1993.
[28]
L. C. Paulson. Logic and computation, Interactive proof with Cambridge LCF. Cambridge University Press, 1987.
[29]
F. Regensburger. HOLCF: Higher order logic of computable functions. In P. J. Windley, T. Schubert, and J. Alves-Foss, editors, Higher Order Logic Theorem Provoing and Its Applications: Proceedings of the 8th International Workshop, volume 971 of Lecture Notes in Computer Sciences. Springer-Verlag, 1995.
[30]
G. Winskel. The Formal Semantics of Programming Languages, an introduction. Foundations of Computing. The MIT Press, 1993.

Cited By

View all
  • (2024)Formal Definitions and Proofs for Partial (Co)Recursive FunctionsJournal of Logical and Algebraic Methods in Programming10.1016/j.jlamp.2024.100999(100999)Online publication date: Jun-2024
  • (2023)While Loops in CoqElectronic Proceedings in Theoretical Computer Science10.4204/EPTCS.389.8389(96-109)Online publication date: 22-Sep-2023
  • (2017)A Formalisation of Consistent Consequence for Boolean Equation SystemsInteractive Theorem Proving10.1007/978-3-319-66107-0_29(462-478)Online publication date: 2017
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
PPDP '08: Proceedings of the 10th international ACM SIGPLAN conference on Principles and practice of declarative programming
July 2008
278 pages
ISBN:9781605581170
DOI:10.1145/1389449
  • General Chair:
  • Sergio Antoy,
  • Program Chair:
  • Elvira Albert
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 15 July 2008

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. automated theorem proving
  2. least fixed point semantics
  3. non-terminating functions
  4. program extraction
  5. the Knaster-Tarski theorem

Qualifiers

  • Research-article

Conference

PPDP08
Sponsor:

Acceptance Rates

PPDP '08 Paper Acceptance Rate 24 of 48 submissions, 50%;
Overall Acceptance Rate 230 of 486 submissions, 47%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)7
  • Downloads (Last 6 weeks)0
Reflects downloads up to 07 Mar 2025

Other Metrics

Citations

Cited By

View all
  • (2024)Formal Definitions and Proofs for Partial (Co)Recursive FunctionsJournal of Logical and Algebraic Methods in Programming10.1016/j.jlamp.2024.100999(100999)Online publication date: Jun-2024
  • (2023)While Loops in CoqElectronic Proceedings in Theoretical Computer Science10.4204/EPTCS.389.8389(96-109)Online publication date: 22-Sep-2023
  • (2017)A Formalisation of Consistent Consequence for Boolean Equation SystemsInteractive Theorem Proving10.1007/978-3-319-66107-0_29(462-478)Online publication date: 2017
  • (2015)Termination Proofs for Recursive Functions in FoCaLiZeRevised Selected Papers of the 16th International Symposium on Trends in Functional Programming - Volume 954710.1007/978-3-319-39110-6_8(136-156)Online publication date: 3-Jun-2015
  • (2014)Combining proofs and programs in a dependently typed languageACM SIGPLAN Notices10.1145/2578855.253588349:1(33-45)Online publication date: 8-Jan-2014
  • (2014)Combining proofs and programs in a dependently typed languageProceedings of the 41st ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages10.1145/2535838.2535883(33-45)Online publication date: 11-Jan-2014
  • (2013)Proofs you can believe inProceedings of the 15th Symposium on Principles and Practice of Declarative Programming10.1145/2505879.2505886(37-48)Online publication date: 16-Sep-2013
  • (2013)A Two-Valued Logic for Properties of Strict Functional Programs Allowing Partial FunctionsJournal of Automated Reasoning10.1007/s10817-012-9253-650:4(383-421)Online publication date: 1-Apr-2013
  • (2010)The optimal fixed point combinatorProceedings of the First international conference on Interactive Theorem Proving10.1007/978-3-642-14052-5_15(195-210)Online publication date: 11-Jul-2010
  • (2009)Independence results for n-ary recursion theoremsProceedings of the 17th international conference on Fundamentals of computation theory10.5555/1789494.1789501(38-49)Online publication date: 2-Sep-2009
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media