Certified optimal folds for 2D HP lattice protein benchmarks, including C*(S6) = 19
Machine-checkable optimality certificates for standard 2D hydrophobic–polar lattice folding benchmarks, and a proof that a 50-residue PP-prefix benchmark has optimum 19 contacts.
Result
- For the 50-residue PP-prefix sequence listed as S6, the maximum number of H–H contacts on the square lattice is C* = 19. Chen and Huang (2005, Table 1) listed this sequence with target energy -21, which is the optimum of the canonical HH-prefix sequence 2D50, not of this sequence.
- The optima S5 = 23, S7 = 36, S8 = 42 and S9 = 53 are proven on the whole lattice Z^2. These values were first established by Giaquinta and Pozzi (2013); this work adds independent certificates.
- An exact spanning-tree bound on the diameter of the hydrophobic core, valid over all of Z^2 and for disconnected cores, is what makes the S6 proof finite.
How it was checked
- S7 and S8 are proven with four independent solvers (OR-Tools CP-SAT, HiGHS, PicoSAT, Z3). Six archived DRAT proofs are checked by drat-trim and by a standalone pure-Python checker.
- S6 is proven by CP-SAT across 11 infeasible branches and independently by CaDiCaL with LRAT proofs checked by lrat-check.
- S5 and S9 follow from the analytic Harary–Harborth bound together with explicit folds that reach it.
- All listed folds are stored as coordinate files and checked by a small verifier.
What is not machine-checked
- drat-trim and lrat-check are unverified C programs. No formally verified proof checker was used for these certificates.
- The correctness of the encodings from the folding problem to the solver models is argued in the manuscript and is not formalized.
- For S7, the reduction from 147 candidate cores to 4 is done by an unverified Python enumerator; the DRAT proofs cover only those 4. The S6 diameter bound also relies on an unverified integer-partition check.
- The 11 LRAT proofs for S6 total about 65 GB and are regenerated on demand, not archived; their digests are recorded.
- S10 (100 residues) is not resolved: the known fold has 50 contacts and the bound is 56.
Check it yourself
git clone https://github.com/Brsanch/hp-folding && cd hp-folding pip install -e ".[proofs]" PYTHONPATH=src python scripts/prove_optimality.py PYTHONPATH=src python scripts/verify_hp_highs.py PYTHONPATH=src python scripts/verify_hp_sat.py PYTHONPATH=src python scripts/verify_drat_certificates.py
The S6 proof is scripts/prove_s6_unconditional_z2.py; its LRAT pipeline is scripts/verify_s6_lrat.py.
Files
- Code and verification files (GitHub)
- Manuscript (PDF)
- Preprint (Zenodo): doi:10.5281/zenodo.24661938
How AI was used
Large language models assisted with computational exploration, implementation of the verification scripts, proof drafting, manuscript editing and pre-submission review. The author reviewed and ran the verification described on this page and takes responsibility for the content.
Search terms
2D HP model · HP lattice protein folding · optimal fold proof · S6 50-mer · 2D50 · CP-SAT optimality · DRAT certificate · LRAT certificate · Harary–Harborth bound