Sorting networks on 17, 18 and 19 inputs need 66, 71 and 76 comparators
Let S(N) be the least number of comparators in a sorting network on N inputs. We prove that S(17) ≥ 66, S(18) ≥ 71 and S(19) ≥ 76. Our earlier preprints gave S(17) ≥ 65, S(18) ≥ 70 and S(19) ≥ 75. Dobbelaere's table, as revised on 20 November 2026, lists the lower bounds S(17) ≥ 60, S(18) ≥ 65 and S(19) ≥ 70; that revision does not include those preprints. Deleting the comparators that the largest value meets turns a sorting network on 17 inputs with 65 comparators into one on 16 inputs, and doing the same for the two and the three largest values gives sorting networks on 15 and 14 inputs. So, by our bounds S(16) ≥ 60, S(15) ≥ 55 and S(14) ≥ 50, the largest value meets at most 5 comparators, the two largest at most 10 and the three largest at most 15. We show that no network on 17 inputs that moves the three largest values to fixed outputs stays within these budgets. We reduce any such network to a three-value configuration, a finite structure read off from the paths of the three largest values. A search rules out every configuration in two stages: a census of the two-value shadows of the configurations, then a lift of each shadow. From S(17) ≥ 66, Van Voorhis's bound gives S(18) ≥ 71 and S(19) ≥ 76, and the same method at 19 inputs gives a second proof of S(19) ≥ 76. The proof is formalized in Lean 4, using the definitions of our earlier Lean proofs. The census and the lift are Lean functions, with theorems stating that the census is complete and that the lift is sound; the proofs trust their compiled evaluation to agree with these definitions, as does our Lean proof of S(16) ≥ 60. Like our Lean proofs of S(14) ≥ 50, S(15) ≥ 55 and S(16) ≥ 60, the Lean theorems take as hypotheses the validity of the tables of bounds that our paper on 14 inputs certifies by a computation outside Lean. The Lean proofs are archived as doi:10.5281/zenodo.24723448; that record also holds the chunk and part modules, the axiom listings, the payloads and manifests of the release builds, their build and run records, and the results of the kernel re-checks and of a sample rebuild. They build on the Lean proofs for the paper on 15, 16 and 20 inputs (doi:10.5281/zenodo.24464975). Mathematics Subject Classification (2020): 68P10 (primary); 68Q06, 05C05, 68V05 (secondary).
Authors
- Tejasvi Singh Tomar (ORCID: https://orcid.org/0000-0003-4668-3639)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24723453
- Primary Topic
- Complexity and Algorithms in Graphs
- Type
- preprint