{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,16]],"date-time":"2026-11-16T00:03:13Z","timestamp":1794787393951,"version":"4.9.1"},"publisher-location":"Cham","reference-count":35,"publisher":"Springer Nature Switzerland","isbn-type":[{"value":"9783031711619","type":"print"},{"value":"9783031711626","type":"electronic"}],"license":[{"start":{"date-parts":[[2024,9,11]],"date-time":"2024-09-11T00:00:00Z","timestamp":1726012800000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2024,9,11]],"date-time":"2024-09-11T00:00:00Z","timestamp":1726012800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2025]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>\n                    Higher-order functions and imperative states are language features supported by many mainstream languages. Their combination is expressive and useful, but complicates specification and reasoning, due to the use of yet-to-be-instantiated function parameters. One inherent limitation of existing specification mechanisms is its reliance on\n                    <jats:italic>only two stages<\/jats:italic>\n                    \u00a0:\u00a0an initial stage to denote the precondition at the start of the method and a final stage to capture the postcondition. Such two-stage specifications force\n                    <jats:italic>abstract properties<\/jats:italic>\n                    to be imposed on unknown function parameters, leading to less precise specifications for higher-order methods. To overcome this limitation, we introduce a novel extension to Hoare logic that supports\n                    <jats:italic>multiple stages<\/jats:italic>\n                    for a call-by-value higher-order language with ML-like local references. Multiple stages allow the behavior of unknown function-type parameters to be captured abstractly as uninterpreted relations; and can also model the repetitive behavior of each recursion as a separate stage. In this paper, we define our staged logic with its semantics, prove its soundness and develop a new automated higher-order verifier, called\n                    <jats:sc>H<\/jats:sc>\n                    eifer, for a core ML-like language.\n                  <\/jats:p>","DOI":"10.1007\/978-3-031-71162-6_26","type":"book-chapter","created":{"date-parts":[[2024,9,9]],"date-time":"2024-09-09T22:02:27Z","timestamp":1725919347000},"page":"501-518","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":1,"title":["Staged Specification Logic for\u00a0Verifying Higher-Order Imperative Programs"],"prefix":"10.1007","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-3279-5827","authenticated-orcid":false,"given":"Darius","family":"Foo","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9760-5895","authenticated-orcid":false,"given":"Yahui","family":"Song","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9660-5682","authenticated-orcid":false,"given":"Wei-Ngan","family":"Chin","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2024,9,11]]},"reference":[{"key":"26_CR1","unstructured":"Modular specification and verification of closures in Rust (artefact). https:\/\/zenodo.org\/records\/5482557 (2021)"},{"key":"26_CR2","unstructured":"Documentation of closures. https:\/\/github.com\/viperproject\/prusti-dev\/issues\/1431 (2024)"},{"key":"26_CR3","unstructured":"Alves, F., Oliveira, D., Madeiral, F., Castor, F.: On the bug-proneness of structures inspired by functional programming in JavaScript projects. CoRR, abs\/2206.08849 (2022)"},{"key":"26_CR4","doi-asserted-by":"crossref","unstructured":"Calcagno, C., Distefano, D., O\u2019Hearn, P., Yang, H.: Compositional shape analysis by means of bi-abduction. In: Shao, Z., Pierce, B.C., eds, Proceedings of the 36th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 2009, Savannah, GA, USA, January 21-23, 2009, pp. 289\u2013300. ACM (2009)","DOI":"10.1145\/1480881.1480917"},{"key":"26_CR5","doi-asserted-by":"crossref","unstructured":"Chargu\u00e9raud, A.: Characteristic formulae for the verification of imperative programs. In: Chakravarty, M.M.T., Hu, Z., Danvy, O., eds, Proceeding of the 16th ACM SIGPLAN international conference on Functional Programming, ICFP 2011, Tokyo, Japan, September 19-21, 2011 pp. 418\u2013430. ACM (2011)","DOI":"10.1145\/2034574.2034828"},{"key":"26_CR6","series-title":"Lecture Notes in Computer Science","doi-asserted-by":"publisher","first-page":"284","DOI":"10.1007\/978-3-030-02768-1_16","volume-title":"Programming Languages and Systems","author":"A Costea","year":"2018","unstructured":"Costea, A., Chin, W.-N., Qin, S., Craciun, F.: Automated modular verification for relaxed communication protocols. In: Ryu, S. (ed.) APLAS 2018. LNCS, vol. 11275, pp. 284\u2013305. Springer, Cham (2018). https:\/\/doi.org\/10.1007\/978-3-030-02768-1_16"},{"key":"26_CR7","doi-asserted-by":"crossref","unstructured":"David, C., Chin, WN.: Immutable specifications for more concise and precise verification. In: Lopes, C.V., Fisher, K., eds, Proceedings of the 26th Annual ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications, OOPSLA 2011, part of SPLASH 2011, Portland, OR, USA, October 22 - 27, 2011, pp. 359\u2013374. ACM (2011)","DOI":"10.1145\/2048066.2048096"},{"key":"26_CR8","doi-asserted-by":"publisher","unstructured":"de\u00a0Moura, L., Bj\u00f8rner, N.S.: Z3: an efficient SMT solver. In: Ramakrishnan, C.R., Rehof, J., eds, Tools and Algorithms for the Construction and Analysis of Systems, 14th International Conference, TACAS 2008, Held as Part of the Joint European Conferences on Theory and Practice of Software, ETAPS 2008, Budapest, Hungary, March 29-April 6, 2008. Proceedings, vol. 4963 of Lecture Notes in Computer Science, pp. 337\u2013340. Springer (2008). https:\/\/doi.org\/10.1007\/978-3-540-78800-3_24","DOI":"10.1007\/978-3-540-78800-3_24"},{"key":"26_CR9","doi-asserted-by":"crossref","unstructured":"Deni\u00e9lou, P.M., Yoshida, N., Bejleri, A., Hu, R.: Parameterised multiparty session types. Log. Methods Comput. Sci. 8(4) (2012)","DOI":"10.2168\/LMCS-8(4:6)2012"},{"key":"26_CR10","doi-asserted-by":"publisher","unstructured":"Denis, X., Jourdan, J.H.: Specifying and verifying higher-order Rust iterators. In: Sankaranarayanan, S., Sharygina, N., eds, Tools and Algorithms for the Construction and Analysis of Systems - 29th International Conference, TACAS 2023, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2022, Paris, France, April 22-27, 2023, Proceedings, Part II, vol. 13994 of Lecture Notes in Computer Science, pp. 93\u2013110. Springer (2023). https:\/\/doi.org\/10.1007\/978-3-031-30820-8_9","DOI":"10.1007\/978-3-031-30820-8_9"},{"key":"26_CR11","doi-asserted-by":"crossref","unstructured":"Filli\u00e2tre, J.C., Paskevich, A.: Why3 - where programs meet provers. In: European Symposium on Programming (2013)","DOI":"10.1007\/978-3-642-37036-6_8"},{"key":"26_CR12","doi-asserted-by":"crossref","unstructured":"Findler, R.B., Felleisen, M.: Contracts for higher-order functions. In: Wand, M., Jones, S.L.P., eds, Proceedings of the Seventh ACM SIGPLAN International Conference on Functional Programming (ICFP \u201902), Pittsburgh, Pennsylvania, USA, October 4-6, 2002, pp. 48\u201359. ACM (2002)","DOI":"10.1145\/581478.581484"},{"key":"26_CR13","unstructured":"Foo, D., Song, Y., Chin, W.N.: Heifer. https:\/\/github.com\/hipsleek\/Heifer (2024)"},{"key":"26_CR14","unstructured":"Foo, D., Song, Y., Chin, W.N.: Staged specification logic for verifying higher-order imperative programs. https:\/\/doi.org\/10.5281\/zenodo.12513074 (2024)"},{"key":"26_CR15","doi-asserted-by":"crossref","unstructured":"Foo, D., Song, Y., Chin, W.N.: Staged specification logic for verifying higher-order imperative programs (technical report). https:\/\/github.com\/hipsleek\/Heifer\/blob\/StagedSL\/docs\/FM2024_TR.pdf (2024)","DOI":"10.1007\/978-3-031-71162-6_26"},{"key":"26_CR16","doi-asserted-by":"crossref","unstructured":"Gherghina, C., David, C., Qin, S., Chin, W.N.: Structured specifications for better verification of heap-manipulating programs. In Michael\u00a0J. Butler, M.J., Schulte, W., eds, FM 2011: Formal Methods - 17th International Symposium on Formal Methods, Limerick, Ireland, June 20-24, 2011. Proceedings, vol. 6664 of Lecture Notes in Computer Science, pp. 386\u2013401. Springer (2011)","DOI":"10.1007\/978-3-642-21437-0_29"},{"key":"26_CR17","unstructured":"He, J., and Hoare, C.A.R.: Unifying theories of programming. In: RelMiCS (1998)"},{"key":"26_CR18","unstructured":"Honda, K., Yoshida, N., Berger, M.: An observationally complete program logic for imperative higher-order frame rules. In: 20th IEEE Symposium on Logic in Computer Science (LICS 2005), 26-29 June 2005, Chicago, IL, USA, Proceedings, pp. 270\u2013279. IEEE Computer Society (2005)"},{"key":"26_CR19","doi-asserted-by":"publisher","first-page":"e20","DOI":"10.1017\/S0956796818000151","volume":"28","author":"R Jung","year":"2018","unstructured":"Jung, R., Krebbers, R., Jourdan, J.-H., Bizjak, A., Birkedal, L., Dreyer, D.: Iris from the ground up: a modular foundation for higher-order concurrent separation logic. J. Funct. Program. 28, e20 (2018)","journal-title":"J. Funct. Program."},{"key":"26_CR20","doi-asserted-by":"crossref","unstructured":"Leavens, G.T., Naumann, D.A.: Behavioral subtyping, specification inheritance, and modular reasoning. ACM Trans. Program. Lang. Syst. 37(4), 1\u201388 (2015)","DOI":"10.1145\/2766446"},{"key":"26_CR21","doi-asserted-by":"crossref","unstructured":"Morgan, C.: The refinement calculus. In: NATO ASI PDC (1994)","DOI":"10.1007\/978-1-4471-3273-8"},{"key":"26_CR22","doi-asserted-by":"crossref","unstructured":"Nanevski, A., Morrisett, J.G., Birkedal, L.: Hoare type theory, polymorphism and separation. J. Funct. Program. 18(5-6), 865\u2013911 (2008)","DOI":"10.1017\/S0956796808006953"},{"key":"26_CR23","doi-asserted-by":"publisher","unstructured":"Pereira, M., Ravara, A.: Cameleer: a deductive verification tool for OCaml. In: Silva, A., Rustan, K., Leino, M., eds, Computer Aided Verification - 33rd International Conference, CAV 2021, Virtual Event, July 20-23, 2021, Proceedings, Part II, vol. 12760 of Lecture Notes in Computer Science, pp. 677\u2013689. Springer (2021). https:\/\/doi.org\/10.1007\/978-3-030-81688-9_31","DOI":"10.1007\/978-3-030-81688-9_31"},{"key":"26_CR24","doi-asserted-by":"crossref","unstructured":"Reynolds, J.C., Definitional interpreters for higher-order programming languages. In: Donovan, J.J., Shields, R., editors, Proceedings of the ACM annual conference, ACM 1972, 1972, Volume 2, pp. 717\u2013740. ACM (1972)","DOI":"10.1145\/800194.805852"},{"key":"26_CR25","doi-asserted-by":"crossref","unstructured":"Smans, J., Jacobs, B., Piessens, F.: Implicit dynamic frames. ACM Trans. Program. Lang. Syst. 34(1), 1\u201358 (2012)","DOI":"10.1145\/2160910.2160911"},{"key":"26_CR26","unstructured":"Soares, T., Pereira, M.: A framework for the automated verification of algebraic effects and handlers (extended version). ArXiv, abs\/2302.01265, 2023"},{"key":"26_CR27","unstructured":"Soares, T.L.: A deductive verification framework for higher order programs. CoRR, abs\/2011.14044 (2020)"},{"key":"26_CR28","unstructured":"Svendsen, K.: Modular specification and verification for higher-order languages with state. IT-Universitetet i K\u00f8benhavn (2013)"},{"key":"26_CR29","doi-asserted-by":"crossref","unstructured":"Swamy, N., et al.: Dependent types and multi-monadic effects in F. In: Bod\u00edk, R., Majumdar, R., eds, Proceedings of the 43rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 2016, St. Petersburg, FL, USA, January 20 - 22, 2016, pp. 256\u2013270. ACM (2016)","DOI":"10.1145\/2837614.2837655"},{"key":"26_CR30","doi-asserted-by":"crossref","unstructured":"Swamy, N., Rastogi, A., Fromherz, A., Merigoux, D., Ahman, D., Mart\u00ednez, G.: Steelcore: an extensible concurrent separation logic for effectful dependently typed programs. Proc. ACM Program. Lang. 4(ICFP), 1\u201330 (2020)","DOI":"10.1145\/3409003"},{"key":"26_CR31","doi-asserted-by":"crossref","unstructured":"Vazou, N., Seidel, E.L., Jhala, R.: LiquidHaskell: experience with refinement types in the real world. In: Swierstra, W., edr, Proceedings of the 2014 ACM SIGPLAN symposium on Haskell, Gothenburg, Sweden, September 4-5, 2014, pp. 39\u201351. ACM (2014)","DOI":"10.1145\/2633357.2633366"},{"key":"26_CR32","doi-asserted-by":"crossref","unstructured":"Wolff, F., B\u00edl\u00fd, A., Matheja, C., M\u00fcller, P., Summers, A.J.: Modular specification and verification of closures in Rust. Proc. ACM Program. Lang. 5(OOPSLA), 1\u201329 (2021)","DOI":"10.1145\/3485522"},{"key":"26_CR33","doi-asserted-by":"crossref","unstructured":"Xu, D.N., Peyton Jones, S.L., Claessen, K.: Static contract checking for Haskell. In: Shao, Z., Pierce, B.C., eds, Proceedings of the 36th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 2009, Savannah, GA, USA, January 21-23, 2009, pp. 41\u201352. ACM (2009)","DOI":"10.1145\/1480881.1480889"},{"key":"26_CR34","unstructured":"Yoshida, N., Honda, K., Berger, M.: Logical reasoning for higher-order functions with local state. In: Seidl, H., edr, Foundations of Software Science and Computational Structures, 10th International Conference, FOSSACS 2007, Held as Part of the Joint European Conferences on Theory and Practice of Software, ETAPS 2007, Braga, Portugal, March 24-April 1, 2007, Proceedings, vol. 4423 of Lecture Notes in Computer Science, pp. 361\u2013377. Springer (2007)"},{"key":"26_CR35","doi-asserted-by":"crossref","unstructured":"Zampetti, F., Belias, F., Zid, C., Antonioland, G., Di Penta, M.: An empirical study on the fault-inducing effect of functional constructs in Python. In: 2022 IEEE International Conference on Software Maintenance and Evolution (ICSME), pp. 47\u201358 (2022)","DOI":"10.1109\/ICSME55016.2022.00013"}],"container-title":["Lecture Notes in Computer Science","Formal Methods"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/978-3-031-71162-6_26","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,11,27]],"date-time":"2024-11-27T18:02:01Z","timestamp":1732730521000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/978-3-031-71162-6_26"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,9,11]]},"ISBN":["9783031711619","9783031711626"],"references-count":35,"URL":"https:\/\/doi.org\/10.1007\/978-3-031-71162-6_26","relation":{"is-part-of":[{"id-type":"doi","id":"https:\/\/doi.org\/10.1007\/978-3-031-71162-6","asserted-by":"object"}]},"ISSN":["0302-9743","1611-3349"],"issn-type":[{"value":"0302-9743","type":"print"},{"value":"1611-3349","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,9,11]]},"assertion":[{"value":"11 September 2024","order":1,"name":"first_online","label":"First Online","group":{"name":"ChapterHistory","label":"Chapter History"}},{"value":"FM","order":1,"name":"conference_acronym","label":"Conference Acronym","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"International Symposium on Formal Methods","order":2,"name":"conference_name","label":"Conference Name","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Milan","order":3,"name":"conference_city","label":"Conference City","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Italy","order":4,"name":"conference_country","label":"Conference Country","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"2024","order":5,"name":"conference_year","label":"Conference Year","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"9 September 2024","order":7,"name":"conference_start_date","label":"Conference Start Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"13 September 2024","order":8,"name":"conference_end_date","label":"Conference End Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"26","order":9,"name":"conference_number","label":"Conference Number","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"fm2024","order":10,"name":"conference_id","label":"Conference ID","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"https:\/\/www.fm24.polimi.it\/","order":11,"name":"conference_url","label":"Conference URL","group":{"name":"ConferenceInfo","label":"Conference Information"}}]}}