Skip to main content

Computer Aided Transformation of Z into Prolog

  • Conference paper
Z User Workshop

Part of the book series: Workshops in Computing ((WORKSHOPS COMP.))

Abstract

A strategy for the rapid prototyping of Z specifications is described. The semantics of Z are captured in a library of Prolog rules based on a standard specification of the language constructs. Each Z schema is translated directly into a Prolog rule which is then transformed for efficiency. A classical generate-and-test form is used to mirror the structure of a schema; goals resulting from the schema variable declarations are used to generate candidate instantiations, and goals resulting from the schema predicate part are used to test the instantiations for required properties. The incompleteness of the Prolog search strategy limits the approach to the use of finite sets. Negation by failure places limitations on the kinds of transformation that can be applied. A set of tools is being developed to explore the potential of this approach for the animation of Z specifications. These tools include a Z-to-Prolog translator, a transformation aid, and an animator. Initial experiments with the transformation tool suggest that the approach can offer more than simple animation; execution of the Prolog can also be used to check logical consistency and non-determinism.

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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  • A. J. J. Dick & P. J. Krause [ 1989 ], “Computer Aided Transformation of Prolog Specifications”, Tech. Report 10–1702, Racal Research Ltd., Worton Drive, Reading

    Google Scholar 

  • I. Hayes (Ed.) [1987], “Specification Case Studies”, Prentice Hall

    Google Scholar 

  • R. D. Knott and P. J. Krause [ 1988a ], “An approach to animating Z using Prolog” Report A1.1, Alvey Project SE/065, Dept. Maths, Univ. Surrey.

    Google Scholar 

  • R. D. Knott and P. J. Krause [ 1988b ], “LIBRARY SYSTEM: an example of rapid prototyping of a Z specification in Prolog” Report A1.2, Alvey Project SE/ 065, Dept. Maths, Univ. Surrey.

    Google Scholar 

  • P. J. Krause, R. D. Knott and P. J. Byers [ 1989 ], “Lift System Animation” Report A2.1, Alvey Project SE/065, Dept. Maths, Univ. Surrey.

    Google Scholar 

  • J. W. Lloyd [ 1984 ] “Foundations of Logic Programming”, Springer Verlag

    Google Scholar 

  • G. A. Ringwood [ 1989 ], “A Comparative Study of Concurrent Logic Languages”, Knowledge Engineering Review, 4 (to appear)

    Google Scholar 

  • J. M. Spivey [ 1988 ], “Understanding Z: a Specification Language and its Formal Semantics” Cambridge Univ. Press

    Google Scholar 

  • J. M. Spivey [ 1989 ], “The Z Notation: a Reference Manual”, Prentice Hall

    Google Scholar 

  • S. Stepney and S. P. Lord [ 1987 ], “Formal Specification of an Access Control System”, Software Practice and Experience, 17, pp. 575–593

    Article  Google Scholar 

  • L. Stirling and E. Shapiro [ 1986 ], “The Art of Prolog”, MIT Press

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1990 Springer-Verlag London

About this paper

Cite this paper

Dick, A.J.J., Krause, P.J., Cozens, J. (1990). Computer Aided Transformation of Z into Prolog. In: Nicholls, J.E. (eds) Z User Workshop. Workshops in Computing. Springer, London. https://doi.org/10.1007/978-1-4471-3877-8_5

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-3877-8_5

  • Publisher Name: Springer, London

  • Print ISBN: 978-3-540-19627-3

  • Online ISBN: 978-1-4471-3877-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics