Skip to main content

A Model for Capturing and Replaying Proof Strategies

  • Conference paper
  • First Online:
Verified Software: Theories, Tools and Experiments (VSTTE 2014)

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

  • 553 Accesses

Abstract

Modern theorem provers can discharge a significant proportion of Proof Obligation (POs) that arise in the use of Formal Method (FMs). Unfortunately, the residual POs require tedious manual guidance. On the positive side, these “difficult” POs tend to fall into families each of which requires only a few key ideas to unlock. This paper outlines a system that can lessen the burden of FM proofs by identifying and characterising ways of discharging POs of a family by tracking an interactive proof of one member of the family. This opens the possibility of capturing ideas — represented as proof strategies — from an expert and/or maximising reuse of ideas after changes to definitions. The proposed system has to store a wealth of meta-information about conjectures, which can be matched against previously learned strategies, or can be used to construct new strategies based on expert guidance.

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

Access this chapter

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 EPUB and 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

Institutional subscriptions

Notes

  1. 1.

    It is assumed that ATP is always used before strategic intervention is required.

  2. 2.

    ProofProcess framework, http://github.com/andriusvelykis/proofprocess.

References

  1. Butterfield, A., Freitas, L., Woodcock, J.: Mechanising a formal model of flash memory. Sci. Comp. Prog. 74(4), 219–237 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  2. Freitas, L., Jones, C.B., Velykis, A.: Can a system learn from interactive proofs?. In: Voronkov, A., Korovina, M. (eds.) HOWARD-60. A Festschrift on the Occasion of Howard Barringer’s 60th Birthday, pp. 124–139. EasyChair (2014)

    Google Scholar 

  3. Freitas, L., Jones, C.B., Velykis, A., Whiteside, I.: How to say why. Technical report CS-TR-1398, Newcastle University, November 2013. www.ai4fm.org/tr

  4. Freitas, L., Woodcock, J.: Mechanising mondex with Z/Eves. Formal Aspects Comput. 20(1), 117–139 (2008)

    Article  Google Scholar 

  5. Freitas, L., Woodcock, J.: A chain datatype in Z. Int. J. Softw. Inform. 3(2–3), 357–374 (2009)

    Google Scholar 

  6. Freitas, L., Whiteside, I.: Proof Patterns for Formal Methods. In: Jones, C., Pihlajasaari, P., Sun, J. (eds.) FM 2014. LNCS, vol. 8442, pp. 279–295. Springer, Heidelberg (2014)

    Chapter  Google Scholar 

  7. Grov, G., Kissinger, A., Lin, Y.: A graphical language for proof strategies. In: McMillan et al. [MMV13], pp. 324–339

    Google Scholar 

  8. Heras, J., Komendantskaya, E.: ML4PG in computer algebra verification. In: Carette, J., Aspinall, D., Lange, C., Sojka, P., Windsteiger, W. (eds.) CICM 2013. LNCS, vol. 7961, pp. 354–358. Springer, Heidelberg (2013)

    Chapter  Google Scholar 

  9. Heras, J., Komendantskaya, E., Johansson, M., Maclean, E.: Proof-pattern recognition and lemma discovery in acl2. In: McMillan et al. [MMV13], pp. 389–406

    Google Scholar 

  10. Johansson, M., Dixon, L., Bundy, A.: Conjecture synthesis for inductive theories. J. Autom. Reason. 47(3), 251–289 (2011)

    Article  MathSciNet  MATH  Google Scholar 

  11. Jones, C.B., Freitas, L., Velykis, A.: Ours Is to reason why. In: Liu, Z., Woodcock, J., Zhu, H. (eds.) Theories of Programming and Formal Methods. LNCS, vol. 8051, pp. 227–243. Springer, Heidelberg (2013)

    Chapter  Google Scholar 

  12. Jones, C.B., Jones, K.D., Lindsay, P.A., Moore, R.: mural: A Formal Development Support System. Springer, London (1991)

    MATH  Google Scholar 

  13. Jones, C.B., Shaw, R.C.F. (eds.): Case Studies in Systematic Software Development. Prentice Hall International, Englewood (1990)

    MATH  Google Scholar 

  14. Kaliszyk, C., Urban, J.: Learning-assisted theorem proving with millions of lemmas. CoRR, abs/1402.3578 (2014)

    Google Scholar 

  15. McMillan, K., Middeldorp, A., Voronkov, A. (eds.): LPAR-19 2013. LNCS, vol. 8312. Springer, Heidelberg (2013)

    MATH  Google Scholar 

  16. Paulson, L.C. (ed.): Isabelle: A Generic Theorem Prover. LNCS, vol. 828. Springer, Heidelberg (1994)

    MATH  Google Scholar 

  17. Saaltink, M.: The Z/EVES system. In: Till, D., Bowen, J.P., Hinchey, M.G. (eds.) ZUM 1997. LNCS, vol. 1212, pp. 72–85. Springer, Heidelberg (1997)

    Google Scholar 

  18. Velykis, A.: Inferring the proof process. In: Choppy, C., et al. (eds.) FM2012 Doctoral Symposium, Paris, France, August 2012

    Google Scholar 

Download references

Acknowledgements

Other AI4FM members helped us understand important problems in automated reasoning. We are grateful for discussions with Moa Johansson on lemma generation. EPSRC grants EP/H024204/1 and EP/J008133/1 support our research.

Several interesting questions were raised after the presentation at VSTTE in Vienna. Shankar emphasised the virtue of recording information about proof strategies that fail — this was recognised early in AI4FM [JFV13] but the reminder is timely and a way of handling this will be made more explicit in the model. Christoph Gladisch questioned the extent to which “machine learning” could help improve an AI4FM system: currently mechanised learning is focussed on setting of the \(Weight\) field — we agreed to pursue a dialogue on the topic. Mike Whalen urged others to make source material available to the AI4FM project — we would obviously welcome this but emphasise that we need (instrumented) proof processes rather than just finished proofs — our proof material is available via http://www.ai4fm.org

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Cliff B. Jones .

Editor information

Editors and Affiliations

A Model

A Model

figure ac

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer International Publishing Switzerland

About this paper

Cite this paper

Freitas, L., Jones, C.B., Velykis, A., Whiteside, I. (2014). A Model for Capturing and Replaying Proof Strategies. In: Giannakopoulou, D., Kroening, D. (eds) Verified Software: Theories, Tools and Experiments. VSTTE 2014. Lecture Notes in Computer Science(), vol 8471. Springer, Cham. https://doi.org/10.1007/978-3-319-12154-3_12

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-12154-3_12

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-12153-6

  • Online ISBN: 978-3-319-12154-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics