Termination Proofs for Recursive Functions in FoCaLiZe | SpringerLink
Skip to main content

Termination Proofs for Recursive Functions in FoCaLiZe

  • Conference paper
  • First Online:
Trends in Functional Programming (TFP 2015)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 9547))

Included in the following conference series:

Abstract

FoCaLiZe is a development environment allowing the writing of specifications, implementations and correctness proofs. It generates both OCaml (executable) and Coq code (for verification needs). This paper extends the language and the compiler to handle termination proofs relying on well-founded relations or measures. We propose an approach where the user’s burden is lightened as much as possible, leaving glue code to the compiler. Proofs are written using the declarative proof language provided by FoCaLiZe, and the automatic theorem prover Zenon. When compiling to Coq we rely on the Coq construct Function.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
¥17,985 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
JPY 3498
Price includes VAT (Japan)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
JPY 4804
Price includes VAT (Japan)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
JPY 6006
Price includes VAT (Japan)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. http://focalize.inria.fr/

  2. http://zenon-prover.org/

  3. Abel, A., Altenkirch, T.: A predicative analysis of structural recursion. J. Funct. Program. 12(1), 1–41 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  4. Balaa, A., Bertot, Y.: Fix-point equations for well-founded recursion in type theory. In: Aagaard, M.D., Harrison, J. (eds.) TPHOLs 2000. LNCS, vol. 1869, pp. 1–16. Springer, Heidelberg (2000)

    Chapter  Google Scholar 

  5. Barthe, G., Forest, J., Pichardie, D., Rusu, V.: Defining and reasoning about recursive functions: a practical tool for the Coq proof assistant. In: Hagiya, M. (ed.) FLOPS 2006. LNCS, vol. 3945, pp. 114–129. Springer, Heidelberg (2006)

    Chapter  Google Scholar 

  6. Bertot, Y., Komendantsky, V.: Fixed point semantics and partial recursion in Coq. In Proceedings of PPDP 2008, Valencia, Spain, pp. 89–96 (2008)

    Google Scholar 

  7. Bonichon, R., Delahaye, D., Doligez, D.: \(\sf Zenon\): an extensible automated theorem prover producing checkable proofs. In: Dershowitz, N., Voronkov, A. (eds.) Logic for Programming, Artificial Intelligence, and Reasoning. LNCS, vol. 4790, pp. 151–165. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  8. Boulmé, S., Hardin, T., Hirschkoff, D., Ménissier-Morain, V., Rioboo, R.: On the way to certify computer algebra systems. In: Proceedings of the Calculemus Workshop of FLOC 1999. ENTCS, vol. 23. Elsevier (1999)

    Google Scholar 

  9. Bove, A., Krauss, A., Sozeau, M.: Partiality and recursion in interactive theorem provers an overview. Math. Struct. Comput. Sci. FirstView, 1–51 (2015)

    Google Scholar 

  10. Bulwahn, L., Krauss, A., Nipkow, T.: Finding lexicographic orders for termination proofs in Isabelle/HOL. In: Schneider, K., Brandt, J. (eds.) TPHOLs 2007. LNCS, vol. 4732, pp. 38–53. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  11. Bury, G., Delahaye, D.: Integrating simplex with tableaux. In: Nivelle, H.D. (ed.) Automated Reasoning with Analytic Tableaux and Related Methods. LNCS, vol. 9323, pp. 86–101. Springer, Heidelberg (2015)

    Chapter  Google Scholar 

  12. Dubois, C., Hardin, T., Donzeau-Gouge, V.: Building certified components within FOCAL. Trends in Functional Programming, vol. 5, pp. 33–48 (2006)

    Google Scholar 

  13. Hyvernat, P.: The Size-change termination principle for constructor based languages. Logical Methods Comput. Sci. 10(1) (2014)

    Google Scholar 

  14. Krauss, A.: Certified size-change termination. In: Pfenning, F. (ed.) CADE 2007. LNCS (LNAI), vol. 4603, pp. 460–475. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  15. Krauss, A.: Partial and nested recursive function definitions in higher-order logic. J. Autom. Reason. 44(4), 303–336 (2010)

    Article  MathSciNet  MATH  Google Scholar 

  16. Lamport, L.: How to write a proof. Research report, Digital Equipment Corporation (1993)

    Google Scholar 

  17. Pessaux, F.: Focalize: Inside an F-IDE. In: Proceedings 1st Workshop on Formal Integrated Development Environment, F-IDE 2014, Grenoble, France, April 6, 2014. EPTCS, vol. 149, pp. 64–78 (2014)

    Google Scholar 

  18. Prevosto, V.: Conception et Implantation du langage FoC pour le développement de logiciels certifiés. Ph.D. thesis, Université Paris 6, September 2003

    Google Scholar 

  19. Slind, K.: Another look at nested recursion. In: Aagaard, M.D., Harrison, J. (eds.) TPHOLs 2000. LNCS, vol. 1869, pp. 498–518. Springer, Heidelberg (2000)

    Chapter  Google Scholar 

Download references

Acknowledgements

We thank Renaud Rioboo for the useful discussions and case studies. Thanks to Julien Forest for the helpful discussions about Function. Lastly we thank William Bartlett for his work on a very first prototype.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to François Pessaux .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this paper

Cite this paper

Dubois, C., Pessaux, F. (2016). Termination Proofs for Recursive Functions in FoCaLiZe . In: Serrano, M., Hage, J. (eds) Trends in Functional Programming. TFP 2015. Lecture Notes in Computer Science(), vol 9547. Springer, Cham. https://doi.org/10.1007/978-3-319-39110-6_8

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-39110-6_8

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-39109-0

  • Online ISBN: 978-3-319-39110-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics