Lex-leader symmetry breaking in Lean, in the generality SAT searches use
A SAT refutation with a checked proof certificate shows that a formula is unsatisfiable. When the formula contains lex-leader symmetry-breaking constraints, the certificate says nothing about the step back to the original problem: that adding those constraints did not remove every solution. In practice the constraints are added for a few chosen group elements rather than the whole group, are often truncated to a prefix of the variables, compare the variables in a custom order, and sit next to further constraints that are themselves symmetric. We give a Lean 4 proof that all of this is sound: for a group G of permutations of the positions of an assignment, a G-invariant constraint, one fixed comparison order and any list of pairs (group element, prefix length), adding the corresponding lex-leader constraints preserves satisfiability, and conjunctions with invariant side constraints of two common shapes are covered. We prove in Lean that the two hypotheses most easily broken in practice cannot be dropped: on two variables, a constraint that is not invariant, or two comparison orders in one instance, already lose every solution. Finally we instantiate the theorem at the wreath product S2\wr S7 of order 645,120 acting on 3486 variables, the setting of a recent SAT bound for Conway's 99-graph problem; the instantiation holds for every numbering of the variables. The mathematics is classical, and lex-leader soundness for CNF has been formalized before, in PVS. What is new is a Lean statement in the form in which SAT searches use it, with its boundary marked. Preprint, not peer reviewed. Source, scripts and verification output: https://github.com/tommac/lex-leader-lean.
Authors
- Tom Maciejewski (ORCID: https://orcid.org/0009-0004-5702-5302)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24572617
- Primary Topic
- Formal Methods in Verification
- Type
- preprint