[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-505115-105":59,"doc-detail-505115-en":135},{"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":128,"head_meta":130,"extra_data":132,"updated_unix":134},105,"en","solving-p-99-at-the-age-of-llm-examples-and-pedagogical-considerations","Solving P-99 at the age of LLM - examples and pedagogical considerations","","Ninety-Nine Prolog Problems (P-99) is a celebrated set of Prolog exercises. The authors solved the first thirty-three tasks by prompting an LLM (Claude from Anthropic) to generate Prolog code and test files, then running tests and manually verifying results. They further established formal reliability guarantees by proving properties such as types, groundness, termination, uniqueness, existence, and sometimes functional correctness using LPTP. The paper details the experiment and includes pedagogical guidance for teaching certified logic programming with LLM support.",{"@graph":69,"@context":127},[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/solving-p-99-at-the-age-of-llm-examples-and-pedagogical-considerations/505115/",{"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/solving-p-99-at-the-age-of-llm-examples-and-pedagogical-considerations/505115.png","ImageObject",300,407,{"name":92,"@type":93},"cksankcs","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-10","2026-10-04",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",12,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119,123],{"name":110,"@type":111,"acceptedAnswer":112},"How do the authors determine that an LLM-generated Prolog solution is correct?","Question",{"text":113,"@type":114},"They generate Prolog code and a test file, run the tests to check that they pass, and then formally prove properties such as types, groundness, termination, uniqueness, and existence using LPTP. For functional correctness, they also provide hints to express the intended logical statements.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What does the paper mean by “vibe-coding/vericoding” for P-99?",{"text":118,"@type":114},"It is a vibe-coding experiment because informal English specifications are used and Claude generates the Prolog code. It also fits vericoding because LLM outputs are subjected to formal proof-based reliability guarantees that can be proof-checked.",{"name":120,"@type":111,"acceptedAnswer":121},"Which LLM and tooling setup are used in the experiment?",{"text":122,"@type":114},"The authors use Claude from Anthropic and the Opus 4.6 model released in February 2026, running the approach in code mode. Reliability properties are checked with LPTP (Logic Program Theorem Prover).",{"name":124,"@type":111,"acceptedAnswer":125},"How is the overall paper structured?",{"text":126,"@type":114},"After introduction and goal, Section 2 defines the experimental framework, Sections 3 and 4 explain how to instruct Claude, Section 5 gives an overview, Section 6 provides three examples focused on functional correctness, Section 7 discusses pedagogy, and Sections 8 and 9 cover related work and conclusions.","https://schema.org",{"og:url":83,"og:type":129,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":131,"canonical":83},"index,follow",{"doc_id":133,"site_id":62},505115,1791110779,{"code":4,"msg":5,"data":136},{"doc_id":133,"user_id":137,"nickname":92,"user_avatar":138,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":139,"file_id":140,"file_url":141,"file_type":142,"file_size":143,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":144,"language":145,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":146,"faqs":147,"seo_title":148,"seo_description":67,"update_tm":149,"read_time":150,"preview_page_count":19,"preview_urls":151},3985747882755,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Solving P-99 at the age of LLM: examples and pedagogical considerations⋆  \nFred Mesnard1 , Thierry Marianne1 , Etienne Payet1 and Wim Vanhoof2  \n1 LIM, Université de La Réunion, France 2 Université de Namur, Belgium  \nAbstract  \nNinety-Nine Prolog Problems (P-99) is a famous set of Prolog exercises. We solved the first thirty three just by prompting an LLM (Large Language Model) . We used Claude from Anthropic. By “solved”we mean: generate the Prolog code and a test file, run the tests and check whether they pass, then formally prove types, groundness, termination, uniqueness, existence and also sometimes functional correctness with LPTP (Logic Program Theorem prover) . Hence our approach is an experiment in vibe-coding/vericoding ofP-99 . It is a vibe-coding experiment because we started from informal specifications written in English and let Claude generate the Prolog code. It also fits within vericoding because the LLM proved reliability guarantees on the generated Prolog code. Claude wrote 58 logic procedures, 508 tests, 257 lemmas for a total of 11800 proof lines. We manually checked each file generated by the LLM. We checked the Prolog code, ran the tests, examined the logical statements generated by Claude and proof-checked Claude’s proofs with LPTP.  \nThis paper describes this experiment and provides the main details so that it can be reproduced by the interested reader. It also includes some pedagogical considerations for teaching certified logic programming with the help of an LLM.  \nKeywords  \nLogic Programming, Prolog, Verification, LPTP, LLM  \n1. Introduction  \nThe recent arrival and rapid adoption of LLMs (Large Language Models) and their growing aptitude at writing and/or dealing with code has triggered different AI assisted programming practices or methodologies. In this paper, we start by presenting such a methodology, applied to P-99 . Ninety-Nine Prolog Problems (P-99) is a famous set of Prolog exercises that have been translated to many other programming languages, including Erlang, Haskell, Lisp, Picat and Rust. There is also an Active Logic Document [1] for P-99 running Ciao-Prolog in any modern web browser1 . The oldest copy of P-99 we have dates back to more than 25 years. These exercises were written by Werner Hett from the Bern University of Applied Sciences, Switzerland. The original site has been offline for many years but there are a few copies floating on the Internet (e.g., here2) . Some exercises are missing (P29, P30, P42-P45, P51-P53, P74-P79) and a few of them have extensions (P61A, P62B, P70B, P70C) . All in all, there are 88 exercises.  \nIn this work, we start by presenting a case study using the combination of an LLM and LPTP (Logic Program Theorem Prover) [2] to solve some of the exercises of P-99 . We choose Claude from Anthropic and do the experiment in code mode with the Opus 4.6 model released in February 2026 . We solve the first thirty three exercises (P01-P28 + P31-P35 = 33/88 = 37.5%) just by prompting Claude. By “solving an exercise” we mean: generate the Prolog code and a test file, run the tests and check whether they pass, then formally prove types, groundness, termination, uniqueness, existence and also  \nFourth Prolog Education Workshop, PEG 2026 ⋆  \nThis work is partly funded by the European Union under the INTERREG VI \"Mise en réseau\" program. It shares content with a technical paper submitted to ICLP 2026 . The main difference is that we replace a section describing a Model Context Protocol server by a section about pedagogical issues.  \n$ frederic.mesnard@univ-reunion.fr (F. Mesnard); [thierry.marianne@univ-reunion.fr](thierry.marianne@univ-reunion.fr) (T. Marianne);  \n[etienne.payet@univ-reunion.fr](etienne.payet@univ-reunion.fr) (E. Payet); [wim.vanhoof@unamur.be](wim.vanhoof@unamur.be) (W. Vanhoof)  \n © 2026 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0) .  \n1[https://cliplab.org/logalg/d","cbCaielhEYgDoyGi","https://ap.wps.com/l/cbCaielhEYgDoyGi","pdf",826922,14,"English","# Introduction\n# Goal\n## Experimental framework\n## Instructing Claude\n## Overview of the experiment\n## Examples with functional correctness\n## Pedagogical considerations\n## Related work and conclusion","[{\"question\":\"How do the authors determine that an LLM-generated Prolog solution is correct?\",\"answer\":\"They generate Prolog code and a test file, run the tests to check that they pass, and then formally prove properties such as types, groundness, termination, uniqueness, and existence using LPTP. For functional correctness, they also provide hints to express the intended logical statements.\"},{\"question\":\"What does the paper mean by “vibe-coding/vericoding” for P-99?\",\"answer\":\"It is a vibe-coding experiment because informal English specifications are used and Claude generates the Prolog code. It also fits vericoding because LLM outputs are subjected to formal proof-based reliability guarantees that can be proof-checked.\"},{\"question\":\"Which LLM and tooling setup are used in the experiment?\",\"answer\":\"The authors use Claude from Anthropic and the Opus 4.6 model released in February 2026, running the approach in code mode. Reliability properties are checked with LPTP (Logic Program Theorem Prover).\"},{\"question\":\"How is the overall paper structured?\",\"answer\":\"After introduction and goal, Section 2 defines the experimental framework, Sections 3 and 4 explain how to instruct Claude, Section 5 gives an overview, Section 6 provides three examples focused on functional correctness, Section 7 discusses pedagogy, and Sections 8 and 9 cover related work and conclusions.\"}]","Solving P-99 at the age of LLM - examples and pedagogical considerations | PDF",1791090504,35,[152,156,160,164],{"page_no":8,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/26827a0e30d2ef9cf9f2cf176ca323bf.webp",983,1390,{"page_no":14,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c136fecffdaa7b8dde16d4d2dbb39c51.webp",982,1388,{"page_no":81,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/0cd7a8a78d72bc33c2808bb8bb25f16e.webp",981,1387,{"page_no":19,"url":165,"width":166,"height":167},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/ca5bd84ec2faac8660b9f258a74d2c45.webp",980,1385]