[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-273792-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-273792-en":131,"doc-similar-273792":161},{"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":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","proofjudge-tool-grounded-llm-evaluation-of-formal-proof-quality-in-mathlib","ProofJudge - Tool-Grounded LLM Evaluation of Formal Proof Quality in Mathlib","","Formal proofs in Lean 4 may type-check yet vary substantially in quality from the perspective of Mathlib maintainers. ProofJudge introduces an agentic LLM-as-judge system scoring five quality dimensions beyond correctness: library leverage, automation fit, structural clarity, statement quality, and Mathlib conventions. Evaluation uses 218 declaration pairs from distinct Mathlib PRs, with tool grounding via the applied PR commit to query library state. Across six judge models, alignment with human reviewer preferences is recovered far above chance, and released artifacts support further research.",{"@graph":14,"@context":73},[15,34,56],{"@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/proofjudge-tool-grounded-llm-evaluation-of-formal-proof-quality-in-mathlib/273792/",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/proofjudge-tool-grounded-llm-evaluation-of-formal-proof-quality-in-mathlib/273792.png","ImageObject",300,407,{"name":42,"@type":43},"Evangeline","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-15","2026-09-15",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",11,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What problem does ProofJudge address in Lean 4 proofs?","Question",{"text":63,"@type":64},"ProofJudge targets the gap between formal correctness (passing the kernel type checker) and qualitative standards for inclusion in Mathlib, where style, structure, and reusability matter.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does ProofJudge evaluate proof quality beyond correctness?",{"text":68,"@type":64},"It scores five dimensions—library leverage, automation fit, structural clarity, statement quality, and Mathlib conventions—using a rubric aligned with Mathlib review norms.",{"name":70,"@type":61,"acceptedAnswer":71},"How is the judge grounded and what is measured in the evaluation?",{"text":72,"@type":64},"The judge is tool-grounded to query Mathlib state at the PR commit, and evaluation measures whether the judge prefers the post-revision proof accepted by maintainers over the pre-revision proof rejected for revision.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},273792,1789472819,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":33,"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":80,"read_time":124,"preview_page_count":33,"preview_urls":144},13056703019662,"https://ap-avatar.wpscdn.com/avatar/be000253a8e92610077?_k=1778726343310543188","arXiv : 2608 .20432v 1 [cs .LO] 20 Aug 2026  \nProofJudge: Tool-Grounded LLM Evaluation of Formal  \nProof Quality in Mathlib  \nShane Caldwell  \nDreadnode  \n[shane@dreadnode.io](shane@dreadnode.io)  \nAbstract  \nFormal proofs in Lean 4 that pass the kernel’s type checker can nonetheless vary widely in quality. We introduce ProofJudge, an agentic LLM-as-judge system that scores formal proof quality along five dimensions beyond correctness: library leverage, automation fit, structural clarity, statement quality, and Mathlib conventions. We evaluate ProofJudge on a novel dataset of 218 declarations drawn from distinct Mathlib PRs. The judge agent is grounded by tool access to the commit the PR is applied to, enabling it to query the library state when scoring. A judge is considered aligned with human preferences when it rates the version of the PR Mathlib accepted above the initial version that was sent back for revision. All six judge models evaluated recover the reviewers’ preference well above chance, from 80.8% to 63.5%, and two open-weight judges reach roughly 70% at a tenth of the best judge’s cost. We release the judge harness, 1 evaluation dataset,2 and evaluation traces3 as open-source artifacts to support further research.  \n1 Motivation and Background  \nAs reinforcement learning from verifiable reward has become popular for eliciting skills in language models[2], Lean 4’s ability to act as a verifier for mathematical proofs has emerged asa natural way to provide reward, leading to increased mathematical proof writing capabilities, both with human collaboration[4] and autonomously[3] . While the proofs that pass the type checker are provably correct, the question remains: what is the value of these generated proofs for human mathematicians[1]? Critics argue that the value of formalization is not in proving the correctness of a statement, but rather better understanding the results and “building libraries and infrastructure to support future work”. Mathlib, the largest Lean 4 mathematical library, enforces quality standards through human code review: reviewers evaluate tactic hygiene, generality of lemma statements, proof structure, naming conventions, and—most critically—whether a proof decomposes into independently reusable components that extend the library’s API surface. These deeper structural and stylistic properties [5] are often violated in current LLM-generated proofs, creating a heavy burden on skilled Mathlib reviewers as the cost of generating valid proofs is reduced year over year. It remains to be seen whether LLMs could perform this review role necessary to keep library quality high as the scale of automated proof writing increases in the future.  \n2 Method  \nWe introduce ProofJudge, an Agentic Judge [7] system that evaluates formal proof quality beyond compilation. The Lean kernel provides an objective correctness anchor, while the judge  \n1[https://github.com/SJCaldwell/ProofJudge](https://github.com/SJCaldwell/ProofJudge)  \n2[https://huggingface.co/datasets/SJCaldwell/proofjudge](https://huggingface.co/datasets/SJCaldwell/proofjudge)  \n3[https://huggingface.co/datasets/SJCaldwell/proofjudge-eval-traces](https://huggingface.co/datasets/SJCaldwell/proofjudge-eval-traces)  \nevaluates softer quality dimensions—for example, statement quality—via a rubric based on Mathlib’s review norms. ProofJudge’s tool access (querying Mathlib via bash) enables the judge to ground its assessments in the actual state of the library as a human reviewer does.  \n2.1 Rubric Design  \nRecent work applies LLM judges to the semantic correctness of PRs[6]; we instead focus on whether a proof meets the qualitative standards for library inclusion.  \nThe rubric asks the judge agent to decompose the verdict: the model scores five dimensions independently on a 1–10 scale. Those are: library leverage, automation fit, structural clarity, statement quality and Mathlib conventions. The harness takes those numbers and weights them towards a fina","cbCaium8JCQliRYw","https://ap.wps.com/l/cbCaium8JCQliRYw","pdf",289344,"English","# Motivation and Background\n# Method\n## Rubric Design\n## Dataset Construction\n# Results","[{\"question\":\"What problem does ProofJudge address in Lean 4 proofs?\",\"answer\":\"ProofJudge targets the gap between formal correctness (passing the kernel type checker) and qualitative standards for inclusion in Mathlib, where style, structure, and reusability matter.\"},{\"question\":\"How does ProofJudge evaluate proof quality beyond correctness?\",\"answer\":\"It scores five dimensions—library leverage, automation fit, structural clarity, statement quality, and Mathlib conventions—using a rubric aligned with Mathlib review norms.\"},{\"question\":\"How is the judge grounded and what is measured in the evaluation?\",\"answer\":\"The judge is tool-grounded to query Mathlib state at the PR commit, and evaluation measures whether the judge prefers the post-revision proof accepted by maintainers over the pre-revision proof rejected for revision.\"}]","ProofJudge - Tool-Grounded LLM Evaluation of Formal Proof Quality in Mathlib | PDF",[145,149,153,157],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/4817e37eb35fc1d3d4d90698a3546cf9.webp",983,1272,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/cbbf9ea4432c1c75ff6bb5dcb19268c7.webp",982,1270,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d2598600829f4018c62d53c93de18090.webp",981,1269,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/4e9a0c226dc76ee615f4be8baa07918d.webp",980,1268,{"list":162,"token":11},[163,170,177,184,190,197,204,210,217,224],{"doc_id":164,"doc_title":165,"file_type":138,"home_preview_img_url":166,"slug":167,"view_count":168,"category_name":29,"create_tm":169},83039,"SWE-Review Closing the Loop on Issue Resolution with Agentic Code Review","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808816700/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205059&Signature=LFGdH8edNzDZ41Zl2Lc77irQbgQ%3D","swe-review-closing-the-loop-on-issue-resolution-with-agentic-code-review",32,1784184810,{"doc_id":171,"doc_title":172,"file_type":138,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":29,"create_tm":176},328057,"Lean-Quantum - Toward AI-Assisted Formalization of Quantum Information","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909361000/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205059&Signature=I3ZS3TrTVc%2BdAQg2giALKL1v%2Bpg%3D","lean-quantum-toward-ai-assisted-formalization-of-quantum-information",16,1789978581,{"doc_id":178,"doc_title":179,"file_type":138,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":29,"create_tm":183},82177,"Agentic Proof and Property-Based Testing via Property Templates in Data Intensive Computing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808718370/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205059&Signature=a3eiZvXb7nrXXJmIYOOMJ8rMYLM%3D","agentic-proof-and-property-based-testing-via-property-templates-in-data-intensive-computing",26,1784178609,{"doc_id":185,"doc_title":186,"file_type":138,"home_preview_img_url":187,"slug":188,"view_count":113,"category_name":29,"create_tm":189},83506,"Certificate-Carrying Transformation of Event-Driven Block Programs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808862029/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205059&Signature=p8v1xMYD0RGepTO37wwke%2BswK%2Fw%3D","certificate-carrying-transformation-of-event-driven-block-programs",1784188504,{"doc_id":191,"doc_title":192,"file_type":138,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":29,"create_tm":196},82359,"ProofCouncil: An LLM Agent for Solving Open Mathematical Problems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808887354/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205059&Signature=7zOER1xOQKQM5duORCKjBwLj%2BC0%3D","proofcouncil-an-llm-agent-for-solving-open-mathematical-problems",25,1784179881,{"doc_id":198,"doc_title":199,"file_type":138,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":29,"create_tm":203},83560,"As It Was Aligning LLM Search Evaluation with Historical User Preferences","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808867423/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205059&Signature=V5J1UflwJbDdmbo%2FWO4taUGzN%2Bw%3D","as-it-was-aligning-llm-search-evaluation-with-historical-user-preferences",31,1784188832,{"doc_id":205,"doc_title":206,"file_type":138,"home_preview_img_url":207,"slug":208,"view_count":112,"category_name":29,"create_tm":209},672933,"A Tutorial on Prompt Engineering: From Messy Thoughts to AI Workflows","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990223184/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205059&Signature=ZXDJ5JBUUaPCfU2Iy3Fos0lp83E%3D","a-tutorial-on-prompt-engineering-from-messy-thoughts-to-ai-workflows",1793615336,{"doc_id":211,"doc_title":212,"file_type":138,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":29,"create_tm":216},85318,"Agentic Routing: The Harness-Native Data Flywheel","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809300985/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205059&Signature=nP9kmDjeYAkAW5Z%2BaOQFmWQE%2B5w%3D","agentic-routing-the-harness-native-data-flywheel",38,1784202456,{"doc_id":218,"doc_title":219,"file_type":138,"home_preview_img_url":220,"slug":221,"view_count":222,"category_name":29,"create_tm":223},85306,"Automated Textbook Auditing with Multi-Agent LLM Systems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809299998/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205059&Signature=YiRoxoQvshRO46vxbl3IaCZPQKA%3D","automated-textbook-auditing-with-multi-agent-llm-systems",34,1784202371,{"doc_id":225,"doc_title":226,"file_type":138,"home_preview_img_url":227,"slug":228,"view_count":195,"category_name":29,"create_tm":229},83052,"A Global Author-Identity Map for the World of Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808817651/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205059&Signature=r6sDu2sBngIxeRE4ddALuR8fam4%3D","a-global-author-identity-map-for-the-world-of-code",1784184887]