[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-786522-105":3,"detail-sidebar-cat-0-en-105":79,"doc-detail-786522-en":129,"doc-similar-786522":160},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":9,"keywords":10,"description":11,"schema_data":12,"social_meta":72,"head_meta":74,"extra_data":76,"updated_unix":78},105,"en","russol-pldi23","","Safe Rust program synthesis can exploit the type system to simplify specifications and reduce search. The paper introduces Synthetic Ownership Logic, which derives programs satisfying user-defined functional properties and Rust’s type rules, and presents RusSOL, its implementation. The evaluation uses common problems faced by new Rust developers and reports lower annotation burden and improved performance. By inferring data-structure, aliasing, and side-effect information from types, the approach lets users focus on functional requirements while synthesizing correct-by-construction programs.",{"@graph":13,"@context":71},[14,33,54],{"@type":15,"itemListElement":16},"BreadcrumbList",[17,22,26,30],{"item":18,"name":19,"@type":20,"position":21},"https://docshare.wps.com","Home","ListItem",1,{"item":23,"name":24,"@type":20,"position":25},"https://docshare.wps.com/document/","Document",2,{"item":27,"name":28,"@type":20,"position":29},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":31,"name":9,"@type":20,"position":32},"https://docshare.wps.com/document/russol-pldi23/786522/",4,{"url":31,"name":9,"@type":34,"image":35,"author":40,"headline":9,"publisher":43,"fileFormat":46,"inLanguage":8,"description":11,"dateModified":47,"datePublished":48,"encodingFormat":46,"isAccessibleForFree":49,"interactionStatistic":50},"DigitalDocument",{"url":36,"@type":37,"width":38,"height":39},"https://docshare.wps.com/thumbnails/russol-pldi23/786522.png","ImageObject",300,407,{"name":41,"@type":42},"Patrick","Person",{"url":18,"name":44,"@type":45},"DocShare","Organization","application/pdf","2026-12-05","2026-12-04",true,{"@type":51,"interactionType":52,"userInteractionCount":21},"InteractionCounter",{"@type":53},"ViewAction",{"@type":55,"mainEntity":56},"FAQPage",[57,63,67],{"name":58,"@type":59,"acceptedAnswer":60},"What problem does the paper address?","Question",{"text":61,"@type":62},"It explores how automatic synthesis can help generate correct programs in safe Rust, where the type system can make manual implementation challenging.","Answer",{"name":64,"@type":59,"acceptedAnswer":65},"What is Synthetic Ownership Logic?",{"text":66,"@type":62},"It is a program logic for deriving programs that satisfy user-provided functional specifications as well as Rust’s type rules.",{"name":68,"@type":59,"acceptedAnswer":69},"What is RusSOL, and how is it evaluated?",{"text":70,"@type":62},"RusSOL is a tool implementing the proposed synthesis approach. Its evaluation on common problems faced by new Rust developers reports reduced annotation burden and improved performance.","https://schema.org",{"og:url":31,"og:type":73,"og:title":9,"og:site_name":44,"og:description":11},"article",{"robots":75,"canonical":31},"index,follow",{"doc_id":77,"site_id":7},786522,1796427852,{"code":4,"msg":80,"data":81},"success",[82,86,90,94,99,104,109,113,118,121,125],{"id":21,"doc_module":4,"doc_module_name":24,"category_name":83,"show_sort_weight":84,"slug":85},"Story & Novel",90,"story-novel",{"id":25,"doc_module":4,"doc_module_name":24,"category_name":87,"show_sort_weight":88,"slug":89},"Literature",80,"literature",{"id":32,"doc_module":4,"doc_module_name":24,"category_name":91,"show_sort_weight":92,"slug":93},"Exam",70,"exam",{"id":95,"doc_module":4,"doc_module_name":24,"category_name":96,"show_sort_weight":97,"slug":98},5,"Comic",60,"comic",{"id":100,"doc_module":4,"doc_module_name":24,"category_name":101,"show_sort_weight":102,"slug":103},6,"Technology",50,"technology",{"id":105,"doc_module":4,"doc_module_name":24,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":24,"category_name":28,"show_sort_weight":111,"slug":112},8,30,"research-report",{"id":114,"doc_module":4,"doc_module_name":24,"category_name":115,"show_sort_weight":116,"slug":117},9,"Religion & Spirituality",20,"religion-spirituality",{"id":116,"doc_module":4,"doc_module_name":24,"category_name":119,"show_sort_weight":116,"slug":120},"World Cup","world-cup",{"id":122,"doc_module":4,"doc_module_name":24,"category_name":123,"show_sort_weight":122,"slug":124},10,"Lifestyle","lifestyle",{"id":126,"doc_module":4,"doc_module_name":24,"category_name":127,"show_sort_weight":95,"slug":128},19,"General","general",{"code":4,"msg":80,"data":130},{"doc_id":77,"user_id":131,"nickname":41,"user_avatar":132,"doc_module":4,"category_id":110,"category_name":28,"doc_title":9,"doc_description":11,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":21,"is_deleted":4,"is_public":21,"is_downloadable":21,"audit_status":21,"page_count":138,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":11,"update_tm":78,"read_time":97,"preview_page_count":32,"preview_urls":143},549758146520,"https://ap-avatar.wpscdn.com/avatar/80002397d8c0411e94?_k=1775819394049821470","Leveraging Rust Types for Program Synthesis  \nJONÁŠ FIALA, ETH Zurich, Switzerland SHACHAR ITZHAKY, Technion, Israel PETER MÜLLER, ETH Zurich, Switzerland  \nNADIA POLIKARPOVA, University of California, San Diego, USA ILYA SERGEY, National University of Singapore, Singapore  \nThe Rust type system guarantees memory safety and data-race freedom. However, to satisfy Rust’s type rules, many familiar implementation patterns must be adapted substantially. These necessary adaptations complicate programming and might hinder language adoption. In this paper, we demonstrate that, in contrast to manual programming, automatic synthesis is not complicated by Rust’s type system, but rather beneﬁts in two major ways. First, a Rust synthesizer can get away with signiﬁcantly simpler speciﬁcations. While in more traditional imperative languages, synthesizers often require lengthy annotations in a complex logic to describe the shape of data structures, aliasing, and potential side eﬀects, in Rust, all this information can be inferred from the types, letting the user focus on specifying functional properties using a slight extension of Rust expressions. Second, the Rust type system reduces the search space for synthesis, which improves performance.  \nIn this work, we present the ﬁrst approach to automatically synthesizing correct-by-construction programs in safe Rust. The key ingredient of our synthesis procedure is Synthetic Ownership Logic, a new program logic for deriving programs that are guaranteed to satisfy both a user-provided functional speciﬁcation and, importantly, Rust’s intricate type system. We implement this logic in a new tool called RusSOL. Our evaluation shows the eﬀectiveness of RusSOL, both in terms of annotation burden and performance, in synthesizing provably correct solutions to common problems faced by new Rust developers.  \nCCS Concepts: • Software and its engineering → Automatic programming.  \nAdditional Key Words and Phrases: program synthesis, program logic, Rust, type systems  \nACM Reference Format:  \nJonáš Fiala, Shachar Itzhaky, Peter Müller, Nadia Polikarpova, and Ilya Sergey. 2023. Leveraging Rust Types for Program Synthesis. Proc. ACM Program. Lang. 7, PLDI, Article 164 (June 2023), 24 pages. [https://doi.org/10](https://doi.org/10) . 1145/3591278  \n1 INTRODUCTION  \nRust is a systems programming language designed for writing low-level code that combines strong correctness guarantees with the runtime performance of traditional “unsafe” systems languages, such as C/C++ (Matsakis and Klock II 2014; Rust Team 2017) . A distinct feature of Rust is its ownership type system, which ensures memory safety and data-race freedom, and enables the compiler to manage memory automatically, without requiring a garbage collector.  \nThe type system of Rust, which is so eﬀective at preventing bugs statically, is also what makes Rust code hard to write for developers who are new to the language. As an example, consider the  \nAuthors’ addresses: Jonáš Fiala, ETH Zurich, Department of Computer Science, Switzerland, jonas.ﬁ[ala@inf.ethz.ch](ala@inf.ethz.ch); Shachar Itzhaky, Technion, Israel, [shachari@cs.technion.ac.il](shachari@cs.technion.ac.il); Peter Müller, ETH Zurich, Department of Computer Science, Switzerland, [peter.mueller@inf.ethz.ch](peter.mueller@inf.ethz.ch); Nadia Polikarpova, University of California, San Diego, USA, nadia.polikarpova@ [ucsd.edu](ucsd.edu); Ilya Sergey, National University of Singapore, Singapore, [ilya@nus.edu.sg](ilya@nus.edu.sg).  \nThis work is licensed under a Creative Commons Attribution 4 .0 International License.  \n© 2023 Copyright held by the owner/author(s) .  \n2475-1421/2023/6-ART164  \n[https://doi.org/10.1145/3591278](https://doi.org/10.1145/3591278)  \nProc. ACM Program. Lang., Vol. 7, No. PLDI, Article 164 . Publication date: June 2023 .  \n164  \n164:2 Jonáš Fiala, Shachar Itzhaky, Peter Müller, Nadia Polikarpova, and Ilya Sergey  \ncode in Fig. 1, adopted from StackOverﬂow.1 Function borrow a","cbCaijUTb7JF2EUH","https://ap.wps.com/l/cbCaijUTb7JF2EUH","pdf",393666,24,"English","# Introduction\n## Rust ownership and type-system challenges\n## Program synthesis for Rust\n## Synthetic Ownership Logic and RusSOL\n## Evaluation","[{\"question\":\"What problem does the paper address?\",\"answer\":\"It explores how automatic synthesis can help generate correct programs in safe Rust, where the type system can make manual implementation challenging.\"},{\"question\":\"What is Synthetic Ownership Logic?\",\"answer\":\"It is a program logic for deriving programs that satisfy user-provided functional specifications as well as Rust’s type rules.\"},{\"question\":\"What is RusSOL, and how is it evaluated?\",\"answer\":\"RusSOL is a tool implementing the proposed synthesis approach. Its evaluation on common problems faced by new Rust developers reports reduced annotation burden and improved performance.\"}]","russol-pldi23 | PDF",[144,148,152,156],{"page_no":21,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/d85ad4801693aa37a04c24b7beda13d0.webp",983,1415,{"page_no":25,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/4069c1acebac1c92de279345b6adef88.webp",982,1414,{"page_no":29,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/8b15ea4db31f93e7126aaed5eef47f25.webp",981,1412,{"page_no":32,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/d7ec15e081e5b362699f85e09225d42b.webp",980,1411,{"list":161,"token":10},[162,169,175,181,187,193,200,207,214,220],{"doc_id":163,"doc_title":164,"file_type":136,"home_preview_img_url":165,"slug":166,"view_count":167,"category_name":28,"create_tm":168},83597,"Kani: A Model Checker for Rust","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808871230/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585279&Signature=gknDyvC9m9cPZhvZBJxrZ9Tw4As%3D","kani-a-model-checker-for-rust",35,1784189102,{"doc_id":170,"doc_title":171,"file_type":136,"home_preview_img_url":172,"slug":173,"view_count":110,"category_name":28,"create_tm":174},397257,"Dependent Type Theory of Stateful Higher-Order Functions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229919116959/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585279&Signature=HP3WlhjyGHEoXZedGyh%2Bb5DVlK8%3D","dependent-type-theory-of-stateful-higher-order-functions",1790460809,{"doc_id":176,"doc_title":177,"file_type":136,"home_preview_img_url":178,"slug":179,"view_count":105,"category_name":28,"create_tm":180},506200,"Qurts: Automatic Quantum Uncomputation by Affine Types with Lifetime","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229933301158/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585279&Signature=xPnWVq%2FxBhpmUukBJ6GlmKEST6M%3D","qurts-automatic-quantum-uncomputation-by-affine-types-with-lifetime",1791160884,{"doc_id":182,"doc_title":183,"file_type":136,"home_preview_img_url":184,"slug":185,"view_count":105,"category_name":28,"create_tm":186},592554,"Software Solution of Web Questionnaires for the Analysis of the Economy in Relation to the Competence of Students","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229955027129/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585279&Signature=%2Br8FgGuel%2FRHQZO%2BP7lX4tIhcg0%3D","software-solution-of-web-questionnaires-for-the-analysis-of-the-economy-in-relation-to-the-competence-of-students",1792074818,{"doc_id":188,"doc_title":189,"file_type":136,"home_preview_img_url":190,"slug":191,"view_count":105,"category_name":28,"create_tm":192},672648,"Functional Shell and Reusable Components for Easy GUIs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229989726117/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585279&Signature=fmVcEzvNMrW8wn6wiR4Wz4xN3AM%3D","functional-shell-and-reusable-components-for-easy-guis",1793602830,{"doc_id":194,"doc_title":195,"file_type":136,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":28,"create_tm":199},439830,"A single-nucleus transcriptomic atlas of the adult Aedes aegypti mosquito - research article","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229924498503/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585279&Signature=1SjL1Ex0XS0Cq%2FRoiNHG86SiJh8%3D","a-single-nucleus-transcriptomic-atlas-of-the-adult-aedes-aegypti-mosquito-research-article",15,1790690351,{"doc_id":201,"doc_title":202,"file_type":136,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":28,"create_tm":206},84205,"The Stability of the Backward Problem for Photoacoustic Imaging in Attenuating Media via Carleman Estimates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809033688/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585279&Signature=MPSErBLHUQUT1gG6as3vCthOBr8%3D","the-stability-of-the-backward-problem-for-photoacoustic-imaging-in-attenuating-media-via-carleman-estimates",27,1784193943,{"doc_id":208,"doc_title":209,"file_type":136,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":28,"create_tm":213},331512,"Normal tissue transcriptional signatures for tumor-type-agnostic phenotype prediction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909896223/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585279&Signature=RLY3udRyGRHuDRoVl51X1ZHMeqY%3D","normal-tissue-transcriptional-signatures-for-tumor-type-agnostic-phenotype-prediction",14,1789993664,{"doc_id":215,"doc_title":216,"file_type":136,"home_preview_img_url":217,"slug":218,"view_count":114,"category_name":28,"create_tm":219},338738,"Home-based exercise interventions’ impact on breast cancer survivors’ functional performance - a systematic review","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909819643/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585279&Signature=GmGK5ZHFtGJ9iCUMUdOchHMl%2Bog%3D","home-based-exercise-interventions-impact-on-breast-cancer-survivors-functional-performance-a-systematic-review",1790025390,{"doc_id":221,"doc_title":222,"file_type":136,"home_preview_img_url":223,"slug":224,"view_count":225,"category_name":28,"create_tm":226},370573,"Glycomics and Glycoproteomics Reveal Distinct Oligomannose Carriers Across Bladder Cancer Stages","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229913939638/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585279&Signature=GZwAYu6zLSm8cAiMWQ4v%2FCtqA4k%3D","glycomics-and-glycoproteomics-reveal-distinct-oligomannose-carriers-across-bladder-cancer-stages",18,1790189234]