You are currently browsing the monthly archive for December 2025.
I’ve just uploaded to the arXiv my preprint The maximal length of the Erdős–Herzog–Piranian lemniscate in high degree. This paper resolves (in the asymptotic regime of sufficiently high degree) an old question about the polynomial lemniscates
(The images here were generated using AlphaEvolve and Gemini.) A reasonably well-known conjecture of Erdős, Herzog, and Piranian (Erdős problem 114) asserts that this is indeed the maximizer, thus for all monic polynomials of degree
.
There have been several partial results towards this conjecture. For instance, Eremenko and Hayman verified the conjecture when . Asympotically, bounds of the form
had been known for various
such as
,
, or
; a significant advance was made by Fryntov and Nazarov, who obtained the asymptotically sharp upper bound
I recently explored this problem with the optimization tool AlphaEvolve, where I found that when I assigned this tool the task of optimizing for a given degree
, that the tool rapidly converged to choosing
to be equal to
(up to the rotation and translation symmetries of the problem). This suggested to me that the conjecture was true for all
, though of course this was far from a rigorous proof. AlphaEvolve also provided some useful visualization code for these lemniscates which I have incorporated into the paper (and this blog post), and which helped build my intuition for this problem; I view this sort of “vibe-coded visualization” as another practical use-case of present-day AI tools.
In this paper, we iteratively improve upon the Fryntov-Nazarov method to obtain the following bounds, in increasing order of strength:
- (i)
.
- (ii)
.
- (iii)
.
- (iv)
for sufficiently large
.
The proof of these bounds is somewhat circuitious and technical, with the analysis from each part of this result used as a starting point for the next one. For this blog post, I would like to focus on the main ideas of the arguments.
A key difficulty is that there are relatively few tools for upper bounding the arclength of a curve; indeed, the coastline paradox already shows that curves can have infinite length even when bounded. Thus, one needs to utilize some smooth or algebraic structure on the curve to hope for good upper bounds. One possible approach is via the Crofton formula, using Bezout’s theorem to control the intersection of the curve with various lines. This is already good enough to get bounds of the form (for instance by combining it with other known tools to control the diameter of the lemniscate), but it seems challenging to use this approach to get bounds close to the optimal
.
Instead, we follow Fryntov–Nazarov and utilize Stokes’ theorem to convert the arclength into an area integral. A typical identity used in that paper is
But this argument does not fully capture the oscillating nature of the phase on one hand, and the oscillating nature of
on the other. Fryntov–Nazarov exploited these oscillations with some additional decompositions and integration by parts arguments. By optimizing these arguments, I was able to establish an inequality of the form
One can heuristically justify (1) as follows. Suppose we work in a region where the functions ,
are roughly constant:
,
. For simplicity let us normalize
to be real, and
to be negative real. In order to have a non-trivial lemniscate in this region,
should be close to
. Because the unit circle
is tangent to the line
at
, the lemniscate condition
is then heuristically approximated by the condition that
. On the other hand, the hypothesis
suggests that
for some amplitude
, which heuristically integrates to
. Writing
in polar coordinates as
and
in Cartesian coordinates as
, the condition
can then be rearranged after some algebra as
A graphic illustration of (1) (provided by Gemini) is shown below, where the dark spots correspond to small values of that act to “repel” (and shorten) the lemniscate. (The bright spots correspond to the critical points of
, which in this case consist of six critical points at the origin and one at both of
and
.)
By choosing parameters appropriately, one can show that and
, yielding the first bound
. However, by a more careful inspection of the arguments, and in particular measuring the defect in the triangle inequality
At this point, the only remaining cases that need to be handled are the ones with bounded dispersion: . In this case, one can do some elementary manipulations of the factorization
Problem 1026 on the Erdős problem web site recently got solved through an interesting combination of existing literature, online collaboration, and AI tools. The purpose of this blog post is to try to tell the story of this collaboration, and also to supply a complete proof.
The original problem of Erdős, posed in 1975, is rather ambiguous. Erdős starts by recalling his famous theorem with Szekeres that says that given a sequence of distinct real numbers, one can find a subsequence of length
which is either increasing or decreasing; and that one cannot improve the
to
, by considering for instance a sequence of
blocks of length
, with the numbers in each block decreasing, but the blocks themselves increasing. He also noted a result of Hanani that every sequence of length
can be decomposed into the union of
monotone sequences. He then wrote “As far as I know the following question is not yet settled. Let
be a sequence of distinct numbers, determine
This problem was added to the Erdős problem site on September 12, 2025, with a note that the problem was rather ambiguous. For any fixed , this is an explicit piecewise linear function of the variables
that could be computed by a simple brute force algorithm, but Erdős was presumably seeking optimal bounds for this quantity under some natural constraint on the
. The day the problem was posted, Desmond Weisenberg proposed studying the quantity
, defined as the largest constant such that
Though not stated on the web site, one can formulate this problem in game theoretic terms. Suppose that Alice has a stack of coins for some large
. She divides the coins into
piles of consisting of
coins each, so that
. She then passes the piles to Bob, who is allowed to select a monotone subsequence of the piles (in the weak sense) and keep all the coins in those piles. What is the largest fraction
of the coins that Bob can guarantee to keep, regardless of how Alice divides up the coins? (One can work with either a discrete version of this problem where the
are integers, or a continuous one where the coins can be split fractionally, but in the limit
the problems can easily be seen to be equivalent.)
AI-generated images continue to be problematic for a number of reasons, but here is one such image that somewhat manages at least to convey the idea of the game:
For small , one can work out
by hand. For
, clearly
: Alice has to put all the coins into one pile, which Bob simply takes. Similarly
: regardless of how Alice divides the coins into two piles, the piles will either be increasing or decreasing, so in either case Bob can take both. The first interesting case is
. Bob can again always take the two largest piles, guaranteeing himself
of the coins. On the other hand, if Alice almost divides the coins evenly, for instance into piles
for some small
, then Bob cannot take all three piles as they are non-monotone, and so can only take two of them, allowing Alice to limit the payout fraction to be arbitrarily close to
. So we conclude that
.
An hour after Desmond’s comment, Stijn Cambie noted (though not in the language I used above) that a similar construction to the one above, in which Alice divides the coins into pairs that are almost even, in such a way that the longest monotone sequence is of length
, gives the upper bound
. It is also easy to see that
is a non-increasing function of
, so this gives a general bound
. Less than an hour after that, Wouter van Doorn noted that the Hanani result mentioned above gives the lower bound
, and posed the problem of determining the asymptotic limit of
as
, given that this was now known to range between
and
. This version was accepted by Thomas Bloom, the moderator of the Erdős problem site, as a valid interpretation of the original problem.
The next day, Stijn computed the first few values of exactly:
The problem then lay dormant for almost two months, until December 7, 2025, in which Boris Alexeev, as part of a systematic sweep of the Erdős problems using the AI tool Aristotle, was able to get this tool to autonomously solve this conjecture in the proof assistant language Lean. The proof converted the problem to a rectangle-packing problem.
This was one further addition to a recent sequence of examples where an Erdős problem had been automatically solved in one fashion or another by an AI tool. Like the previous cases, the proof turned out to not be particularly novel. Within an hour, Koishi Chan gave an alternate proof deriving the required bound from the original Erdős-Szekeres theorem by a standard “blow-up” argument which we can give here in the Alice-Bob formulation. Take a large
, and replace each pile of
coins with
new piles, each of size
, chosen so that the longest monotone subsequence in this collection is
. Among all the new piles, the longest monotone subsequence has length
. Applying Erdős-Szekeres, one concludes the bound
Once this proof was found, it was natural to try to see if it had already appeared in the literature. AI deep research tools have successfully located such prior literature in the past, but in this case they did not succeed, and a more “old-fashioned” Google Scholar job turned up some relevant references: a 2016 paper by Tidor, Wang and Yang contained this precise result, citing an earlier paper of Wagner as inspiration for applying “blowup” to the Erdős-Szekeres theorem.
But the story does not end there! Upon reading the above story the next day, I realized that the problem of estimating was a suitable task for AlphaEvolve, which I have used recently as mentioned in this previous post. Specifically, one could task to obtain upper bounds on
by directing it to produce real numbers (or integers)
summing up to a fixed sum (I chose
) with a small a value of
as possible. After an hour of run time, AlphaEvolve produced the following upper bounds on
for
, with some intriguingly structured potential extremizing solutions:

Proposition 1 Ifand
, then
.
Proof: Consider a sequence of numbers clustered around the “red number”
and “blue number”
, consisting of
blocks of
“blue” numbers, followed by
blocks of
“red” numbers, and then
further blocks of
“blue” numbers. When
, one should take all blocks to be slightly decreasing within each block, but the blue blocks should be are increasing between each other, and the red blocks should also be increasing between each other. When
, all of these orderings should be reversed. The total number of elements is indeed
Here is a figure illustrating the above construction in the case (obtained after starting with a ChatGPT-provided file and then manually fixing a number of placement issues):
Here is a plot of (produced by ChatGPT Pro), showing that it is basically a piecewise linear approximation to the square root function:
Shortly afterwards, Lawrence Wu clarified the connection between this problem and a square packing problem, which was also due to Erdős (Problem 106). Let be the least number such that, whenever one packs
squares of sidelength
into a square of sidelength
, with all sides parallel to the coordinate axes, one has
Proposition 2 For any, one has
Proof: Given and
, let
be the maximal sum over all increasing subsequences ending in
, and
be the maximal sum over all decreasing subsequences ending in
. For
, we have either
(if
) or
(if
). In particular, the squares
and
are disjoint. These squares pack into the square
, so by definition of
, we have
This idea of using packing to prove Erdős-Szekeres type results goes back to a 1959 paper of Seidenberg, although it was a discrete rectangle-packing argument that was not phrased in such an elegantly geometric form. It is possible that Aristotle was “aware” of the Seidenberg argument via its training data, as it had incorporated a version of this argument in its proof.
Here is an illustration of the above argument using the AlphaEvolve-provided example
for to convert it to a square packing (image produced by ChatGPT Pro):
At this point, Lawrence performed another AI deep research search, this time successfully locating a paper from just last year by Baek, Koizumi, and Ueoro, where they show that
Theorem 3 For any, one has
which, when combined with a previous argument of Praton, implies
Theorem 4 For anyand
with
, one has
This proves the conjecture!
There just remained the issue of putting everything together. I did feed all of the above information into a large language model, which was able to produce a coherent proof of (1) assuming the results of Baek-Koizumi-Ueoro and Praton. Of course, LLM outputs are prone to hallucination, so it would be preferable to formalize that argument in Lean, but this looks quite doable with current tools, and I expect this to be accomplished shortly. But I was also able to reproduce the arguments of Baek-Koizumi-Ueoro and Praton, which I include below for completeness.
Proof: (Proof of Theorem 3, adapted from Baek-Koizumi-Ueoro) We can normalize . It then suffices to show that if we pack the length
torus
by
axis-parallel squares of sidelength
, then
Pick . Then we have a
grid
UPDATE: Actually, the above argument also proves Theorem 4 with only minor modifications. Nevertheless, we give the original derivation of Theorem 4 using the embedding argument of Praton below for sake of completeness.
Proof: (Proof of Theorem 4, adapted from Praton) We write with
. We can rescale so that the square one is packing into is
. Thus, we pack
squares of sidelength
into
, and our task is to show that
- The sequence can be numerically computed as a sequence of rational numbers.
- When appropriately normalized and arranged, visible patterns in this sequence appear that allow one to conjecture the form of the sequence.
- This problem is a weighted version of the Erdős-Szekeres theorem.
- Among the many proofs of the Erdős-Szekeres theorem is the proof of Seidenberg in 1959, which can be interpreted as a discrete rectangle packing argument.
- This problem can be reinterpreted as a continuous square packing problem, and in fact is closely related to (a generalized axis-parallel form of) Erdős problem 106, which concerns such packings.
- The axis-parallel form of Erdős problem 106 was recently solved by Baek-Koizumi-Ueoro.
- The paper of Praton shows that Erdős Problem 106 implies the generalized version needed for this problem. This implication specializes to the axis-parallel case.
Another key ingredient was the balanced AI policy on the Erdős problem website, which encourages disclosed AI usage while strongly discouraging undisclosed use. To quote from that policy: “Comments prepared with the assistance of AI are permitted, provided (a) this is disclosed, (b) the contents (including mathematics, code, numerical data, and the existence of relevant sources) have been carefully checked and verified by the user themselves without the assistance of AI, and (c) the comment is not unreasonably long.”
Joni Teravainen and I have uploaded to the arXiv our paper “Quantitative correlations and some problems on prime factors of consecutive integers“. This paper applies modern analytic number theory tools – most notably, the Maynard sieve and the recent correlation estimates for bounded multiplicative functions of Pilatte – to resolve (either partially or fully) some old problems of Erdős, Strauss, Pomerance, Sárközy, and Hildebrand, mostly regarding the prime counting function
Our first result, answering a question of Erdős, shows that there are infinitely many for which one has the bound
However, with the advent of the Maynard sieve (also sometimes referred to as the Maynard–Tao sieve), it turns out to be possible to sieve for the conditions for all
simultaneously (roughly speaking, by sieving out any
for which
is divisible by a prime
for a large
), and then performing a moment calculation analogous to the standard proof (due to Turán) of the Hardy–Ramanujan law, but weighted by the Maynard sieve. (In order to get good enough convergence, one needs to control fourth moments as well as second moments, but these are standard, if somewhat tedious, calculations).
Our second result, which answers a separate question of Erdős, establishes that the quantity
Our final result concerns the asymptotic behavior of the density
Wouter van Doorn and I have uploaded to the arXiv our paper “Growth rates of sequences governed by the squarefree properties of its translates“. In this paper we answer a number of questions of Erdős} (Problem 1102 and Problem 1103 on the Erdős problem web site) regarding how quickly a sequence of increasing natural numbers can grow if one constrains its translates
to interact with the set
of squarefree numbers in various ways. For instance, Erdős defined a sequence
to have “Property
” if each of its translates
only intersected
in finitely many points. Erdős believed this to be quite a restrictive condition on
, writing “Probably a sequence having property P must increase fairly fast, but I have no results in this direction.”. Perhaps surprisingly, we show that while these sequences must be of density zero, they can in fact grow arbitrary slowly in the sense that one can have
for all sufficiently large
and any specified function
that tends to infinity as
. For instance, one can find a sequence that grows like
. The density zero claim can be proven by a version of the Maier matrix method, and also follows from known moment estimates on the gaps between squarefree numbers; the latter claim is proven by a greedy construction in which one slowly imposes more and more congruence conditions on the sequence to ensure that various translates of the sequence stop being squarefree after a certain point.
Erdős also defined a somewhat complementary property , which asserts that for infinitely many
, all the elements
of
for
are square-free. Since the squarefree numbers themselves have density
, it is easy to see that a sequence with property
must have (upper) density at most
(because it must be “admissible” in the sense of avoiding one residue class modulo
for each
). Erdős observed that any sufficiently rapidly growing (admissible) sequence would obey property
but beyond that, Erdős writes “I have no precise information about the rate of increase a sequence having property Q must have.”. Our results in this direction may also be surprising: we show that there exist sequences with property
with density exactly
(or equivalently,
). This requires a recursive sieve construction, in which one starts with an initial scale
and finds a much larger number
such that
is squarefree for most of the squarefree numbers
(and all of the squarefree numbers
). We quantify Erdős’s remark by showing that an (admissible) sequence will necessarily obey property
once it grows significantly faster than
, but need not obey this property if it only grows like
. This is achieved through further application of sieve methods.
A third property studied by Erdős is the property of having squarefree sums, so that is squarefree for all
. Erdős writes, “In fact one can find a sequence which grows exponentially. Must such a sequence really increase so fast? I do not expect that there is such a sequence of polynomial growth.” Here our results are relatively weak: we can construct such a sequence that grows like
, but do not know if this is optimal; the best lower bound we can produce on the growth, coming from the large sieve, is
. (Somewhat annoyingly, the precise form of the large sieve inequality we needed was not in the literature, so we have an appendix supplying it.) We suspect that further progress on this problem requires advances in inverse sieve theory.
A weaker property than squarefree sums (but stronger than property ), referred to by Erdős as property
, asserts that there are infinitely many
such that all elements of
(not just the small ones) are square-free. Here, the situation is close to, but not quite the same, as that for property
; we show that sequences with property
must have upper density strictly less than
, but can have density arbitrarily close to this value.
Finally, we looked at a further question of Erdős on the size of an admissible set . Because the squarefree numbers are admissible, the maximum number
of elements of an admissible set
up to
(OEIS A083544) is at least the number
of squarefree elements up to
(A013928). It was observed by Ruzsa that the former sequence is greater than the latter for infinitely many
. Erdős asked, “Probably this holds for all large x. It would be of some interest to estimate A(x) as accurately as possible.”
We are able to show
However, we do not currently have enough numerical data for the sequence to completely confirm the conjecture in all cases. This could potentially be a crowdsourced project (similar to the Erdős-Guy-Selfridge project reported on in this previous blog post).


Recent Comments