[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-496120-105":59,"doc-detail-496120-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","automated-lemma-discovery-in-agentic-program-verification-paper-abstract","Automated Lemma Discovery in Agentic Program Verification - Paper Abstract","","Deductive verification guarantees code correctness by generating verification conditions (VCs) and proving them formally, but VC proving remains an expertise-intensive bottleneck that LLM agents have only partially automated. Existing proof agents fail to discover helper lemmas—auxiliary results that simplify proofs—as program size and complexity grow. This paper shows that effective VC proving benefits from program comprehension and proposes LemmaNet, an LLM agent that synthesizes lemmas from source code and specifications offline and adapts helper lemmas online during proof search to handle evolving proof states. Experiments on SV-COMP and real-world subjects, including Linux kernel modules, Contiki OS, the C++ standard library, and an X.509 parser, show LemmaNet significantly outperforms state-of-the-art approaches by leveraging program comprehension-aided lemma discovery.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/automated-lemma-discovery-in-agentic-program-verification-paper-abstract/496120/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/automated-lemma-discovery-in-agentic-program-verification-paper-abstract/496120.png","ImageObject",300,407,{"name":92,"@type":93},"\tCallum ","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-07","2026-10-02",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",13,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"Why do current VC-proving agents struggle as programs grow in size and complexity?","Question",{"text":113,"@type":114},"They focus on proving existing verification conditions but cannot discover helper lemmas—auxiliary lemmas that are essential for simplifying and enabling proofs. As programs become larger and more complex, this limitation becomes more significant.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What is LemmaNet and how does it discover helper lemmas?",{"text":118,"@type":114},"LemmaNet is an LLM agent that discovers helper lemmas in two phases: it synthesizes lemmas offline by analyzing source code and specifications, and then adapts existing helper lemmas online as the proof state evolves during proof development.",{"name":120,"@type":111,"acceptedAnswer":121},"How was LemmaNet evaluated, and what were the results?",{"text":122,"@type":114},"LemmaNet was evaluated on SV-COMP and real-world subjects including Linux kernel modules, Contiki OS, the standard C++ library, and an X.509 parser. The results show it significantly outperforms state-of-the-art approaches, highlighting the value of program comprehension in agentic program verification.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},496120,1791096267,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":105,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},137451211410,"https://ap-avatar.wpscdn.com/avatar/2000bb0a9246f588df?x-image-process=image/resize,m_fixed,w_180,h_180&k=1786362646172706240","Automated Lemma Discovery in Agentic Program Verification  \nHuan Zhao∗ National University of Singapore Singapore  \n[zhaohuan@comp.nus.edu.sg](zhaohuan@comp.nus.edu.sg)  \nHaoxin Tu∗† National University of Singapore Singapore  \n[haoxin.tu@nus.edu.sg](haoxin.tu@nus.edu.sg)  \nZhengyao Liu  \nNational University of Singapore Singapore  \n[zhengyao.liu@u.nus.edu](zhengyao.liu@u.nus.edu)  \nMartin C. Rinard  \nMassachusetts Institute of Technology Cambridge, USA  \n[rinard@csail.mit.edu](rinard@csail.mit.edu)  \nAbstract  \nDeductive verification provides strong correctness guarantees for code by extracting verification conditions (VCs) and writing formal proofs for them. The expertise-intensive task of VC proving is the main bottleneck in this process, and has been partly automated owing to recent advances in Large Language Model (LLM) agents. However, existing proof agents are not able to discover helper lemmas – auxiliary lemmas that aid in proving – and thus fall short as programs grow in size and complexity.  \nIn this paper, we argue that VC proving for program verification is more than a purely mathematical task, and benefits considerably from program comprehension. Our key insight is that human proof engineers often discover and apply helper lemmas based on their understanding of the program semantics, which are not directly reflected in the VCs produced by VC generators. Inspired by this insight, we propose an LLM agent, LemmaNet, that discovers helper lemmas in two ways. Specifically, the agent first synthesizes lemmas offline by directly analyzing the source code and specifications and then relating this semantic understanding to the mechanical, verbose encoding produced by VC generators. Asthe proof unfolds, LemmaNet then adapts existing helper lemmas online to accommodate evolving proof states, enabling the agent to effectively discharge complex VCs on-the-fly.  \nWe implement LemmaNet on top of an existing proof agent AutoRocq for Rocq and the Frama-C ecosystem, and evaluate it on SV-COMP and established real-world subjects, including modules of the Linux kernel, Contiki OS, standard C++ library, and X.509 parser. Our experimental results demonstrate that LemmaNet significantly outperforms state-of-the-art approaches, highlighting the importance of program comprehension-aided lemma discovery in agentic program verification.  \nCCS Concepts  \n• Software and its engineering → Formal software verification; • Security and privacy → Logic and verification.  \n∗ The first two authors contributed equally to this work and are listed in random order.†Corresponding Author.  \nThis work is licensed under a Creative Commons Attribution 4 .0 International License.  \nASE’26, Munich, Germany  \n© 2026 Copyright held by the owner/author(s) .  \nACM ISBN 979-8-4007-2882-2/2026/10  \n[https://doi.org/10.1145/3832783.3834356](https://doi.org/10.1145/3832783.3834356)  \nAbhik Roychoudhury  \nNational University of Singapore  \nSingapore  \n[abhik@nus.edu.sg](abhik@nus.edu.sg)  \nKeywords  \nLLM Agent, Verification, Theorem Proving, Helper Lemma, Rocq  \nACM Reference Format:  \nHuan Zhao, Haoxin Tu, Zhengyao Liu, Martin C. Rinard, and Abhik Roychoudhury. 2026. Automated Lemma Discovery in Agentic Program Verification. In Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering (ASE’26), October 12–16, 2026, Munich, Germany. ACM, New York, NY, USA, 13 pages. [https://doi.org/10.1145/3832783](https://doi.org/10.1145/3832783) . 3834356  \n1 Introduction  \nTrusted software is critical for the safety and security of modern computing systems, especially in safety-critical domains such as aerospace, automotive, and healthcare [8, 31, 32] . In pursuit of this goal, formal verification is a powerful technique that can provide strong guarantees that the software correctly implements its specification [36, 42, 56] . One widely used approach is deductive verification, which involves generating mathematical verification conditions (VCs) fr","cbCaigyZBqU95je4","https://ap.wps.com/l/cbCaigyZBqU95je4","pdf",873988,"English","# Abstract\n## 1 Introduction\n## Limitations of Existing Approaches\n## New Angle to VC Proving","[{\"question\":\"Why do current VC-proving agents struggle as programs grow in size and complexity?\",\"answer\":\"They focus on proving existing verification conditions but cannot discover helper lemmas—auxiliary lemmas that are essential for simplifying and enabling proofs. As programs become larger and more complex, this limitation becomes more significant.\"},{\"question\":\"What is LemmaNet and how does it discover helper lemmas?\",\"answer\":\"LemmaNet is an LLM agent that discovers helper lemmas in two phases: it synthesizes lemmas offline by analyzing source code and specifications, and then adapts existing helper lemmas online as the proof state evolves during proof development.\"},{\"question\":\"How was LemmaNet evaluated, and what were the results?\",\"answer\":\"LemmaNet was evaluated on SV-COMP and real-world subjects including Linux kernel modules, Contiki OS, the standard C++ library, and an X.509 parser. The results show it significantly outperforms state-of-the-art approaches, highlighting the value of program comprehension in agentic program verification.\"}]","Automated Lemma Discovery in Agentic Program Verification - Paper Abstract | PDF",1790927914,33,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/4422d32de5867a2775c2e384f0a5f243.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/3dbd048bc318ba04cea598e870c29744.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/7d3e465f2960d824e49ce7940be05b17.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/13e6175325e412f0b83e02c5cf3341be.webp",980,1268]