{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,15]],"date-time":"2026-11-15T09:00:34Z","timestamp":1794733234554,"version":"4.9.1"},"publisher-location":"Cham","reference-count":44,"publisher":"Springer Nature Switzerland","isbn-type":[{"value":"9783031300431","type":"print"},{"value":"9783031300448","type":"electronic"}],"license":[{"start":{"date-parts":[[2023,1,1]],"date-time":"2023-01-01T00:00:00Z","timestamp":1672531200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2023,4,17]],"date-time":"2023-04-17T00:00:00Z","timestamp":1681689600000},"content-version":"vor","delay-in-days":106,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2023]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>\n                    Intermittent computing is gaining traction in application domains such as Energy Harvesting Devices (EHDs) that experience arbitrary power failures during program execution. To make progress, programs require system support to checkpoint state and re-execute after power failure by restoring the last saved state. This re-execution should be\n                    <jats:italic>correct<\/jats:italic>\n                    , i.e., simulated by a continuously-powered execution. We study the logical underpinning of intermittent computing and model checkpoint, crash, restore, and re-execution operations as computation on Crash types. We draw inspiration from adjoint logic and define Crash types by introducing two adjoint modality operators to model persistent and transient memory values of partial (re-)executions and the transitions between them caused by checkpoints and restoration. We define a Crash type system for a core calculus. We prove the correctness of intermittent systems by defining a novel logical relation for Crash types.\n                  <\/jats:p>","DOI":"10.1007\/978-3-031-30044-8_7","type":"book-chapter","created":{"date-parts":[[2023,4,16]],"date-time":"2023-04-16T16:28:25Z","timestamp":1681662505000},"page":"168-196","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":2,"title":["Modal Crash Types for Intermittent Computing"],"prefix":"10.1007","author":[{"given":"Farzaneh","family":"Derakhshan","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Myra","family":"Dotzel","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Milijana","family":"Surbatovich","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Limin","family":"Jia","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2023,4,17]]},"reference":[{"key":"7_CR1","doi-asserted-by":"publisher","unstructured":"Adkins, J., Campbell, B., Ghena, B., Jackson, N., Pannuto, P., Dutta, P.: The signpost network: Demo abstract. In: Proceedings of the 14th ACM Conference on Embedded Network Sensor Systems CD-ROM. SenSys \u201916 (2016). https:\/\/doi.org\/10.1145\/2994551.2996542","DOI":"10.1145\/2994551.2996542"},{"key":"7_CR2","doi-asserted-by":"publisher","unstructured":"Ahmed, A., Dreyer, D., Rossberg, A.: State-dependent representation independence. In: Proceedings of the 36th Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages. p. 340\u2013353. POPL \u201909, Association for Computing Machinery, New York, NY, USA (2009). https:\/\/doi.org\/10.1145\/1480881.1480925","DOI":"10.1145\/1480881.1480925"},{"key":"7_CR3","unstructured":"Ahmed, A.J.: Semantics of types for mutable state. Princeton University (2004)"},{"key":"7_CR4","doi-asserted-by":"publisher","unstructured":"Balsamo, D., Weddell, A., Das, A., Arreola, A., Brunelli, D., Al-Hashimi, B., Merrett, G., Benini, L.: Hibernus++: A self-calibrating and adaptive system for transiently-powered embedded devices. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems PP(99), 1\u20131 (2016). https:\/\/doi.org\/10.1109\/TCAD.2016.2547919","DOI":"10.1109\/TCAD.2016.2547919"},{"key":"7_CR5","doi-asserted-by":"publisher","unstructured":"Balsamo, D., Weddell, A.S., Merrett, G.V., Al-Hashimi, B.M., Brunelli, D., Benini, L.: Hibernus: Sustaining computation during intermittent supply for energy-harvesting systems. IEEE Embedded Systems Letters 7(1), 15\u201318 (2015). https:\/\/doi.org\/10.1109\/LES.2014.2371494","DOI":"10.1109\/LES.2014.2371494"},{"key":"7_CR6","doi-asserted-by":"crossref","unstructured":"Balzer, S., Toninho, B., Pfenning, F.: Manifest deadlock-freedom for shared session types. In: Proceedings of the 29th European Symposium on Programming. pp. 611\u2013639 (2019)","DOI":"10.1007\/978-3-030-17184-1_22"},{"key":"7_CR7","doi-asserted-by":"crossref","unstructured":"Benton, N., Wadler, P.: Linear logic, monads and the lambda calculus. In: Proceedings 11th Annual IEEE Symposium on Logic in Computer Science. pp. 420\u2013431. IEEE (1996)","DOI":"10.1109\/LICS.1996.561458"},{"key":"7_CR8","doi-asserted-by":"crossref","unstructured":"Benton, P.N.: A mixed linear and non-linear logic: Proofs, terms and models. In: International Workshop on Computer Science Logic. pp. 121\u2013135. Springer (1994)","DOI":"10.1007\/BFb0022251"},{"key":"7_CR9","doi-asserted-by":"publisher","unstructured":"Berthou, G., Dagand, P.E., Demange, D., Oudin, R., Risset, T.: Intermittent computing with peripherals, formally verified. In: The 21st ACM SIGPLAN\/SIGBED Conference on Languages, Compilers, and Tools for Embedded Systems. pp. 85\u201396. LCTES \u201920, Association for Computing Machinery, New York, NY, USA (2020). https:\/\/doi.org\/10.1145\/3372799.3394365","DOI":"10.1145\/3372799.3394365"},{"key":"7_CR10","doi-asserted-by":"crossref","unstructured":"Birkedal, L., St\u00f8vring, K., Thamsborg, J.: Realizability semantics of parametric polymorphism, general references, and recursive types. In: International Conference on Foundations of Software Science and Computational Structures. pp. 456\u2013470. FOSSACS \u201909, Springer (2009)","DOI":"10.1007\/978-3-642-00596-1_32"},{"key":"7_CR11","doi-asserted-by":"crossref","unstructured":"Chen, H., Ziegler, D., Chajed, T., Chlipala, A., Kaashoek, M.F., Zeldovich, N.: Using crash hoare logic for certifying the fscq file system. In: Proceedings of the 25th Symposium on Operating Systems Principles. pp. 18\u201337. SOSP \u201915 (2015)","DOI":"10.1145\/2815400.2815402"},{"key":"7_CR12","doi-asserted-by":"publisher","unstructured":"Colin, A., Lucia, B.: Chain: Tasks and channels for reliable intermittent programs. In: Proceedings of the ACM International Conference on Object Oriented Programming Systems Languages and Applications. OOPSLA \u201916 (2016). https:\/\/doi.org\/10.1145\/2983990.2983995","DOI":"10.1145\/2983990.2983995"},{"key":"7_CR13","doi-asserted-by":"crossref","unstructured":"Dahiya, M., Bansal, S.: Automatic verification of intermittent systems. In: Dillig, I., Palsberg, J. (eds.) Verification, Model Checking, and Abstract Interpretation. VMCAI \u201918 (2018)","DOI":"10.1007\/978-3-319-73721-8_8"},{"key":"7_CR14","doi-asserted-by":"crossref","unstructured":"Das, A., Balzer, S., Hoffmann, J., Pfenning, F., Santurkar, I.: Resource-aware session types for digital contracts. In: IEEE 34th Computer Security Foundations Symposium. pp. 1\u201316. CSF \u201921 (2021)","DOI":"10.1109\/CSF51468.2021.00004"},{"key":"7_CR15","doi-asserted-by":"publisher","unstructured":"Derakhshan, F., Dotzel, M., Surbatovich, M., Jia, L.: Technical report: Modal crash types for intermittent computing. Tech. rep., Carnegie Mellon University (2023). https:\/\/doi.org\/10.1184\/R1\/21950804","DOI":"10.1184\/R1\/21950804"},{"key":"7_CR16","doi-asserted-by":"crossref","unstructured":"Dreyer, D., Neis, G., Birkedal, L.: The impact of higher-order state and control effects on local relational reasoning. Journal of Functional Programming 22(4-5), 477\u2013528 (2012)","DOI":"10.1017\/S095679681200024X"},{"key":"7_CR17","doi-asserted-by":"publisher","unstructured":"Hester, J., Storer, K., Sorber, J.: Timely execution on intermittently powered batteryless sensors. In: Proceedings of the 15th ACM Conference on Embedded Network Sensor Systems (2017). https:\/\/doi.org\/10.1145\/3131672.3131673","DOI":"10.1145\/3131672.3131673"},{"key":"7_CR18","doi-asserted-by":"crossref","unstructured":"Jung, A., Tiuryn, J.: A new characterization of lambda definability. In: International Conference on Typed Lambda Calculi and Applications. pp. 245\u2013257. Springer (1993)","DOI":"10.1007\/BFb0037110"},{"key":"7_CR19","doi-asserted-by":"publisher","unstructured":"Kortbeek, V., Yildirim, K.S., Bakar, A., Sorber, J., Hester, J., Pawe\u0142czak, P.: Time-sensitive intermittent computing meets legacy software. In: Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems. pp. 85\u201399. ASPLOS \u201920, Association for Computing Machinery, New York, NY, USA (2020). https:\/\/doi.org\/10.1145\/3373376.3378476","DOI":"10.1145\/3373376.3378476"},{"key":"7_CR20","doi-asserted-by":"crossref","unstructured":"Licata, D.R., Shulman, M.: Adjoint logic with a 2-category of modes. In: International Symposium on Logical Foundations of Computer Science. pp. 219\u2013235. Springer (2016)","DOI":"10.1007\/978-3-319-27683-0_16"},{"key":"7_CR21","unstructured":"Licata, D.R., Shulman, M., Riley, M.: A fibrational framework for substructural and modal logics. In: 2nd International Conference on Formal Structures for Computation and Deduction. FSCD \u201917, Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik (2017)"},{"key":"7_CR22","doi-asserted-by":"publisher","unstructured":"Lucia, B., Denby, B., Manchester, Z., Desai, H., Ruppel, E., Colin, A.: Computational nanosatellite constellations: Opportunities and challenges. GetMobile: Mobile Comp. and Comm. 25(1), 16\u201323 (Jun 2021).https:\/\/doi.org\/10.1145\/3471440.3471446","DOI":"10.1145\/3471440.3471446"},{"key":"7_CR23","doi-asserted-by":"publisher","unstructured":"Lucia, B., Ransford, B.: A simpler, safer programming and execution model for intermittent systems. In: Proceedings of the 36th ACM SIGPLAN Conference on Programming Language Design and Implementation. PLDI \u201915 (2015). https:\/\/doi.org\/10.1145\/2737924.2737978","DOI":"10.1145\/2737924.2737978"},{"key":"7_CR24","doi-asserted-by":"publisher","unstructured":"Maeng, K., Colin, A., Lucia, B.: Alpaca: Intermittent execution without checkpoints. Proc. ACM Program. Lang. 1(OOPSLA), 96:1\u201396:30 (Oct 2017). https:\/\/doi.org\/10.1145\/3133920","DOI":"10.1145\/3133920"},{"key":"7_CR25","doi-asserted-by":"publisher","unstructured":"Maeng, K., Lucia, B.: Supporting peripherals in intermittent systems with just-in-time checkpoints. In: Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation. p. 1101\u20131116. PLDI \u201919 (2019). https:\/\/doi.org\/10.1145\/3314221.3314613","DOI":"10.1145\/3314221.3314613"},{"key":"7_CR26","doi-asserted-by":"publisher","unstructured":"Maeng, K., Lucia, B.: Adaptive low-overhead scheduling for periodic and reactive intermittent execution. In: Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation. pp. 1005\u20131021. PLDI \u201920, Association for Computing Machinery, New York, NY, USA (2020). https:\/\/doi.org\/10.1145\/3385412.3385998","DOI":"10.1145\/3385412.3385998"},{"key":"7_CR27","unstructured":"Moggi, E.: Computational lambda-calculus and monads. University of Edinburgh, Department of Computer Science, Laboratory for Foundations of Computer Science (1988)"},{"key":"7_CR28","doi-asserted-by":"publisher","unstructured":"Nardello, M., Desai, H., Brunelli, D., Lucia, B.: Camaroptera: A batteryless long-range remote visual sensing system. In: Proceedings of the 7th International Workshop on Energy Harvesting & Energy-Neutral Sensing Systems. pp. 8\u201314. ENSsys\u201919, ACM, New York, NY, USA (2019). https:\/\/doi.org\/10.1145\/3362053.3363491","DOI":"10.1145\/3362053.3363491"},{"key":"7_CR29","unstructured":"NASA: What is KickSat-2? https:\/\/www.nasa.gov\/ames\/kicksat (2019), visited April 15th, 2022"},{"key":"7_CR30","doi-asserted-by":"crossref","unstructured":"Pfenning, F., Davies, R.: A judgmental reconstruction of modal logic. Mathematical structures in computer science 11(4), 511\u2013540 (2001)","DOI":"10.1017\/S0960129501003322"},{"key":"7_CR31","doi-asserted-by":"crossref","unstructured":"Plotkin, G., Power, J.: Semantics for algebraic operations. Electronic Notes in Theoretical Computer Science 45, 332\u2013345 (2001)","DOI":"10.1016\/S1571-0661(04)80970-8"},{"key":"7_CR32","doi-asserted-by":"crossref","unstructured":"Plotkin, G., Pretnar, M.: Handlers of algebraic effects. In: Proceedings of the 19th European Symposium on Programming. pp. 80\u201394. Springer (2009)","DOI":"10.1007\/978-3-642-00590-9_7"},{"key":"7_CR33","doi-asserted-by":"crossref","unstructured":"Pretnar, M., Plotkin, G.D.: Handling algebraic effects. Logical methods in computer science 9 (2013)","DOI":"10.2168\/LMCS-9(4:23)2013"},{"key":"7_CR34","doi-asserted-by":"crossref","unstructured":"Pruiksma, K., Pfenning, F.: A message-passing interpretation of adjoint logic. Journal of Logical and Algebraic Methods in Programming 120, 100637 (2021)","DOI":"10.1016\/j.jlamp.2020.100637"},{"key":"7_CR35","doi-asserted-by":"publisher","unstructured":"Ransford, B., Sorber, J., Fu, K.: Mementos: System support for long-running computation on RFID-scale devices. In: Proceedings of the Sixteenth International Conference on Architectural Support for Programming Languages and Operating Systems. ASPLOS XVI (2011). https:\/\/doi.org\/10.1145\/1950365.1950386","DOI":"10.1145\/1950365.1950386"},{"key":"7_CR36","unstructured":"Reed, J.: A judgmental deconstruction of modal logic. Unpublished manuscript, January (2009)"},{"key":"7_CR37","doi-asserted-by":"publisher","unstructured":"Ruppel, E., Lucia, B.: Transactional concurrency control for intermittent, energy-harvesting computing systems. In: Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation. p. 1085\u20131100. PLDI \u201919 (2019). https:\/\/doi.org\/10.1145\/3314221.3314583","DOI":"10.1145\/3314221.3314583"},{"key":"7_CR38","doi-asserted-by":"publisher","unstructured":"Shavit, N., Touitou, D.: Software transactional memory. In: Proceedings of the fourteenth annual ACM symposium on Principles of distributed computing. pp. 204\u2013213. PODC \u201995 (1995). https:\/\/doi.org\/10.1145\/224964.224987","DOI":"10.1145\/224964.224987"},{"key":"7_CR39","doi-asserted-by":"publisher","unstructured":"Surbatovich, M., Jia, L., Lucia, B.: I\/o dependent idempotence bugs in intermittent systems. Proc. ACM Program. Lang. 3(OOPSLA), 183:1\u2013183:31 (Oct 2019). https:\/\/doi.org\/10.1145\/3360609","DOI":"10.1145\/3360609"},{"key":"7_CR40","doi-asserted-by":"publisher","unstructured":"Surbatovich, M., Jia, L., Lucia, B.: Automatically enforcing fresh and consistent inputs in intermittent systems. In: Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation. p. 851\u2013866. PLDI \u201921, Association for Computing Machinery, New York, NY, USA (2021). https:\/\/doi.org\/10.1145\/3453483.3454081","DOI":"10.1145\/3453483.3454081"},{"key":"7_CR41","doi-asserted-by":"publisher","unstructured":"Surbatovich, M., Lucia, B., Jia, L.: Towards a formal foundation of intermittent computing. Proc. ACM Program. Lang. 4(OOPSLA) (Nov 2020). https:\/\/doi.org\/10.1145\/3428231","DOI":"10.1145\/3428231"},{"key":"7_CR42","doi-asserted-by":"crossref","unstructured":"Thamsborg, J., Birkedal, L.: A kripke logical relation for effect-based program transformations. ACM SIGPLAN Notices 46(9), 445\u2013456 (2011)","DOI":"10.1145\/2034574.2034831"},{"key":"7_CR43","doi-asserted-by":"publisher","unstructured":"Van Der\u00a0Woude, J., Hicks, M.: Intermittent computation without hardware support or programmer intervention. In: Proceedings of OSDI\u201916: 12th USENIX Symposium on Operating Systems Design and Implementation (2016). https:\/\/doi.org\/10.5555\/3026877.3026880","DOI":"10.5555\/3026877.3026880"},{"key":"7_CR44","doi-asserted-by":"publisher","unstructured":"Yildirim, K.S., Majid, A.Y., Patoukas, D., Schaper, K., Pawelczak, P., Hester, J.: Ink: Reactive kernel for tiny batteryless sensors. In: Proceedings of the 16th ACM Conference on Embedded Networked Sensor Systems. pp. 41\u201353. SenSys \u201918, ACM, New York, NY, USA (2018). https:\/\/doi.org\/10.1145\/3274783.3274837","DOI":"10.1145\/3274783.3274837"}],"container-title":["Lecture Notes in Computer Science","Programming Languages and Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/978-3-031-30044-8_7","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,10,18]],"date-time":"2024-10-18T06:38:22Z","timestamp":1729233502000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/978-3-031-30044-8_7"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023]]},"ISBN":["9783031300431","9783031300448"],"references-count":44,"URL":"https:\/\/doi.org\/10.1007\/978-3-031-30044-8_7","relation":{"is-part-of":[{"id-type":"doi","id":"https:\/\/doi.org\/10.1007\/978-3-031-30044-8","asserted-by":"object"}]},"ISSN":["0302-9743","1611-3349"],"issn-type":[{"value":"0302-9743","type":"print"},{"value":"1611-3349","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023]]},"assertion":[{"value":"17 April 2023","order":1,"name":"first_online","label":"First Online","group":{"name":"ChapterHistory","label":"Chapter History"}},{"value":"ESOP","order":1,"name":"conference_acronym","label":"Conference Acronym","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"European Symposium on Programming","order":2,"name":"conference_name","label":"Conference Name","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Paris","order":3,"name":"conference_city","label":"Conference City","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"France","order":4,"name":"conference_country","label":"Conference Country","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"2023","order":5,"name":"conference_year","label":"Conference Year","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"22 April 2023","order":7,"name":"conference_start_date","label":"Conference Start Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"27 April 2023","order":8,"name":"conference_end_date","label":"Conference End Date","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"32","order":9,"name":"conference_number","label":"Conference Number","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"esop2023","order":10,"name":"conference_id","label":"Conference ID","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"https:\/\/etaps.org\/2023\/esop","order":11,"name":"conference_url","label":"Conference URL","group":{"name":"ConferenceInfo","label":"Conference Information"}},{"value":"Double-blind","order":1,"name":"type","label":"Type","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"EasyChair","order":2,"name":"conference_management_system","label":"Conference Management System","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"55","order":3,"name":"number_of_submissions_sent_for_review","label":"Number of Submissions Sent for Review","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"20","order":4,"name":"number_of_full_papers_accepted","label":"Number of Full Papers Accepted","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"0","order":5,"name":"number_of_short_papers_accepted","label":"Number of Short Papers Accepted","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"36% - The value is computed by the equation \"Number of Full Papers Accepted \/ Number of Submissions Sent for Review * 100\" and then rounded to a whole number.","order":6,"name":"acceptance_rate_of_full_papers","label":"Acceptance Rate of Full Papers","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"3","order":7,"name":"average_number_of_reviews_per_paper","label":"Average Number of Reviews per Paper","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"5.5","order":8,"name":"average_number_of_papers_per_reviewer","label":"Average Number of Papers per Reviewer","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}},{"value":"Yes","order":9,"name":"external_reviewers_involved","label":"External Reviewers Involved","group":{"name":"ConfEventPeerReviewInformation","label":"Peer Review Information (provided by the conference organizers)"}}]}}