Number Theory · arXiv:2612.02738 v1 · submitted 1 Dec 2026 · 10 references
Iterated block sorting and a maximum over primes
The paper says
“We prove Mikhail Kurkov's conjecture that b(pn−1 + 1) = max1≤i≤n pi(n + 1 − i) for every n ≥ 2 except n = 5, when b(8) = 16 and the maximum is 15.”
The abstract
We start with the positive integers in increasing order. At stage t ≥ 2 we fix the first t entries and sort each remaining block of length t in decreasing order if t is prime and in increasing order otherwise. Let b(j) be the eventual value at position j, and let pi be the i-th prime. We prove Mikhail Kurkov's conjecture that b(pn−1 + 1) = max1≤i≤n pi(n + 1 − i) for every n ≥ 2 except n = 5, when b(8) = 16 and the maximum is 15. David Wasserman used this same maximum to give a lower bound in the problem of Erdős, Freud and Hegyvári on least common multiples of adjacent terms in a permutation. We prove the sorting identity by counting entries at most a given threshold and checking a finite range of indices. We also formalize the identity in Lean. Each b(p + 1) with p prime is a strict record, and the running maximum through position x is asymptotic to x2/(4 log x).
from the abstract
Pith says
Holds up. This paper proves a conjecture of Mikhail Kurkov linking an iterated block sorting process to a maximum over primes, with a rigorous proof supported by finite computation and a Lean formalization.
Machine review · 3 Dec 2026 · Full text · 3 minor
How this review was made
Machine review · deepseek-v4-flash · 3 Dec 2026 · read the full text (30,175 characters) · not checked by a person
The reviewer was given the whole text, 30,175 characters. Not checked: figures, code, what the 10 references say.
How the review went
5 passes by deepseek-v4-flash · 3 Dec 2026
- Reader holds up
- Skeptic partly agrees
- Referee 3 minor
- Check against the paper
- Editor wrote the verdict above
Not run on this paper: the simulated authors' defence.
Pith checked this review's objections against the text of the paper it read.
The test under “What would settle it” is from the skeptic's reading.
What would settle it
Independently re-derive the induction lemma (Lemma 3.2) from the stated reserve condition H(t,q,Q) and verify that the table of children (q',a',b') covers all cases correctly. This would confirm the logical step, though the Lean proof already does so.
3 minor objections
- 4 The proof of Lemma 4.2 (Induction on stages) is presented in a very compact form with a table and a few sentences. The justification of the reserve inequalities (e.g., H(t-1,q+1,Q) ≤ H(t,q,Q)+t-q) is not fully spelled out. While the Lean formalization confirms the lemma, expanding the reasoning in the text would improve readability for a human reader.
- 2 In Section 2, the notation CB(t,q) is introduced but then abbreviated to C(t,q) without the subscript B. It would be helpful to remind the reader occasionally that the count depends on the threshold B, especially when the threshold changes (e.g., in Proposition 3.4).
- 5.3 The description of the finite computation for n from 1564 to 106 (the array D and the traversal) is somewhat terse. A short pseudocode or a more detailed explanation of how T(n) is computed would make the algorithm clearer.
A machine wrote this review. Check any line against the paper. If a line is wrong, say so, and the correction goes on the record.
Are you an author of this paper?
Reply on the record, clarify a point, or challenge an error.
A reply is published word for word beside the review once Pith has verified that the paper is yours. Until then, what you write is kept in this browser.
The review in full
The review in brief
The paper resolves Kurkov's conjecture: for every n ≥ 2 except n = 5, the stabilized entry at position pn−1+1 in an iterated block sort equals the maximum over i of pi (n+1-i). The proof combines combinatorial counting, induction, finite verification up to n = 1563, and analytic bounds for larger n. A Lean formalization adds confidence. The result connects to the Erdős–Freud–Hegyvári problem on least common multiples in permutations. The writing is clear and the reasoning is well-structured. The finite computation is documented and code is provided. The analytic bounds rely on standard estimates (Dusart). The proof appears sound. Soft spots: the induction lemma depends on a finite verification for n up to 106, but the authors supply both a C++ verifier and an independent Lean check. The analytic bound for large n uses a cutoff justified by a density inequality derived from Dusart's theorem; this is standard but the reader should verify the constants. Overall, the paper is a solid contribution to combinatorial number theory. It deserves a serious referee. Recommendation: accept for peer review.
The strongest objection
The paper provides a clear proof of Kurkov's conjecture, supported by a Lean formalization, finite computations, and analytic bounds. The induction lemma (Lemma 3.2) is the core combinatorial step; its correctness is verified in Lean. The finite verifier for n<106 is backed by an independent Lean certificate. The analytic bound is derived from Dusart's theorem and also verified in Lean. I find no load-bearing concern that would threaten the central claim.
The paper is thorough. The formal verification in Lean covers the entire argument, including the finite computations. The analytic bounds are standard. The reader's weakest assumption is about the induction lemma and finite verifier, but these are addressed by the formalization. Therefore, no adjustment to the verdict is needed.
The referee's report
The paper resolves a conjecture that connects a natural iterated sorting process with a number-theoretic maximum that appears in a problem of Erdős, Freud, and Hegyvári on least common multiples in permutations. The proof is rigorous, combining combinatorial counting arguments, an induction lemma, finite verification for a range of indices, and analytic bounds for larger indices. The asymptotic corollary that the running maximum of the sorted sequence is ~ x2/(4 log x) matches the known asymptotic for the LCM problem. The Lean formalization adds further confidence. The result is of interest to researchers in combinatorics and number theory.
Pith's reading
Start with the positive integers in order. At each stage t, fix the first t entries and sort each subsequent block of length t in decreasing order when t is prime and in increasing order otherwise; the value that settles at position j is written b(j). The paper proves Kurkov's conjecture that b at position one past the (n-1)-th prime equals An = max over 1 <= i <= n of pi (n+1-i), for every n >= 2 except n = 5, where b(8) = 16 and A5 = 15. The same maximum is Wasserman's lower bound in the Erdős-Freud-Hegyvári problem of minimizing the largest least common multiple of adjacent entries in a permutation of 1..N. The proof counts entries below thresholds, verifies a finite range, and extends analytic bounds to infinity, and the identity is also formalized in Lean 4. Each block-sort record at a prime is strict, and the running maximum through position x is asymptotic to x2/(4 log x).
What carries the argument. The argument runs on the counting function CB(t, q), the number of entries at most a threshold B among the first qt terms of the row at stage t. A partial-block lemma gives an exact recurrence for CB(t + 1, q) in terms of CB(t, k) and CB(t, k + 1); a backward-bound lemma shows that a full prefix at a prime stage forces earlier prime stages to contribute more full blocks, introducing a factor equal to a difference of prime counts. The value b(p+1) is pinned by two threshold tests: CA(p, 2) = 2p and CA−1(p, 1) = p. These are discharged by an induction on stages using a reserve condition H(t,q,Q), which is checked by the finite verifier for n < 106 and by the analytic density bound 12 π(t) ≤ t for larger n, so the whole proof reduces to a finite arithmetic check plus a standard analytic estimate.
Core claim. On the paper's own terms, the central discovery is that an iterated sorting process — blocks of length t sorted descending at prime stages and ascending otherwise — produces at position one past the (n-1)-th prime the exact number An = max over 1 ≤ i ≤ n of pi (n+1-i), for every n ≥ 2 except n = 5. The exception is isolated: b(8) = 16 while A5 = 15. The result is established in three regimes: direct computation for n ≤ 13, a finite verifier with integer arithmetic for 14 ≤ n < 106, and an analytic argument built on Dusart's bound 12 π(t) ≤ t for t >= 106 covering n >= 106, with a Lean 4 formalization checking the statement. As consequences the paper derives that each position b(p+1) at a prime is a strict record of the sequence, that An is asymptotic to (1/4) n2 log n with the maximizing index near n/2, and that the running maximum through x is asymptotic to x2/(4 log x).
The premise it rests on. The load-bearing premise is the reserve condition H(t,q,Q) verified by the companion finite verifier check_finite.cpp for n < 106 and by the analytic bound 12 π(t) ≤ t for n >= 106; if the verifier misimplements the recurrence or the analytic bound misestimates the prime count, the identity's proof collapses.
If the paper is right
Wasserman's lower bound Aπ(N) for L(N), the minimal largest adjacent lcm in a permutation of 1..N, is now identified with an explicit stabilized block-sort entry whenever π(N) is not 5.
The running maximum M(x) of stabilized entries is asymptotic to x2/(4 log x), matching the Erdős-Freud-Hegyvári growth L(N) ~ N2/(4 log N).
An grows like (1/4) n2 log n, with the maximizing index in/n tending to 1/2.
Each b(p+1) at a prime p exceeds all earlier entries, giving a guaranteed record at every prime-indexed position one past a prime.
The proof's method — two threshold tests plus an induction with a reserve — likely extends to other schedules of decreasing stages, since the corollary on other choices of decreasing stages bounds any such process by a similar maximum over t.
Because the finite part is formalized in Lean while the analytic tail rests on Dusart's estimate, the residual risk sits mostly at the crossover between the two regimes; an independent check of the boundary would harden the result.
The link to the lcm-of-adjacent-entries problem suggests the block-sort value is not incidental: the same maximum lower-bounds L(N), so the theorem sharpens the known lower bound for that permutation problem.
One could test whether n = 5 is the sole failure by replacing the prime set with other sparse sets and asking whether a similar identity holds with only a finite exception list.
Check this review
What was read
The passes were given all 30,175 characters of the paper's LaTeX source.
Fingerprint of that text (SHA-256): d64659a2323c59fc95b04eefbf704eb127d17c242876d0de32eeb7c39d209f71
Pith does not keep that text. Rebuilt from the paper's source or PDF by the same code, it has this fingerprint if it is the same text. From a copy of Pith's code:
PYTHONPATH=. python scripts/review_input_check.py 2612.02738
The passes, in the order they ran
- Reader deepseek-v4-flash · medium effort · $0.0017 · instructions of the Reader, fingerprint f9ead7300382…
- Skeptic deepseek-v4-flash · medium effort · $0.0013 · instructions of the Skeptic, fingerprint 8f88c0f61488…
- Referee deepseek-v4-flash · medium effort · $0.0020 · instructions of the Referee, fingerprint a852d99aea0d…
- Editor deepseek-v4-flash · medium effort · $0.0012 · instructions of the Editor, fingerprint e7211f6a3d27…
- Circularity check deepseek-v4-flash · medium effort · $0.0012 · instructions of the Circularity check, fingerprint e9946e39d67b…
- Summary for the page deepseek-v4-flash · medium effort · temperature 0.2 · $0.0038 · instructions of the Summary for the page, fingerprint e4f56bf568e7…
The passes cost $0.011 in model calls together.
Version stamped on this review: pith-pipeline@v1.4.1-daily-deepseek-or-medium+deepseek/deepseek-v4-flash+p.505d180dcaef
Each link opens a pass's instructions as plain text, the exact bytes its fingerprint was taken over. Every stored set of instructions.
curl -s https://pith.science/methodology/prompts/f9ead730038216984cfb56d7cb34332bdf691828296a1de4245f3d6667d4bf56 | sha256sum
prints the fingerprint of the reader's instructions. The same works for every pass.
The receipt
The review's fingerprint was taken on 3 Dec 2026. The review you are reading still matches it.
Fingerprint of the review (SHA-256): ee414802650ef4b07c6337f6bb6dfa7144182bbaa256a1f24819aaf404aca2f9
curl -s 'https://pith.science/api/v1/verdicts/2612.02738?form=canonical' | sha256sum
prints the fingerprint of the review as it stands now. The rule, in four steps.
A matching fingerprint shows the review has not changed since that date. It does not show that the review is right.
Reviews like this one: written by deepseek-v4-flash, from the paper's LaTeX source.
No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and the review is published here whatever it concludes. Request a human review
The paper
Abstract
We start with the positive integers in increasing order. At stage t ≥ 2 we fix the first t entries and sort each remaining block of length t in decreasing order if t is prime and in increasing order otherwise. Let b(j) be the eventual value at position j, and let pi be the i-th prime. We prove Mikhail Kurkov's conjecture that b(pn−1 + 1) = max1≤i≤n pi(n + 1 − i) for every n ≥ 2 except n = 5, when b(8) = 16 and the maximum is 15. David Wasserman used this same maximum to give a lower bound in the problem of Erdős, Freud and Hegyvári on least common multiples of adjacent terms in a permutation. We prove the sorting identity by counting entries at most a given threshold and checking a finite range of indices. We also formalize the identity in Lean. Each b(p + 1) with p prime is a strict record, and the running maximum through position x is asymptotic to x2/(4 log x).
A classifier labelled each sentence of the abstract by the part it plays in the paper. The labels are kept beside the review and separate from it: the review read the paper's text, and these labels cover the abstract only. Every quoted sentence is the authors' own. No sentence in this record was written by a model.
abstract compiled · 3 Dec 2026
The main claim
“We prove Mikhail Kurkov's conjecture that b(pn−1 + 1) = max1≤i≤n pi(n + 1 − i) for every n ≥ 2 except n = 5, when b(8) = 16 and the maximum is 15.”
Stated as asserted.
The abstract, sentence by sentence
This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.
| Sentence | Role | The authors' own work | States the main conclusion | Strength |
|---|---|---|---|---|
| We start with the positive integers in increasing order. | method 0.53 | 0.34 | 0.01 | asserted 0.95 |
| At stage t ≥ 2 we fix the first t entries and sort each remaining block of length t in decreasing order if t is prime and in increasing order otherwise. | method 0.85 | 0.47 | 0.02 | asserted 0.87 |
| Let b(j) be the eventual value at position j, and let pi be the i-th prime. | background 0.85 | 0.40 | 0.02 | unclear 0.57 |
| We prove Mikhail Kurkov's conjecture that b(pn−1 + 1) = max1≤i≤n pi(n + 1 − i) for every n ≥ 2 except n = 5, when b(8) = 16 and the maximum is 15. | result 0.87 | 0.87 | 0.94 | asserted 0.99 |
| David Wasserman used this same maximum to give a lower bound in the problem of Erdős, Freud and Hegyvári on least common multiples of adjacent terms in a permutation. | background 0.97 | 0.06 | 0.03 | asserted 1.00 |
| We prove the sorting identity by counting entries at most a given threshold and checking a finite range of indices. | method 1.00 | 0.96 | 0.05 | asserted 1.00 |
| We also formalize the identity in Lean. | contribution 0.84 | 0.96 | 0.03 | asserted 1.00 |
| Each b(p + 1) with p prime is a strict record, and the running maximum through position x is asymptotic to x2/(4 log x). | result 1.00 | 0.90 | 0.10 | asserted 1.00 |
What kind of paper the classifier reports this is: theoretical result 1.00 · evidence from proof or derivation 1.00
What was examined, and what was not
These lists are about the sentence labels. What the review read is said with the review.
Read
- arXiv listing abstract v1
Not read
- full text
- figures and tables
- references and citing sentences
- relations to other papers
Labelled
- abstract
Not labelled
- sections
- body sentences
- citations
- cross-paper relations
The main claim, as probabilities
picked as the main claim 1.00 · how strongly it is stated 0.99
What the abstract itself states, as probabilities
claims first 0.05 · states limitation 0.77 · human participants 0.02 · controlled comparison 0.01 · randomized assignment 0.01 · states quantitative result 0.98 · compares with prior results 0.78 · mentions code or data availability 0.28
How the labels were made
Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-12-03: 1 request, 6,316 input tokens.
This record as JSON, with every label and the probability the classifier gave it.
References (10)
- [1] D. Wasserman,Sequence A073818, The On-Line Encyclopedia of Integer Sequences, 13 August 2002. OEIS entry on Pith
- [2] P. Erd˝ os, R. Freud and N. Hegyv´ ari,Arithmetical properties of permutations of integers, Acta Mathematica Hungarica41(1983), 169–176. Author’s copy on Pith
- [3] D. Wasserman, Comment on sequence A064764, The On-Line Encyclopedia of Integer Sequences, 17 August 2002. OEIS entry on Pith
- [4] M. Kurkov, Comment on sequence A073818, The On-Line Encyclopedia of Integer Se- quences, 11 May 2022. Original comment, revision 8. Archived text on Pith
- [5] KoaOkano, Computational notes on A073818, 28 November 2026. Left to Solve problem notes on Pith
- [6] Dugongue, Formal statement of OEIS A073818 in Lean, 28 November 2026. Pull request 43607 on Pith
- [7] I. Mederov, Lean proof of Kurkov’s prime-sorting conjecture, 29 November 2026. Pinned source and pull request 115544 on Pith
- [8] dsquirrel, Prime tables in the Lean proof of Colton’s conjecture (OEIS A111291). Pinned source on Pith
- [9] P. Dusart,Estimates of some functions over primes without R.H.(2010), Theorem 6.9. arXiv:1002.0442 on PithPith's reviewarXiv
- [10] I. Mederov, Reproducible materials accompanying this paper. Manuscript, Lean project and finite verifier. 9 on Pith
Topics: The Twin Prime Conjecture
Challenges and discussion
Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.
The week in your field, by email.
A short list of the week's newly reviewed papers. Nothing is sent until you confirm from your inbox, and every email has a link that stops it. No account. No tracking pixel.
No comments yet.
Sign in to comment