MCP
FM

Fred Mesnard

25 papers in the library · Same-name authors told apart using DBLP

Papers

25
Case study: proving sqrt(2) irrational with LPTP and an LLM
Fred MesnardÉtienne PayetWim Vanhoof
This case study demonstrates a workflow for generating formal proofs with LLM assistance, using the classic proof that $\sqrt{2}$ is irrational. Starting from basic logic programming predicates, the authors describe an incomplete proof sketch in the LPTP system, which uses natural deduction for human-readable proofs. They then interact with an LLM to complete the formal proof, which is fully checked by LPTP, showing that LLMs can assist in producing mechanically verified proofs in a logic programming setting.
arXivarXiv · · July 23, 2026
0
0
Case study: solving P-99 with LPTP and an LLM
Fred MesnardThierry MarianneÉtienne PayetWim Vanhoof
This paper experiments with solving the first 33 problems of the Ninety-Nine Prolog Problems (P-99) by having an LLM (Claude) generate Prolog code, tests, and formal proofs. The LLM produced 58 logic procedures, 508 tests, 257 lemmas, and 11,800 proof lines. Automatic testing and formal verification with LPTP (Logic Program Theorem Prover) were used to check types, groundness, termination, uniqueness, existence, and sometimes functional correctness. All generated files were manually inspected. The authors describe the approach in enough detail to be reproducible.
arXivarXiv · · July 23, 2026
0
0
Towards Relating Ciao Assertions and LPTP Theorems
Marco PérezPedro López-GarcíaJose F. MoralesManuel V. HermenegildoFred Mesnard
This paper bridges the Ciao assertion-checking framework and the LPTP theorem-proving system by introducing a systematic translation of Ciao assertions into LPTP first-order formulae. The authors characterize assertion classes by their logical encodability, propose approximation strategies and auxiliary constructs for non-translatable cases, and analyze soundness/completeness trade-offs. This enables a tighter integration of Ciao's abstract-interpretation verification with LPTP's deductive verification, leveraging the complementary strengths of both approaches.
arXivarXiv · · July 22, 2026
0
0
Case study: solving P-99 with LPTP and an LLM
Fred MesnardThierry MarianneÉtienne PayetWim Vanhoof
EPTCSEPTCS · July 20, 2026
0
Towards Relating Ciao Assertions and LPTP Theorems
Marco PérezPedro López-GarcíaJose F. MoralesManuel V. HermenegildoFred Mesnard
EPTCSEPTCS · July 20, 2026
0
Case study: proving sqrt(2) irrational with LPTP and an LLM
Fred MesnardÉtienne PayetWim Vanhoof
EPTCSEPTCS · July 20, 2026
0
Automated Theorem Proving for Prolog Verification
Fred MesnardThierry MarianneÉtienne Payet
EPTCSEPTCS · January 8, 2026
0
Automated Theorem Proving for Prolog Verification
Fred MesnardThierry MarianneÉtienne Payet
This paper replaces the interactive proof editor LPTP with automated theorem provers for verifying Prolog programs. The core idea is to translate LPTP's associated first-order axioms IND(P), which encode Clark's equality theory and success/failure/termination definitions, into first-order formulas (FOFs). By using FOF as an intermediary language, off-the-shelf automated provers can check program properties. The approach is evaluated on roughly 400 properties from the LPTP benchmark, demonstrating that automated proving can substitute for the original interactive proof editing process.
arXivarXiv · · January 7, 2026
0
10
The 19th International Workshop on Termination (WST 2023): Preface, Invited Talk Abstract, and Tool Descriptions
Akihisa YamadaBenjamin Lucien KaminskiDieter HofbauerFred MesnardÉtienne Payet
The 19th International Workshop on Termination (WST 2023) was held in Obergurgl, August 24–25, 2023, as part of the Obergurgl Summer on Rewriting (OSR 2023). This report collects the workshop proceedings, including the preface, one invited talk abstract, and tool descriptions.
arXivarXiv · · August 15, 2023
0
0
Concolic Testing in CLP
Fred MesnardEtienne PayetGerman Vidal
Concolic testing for CLP programs is made sound by the framework presented in this paper, which generalizes a prior unsound approach that handled only positive constraints. The key contribution is the natural representation of both positive and negative constraints within the CLP setting, yielding a sound and potentially more efficient technique for finding bugs and maximizing code coverage. This work is relevant as CLP is increasingly used as an intermediate representation for analyzing programs from other paradigms.
arXivarXiv · · August 2, 2020
0
3
An SMT-Based Concolic Testing Tool for Logic Programs
Sophie FortzFred MesnardEtienne PayetGilles PerrouinWim VanhoofGerman Vidal
This paper presents a concolic testing method for logic programs, extending the symbolic-concrete execution paradigm from imperative to logic programming. The approach uses SMT solving for constraint resolution. The authors implement a concolic testing tool for Prolog and validate it on selected benchmarks.
arXivarXiv · · February 17, 2020
0
8
On the Completeness of Selective Unification in Concolic Testing of Logic Programs
Fred MesnardEtienne PayetGerman Vidal
Selective unification is the key technique for concolic testing of logic programs, generating run-time goals by considering all ways an atom can unify with clause heads. This paper proves that the existing selective unification algorithm is incomplete and explores alternatives to achieve a sound and complete algorithm. The work focuses on establishing completeness, which is essential for reliable concolic testing in logic programming.
arXivarXiv · · August 10, 2016
0
3
Concolic Testing in Logic Programming
Fred MesnardÉtienne PayetGermán Vidal
The paper introduces a fully automatic concolic testing method for logic programs that combines concrete and symbolic execution. The approach guarantees full path coverage when it terminates, a property established through formal proof. Its practical feasibility is demonstrated via a prototype implementation.
arXivarXiv · · July 20, 2015
0
11
A Second-Order Formulation of Non-Termination
Fred MesnardEtienne Payet
Non-termination of a class of loops commonly used as abstractions of real program pieces is expressed in second-order logic, which provides a convenient language for the property. By restricting the logic to known decidable fragments, the paper exhibits new loop classes for which non-termination becomes decidable, supported by examples.
arXivarXiv · · December 10, 2014
0
1
Non-termination of Dalvik bytecode via compilation to CLP
Etienne PayetFred Mesnard
The paper presents a compilation of Dalvik bytecode into a logic program with array constraints, such that non-termination of the resulting logic program implies non-termination of the original Dalvik program. This enables existing techniques for proving non-termination of constraint logic programs to be applied to Android applications.
arXivarXiv · · December 10, 2014
0
1
Non-Termination Analysis of Java Bytecode
Étienne PayetFred MesnardFausto Spoto
This work introduces a fully automated static analysis that, given a sequential Java bytecode program $P$, compiles it into a constraint logic program $P_{CLP}$ and proves non-termination of $P_{CLP}$; when every instruction is exactly compiled into constraints, non-termination of $P_{CLP}$ implies that of $P$. The method handles method calls and, reportedly, is the first static approach for Java bytecode that can prove infinite recursions. Implemented in the Julia analyser, it outperformed AProVE and Invel on a 113-program benchmark: only Julia detected recursion-caused non-termination.
arXivarXiv · · January 21, 2014
0
6
Eventual Linear Ranking Functions
Roberto BagnaraFred Mesnard
This paper proposes an extension of an existing algorithm, which uses Farkas' Lemma to discover linear ranking functions that prove termination of certain loops, to show the existence of eventual linear ranking functions. These are linear functions that become ranking functions only after a finite number of loop iterations. The proposed algorithm is proven to be correct and complete, thereby broadening the class of loops for which termination can be automatically verified via linear ranking functions.
arXivarXiv · · June 8, 2013
0
The Automatic Synthesis of Linear Ranking Functions: The Complete Unabridged Version
Roberto BagnaraFred MesnardAndrea PescettiEnea Zaffanella
This paper presents two algorithms that automatically synthesize a linear ranking function for a program loop, a key step in proving termination. The 1991 algorithm by Sohn and Van Gelder and the 2004 algorithm by Podelski and Rybalchenko both succeed under exactly the same conditions. The paper justifies both algorithms, proves their correctness, compares their worst-case complexity and experimental efficiency, and provides an open-source implementation to facilitate integration into automatic verifiers.
arXivarXiv · · April 6, 2010
0
8
A Non-Termination Criterion for Binary Constraint Logic Programs
Etienne PayetFred Mesnard
This paper proposes a static criterion for detecting non-terminating atomic queries in binary constraint logic programs (CLP), strictly generalizing previous work. A generic operational definition is given, along with an implemented logical form that is proven correct and complete with respect to the operational definition. The criterion focuses on non-termination, which is less studied than termination in logic programming.
arXivarXiv · · July 22, 2008
0
10
Recurrence with affine level mappings is P-time decidable for CLP(R)
Fred MesnardAlexander Serebrenik
This paper defines a class of constraint logic programs whose termination can be proved using affine level mappings, and shows that deciding membership in this class is P-time decidable.
arXivarXiv · · January 12, 2007
0
27
An Improved Non-Termination Criterion for Binary Constraint Logic Programs
Etienne PayetFred Mesnard
This paper presents a static analysis criterion for detecting non-terminating atomic queries in binary constraint logic programs (CLP). The criterion strictly generalizes the authors' prior work. It is given both as an operational definition and as a logical form, and the logical form is proven correct and complete with respect to the operational definition.
arXivarXiv · · August 24, 2005
0
0
Non-Termination Inference of Logic Programs
Etienne PayetFred Mesnard
This paper presents a static analysis technique for inferring non-termination of logic programs. It extends the subsumption test by allowing certain argument positions to be instantiated while others are generalized, and provides syntactic criteria to identify such positions. Atomic left looping queries are generated bottom-up from selected binary unfoldings of the program. The method is used to prove optimality of left termination conditions computed by a termination inference tool, together yielding a characterization of the program's operational behavior.
arXivarXiv · · June 22, 2004
0
Computing Convex Hulls with a Linear Solver
Florence BenoyAndy KingFred Mesnard
The paper presents a method to compute convex hulls using only linear constraint solving, a technique widely applied in polyhedral analysis of constraint logic programs. This approach eliminates the need for specialized convex hull algorithms by leveraging existing linear constraint solvers available in many Prolog systems, enabling polyhedral analysis to be coded more directly.
arXivarXiv · · November 4, 2003
0
51
cTI: A constraint-based termination inference tool for ISO-Prolog
Fred MesnardRoberto Bagnara
cTI is the first system for universal left-termination inference of logic programs, requiring neither user annotations nor recomputation when the class of queries changes. Unlike traditional termination analysis, cTI infers terminating classes for all predicates in a single pass by solving constraints derived from the program. The system's architecture is described, and an experimental evaluation covering classical examples and several large Prolog programs is reported.
arXivarXiv · · September 16, 2003
0
A Generalization of the Lifting Lemma for Logic Programming
Etienne PayetFred Mesnard
This paper generalizes the lifting lemma for logic programming by extending the relation "is more general than" to consider only some arguments of atoms, treating the remaining arguments as neutral and disregarding them. Two syntactic conditions of increasing power are then proposed to identify neutral arguments from the text of a logic program, which can help detect infinite derivations during SLD-resolution.
arXivarXiv · · December 11, 2002
0
Frequent collaborators
Étienne Payet (9)
Etienne Payet (9)
Wim Vanhoof (5)
Thierry Marianne (4)
German Vidal (3)
Roberto Bagnara (3)
Marco Pérez (2)
Pedro López-García (2)
Jose F. Morales (2)
Manuel V. Hermenegildo (2)
Akihisa Yamada (1)
Benjamin Lucien Kaminski (1)