Search Results

Documents authored by Danzinger, Philipp


Artifact
Software
From LLM Suggestions to Lean Proofs: Verified Redundant Constraints for MiniZinc (Software Artifact)

Authors: Philipp Danzinger and Nysret Musliu


Abstract

Cite as

Philipp Danzinger, Nysret Musliu. From LLM Suggestions to Lean Proofs: Verified Redundant Constraints for MiniZinc (Software Artifact) (Software). Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2026)


Copy BibTex To Clipboard

@misc{dagstuhl-artifact-26941,
   title = {{From LLM Suggestions to Lean Proofs: Verified Redundant Constraints for MiniZinc (Software Artifact)}}, 
   author = {Danzinger, Philipp and Musliu, Nysret},
   note = {Software, This research was funded in whole or in part by the Austrian Science Fund (FWF) 10.55776/COE12, swhId: \href{https://archive.softwareheritage.org/swh:1:dir:d20d03c35fe8085bb06a80406c7900a162979876;origin=https://github.com/pdanzinger/cp2026-minizinc-lean;visit=swh:1:snp:7459f5eea9458bf2313ad31b0303597acd94f2b2;anchor=swh:1:rev:0d52168d1fad1c96f295c46308c99c416187e147}{\texttt{swh:1:dir:d20d03c35fe8085bb06a80406c7900a162979876}} (visited on 2026-07-13)},
   url = {https://github.com/pdanzinger/cp2026-minizinc-lean/releases/tag/cp2026-artifact},
   doi = {10.4230/artifacts.26941},
}
Document
From LLM Suggestions to Lean Proofs: Verified Redundant Constraints for MiniZinc

Authors: Philipp Danzinger and Nysret Musliu

Published in: LIPIcs, Volume 379, 32nd International Conference on Principles and Practice of Constraint Programming (CP 2026)


Abstract
The performance of constraint models strongly depends on the formulation used. Redundant constraints, which are logically implied by the model, can strengthen propagation and speed up solving, but finding effective ones requires substantial expertise. Recent work has shown that Large Language Models (LLMs) can generate performance-improving constraints for MiniZinc models. However, such approaches offer no soundness guarantees and the generated constraints may exclude optimal solutions or render instances infeasible. We present a pipeline that combines LLM-based constraint generation with empirical evaluation and formal verification. At its core is a novel formalization of a supported MiniZinc subset for verifying redundancy of a constraint schema over all instances by translating MiniZinc models to Lean 4 theorems. We handle MiniZinc’s partial semantics by requiring the base model to be safe and separately proving that the proposed constraint is well-defined for all instances and solutions of the base model. We evaluate the approach on three constraint optimization problems from the literature, starting from published expert-crafted models. The augmented models show a clear improvement on one problem, improved MiniZinc Challenge scores with metric trade-offs on another, and small but non-significant changes on the third.

Cite as

Philipp Danzinger and Nysret Musliu. From LLM Suggestions to Lean Proofs: Verified Redundant Constraints for MiniZinc. In 32nd International Conference on Principles and Practice of Constraint Programming (CP 2026). Leibniz International Proceedings in Informatics (LIPIcs), Volume 379, pp. 17:1-17:19, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2026)


Copy BibTex To Clipboard

@InProceedings{danzinger_et_al:LIPIcs.CP.2026.17,
  author =	{Danzinger, Philipp and Musliu, Nysret},
  title =	{{From LLM Suggestions to Lean Proofs: Verified Redundant Constraints for MiniZinc}},
  booktitle =	{32nd International Conference on Principles and Practice of Constraint Programming (CP 2026)},
  pages =	{17:1--17:19},
  series =	{Leibniz International Proceedings in Informatics (LIPIcs)},
  ISBN =	{978-3-95977-432-1},
  ISSN =	{1868-8969},
  year =	{2026},
  volume =	{379},
  editor =	{Beldiceanu, Nicolas},
  publisher =	{Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
  address =	{Dagstuhl, Germany},
  URL =		{https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.CP.2026.17},
  URN =		{urn:nbn:de:0030-drops-266504},
  doi =		{10.4230/LIPIcs.CP.2026.17},
  annote =	{Keywords: Redundant constraints, constraint programming, MiniZinc, formal verification, Lean 4, large language models, automated theorem proving}
}
Any Issues?
X

Feedback on the Current Page

CAPTCHA

Thanks for your feedback!

Feedback submitted to Dagstuhl Publishing

Could not send message

Please try again later or send an E-mail