Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article
Open access

The rely-guarantee method for verifying shared variable concurrent programs

Published: 01 March 1997 Publication History

Abstract

Compositional proof systems for shared variable concurrent programs can be devised by including the interference information in the specifications. The formalism falls into a category calledrely-guarantee (orassumption-commitment), in which a specification is explicitly (syntactically) split into two corresponding parts. This paper summarises existing work on the rely-guarantee method and gives a systematic presentation. A proof system for partial correctness is given first, thereafter it is demonstrated how the relevant rules can be adapted to verify deadlock freedom and convergence. Soundness and completeness, of which the completeness proof is new, are studied with respect to an operational model. We observe that the rely-guarantee method is in a sense a reformulation of the classical non-compositional Owicki & Gries method, and we discuss throughout the paper the connection between these two methods.

References

References

[1]
Apt, K. R.: Recursive assertions and parallel programs.Acta Informatica, Springer-Verlag, 1981.
[2]
Abadi M. and Lamport L. Conjoining specifications ACM Trans. on Program. Lang. Syst. 1995 17 3 507-534
[3]
Back, R. J. R.: Proving total correctness of nondeterministic programs in infinitary logic.Acta Informatica, Springer-Verlag, 1981.
[4]
Brookes, S. D.: Full abstraction for a shared variable parallel language. InProc. 8th IEEE Int. Symp. on Logic in Computer Science, 1993.
[5]
Collette, P.: Application of the composition principle to Unity-like specifications. In M.-C. Gaudel and J.-P. Jouannaud eds.,Proc, of TAPSOFT 93, LNCS 668, Springer-Verlag, 1993.
[6]
Cook S. A. Soundness and completeness of an axiom system for program verification SIAM Journal on Computing 1978 7 70-90
[7]
de Roever, W. P.: The quest for compositionality. inProc:IFIP Working Conf. The Role of Abstract Models in Computer Science. North-Holland, 1985.
[8]
Jones, C. B.:Development methods for computer programs including a notion of interference. DPhil. Thesis, Oxford University Computing Laboratory, 1981.
[9]
Jones C. B. Accommodating interference in the formal design of concurrent objectbased programs Formal Methods in System Design 1996 8 2 105-121
[10]
Jonsson, B. and Tsay, Y.-K.: Reasoning about assumption/guarantee specifications in linear-time temporal logic. InProc, of TAPSOFT 95, LNCS, Springer-Verlag, 1995.
[11]
Lamport L. The temporal logic of actions ACM Trans, on Program. Lang. Syst. 1995 16 3 872-923
[12]
Misra J. and Chandy M. Proofs of networks of processes IEEE SE 1981 7 4 417-426
[13]
Moszkowski, B.: Some very compositional temporal properties, InProgramming Concepts, Methods and Calculi (A-56), E.-R. Olderog (Editor), Elsevier Science B.V. (North-Holland), pp. 307–326, 1994.
[14]
Owicki, S. and Gries, D.: An axiomatic proof technique for parallel programs.Acta Inform. 6, pp. 319–340, Springer-Verlag, 1976.
[15]
Plotkin, G. D.: A structural approach to operational semantics. Computer Science Department, Aarhus University, Technical Report, DAIMI FN-19,1981.
[16]
Stirling C. A generalization of Owicki-Gries's Hoare logic for a concurrent while language Theoretical Computer Science 1988 58 347-359
[17]
Stølen, K.:Development of Parallel Programs on Shared Data-structures. Ph.D Thesis, Computer Science Department, Manchester University, 1990.
[18]
Stølen, K.: An attempt to reason about shared-state concurrency in the style of VDM. in S. Prehn and W. J. Toetenel, editors,Proceedings of VDM 91, LNCS 551, Springer-Verlag, 1991.
[19]
Stø1en, K.: A method for the development of totally correct shared-state parallel programs. In J.C.M. Baeten and J.F. Groote, editors,Proceedings of CONCUR 91, LNCS 527, Springer-Verlag, 1991.
[20]
Stø1en K. Proving total correctness with respect to a fair (share-state) parallel language Proceedings of BCS FACS 5th Refinement Workshop 1992 London Springer-Verlag
[21]
Stø1en K. Shared-state design modulo weak and strong process fairness Proceedings of 5th International Conference on Formal Description Techniques 1992 France Perros-Guirec
[22]
Woodcock J. C. P. and Dickinson B. Using VDM with Rely and Guarantee-conditions, experiences from a real project 2nd VDM-Europe Symposium 1988 Dublin, Ireland Springer-Verlag
[23]
Xu Q.-W., de Roever W.-P., and He J.-R Rely-guarantee method for verifying shared variable concurrent programs, report 9502 1995 Germany Christian-Albrechts-Universität zu Kiel
[24]
Xu Q.-W. and He J.-F. Morris J. and Shaw R. A theory of state-based parallel programming: Part 1 Proceedings of BCS FACS 4th Refinement Workshop 1991 Cambridge Springer-Verlag
[25]
Xu, Q.-W.:A theory of state-based parallel programming. DPhil. Thesis, Oxford University Computing Laboratory, 1992.
[26]
Xu, Q.-W., Cau, A. and Collette, P.: On unifying assumption-commitment style proof rules for concurrency. In B. Jonsson and J. Parrow editors,Proceedings of CONCUR 94, LNCS 836, Springer-Verlag, 1994.

Cited By

View all

Index Terms

  1. The rely-guarantee method for verifying shared variable concurrent programs
    Index terms have been assigned to the content through auto-classification.

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image Formal Aspects of Computing
    Formal Aspects of Computing  Volume 9, Issue 2
    Mar 1997
    108 pages
    ISSN:0934-5043
    EISSN:1433-299X
    Issue’s Table of Contents

    Publisher

    Springer-Verlag

    Berlin, Heidelberg

    Publication History

    Published: 01 March 1997
    Accepted: 15 August 1996
    Received: 15 February 1993
    Published in FAC Volume 9, Issue 2

    Author Tags

    1. Specification and verification
    2. Concurrency
    3. Soundness and completeness
    4. Partial and total correctness
    5. Deadlock freedom
    6. Compositionality
    7. RelyGuarantee formalism

    Qualifiers

    • Research-article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)53
    • Downloads (Last 6 weeks)7
    Reflects downloads up to 09 Nov 2024

    Other Metrics

    Citations

    Cited By

    View all

    View Options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Get Access

    Login options

    Full Access

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media