Skip to main content

Verified Functional Iterators Using the FoCaLiZe Environment

  • Conference paper
  • 914 Accesses

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 8702))

Abstract

Collections and iterators are widely used in the Object community since they are standards of the Java language. We present a certified functional implementation of collections and iterators addressing the Specification And Verification of Component Based Systems 2006 challenge. More precisely we describe a FoCaLiZe implementation providing these functionalities. Our approach uses inheritance and parameterization to describe functional iterators. Our code can be run in Ocaml and is certified using Coq. We provide general specifications for collections, iterators and removable iterators together with complete implementation for collections using lists as representation and iterators over those.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • 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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Proceedings of the 2006 Conference on Specification and Verification of Component-based Systems. ACM, New York (2006)

    Google Scholar 

  2. Bonichon, R., Delahaye, D., Doligez, D.: Zenon: An extensible automated theorem prover producing checkable proofs. In: Dershowitz, N., Voronkov, A. (eds.) LPAR 2007. LNCS (LNAI), vol. 4790, pp. 151–165. Springer, Heidelberg (2007)

    Chapter  Google Scholar 

  3. Breunesse, C.-B., Poll, E.: Verifying jml specifications with model fields. In: Formal Techniques for Java-like Programs. Proceedings of the ECOOP 2003 Workshop (2003)

    Google Scholar 

  4. Cok, D.R.: Specifying java iterators with jml and esc/java2. In: Proceedings of the 2006 Conference on Specification and Verification of Component-based Systems, SAVCBS 2006, pp. 71–74. ACM (2006)

    Google Scholar 

  5. Dubois, C., Hardin, T., Vigui Donzeau-Gouge, V.: Building certified components within focal. In: Loidl, H.-W. (ed.) Revised Selected Papers from the Fifth Symposium on Trends in Functional Programming, TFP 2004, München, Germany. Trends in Functional Programming, vol. 5, pp. 33–48. Intellect (2006)

    Google Scholar 

  6. Filliâtre, J.-C.: Backtracking iterators. In: Proceedings of the ACM Workshop on ML 2006, Portland, Oregon, USA, pp. 55–62. ACM (2006)

    Google Scholar 

  7. Gamma, E., Helm, R., Johnson, R., Vlissides, J.M.: Design patterns: elements of reusable object-oriented software. Addison-Wesley, Reading (1994)

    Google Scholar 

  8. Huisman, M.: Verification of java’s abstractcollection class: A case study. In: Boiten, E.A., Möller, B. (eds.) MPC 2002. LNCS, vol. 2386, pp. 175–194. Springer, Heidelberg (2002)

    Chapter  Google Scholar 

  9. Jacobs, B., Meijer, E., Piessens, F., Schulte, W.: Iterators revisited: Proof rules and implementation. In: Workshop on Formal Techniques For Java-like Programs, FTFJP (2005)

    Google Scholar 

  10. King, S., Morgan, C.: An iterator construct for the refinement calculus. In: Fourth Irish Workshop on Formal Methods (2000)

    Google Scholar 

  11. Krishnaswami, N.R.: Reasoning about iterators with separation logic. In: Proceedings of the 2006 Conference on Specification and Verification of Component-based Systems, SAVCBS 2006, pp. 83–86. ACM (2006)

    Google Scholar 

  12. Lamb, D.A.: Specification of iterators. IEEE Trans. Software Eng. 16(12), 1352–1360 (1990)

    Article  MathSciNet  Google Scholar 

  13. Lammich, P., Lochbihler, A.: The isabelle collections framework. In: Kaufmann, M., Paulson, L.C. (eds.) ITP 2010. LNCS, vol. 6172, pp. 339–354. Springer, Heidelberg (2010)

    Chapter  Google Scholar 

  14. Leino, K.R.M., Monahan, R.: Dafny meets the verification benchmarks challenge. In: Leavens, G.T., O’Hearn, P., Rajamani, S.K. (eds.) VSTTE 2010. LNCS, vol. 6217, pp. 112–126. Springer, Heidelberg (2010)

    Chapter  Google Scholar 

  15. Malecha, G., Morrisett, G.: Mechanized verification with sharing. In: Cavalcanti, A., Deharbe, D., Gaudel, M.-C., Woodcock, J. (eds.) ICTAC 2010. LNCS, vol. 6255, pp. 245–259. Springer, Heidelberg (2010)

    Chapter  Google Scholar 

  16. Meredith, P., Roşu, G.: Runtime verification with the RV system. In: Barringer, H., et al. (eds.) RV 2010. LNCS, vol. 6418, pp. 136–152. Springer, Heidelberg (2010)

    Chapter  Google Scholar 

  17. Rioboo, R.: Invariants for the FoCaL language. Annals of Mathematics and Artificial Intelligence 56(3-4), 273–296 (2009)

    Article  MATH  MathSciNet  Google Scholar 

  18. Weide, B.W.: Savcbs 2006 challenge: Specification of iterators. In: Proceedings of the 2006 Conference on Specification and Verification of Component-based Systems, SAVCBS 2006, pp. 75–77. ACM (2006)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer International Publishing Switzerland

About this paper

Cite this paper

Dubois, C., Rioboo, R. (2014). Verified Functional Iterators Using the FoCaLiZe Environment. In: Giannakopoulou, D., Salaün, G. (eds) Software Engineering and Formal Methods. SEFM 2014. Lecture Notes in Computer Science, vol 8702. Springer, Cham. https://doi.org/10.1007/978-3-319-10431-7_26

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-10431-7_26

  • Publisher Name: Springer, Cham

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

  • Online ISBN: 978-3-319-10431-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics