[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-703182-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-703182-en":130,"doc-similar-703182":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","program-logics-a-la-carte","Program Logics à la Carte","","Program logics are an effective strategy for verifying complex programs by combining local reasoning with abstraction and composition, enabling proofs for individual components to be reused when a program logic has already been defined. The status quo remains inefficient because every new language logic requires rebuilding semantics and proof rules from scratch, and reuse is limited across languages or even across primitives within a language. Program logics à la carte addresses this by assembling reusable, composable logic fragments for effects such as shared state, concurrency, and non-determinism, yielding modular proof development.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/program-logics-a-la-carte/703182/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/program-logics-a-la-carte/703182.png","ImageObject",300,407,{"name":42,"@type":43},"pop out","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-22","2026-11-13",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"Why are program logics effective for verifying complex programs?","Question",{"text":62,"@type":63},"They combine local reasoning with abstraction and composition, allowing proof principles for individual components to be composed into guarantees about the whole program.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"What major obstacle prevents reuse in the current workflow for new language program logics?",{"text":67,"@type":63},"Defining a new program logic often requires establishing semantics and proof rules from scratch, and reuse is typically not available across languages or across proof rules tied to different primitives.",{"name":69,"@type":60,"acceptedAnswer":70},"How does Program Logics à la carte enable reuse when defining complex program logics?",{"text":71,"@type":63},"It constructs program logics by combining reusable, composable fragments for different language effects, such as shared state, concurrency, and non-determinism, then supports soundness via mechanization in Coq.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},703182,1794562113,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":33,"preview_urls":145},962090760408,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Program Logics à la Carte  \nMAX VISTRUP, ETH Zurich, Switzerland MICHAEL SAMMLER, ETH Zurich, Switzerland RALF JUNG, ETH Zurich, Switzerland  \nProgram logics have proven a successful strategy for verification of complex programs. By providing local reasoning and means of abstraction and composition, they allow reasoning principles for individual components of a program to be combined to prove guarantees about a whole program. Crucially, these components and their proofs can be reused. However, this reuse is only available once the program logic has been defined. It is a frustrating fact of the status quo that whoever defines a new program logic must establish every part, both semantics and proof rules, from scratch. In spite of programming languages and program logics typically sharing many core features, reuse is generally not available across languages. Even inside one language, if the same underlying operation appears in multiple language primitives, reuse is typically not possible when establishing proof rules for the program logic.  \nTo enable reuse across and inside languages when defining complex program logics (and proving them sound), we serve program logics à la carte by combining program logic fragments for the various effects of the language. Among other language features, the menu includes shared state, concurrency, and non-determinism as reusable, composable blocks that can be combined to define a program logic modularly. Our theory buildson ITrees as a framework to express language semantics and Iris as the underlying separation logic; the work has been mechanized in the Coq proof assistant.  \nCCS Concepts: • Theory of computation → Logic and verification; Separation logic; Program semantics; Programming logic.  \nAdditional Key Words and Phrases: verification, separation logic, Interaction Trees, Iris, Coq  \nACM Reference Format:  \nMax Vistrup, Michael Sammler, and Ralf Jung. 2025. Program Logics à la Carte. Proc. ACM Program. Lang. 9, POPL, Article 11 (January 2025), 32 pages. [https://doi.org/10.1145/3704847](https://doi.org/10.1145/3704847)  \n1 Introduction  \nProgram logics are a widely successful approach to program verification [14, 45, 40, 9, 2, 27, 29, 19] . However, they require a non-trivial amount of preparation, especially for programs written in complicated languages. First, a formal definition of the language semantics needs to be developed, Then, one must find and state the rules of the program logic. Finally, the two need to be connected by a soundness proof.  \nLet us consider what is required to build a program logic for a new language. Probably our language has some form of global mutable state; maybe it has concurrency; maybe it has other forms of non-determinism. The dominant approach to defining language semantics is to use an operational semantics, which has standard ways to model all these language features. To obtain a program logic, again there are common ways of reasoning about such features (the combination of  \nAuthors’ Contact Information: Max Vistrup, ETH Zurich, Zürich, Switzerland, [max.vistrup@inf.ethz.ch](max.vistrup@inf.ethz.ch); Michael Sammler, ETH Zurich, Zürich, Switzerland, michael.sammler@inf.ethz.ch; Ralf Jung, ETH Zurich, Zürich, Switzerland, ralf.jung@inf. [ethz.ch](ethz.ch).  \nPermission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for third-party components of this work must be honored. For all other uses, contact the owner/author(s) .  \n© 2025 Copyright held by the owner/author(s) .  \nACM 2475-1421/2025/1-ART11  \n[https://doi.org/10.1145/3704847](https://doi.org/10.1145/3704847)  \nProc. ACM Program. Lang., Vol. 9, No. POPL, Article 11 . Publication date: January 2025 .  \n11:2 Max Vistrup, Michael Sammler, and Ralf Jung  \nmutable state ","cbCaitcMeyZIMCV3","https://ap.wps.com/l/cbCaitcMeyZIMCV3","pdf",810687,32,"English","# Introduction\n## Motivation and limitations of existing program logics\n## Operational semantics and monolithic definitions\n## Program logics à la carte: reusable building blocks","[{\"question\":\"Why are program logics effective for verifying complex programs?\",\"answer\":\"They combine local reasoning with abstraction and composition, allowing proof principles for individual components to be composed into guarantees about the whole program.\"},{\"question\":\"What major obstacle prevents reuse in the current workflow for new language program logics?\",\"answer\":\"Defining a new program logic often requires establishing semantics and proof rules from scratch, and reuse is typically not available across languages or across proof rules tied to different primitives.\"},{\"question\":\"How does Program Logics à la carte enable reuse when defining complex program logics?\",\"answer\":\"It constructs program logics by combining reusable, composable fragments for different language effects, such as shared state, concurrency, and non-determinism, then supports soundness via mechanization in Coq.\"}]","Program Logics à la Carte | PDF",81,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/b7d838404833ccbfd58fc9cf819d9bc4.webp",983,1415,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/0fa5cf9d442755e2830ff60e59b71077.webp",982,1414,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/0d7ab3557a4d666cfe3437e6b3ff8eb7.webp",981,1412,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-13/48cbc2a59d659c5b268d0876e340e452.webp",980,1411,{"list":163,"token":11},[164,170,177,184,190,197,204,210,216,222],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":115,"category_name":29,"create_tm":169},203825,"Journal of Logical and Algebraic Methods in Programming - On the relation between Concurrent Separation Logic and Concurrent Kleene Algebra","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229882949877/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=tdYNtyA2Lqqs%2B5wRWDYKUfH2ssE%3D","journal-of-logical-and-algebraic-methods-in-programming-on-the-relation-between-concurrent-separation-logic-and-concurrent-kleene-algebra",1788564174,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":29,"create_tm":176},82699,"ShannonProver: Towards Automating Formal Cryptographic Proofs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808779846/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=TBBusmBg4wrt8KSGQOU7xVTOJEg%3D","shannonprover-towards-automating-formal-cryptographic-proofs",36,1784182367,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":29,"create_tm":183},501664,"A uniform characterisation of the (a)synchronous must-preorder - Paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229931388066/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=EGyZ4Zc7dba7xFPb6btN55WQcaE%3D","a-uniform-characterisation-of-the-asynchronous-must-preorder-paper",13,1791022323,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":101,"category_name":29,"create_tm":189},592766,"Is Mathematical Logic Really Necessary in Teaching Mathematical Proofs?","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229955035379/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=zjfVt2pTjs3ql9nzYZcMgwGMLUg%3D","is-mathematical-logic-really-necessary-in-teaching-mathematical-proofs",1792075481,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":29,"create_tm":196},82454,"Formally Verifying Quantum Phase Estimation Circuits with 1,000+ Qubits","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808745129/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=hN5p%2FOAjw8NfCvrS1hz9I138u%2Bo%3D","formally-verifying-quantum-phase-estimation-circuits-with-1000-qubits",22,1784180552,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":29,"create_tm":203},85452,"SNARKChain Proof-of-Useful-Work Blockchain Consensus with General-Purpose SNARK Marketplace","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809314354/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=ONO1PbNeRBGIKxh60M4aFniy2GE%3D","snarkchain-proof-of-useful-work-blockchain-consensus-with-general-purpose-snark-marketplace",24,1784203658,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":182,"category_name":29,"create_tm":209},504953,"Case study: solving P-99 with LPTP and an LLM","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229932169699/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=yy7ye9Y9mPL4FXIpsyvJ37tPljk%3D","case-study-solving-p-99-with-lptp-and-an-llm",1791080802,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":96,"category_name":29,"create_tm":215},640618,"Compositional Non-Interference for Fine-Grained Concurrent Programs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229970247872/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=gP3oIPzEcmAFQJoE1tsADiHE23o%3D","compositional-non-interference-for-fine-grained-concurrent-programs",1792710047,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":96,"category_name":29,"create_tm":221},588540,"Teaching Logic Using a State-of-the-Art Proof Assistant - Volume 3 - Issue 2 - 2010","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229954276578/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=N4zTD3jttBjAFvO%2BLevkO8Ucrj8%3D","teaching-logic-using-a-state-of-the-art-proof-assistant-volume-3-issue-2-2010",1792065449,{"doc_id":223,"doc_title":224,"file_type":137,"home_preview_img_url":225,"slug":226,"view_count":111,"category_name":29,"create_tm":227},665541,"A first-order logic for string diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983860486/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=VXUZ6%2FD%2BY1czQHEfMe6M%2FFdAO48%3D","a-first-order-logic-for-string-diagrams",1793304829]