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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Proceedings of the 2006 Conference on Specification and Verification of Component-based Systems. ACM, New York (2006)
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)
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)
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)
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)
Filliâtre, J.-C.: Backtracking iterators. In: Proceedings of the ACM Workshop on ML 2006, Portland, Oregon, USA, pp. 55–62. ACM (2006)
Gamma, E., Helm, R., Johnson, R., Vlissides, J.M.: Design patterns: elements of reusable object-oriented software. Addison-Wesley, Reading (1994)
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)
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)
King, S., Morgan, C.: An iterator construct for the refinement calculus. In: Fourth Irish Workshop on Formal Methods (2000)
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)
Lamb, D.A.: Specification of iterators. IEEE Trans. Software Eng. 16(12), 1352–1360 (1990)
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)
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)
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)
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)
Rioboo, R.: Invariants for the FoCaL language. Annals of Mathematics and Artificial Intelligence 56(3-4), 273–296 (2009)
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)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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)