[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-82838-en":3,"doc-seo-82838-105":29,"detail-sidebar-cat-0-en-105":90},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},82838,5909877438554,"Maeve","https://ap-avatar.wpscdn.com/avatar/5600025385ad2bf12a7?_k=1778553567797529272",8,"Research & Report","Formal Disco: Scalable Open-Ended Generation of Formally Verified Programs","Rapid advances in AI agents reduce the cost of generating code, yet verification quality has lagged because verified-program data in verification-aware languages is scarce. FORMAL DISCO is proposed as a distributed coordination system for LLM workers to produce open-ended synthetic verified programs. It logs agent traces, enables distillation and self-improvement, and applies maximum-entropy generation via iterative supervised fine-tuning. Large datasets are released for Dafny, Verus, and Frama-C, training open models for verification-relevant tasks.","arXiv :2607 .0463 1v 1 [ cs .AI] 6 Jul 2026  \nFORMAL DISCO: Scalable Open-Ended Generation of  \nFormally Verified Programs  \nGabriel Poesia 1 Simon Henniger2 Tzu-Han Hsu2 Yilun Du 1 ,2 Nada Amin 1 ,2  \n1 Kempner Institute, Harvard University  \n2 School of Engineering and Applied Sciences, Harvard University Corresponding authors: [gabriel_poesia@fas.harvard.edu](gabriel_poesia@fas.harvard.edu), [namin@seas.harvard.edu](namin@seas.harvard.edu)  \nAbstract  \nThe cost of producing code is rapidly diminishing with increasingly capable AI agents, while quality assurance of generated programs has not kept pace. Formal verification provides the strongest possible guarantees, but the ability of AI models to work with verification-aware languages is hindered by the scarcity of humanwritten examples of programs in those languages. To tackle this prevalent data scarcity issue, we propose FORMAL DISCO: a distributed system for coordination of LLM-based workers that can be easily applied to open-ended synthetic data generation at scale. We use FORMAL DISCO to share tasks and programs between three classes of workers: “initiators”, which read random READMEs from opensource repositories and documentation snippets to sketch a related verified program,“fixers” which take compiler and verifier feedback and attempt to resolve issues, and “extenders” that take working programs and propose patches to expand them.  \nFORMAL DISCO records all agent-generated traces and uses them both for initial distillation from a stronger model as well as self-improvement. We also propose a principle of maximum entropy for synthetic program generation, and use entropy maximization via iterative supervised fine-tuning to learn to generate increasingly diverse programs over time. We release large datasets of synthetic verified programs in three languages—Dafny, Verus, and Frama-C—, and fine-tune open models for verification-relevant tasks, often matching or exceeding the performance of several proprietary models. Overall, our work offers a path to create synthetic data at scale for formal reasoning domains and overcome the long-standing data barrier.  \n1 Introduction  \nAI coding agents are rapidly changing the practice of software engineering [30] . Frontier AI agents at scale have been shown to author complete, highly complex code bases spanning tens to hundreds of thousands of lines of code, such as the C compiler implemented by Anthropic’s Claude Code [26] . While the cost of writing code is rapidly diminishing, we still lack means to verify the correctness of AI-written programs at scale: testing can only cover finitely many cases, and manual code review is infeasible at this new pace. But bugs can be extremely costly—a bug in a compiler, for instance, can carry over to all programs compiled by the compiler, with potential catastrophic consequences downstream. How can we ensure that programs behave as intended, so we can rely on AI-written code?  \nFormal program verification provides the strongest possible form of correctness assurance [25, 19, 18, 17] . A formally verified program comes with both a logical specification of its behavior as well as a proof that a given implementation satisfies the specification. If AI agents write verified programs, humans can check correctness by writing or inspecting a formal specification, but can then trust a symbolic verifier to judge whether the implementation satisfies the given specification.  \nPreprint.  \nUnfortunately, current LLMs, especially open-weight models, are still limited in their ability to write verified programs, or even assist humans with verification-related tasks (such as annotating loops with invariants) . This is to be expected given the lack of human-written examples of programs inmost languages supporting formal verification. For instance, while there are millions of Python repositories on GitHub, the largest existing public dataset of programs in Dafny—a verificationaware programming language—is DafnyB","cbCaillwSk5DINeq","https://ap.wps.com/l/cbCaillwSk5DINeq","pdf",2603674,1,46,"English","en",105,"# Abstract\n# Introduction","[{\"question\":\"What problem does FORMAL DISCO address in verified-program generation?\",\"answer\":\"The work targets the mismatch between rapidly improving AI code generation costs and the lack of scalable quality assurance. It also addresses data scarcity for human-written examples in verification-aware languages.\"},{\"question\":\"How does FORMAL DISCO generate verified programs at scale?\",\"answer\":\"It coordinates LLM-based workers through a shared agenda and uses three agent roles: initiators (sketch programs from READMEs and documentation), fixers (apply compiler/verifier feedback), and extenders (patch working programs to increase complexity).\"},{\"question\":\"How are the synthetic programs used to improve models for verification tasks?\",\"answer\":\"FORMAL DISCO records all agent traces for distillation from stronger models and self-improvement. It further proposes maximum-entropy synthetic program generation using iterative supervised fine-tuning to learn increasingly diverse programs.\"}]",1784183330,116,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":85,"head_meta":87,"extra_data":89,"updated_unix":27},"formal-disco-scalable-open-ended-generation-of-formally-verified-programs","",{"@graph":35,"@context":84},[36,53,67],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/formal-disco-scalable-open-ended-generation-of-formally-verified-programs/82838/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":61,"encodingFormat":60,"isAccessibleForFree":62,"interactionStatistic":63},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-16",true,{"@type":64,"interactionType":65,"userInteractionCount":4},"InteractionCounter",{"@type":66},"ViewAction",{"@type":68,"mainEntity":69},"FAQPage",[70,76,80],{"name":71,"@type":72,"acceptedAnswer":73},"What problem does FORMAL DISCO address in verified-program generation?","Question",{"text":74,"@type":75},"The work targets the mismatch between rapidly improving AI code generation costs and the lack of scalable quality assurance. It also addresses data scarcity for human-written examples in verification-aware languages.","Answer",{"name":77,"@type":72,"acceptedAnswer":78},"How does FORMAL DISCO generate verified programs at scale?",{"text":79,"@type":75},"It coordinates LLM-based workers through a shared agenda and uses three agent roles: initiators (sketch programs from READMEs and documentation), fixers (apply compiler/verifier feedback), and extenders (patch working programs to increase complexity).",{"name":81,"@type":72,"acceptedAnswer":82},"How are the synthetic programs used to improve models for verification tasks?",{"text":83,"@type":75},"FORMAL DISCO records all agent traces for distillation from stronger models and self-improvement. It further proposes maximum-entropy synthetic program generation using iterative supervised fine-tuning to learn increasingly diverse programs.","https://schema.org",{"og:url":51,"og:type":86,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":88,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":91},[92,96,100,104,109,114,119,122,127,130,134],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":93,"show_sort_weight":94,"slug":95},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":97,"show_sort_weight":98,"slug":99},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":101,"show_sort_weight":102,"slug":103},"Exam",70,"exam",{"id":105,"doc_module":4,"doc_module_name":45,"category_name":106,"show_sort_weight":107,"slug":108},5,"Comic",60,"comic",{"id":110,"doc_module":4,"doc_module_name":45,"category_name":111,"show_sort_weight":112,"slug":113},6,"Technology",50,"technology",{"id":115,"doc_module":4,"doc_module_name":45,"category_name":116,"show_sort_weight":117,"slug":118},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":120,"slug":121},30,"research-report",{"id":123,"doc_module":4,"doc_module_name":45,"category_name":124,"show_sort_weight":125,"slug":126},9,"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":45,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":45,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":45,"category_name":136,"show_sort_weight":105,"slug":137},19,"General","general"]