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

Resource semantics: logic as a modelling technology

Published: 22 April 2019 Publication History
  • Get Citation Alerts
  • Abstract

    The Logic of Bunched Implications (BI) was introduced by O'Hearn and Pym. The original presentation of BI emphasised its role as a system for formal logic (broadly in the tradition of relevant logic) that has some interesting properties, combining a clean proof theory, including a categorical interpretation, with a simple truth-functional semantics. BI quickly found significant applications in program verification and program analysis, chiefly through a specific theory of BI that is commonly known as 'Separation Logic'. We survey the state of work in bunched logics - which, by now, is a quite large family of systems, including modal and epistemic logics and logics for layered graphs - in such a way as to organize the ideas into a coherent (semantic) picture with a strong interpretation in terms of resources. One such picture can be seen as deriving from an interpretation of BI's semantics in terms of resources, and this view provides a basis for a systematic interpretation of the family of bunched logics, including modal, epistemic, layered graph, and process-theoretic variants, in terms of resources. We explain the basic ideas of resource semantics, including comparisons with Linear Logic and ideas from economics and physics. We include discussions of BI's λ-calculus, of Separation Logic, and of an approach to distributed systems modelling based on resource semantics.

    References

    [1]
    S. Abramsky and J. Väänänen. From IF to BI: a tale of dependence and separation. Synthese,167(2):207--230, 2009.
    [2]
    G. Allwein and M. Dunn. Kripke Models for Linear Logic. Journal of Symbolic Logic 58(2):514--545, 1993.
    [3]
    G. Anderson and D. Pym. A calculus and logic of bunched resources and processes. Theoretical Computer Science 614:63--96, 2016.
    [4]
    R. Anderson and N. Belnap. Entailment: Logic of Relevance and Necessity, Volume 1. Princeton University Press, 1992.
    [5]
    R. Anderson and N. Belnap. Entailment: Logic of Relevance and Necessity, Volume 2. Princeton University Press, 1975.
    [6]
    K. Apt. Ten Years of Hoare's Logic: A Survey - Part 1. ACMTransactions on Programming Languages and Systems 3(4):431--483, 1981.
    [7]
    M. Barr and C. Wells. Category Theory for Computing Science. Prentice Hall, 1998. Available at http://www.math.mcgill.ca/triples/Barr-Wells-ctcs.pdf. Accessed 10 March 2019.
    [8]
    J. van Benthem. Logical Dynamics of Information and Interaction. Cambridge University Press, 2014.
    [9]
    E. Beth. Semantic entailment and formal derivability. Mededelingen van de Koninklijke Nederlandse Akademie van Wetenschappen, Afdeling Letterkunde, N.R. Vol 18, no 13, 1955, 309--342.
    [10]
    N. Bezhanishvili and D. de Jongh. Intuitionistic logic. Technical Report PP-2006-25, Institute for Logic, Language and Computation, Universiteit van Amsterdam, 2006.
    [11]
    K. Bimbó and J. M. Dunn. Generalized Galois Logics: Relational Semantics of Non-classical Calculi. CSLI Publications, 2008.
    [12]
    B.Biering, L. Birkedal, and N. Torp-Smith. BI hyperdoctrines and higher-order separation logic. In Proc. 14th ESOP, 233--247, Springer-Verlag, 2005.
    [13]
    S. Brookes and P. O'Hearn. Concurrent Separation Logic. ACM SIGLOG News 3(3), 47--65, 2016.
    [14]
    P. Bródka, K. Skibicki, P. Kazienko, and K. Musial. A degree centrality in multi-layered social network. In Proc. CASoN '11, 237--242, 2011.
    [15]
    J. Brotherston. Bunched Logics Displayed. Studia Logica 100(6), 1223--1254, 2012.
    [16]
    J. Brotherston and J. Villard. Sub-Classical Boolean Bunched Logics and the Meaning of Par. Proceedings of CSL-24, LIPlcs, Dagstuhl, 325--342, 2015.
    [17]
    T. Caulfield and D. Pym. Modelling and Simulating Systems Security Policy. In Proc. SIMUTools 2015, ACM Digital Library, ACM Digital Library, 2015.
    [18]
    D. Coumans, M. Gehrke, and L. van Rooijen. Relational semantics for full linear logic. Journal of Applied logic 12(1):50--66, 2014.
    [19]
    J.-R. Courtault and D. Galmiche. A Modal BI Logic for Dynamic Resource Properties. In Proc. LFCS 2013, Springer Berlin Heidelberg, 134--138, 2013.
    [20]
    J.-R. Courtault, D. Galmiche, and D. Pym. A Logic of Separating Modalities. Theoret. Comput. Sci., 637:30--58, 2016.
    [21]
    C. Calcagno, D. Distefano, P. O'Hearn, and H. Yang. Compositional shape analysis by means of bi-abduction. J. ACM, 58(6), 2011.
    [22]
    L. Cardelli, P. Gardner, G. Ghelli. A spatial logic for querying graphs. In Proc ICALP '02, LNCS 2380, 597--610, 2002.
    [23]
    D. D. Clark. The design philosophy of the DARPA internet protocols. In Proc. SIGCOMM '88, Computer Communication Review, 18(4): 106--114, 1988.
    [24]
    B. Coecke, T. Fritz, and R. Spekkens. A mathematical theory of resources. Information and Computation 250:59--86, 2016.
    [25]
    M. Collinson, K. McDonald, and D. Pym. A substructural logic for layered graphs. J. Log. Comp., 24(4):953--988, 2014.
    [26]
    M. Collinson, K. McDonald, and D. Pym. Layered graph logic as an assertion language for access control policy models. J. Log. Comp., 27(1):41--80 2017.
    [27]
    M. Collinson, B. Monahan, and D. Pym. A Discipline of Mathematical Systems Modelling. College Publications, 2012.
    [28]
    M. Collinson and D. Pym. Algebra and logic for resource-based systems modelling. Math. Struc. Comp. Sci., 19(5):959--1027, 2009.
    [29]
    M. Collinson and D. Pym. Algebra and logic for access control. Formal Aspects of Computing 22(2): 83--104, 2010. Erratum: Formal Aspects of Computing 22(3):483--484, 2010.
    [30]
    G. Conforti, D. Macedonio, and V. Sassone. Spatial logics for bigraphs. In Proc. ICAP '05, LNCS 3580, 766--778, 2005.
    [31]
    G. Coulouris, J. Dollimore, T. Kindberg, and G, Blair. Distributed Systems: Concepts and Design. Pearson, 2011.
    [32]
    D. Coumans. Generalising canonical extension to the categorical setting. Ann. Pure. Appl. Log., 163(12):1940--1961, 2012.
    [33]
    J.-R. Courtault and D. Galmiche. A modal separation logic for resource dynamics. Journal of Logic and Computation, 2015.
    [34]
    A. Fiat, D. Foster, H. Karloff, Y. Rabani, Y. Ravid, and S. Vishwanathan. Competitive algorithms for layered graph traversal. SIAM Journal on Computing, 28(2):447--462, 1998.
    [35]
    D. van Dalen. Logic and Structure. 4th Edition. Universitext, Springer, 2008.
    [36]
    H.-H. Dang, J.-H. Jourdan, J.-O. Kaiser, and D. Dreyer. RustBelt Relaxed. Submitted for publication, November 2018.
    [37]
    B. Day. On closed categories of functors. In: S. Mac Lane, editor, Reports of the Midwest Category Theory Seminar. Lecture Notes in Mathematics 137:1--38, 1971.
    [38]
    B. Day. An embedding theorem for closed categories. In: A. Dold and B. Eckmann, editors, Proceedings of the Sydney Category Seminar 1972/73. Lecture Notes in Mathematics 420:55--65, 1973.
    [39]
    S.Docherty. Bunched Logics: A Uniform Approach. PhD thesis, University College London, 2019.
    [40]
    S. Docherty and D. Pym. Intuitionistic layered graph logic. emphProc.IJCAR 2016. LNAI 9706:469--486, 2016.
    [41]
    S. Docherty and D. Pym. A Stone-type duality theorem for Separation Logic via its underlying bunched logics Electronic Notes in Theoretical Computer Science 336 (2018) 101--118.
    [42]
    S. Docherty and D. Pym. A Stone-type duality theorem for Separation Logic via its underlying bunched logics Logical Methods in Computer Science 15(1) (March 14, 2019), 27:1--27:51. https://lmcs.episciences.org/5284/pdf.
    [43]
    S. Docherty and D. Pym. Intuitionistic Layered Graph Logic: Semantics and Proof Theory Logical Methods in Computer Science 14(4) (October 31, 2018), 1--36. https://lmcs.episciences.org/4942/pdf.
    [44]
    S. Docherty and D. Pym. Modular Tableaux Calculi for Separation Theories In: Baier C., Dal Lago U. (eds) Foundations of Software Science and Computation Structures. FoSSaCS 2018. LNCS 10803:441--458. Springer.
    [45]
    J. M. Dunn and G. Hardegree. Algebraic Methods In Philosophical Logic. OUP, 2001.
    [46]
    L. Esakia. Topological Kripke models. Soviet Math. Dokl. 15, 147--15, 1974.
    [47]
    M. Fitting. Tableau methods of proof for modal logics. Notre Dame J. Fom. Log., 13(2):237--247, 1972.
    [48]
    Tobias Fritz. Resource convertibility and ordered commutative monoids. Mathematical Structures in Computer Science 27(6):850?938, 2017.
    [49]
    N. Galatos and P. Jipsen. Distributive residuated frames and generalized bunched implication algebras. Algebra Univers., 78(3):303--336, 2017.
    [50]
    D. Galmiche, P. Kimmel, and D. Pym. A Substructural Epistemic Resource Logic. In Proc. ICLA 2017, LNCS 10119:106--122, 2017.
    [51]
    D. Galmiche and D. Méry. Tableaux and resource graphs for separation logic. J. Log. Comp., 20(1): 189--231, 2010.
    [52]
    D. Galmiche, D. Méry, and D. Pym. The semantics of BI and resource tableaux. Math. Str. Comp. Sci., 15(06):1033--1088, 2005.
    [53]
    D. Galmiche and D. Méry. Tableaux and resource graphs for separation logic. J. Logic Comput., 20(1):189--231, 2007.
    [54]
    J.-Y. Girard. Linear logic. Theor. Comp. Sci., 50(1): 1--101, 1987.
    [55]
    R. Goré. Tableau Methods for Modal and Temporal Logics In: D?Agostino M., Gabbay D.M., Hhnle R., Posegga J. (eds) Handbook of Tableau Methods, 297--396. Springer, Dordrecht.
    [56]
    L. Gouveia, L. Simonetti, and E. Uchoa. Modeling hop-constrained and diameter-constrained minimum spanning tree problems as Steiner tree problems over layered graphs. Math. Prog., 128(1): 123--148, 2011.
    [57]
    D. Grohmann and M. Miculan. Directed bigraphs. In Proc. MFPS XXIII, ENTCS 173, 121--137, 2007.
    [58]
    Reiner Hähnle. Tableaux and Related Methods. In: Alan Robinson and Andrei Voronkov, editors, Hand-book of Automated Reasoning, Springer, 2001, 101--178.
    [59]
    Z. Haniková and R. Horčík. The finite embeddability property for residuated groupoids Algebra Univers., 72(1):1--13, 2014.
    [60]
    J. Harland and D. Pym. Resource-distribution via Boolean constraints. ACM ToCL, 4(1):56--90, 2003.
    [61]
    Facebook. Infer. https://fbinfer.com: accessed 10 March 2019. https://code.fb.com/developer-tools/open-sourcing-facebook-infer-identify-bugs-before-you-ship/: accessed 10 March 2019.
    [62]
    M. Hennessy and G. Plotkin. On observing nondeterminsm and concurrency. Proc. 7th ICALP. LNCS 85:299--309, 1980.
    [63]
    C. Hoare. Proof of correctness of data representations. Acta Informatica 1:271--281, 1971.
    [64]
    W. Howard. The formulae-as-types notion of construction. In J. P. Seldin and J. R. HindIey, editors, To H. B. Curry: Essays on Combnatory Logic, Lambda-Calculus, and Formalism, 479--490. Academic Press, 1980.
    [65]
    S. S. Ishtiaq and P. O'Hearn. BI as an assertion language for mutable data structures. In Proc. Principles of Programming Languages '01, ACM Sigplan Notices 36(3):14--26, 2001.
    [66]
    P. Jipsen and C. Tsinakis. A survey of residuated lattices. In Ordered Algebraic Structures, Developments in Mathematics 7:19--56, 2002.
    [67]
    P. T. Johnstone Stone Spaces. Cambridge Studies In Advanced Mathematics 3, CUP, 1982.
    [68]
    The Julia Programming Language. https://julialang.org. Accessed 10 March 2019.
    [69]
    R. Jung, D. Swasey, F. Sieczkowski, K. Svendsen, A. Turon, L. Birkedal, and D. Dreyer. Iris: Monoids and Invariants as an Orthogonal Basis for Concurrent Reasoning Proceedings of the 42nd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, 637--650. ACM 2015.
    [70]
    R. Jung, R. Krebbers, J.-H. Jourdan, L. Birkedal, and D. Dreyer. Iris from the ground up. Submitted, 2018. Manuscript: https://people.mpi-sws.org/~dreyer/papers/iris-ground-up/paper.pdf. Accessed 10 March 2019.
    [71]
    M. Kivelä, A. Arenas, M. Barthelemy, J. Gleeson, Y. Moreno and M. A. Porter. Multilayer networks. J. Comp. Net., 2(3): 203--271, 2014.
    [72]
    A. Korzybski. Non-Aristotelian System and its Necessity for Rigour in Mathematics and Physics. Presented to the American Association for the Advancement of Science, New Orleans, Louisiana, 28 December 1931. Reprinted in Science and Sanity, 1933, 747--761.
    [73]
    S. Kripke. A semantical analysis of intuitionistic logic I. In Formal Systems and Recursive Functions, Studies In Logic and the Foundations of Mathematics 40:92--130, 1965.
    [74]
    M. Kurant and P. Thiran. Layered complex networks. Phys. Rev. Lett., 96:138701, 2006.
    [75]
    Y. Lafont. Introduction to Linear Logic. Lecture notes from TEMPUS Summer School on Algebraic and Categorical Methods in Computer Science, Brno, Czech Republic, 1993.
    [76]
    J. Lambek. On the calculus of syntactic types. In Studies of Language and its Mathematical Aspects, 166--178, 1961.
    [77]
    J. Lambek. From categorical grammar to bilinear logic. In P. Schroeder-Heister and K. Došen, editors, Substructural Logics, 207--237
    [78]
    J. Lambek and P. Scott. Introduction to Higher-Order Categorical Logic. Cambridge University Press, 1986.
    [79]
    D. Larchey-Wendling. The formal proof of the strong completeness of partial monoidal Boolean BI. J. Log. Comp., 26(2):605--640, 2016.
    [80]
    J. Loeckx and K. Sieber. Foundations of Program Verification. 2nd Edition. John Wiley & Sons, 1987.
    [81]
    M. Makkei and G. Reyes. First Order Categorical Logic: Model-Theoretical Methods in the Theory of Topoi and Related Categories. Lecture Notes in Mathematics 611, 1977.
    [82]
    C. Maus, S. Rybacki, and A. M. Uhrmacher. Rule-based multi-level modeling of cell biological systems BMC Sys. Bio., 5(166), 2011.
    [83]
    R. Milner. Calculi for synchrony and asynchrony. Theoretical Computer Science 25(3):267--310, 1983.
    [84]
    R. Milner. The Space and Motion of Communicating Agents. CUP, 2009.
    [85]
    P. O'Hearn. On Bunched Typing. Journal of Functional Programming 13(4), 747--796, 2003.
    [86]
    P. O'Hearn. A Primer on Separation Logic. Software Safety and Security; Tools for Analysis and Verification. NATO Science for Peace and Security Series 33:286--318, 2012.
    [87]
    P. O'Hearn. Resources, concurrency, and local reasoning. Theoretical Computer Science 375 (1--3), 2007, 271--307.
    [88]
    P. O'Hearn. Separation Logic. Communications of the ACM 62(2), February 2019, 86--95.
    [89]
    P. O'Hearn and D. Pym. The logic of bunched implications. Bull. Symb. Log., 5(2):215--244, 1999.
    [90]
    C. Papadimitriou and M. Yannakakis. Shortest paths without a map. Theoretical Computer Science, 84(1):127--150, 1991.
    [91]
    A. Paz. A theory of decomposition into prime factors of layered interconnection networks. Discrete Applied Mathematics, 159(7):628--646, 2011.
    [92]
    G. Plotkin A structural approach to operational semantics, DAIMIFN-19, Computer Science Department, Aarhus University, 1981.
    [93]
    G. Plotkin. The origins of structural operational semantics. Journal of Logic and Algebraic Programming 60--61, 2004, 3--15.
    [94]
    D. Prawitz. Natural Deduction. Almqvist and Wiksell, 1965.
    [95]
    D. Pym, P. O'Hearn, and H. Yang. Possible worlds and resources: The semantics of BI. Theor. Comp. Sci., 315(1):257--305, 2004. (Erratum: p. 285, l. -12: ', for some P', Q ≡ P; P" should be 'P ⊢ Q'.)
    [96]
    D. Pym, J. Spring, and P. O'Hearn. Why Separation Logic Works. Philosophy and Technology (2018).
    [97]
    D. Pym and C. Tofts. A Calculus and Logic of Resources and Processes. Formal Aspects of Computing 18(4):495--517, 2006.
    [98]
    S. Read. Relevant Logic. Blackwell, 1988.
    [99]
    J. Reynolds. Separation Logic: a logic for shared mutable data structures. In Proc LICS '02, IEEE Comp. Soc. Press, 55--74 2002.
    [100]
    B. Schneier. The weakest link. https://www.schneier.com/blog/archives/2005/02/the_weakest_lin.html. Schneier on Security, https://www.schneier.com, 2005. Accessed 10 March 2019.
    [101]
    P. Schroeder-Heister and K. Došen, editors, Substructural Logics. Oxford University Press, 1993.
    [102]
    R. Seely. Hyperdoctrines, Natural Deduction and the Beck Condition. Mathematical Logic Quarterly 29(10):505--542, 1983.
    [103]
    R. de Simone. Higher-level synchronising devices in Meije-SCCS. Theoretical Computer Science 37:245--267, 1985.
    [104]
    R. Smullyan. First-order Logic., Dover, 1995.
    [105]
    C. Stirling. Modal logics for communication systems. Theoretical Computer Science, 49:311--347, 1987.
    [106]
    C. Stirling. Modal and Temporal Properties of Processes. Springer, 2001.
    [107]
    M. Stone. The theory of representations of Boolean algebras. Trans. <b>AMS</b> 40: 37--111, 1936.
    [108]
    J. Väänänen. Dependence Logic. Cambridge University Press, 2007.
    [109]
    H. Wang, J. Wang and P. De Wilde. Topological analysis of a two coupled evolving networks model for business systems. Expert Syst. Appl., 36(5):9548--9556, 2009.
    [110]
    H. Yang and P. O'Hearn. A Semantic Basis for Local Reasoning. In Proc. FOSSACS 2002, LNCS 2303:402--416, 20022 2.

    Cited By

    View all
    • (2021)Actions you can handle: dependent types for AI plansProceedings of the 6th ACM SIGPLAN International Workshop on Type-Driven Development10.1145/3471875.3472990(1-13)Online publication date: 18-Aug-2021
    • (2020)Proof-Carrying Plans: a Resource Logic for AI PlanningProceedings of the 22nd International Symposium on Principles and Practice of Declarative Programming10.1145/3414080.3414094(1-13)Online publication date: 8-Sep-2020

    Index Terms

    1. Resource semantics: logic as a modelling technology
          Index terms have been assigned to the content through auto-classification.

          Recommendations

          Comments

          Information & Contributors

          Information

          Published In

          cover image ACM SIGLOG News
          ACM SIGLOG News  Volume 6, Issue 2
          April 2019
          54 pages
          EISSN:2372-3491
          DOI:10.1145/3326938
          Issue’s Table of Contents

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          Published: 22 April 2019
          Published in SIGLOG Volume 6, Issue 2

          Check for updates

          Qualifiers

          • Research-article

          Contributors

          Other Metrics

          Bibliometrics & Citations

          Bibliometrics

          Article Metrics

          • Downloads (Last 12 months)10
          • Downloads (Last 6 weeks)0
          Reflects downloads up to 11 Aug 2024

          Other Metrics

          Citations

          Cited By

          View all
          • (2021)Actions you can handle: dependent types for AI plansProceedings of the 6th ACM SIGPLAN International Workshop on Type-Driven Development10.1145/3471875.3472990(1-13)Online publication date: 18-Aug-2021
          • (2020)Proof-Carrying Plans: a Resource Logic for AI PlanningProceedings of the 22nd International Symposium on Principles and Practice of Declarative Programming10.1145/3414080.3414094(1-13)Online publication date: 8-Sep-2020

          View Options

          Get Access

          Login options

          View options

          PDF

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader

          Media

          Figures

          Other

          Tables

          Share

          Share

          Share this Publication link

          Share on social media