REVIEW 2 major objections 2 minor 25 references
Enumerating Inclusion-Maximal Arithmetic Progressions
T0 review · 2 major / 2 minor · reviewed 2026-06-27 · grok-4.3
Pith's one-line read A new algorithm enumerates all inclusion-maximal arithmetic progressions in a sequence of n integers up to N in O(n² log N / log log N + N) time.
desk verdict The paper gives a concrete faster algorithm for listing inclusion-maximal APs plus new expected-count proofs, but the full proofs and experiment details need checking. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
An enumeration procedure that scans candidate arithmetic progressions by common differences, checks left and right extensions within S, and discards any progression properly contained in another maximal one.
What would settle it
Execute the algorithm on the sequence 1,3,5,7,9 and check whether the output contains exactly the single IMAP consisting of all five terms and no other.
Extended reading notes
Core claim
The central claim is an algorithm that, for any strictly increasing integer sequence S of length n with largest entry N, enumerates every inclusion-maximal arithmetic progression in O(n² log N / log log N + N) time while also establishing the expected number of such progressions under a uniform random model and a bound on their order of growth.
Load-bearing premise
The input sequence must be strictly increasing, and the maximality and inclusion checks must return exactly the inclusion-maximal progressions without omissions or duplicates.
Editorial extensions
If this is right
- The algorithm supports faster processing of large rhythmically complex musical pieces than the earlier O(N^{2+o(1)} n) method.
- The number of IMAPs in a random sequence of length n with maximum N obeys a stated expectation and growth bound.
- Empirical counts of IMAPs match the derived mathematical expectations on the tested instances.
Reading between the lines
- The same enumeration structure could be applied to strictly increasing sequences arising in other ordered domains such as event timestamps.
- If the maximality test can be relaxed, the approach might extend to approximate or near-arithmetic progressions.
- The additive N term suggests that preprocessing the range up to N is a bottleneck that further data structures might reduce.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript presents a simple O(n² log N / log log N + N) enumeration algorithm for all inclusion-maximal arithmetic progressions (IMAPs) in a strictly increasing integer sequence S of length n with maximum entry N. An IMAP is defined as a subsequence that forms an arithmetic progression with common difference d, is maximal (cannot be extended left or right within S), and is inclusion-maximal (not properly contained in another maximal AP). The paper supplies proofs of the expected number of IMAPs under random sequences and a bound on their order of growth, plus empirical runtime comparisons against a prior O(N^{2+o(1)}n) algorithm and comparisons of observed versus expected IMAP counts.
Significance. If the correctness proof and complexity analysis hold, the result supplies a faster practical tool for enumerating IMAPs with direct application to rhythm analysis in computational musicology. The explicit proofs of expected counts together with the reproducible empirical validation against both theory and a baseline algorithm constitute a clear strength; the improved asymptotic and observed running time would enable scaling to larger musical corpora.
major comments (2)
- [§4] §4 (Complexity Analysis), the derivation of the O(n² log N / log log N + N) bound: the analysis must explicitly account for the cost of the inclusion-maximality test performed after candidate generation; if this test is implemented via a linear scan over previously found APs it could introduce an extra m factor that is not absorbed by the stated bound.
- [§5] §5 (Expected Number Proof), Theorem 1: the claimed expectation for the number of IMAPs in a random sequence relies on an independence assumption across possible differences d; the proof should state the precise probability model (uniform random subset or random permutation) and verify that the maximality condition does not introduce dependence that invalidates the closed-form expectation.
minor comments (2)
- [§6] The experimental section should report the precise generation method for the random test sequences (e.g., uniform sampling of n distinct integers from 1..N) and the number of trials used to compute average runtimes and IMAP counts.
- Notation: the variable m (number of IMAPs) is introduced in the abstract but never appears in the complexity statement; clarify whether the algorithm’s running time is independent of m or whether an output-sensitive term is omitted.
Simulated Author's Rebuttal
We thank the referee for the positive evaluation and for identifying points that can strengthen the presentation. We address each major comment below and will revise the manuscript to incorporate the requested clarifications.
read point-by-point responses
-
Referee: [§4] §4 (Complexity Analysis), the derivation of the O(n² log N / log log N + N) bound: the analysis must explicitly account for the cost of the inclusion-maximality test performed after candidate generation; if this test is implemented via a linear scan over previously found APs it could introduce an extra m factor that is not absorbed by the stated bound.
Authors: We agree that §4 should explicitly bound the inclusion-maximality test. The manuscript describes the test but does not separately analyze its cost. If implemented via a naïve linear scan, an extra factor linear in the number of previously reported APs could appear. We will revise the analysis to show that the test can be performed in amortized O(1) time per candidate using a suitable hash-based data structure on the generated APs, keeping the overall bound unchanged. The revised §4 will contain the updated derivation. revision: yes
-
Referee: [§5] §5 (Expected Number Proof), Theorem 1: the claimed expectation for the number of IMAPs in a random sequence relies on an independence assumption across possible differences d; the proof should state the precise probability model (uniform random subset or random permutation) and verify that the maximality condition does not introduce dependence that invalidates the closed-form expectation.
Authors: The proof in §5 models S as a uniformly random strictly increasing sequence of length n drawn from {1,…,N}. We acknowledge that the current write-up invokes an independence assumption across differences d without a detailed justification. We will revise Theorem 1 and its proof to (i) state the probability space explicitly and (ii) bound the dependence introduced by the maximality conditions, showing that the expectation remains asymptotically the same as the closed-form expression given in the manuscript. The revised proof will appear in the next version. revision: yes
Circularity Check
No significant circularity; derivation is self-contained algorithmic construction
full rationale
The paper presents an enumeration algorithm whose time bound and correctness rest on explicit checks for maximality and inclusion in strictly increasing sequences, together with separate mathematical proofs of expected IMAP counts and empirical runtime comparisons. No equation or claim reduces a derived quantity to a fitted parameter, self-referential definition, or load-bearing self-citation; the expected-count proofs and complexity analysis are independent of the algorithm's output values. The contribution therefore contains no circular steps of the enumerated kinds.
Assumptions & free parameters
assumptions (1)
- domain assumption Input is a strictly increasing integer sequence with n entries and maximum value N.
Cite this review
Pith. "Pith review of Enumerating Inclusion-Maximal Arithmetic Progressions." pith.science (2026). https://pith.science/paper/7AHH5R3H
@misc{pith2026260611067,
author = {Pith},
title = {Pith review of: Enumerating Inclusion-Maximal Arithmetic Progressions},
year = {2026},
howpublished = {\url{https://pith.science/paper/7AHH5R3H}},
note = {Machine review of arXiv:2606.11067}
}
abstract
We present a simple $\mathcal{O}\left( n^2 \frac{ \log N }{ \log \log N } + N \right)$ enumeration algorithm for solving a problem from mathematical and computational music analysis where, given a strictly increasing integer sequence, $S$, with $n$ entries and maximum value $N$, the task is to enumerate all $m$ $\textit{inclusion-maximal arithmetic progressions (IMAPs)}$ in this sequence. An IMAP is a subsequence, $S' \subseteq S$ with $k>2$ integers, in which (i) the difference between any two consecutive integers is the same number, $d$ (i.e., $S'$ is an $\textit{arithmetic progression}$), (ii) $S'$ cannot be further extended to the left or to the right with any additional integers from $S$ while still remaining an arithmetic progression (i.e., $S'$ is a $\textit{maximal}$ arithmetic progression), and (iii) there is no other maximal arithmetic progression, $S'' \subseteq S$, which $\textit{properly}$ contains $S'$ (i.e., $S'$ is an $\textit{inclusion-maximal}$ arithmetic progression). We further provide proofs for the expected number of IMAPs in random integer sequences, $S$, and a bound on their order of growth. Finally, we provide empirical experiments comparing both (a) the practical running time performance of the proposed algorithm against that of a previously known algorithm which has higher time complexity $\mathcal{O}(N^{2+o(1)}n)$, and (b) the actual enumerated number of IMAPs to that of their mathematically expected number. Notably, the proposed algorithm demonstrates a significant improvement in running time over the previously known algorithm, and in immediate practical applications, will allow for more efficient analysis of large and rhythmically complex musical pieces.
Figures
Figures from the paper (1 more)
Reference graph
Works this paper leans on
-
[1]
Constraint programming systems for modeling music theories and composition
Anders, T., Miranda, E.R., 2011. Constraint programming systems for modeling music theories and composition. ACM Computing Surveys (CSUR) 43, 1–38
2011
-
[2]
Inner Metric Analysis as a measure of rhythmic syncopation, in: 2024 ISMIR 24th Annual International Symposium of Music Information Retrieval, ISMIR, San Franciso, CA, U.S.A
Bemman, B., Christensen, J., 2024. Inner Metric Analysis as a measure of rhythmic syncopation, in: 2024 ISMIR 24th Annual International Symposium of Music Information Retrieval, ISMIR, San Franciso, CA, U.S.A.. pp. 389–396
2024
-
[3]
Backtrackingsearchheuristicsforsolvingtheall-partitionarrayproblem.,in:The20thInternationalSociety for Music Information Retrieval Conference, ISMIR, Delft, Netherlands
Bemman,B.,Meredith,D.,2019. Backtrackingsearchheuristicsforsolvingtheall-partitionarrayproblem.,in:The20thInternationalSociety for Music Information Retrieval Conference, ISMIR, Delft, Netherlands. pp. 391–397
2019
-
[4]
An improvement to the Kelley-Meka bounds on three-term arithmetic progressions
Bloom, T.F., Sisask, O., 2023a. An improvement to the Kelley-Meka bounds on three-term arithmetic progressions.arXiv:2309.02353
-
[5]
The Kelley–Meka bounds for sets free of three-term arithmetic progressions
Bloom, T.F., Sisask, O., 2023b. The Kelley–Meka bounds for sets free of three-term arithmetic progressions. Essential Number Theory 2, 15–44
-
[6]
Multiple Mertens theorems for arithmetic progressions.arXiv:2512.07336
Chen, Z., Luo, J., 2025. Multiple Mertens theorems for arithmetic progressions.arXiv:2512.07336
-
[7]
Dance music classification using Inner Metric Analysis, in: Golden, B., Raghavan, S., Wasil, E
Chew, E., Volk, A., Lee, C.Y., 2005. Dance music classification using Inner Metric Analysis, in: Golden, B., Raghavan, S., Wasil, E. (Eds.), The Next Wave in Computing, Optimization, and Decision Technologies, Springer US, Boston, MA. pp. 355–370
2005
-
[8]
De Haas, W.B., Volk, A., 2016. Meter detection in symbolic music using Inner Metric Analysis, in: Proceedings of the 17th International Society for Music Information Retrieval Conference, ISMIR, New York, NY, U.S.A.. pp. 441–447
2016
Show all 25 references
-
[9]
Finding longest arithmetic progressions
Erickson, J., 1999. Finding longest arithmetic progressions. University of Illinois at Urbana-Champaign
1999
-
[10]
Arithmetic progressions at the journal of the LMS
Green, B., 2026. Arithmetic progressions at the journal of the LMS. Journal of the London Mathematical Society 113, e70483
2026
-
[11]
Green,B.,Sisask,O.,2008.Onthemaximalnumberof3-termarithmeticprogressionsinsubsetsofℤ/𝑝ℤ.BulletinoftheLondonMathematical Society 40, 945–955
2008
-
[12]
A linear sieve algorithm for finding prime numbers
Gries, D., Misra, J., 1978. A linear sieve algorithm for finding prime numbers. Communications of the ACM 21, 999–1003
1978
-
[13]
AnIntroductiontotheTheoryofNumbers
Hardy,G.,Wright,E.,Heath-Brown,D.,Silverman,J.,2008. AnIntroductiontotheTheoryofNumbers. OxfordMathematics,OUPOxford, Oxford University Press, U.S.A
2008
-
[14]
On the normal number of prime factors of a number n
Hardy, G.H., 1917. On the normal number of prime factors of a number n. Quart. J. Math. Oxford Ser. 48, 76–92
1917
-
[15]
Aclassicalintroductiontomodernnumbertheory.volume84
Ireland,K.,Rosen,M.I.,1990. Aclassicalintroductiontomodernnumbertheory.volume84. SpringerScience&BusinessMedia,Springer- Verlag New York, NY, U.S.A
1990
-
[16]
Strong bounds for 3-progressions, in: 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), IEEE, Santa Cruz, CA, U.S.A
Kelley, Z., Meka, R., 2023. Strong bounds for 3-progressions, in: 2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS), IEEE, Santa Cruz, CA, U.S.A.. pp. 933–973
2023
-
[17]
Corpus-based rhythmic pattern analysis of ragtime syncopation, in: Proceedings of the 16th International Society for Music Information Retrieval Conference, ISMIR, Málaga, Spain
Koops, H.V., Volk, A., De Haas, W.B., 2015. Corpus-based rhythmic pattern analysis of ragtime syncopation, in: Proceedings of the 16th International Society for Music Information Retrieval Conference, ISMIR, Málaga, Spain. pp. 483–489
2015
-
[18]
Imacpp.https://github.com/pvankranenburg/imacpp
Kranenburg, P.V., 2022. Imacpp.https://github.com/pvankranenburg/imacpp
2022
-
[19]
Inner Metric Analysis
Nestke, A., Noll, T., 2001. Inner Metric Analysis. Tatra Mountains Mathematical Publications 23
2001
-
[20]
Majorations explicites pour le nombre de diviseurs de n
Nicolas, J.L., Robin, G., 1983. Majorations explicites pour le nombre de diviseurs de n. Canadian Mathematical Bulletin 26, 485–492. doi:10.4153/CMB-1983-078-5
1983 doi
-
[21]
Linear prime-number sieves: A family tree
Pritchard, P., 1987. Linear prime-number sieves: A family tree. Science of Computer Programming 9, 17–35
1987
-
[22]
Applied combinatorics, in: Applied Combinatorics, Second Edition
Roberts, F.S., Tesman, B., 2009. Applied combinatorics, in: Applied Combinatorics, Second Edition. Taylor and Francis, New York, NY, U.S.A., pp. 1–848
2009
-
[23]
Tanaka, T., Bemman, B., Meredith, D., 2016a. Constraint programming approach to the problem of generating Milton Babbitt’s all-partition arrays, in: International Conference on Principles and Practice of Constraint Programming, Springer, Toulouse, France. pp. 802–810. Bemman e...
-
[24]
Tanaka, T., Bemman, B., Meredith, D., 2016b. Integer programming formulation of the problem of generating Milton Babbitt’s all-partition arrays, in: The 17th International Society for Music Information Retrieval Conference, ISMIR, New York, NY, U.S.A.. pp. 172–177
-
[25]
The study of syncopation using Inner Metric Analysis: Linking theoretical and experimental analysis of metre in music
Volk, A., 2008. The study of syncopation using Inner Metric Analysis: Linking theoretical and experimental analysis of metre in music. Journal of New Music Research 37, 259–273. Bemman et al.:Preprint Page 23 of 23
2008
Reviewed June 27, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.