Programs and Lean formalization for "An upper bound for the connective constant of the square lattice"
Authors/Creators
Description
Programs and the Lean formalization for the paper An upper bound for the connective constant of the square lattice (doi:10.5281/zenodo.23636438). The paper proves that the connective constant μ of self-avoiding walks on the square lattice satisfies μ ≤ 105432502045487/39656386815908 = 2.658651241600… < 2.6586513. The proof is computer-assisted: a finite automaton that counts bridges and a vector of integer weights form a certificate, and μ is at most the largest ratio of the total weight of the children of a state to the weight of the state. The certificate has order 30 and 24,887,440,008 states. Its three files were compressed with xz: the file of keys as a whole, the file of entries in four pieces and the file of weights in five. The ten compressed files, which take 210.4 GB, are archived in five records: doi:10.5281/zenodo.23574056, doi:10.5281/zenodo.23574058, doi:10.5281/zenodo.23574060, doi:10.5281/zenodo.23574062 and doi:10.5281/zenodo.23574064. The bound is also proved in Lean 4, without hypotheses. In this Lean proof, the certificate is checked by a program written in Lean and run as compiled code. A second Lean proof, of the weaker bound μ < 2.6614721 from the certificate of order 26 in the record doi:10.5281/zenodo.23548806, relies on Lean’s kernel instead of code generated by Lean’s compiler. Three other certificates, with larger ratios, are archived in earlier records: one of order 28 in doi:10.5281/zenodo.23551536 and doi:10.5281/zenodo.23551538, and one each of orders 28 and 26 in doi:10.5281/zenodo.23548806.
Files.
connective-constant-bound-f5e599a57ca5.zip: the checker; a second, independently written checker, with a Python version for small certificates; the generators of the negative controls (certificates that the checkers must reject); two versions of the construction program, the one that built the certificate of order 30 and the earlier one that built the other certificates; in the directorylean/, the Lean proof with the programs that generate its data files from the certificate; and, in the directorylean_k/, the second Lean proof with its programs. The zip contains the files of the GitHub repository github.com/tejasvi/connective-constant-bound/tree/v6 (commitf5e599a57ca5d6d4d5dda410669e6d376f92e400).k26f_data_part01.tartok26f_data_part13.tar: the packed records of the certificate of order 26 that the second Lean proof reads, 916 files of 26 bytes per state, 73 files per part (1,990,236,160 bytes each; the last part 1,089,894,400 bytes).k26f_generated_sources.tar.gz: the 48,213 generated Lean modules of the second proof, for its shards, parts and root (129,188,179 bytes).SHA256SUMS: the SHA-256 checksums of the zip and of these parts.
Checking. Download the pieces from the five records, join and decompress them as the README describes (995.5 GB in all), and check the SHA-256 checksums of the three files. The checker needs a C++ compiler with OpenMP and 128-bit integers: compile it with g++ -O2 -march=native -fopenmp -o check_saw checker/check_saw.cpp and run ./check_saw 30 k30e 128; it prints the counts of the checked entries and the exact ratio (5455 seconds on 128 threads, about 1.3 TB of memory). The second checker is built in the same way from independent/check38a.cpp and run as ./check38a k30e 30 128 105432502045487/39656386815908; it also compares the computed ratio with the fraction given on the command line (16,480 seconds on 128 threads). The READMEs describe the certificate format, the expected output of both checkers for the four certificates, the negative controls and how the certificates were built. The Lean proof (Lean v4.35.0-rc3, Mathlib commit c55e6e786f49) is built as described in lean/README.md. The build reads the decompressed files of the certificate and needs about 5.6 TB of further disk space; the Lean checks were run on a machine with 128 threads and about 2 TB of memory. The second Lean proof is built as described in lean_k/README.md, from the packed records in the parts above; building and checking its shard modules took about 49,600 hours of single-threaded Lean processes.
Files
connective-constant-bound-f5e599a57ca5.zip
Files
(25.1 GB)
| Name | Size | |
|---|---|---|
|
md5:2832cbe20ef76849ad783659d01d43f1
|
3.2 MB | Preview Download |
|
md5:c2401db81e21190cb6d8fc4e672c3996
|
2.0 GB | Download |
|
md5:3235338fdc44e73faadcf3bdb006e252
|
2.0 GB | Download |
|
md5:4d8d86fdfb57d27b425f8c0971292b13
|
2.0 GB | Download |
|
md5:1e16282cd1d1b58981436ff26c1fb5b3
|
2.0 GB | Download |
|
md5:ea7f662435a9694bfe5af68756a12ee6
|
2.0 GB | Download |
|
md5:236e66afa0ecd29ecd8b08b180e67e1a
|
2.0 GB | Download |
|
md5:e1e1dce5e181c1134aad3906484fef54
|
2.0 GB | Download |
|
md5:152839398f06f3006788b8ee9cfbc92a
|
2.0 GB | Download |
|
md5:81e797ac45b7417059b68d729de9a8d6
|
2.0 GB | Download |
|
md5:e1ec7e0aa92b9725f03a6305d2183320
|
2.0 GB | Download |
|
md5:6b372d96b10aae8a079afc377d23b5cf
|
2.0 GB | Download |
|
md5:897f28d62970fab3fbc444ab994825f7
|
2.0 GB | Download |
|
md5:7131a7a36d155cb0545f6846d58da9a7
|
1.1 GB | Download |
|
md5:8cf2f9a628c63c6d417e595c9bb30805
|
129.2 MB | Download |
|
md5:4f5d1dfc03ac16188be9c21edbefec12
|
1.3 kB | Download |