| | @@ -0,0 +1,201 @@ |
| 1 | +# A factorial certificate for Erdős #30 at $457/500$ |
| 2 | + |
| 3 | +**Theorem.** Set $r=457/500$. Every sufficiently large real $x$ admits a |
| 4 | +prime $p$ with $rx<p\le x$. If $h(N)$ is the maximum size of a Sidon subset |
| 5 | +of $\{1,\ldots,N\}$, then |
| 6 | +$$ |
| 7 | +h(N)\ge \sqrt r\,\sqrt N \qquad\text{for all sufficiently large integers }N. |
| 8 | +$$ |
| 9 | +Here a Sidon set has distinct sums of unordered pairs, including pairs with |
| 10 | +repetition. The coefficient $\sqrt r$ is approximately $0.95603$. |
| 11 | + |
| 12 | +The two factorial rows were proposed by cx-brisk-tern in the Erdős #30 |
| 13 | +thread, entry 6651. They improve the swarm's earlier factorial ratio |
| 14 | +$77/90$, since $457\cdot90-77\cdot500=2630>0$. The prime number theorem |
| 15 | +already yields a prime in $(rx,x]$ for every fixed $0<r<1$. The finer |
| 16 | +error term for $h(N)-\sqrt N$ in Erdős #30 remains open. |
| 17 | + |
| 18 | +## Reproducing the finite certificate |
| 19 | + |
| 20 | +Run these commands from the repository root. The Python checker uses only |
| 21 | +standard-library integer arithmetic. The second command runs the repository |
| 22 | +build and axiom checks. |
| 23 | + |
| 24 | +```sh |
| 25 | +python3 experiments/erdos30/factorial-interval/check.py |
| 26 | +scripts/check.sh |
| 27 | +``` |
| 28 | + |
| 29 | +Put $D=27720=2^3 3^2\cdot5\cdot7\cdot11$ and $K=90$. The coefficient |
| 30 | +table gives $d,a_d,b_d$ for all 96 positive divisors $d$ of $D$, in |
| 31 | +increasing order, including zero coefficients. The checker regenerates the |
| 32 | +divisor column, factors each $D/d$, and evaluates both floor sums on a full |
| 33 | +period. [Coefficient table](coefficients.csv) · [Checker](check.py) |
| 34 | + |
| 35 | +## From weights to factorials |
| 36 | + |
| 37 | +For either row $c$, write $t_d=D/d$. For nonnegative integers $k,n$, define |
| 38 | +$$ |
| 39 | +W_c(k)=\sum_{d\mid D} c_d\lfloor k/d\rfloor,\qquad |
| 40 | +F_c(n)=\sum_{d\mid D} c_d\log((t_d n)!),\qquad |
| 41 | +E_c=\sum_{d\mid D}c_dt_d\log t_d. |
| 42 | +$$ |
| 43 | +All unmarked logarithms are natural. The computed balances and extrema are |
| 44 | + |
| 45 | +| Row | $\sum c_dt_d$ | $\min_{0\le k<D} W_c(k)$ | $\max_{0\le k<D} W_c(k)$ | |
| 46 | +| --- | ---: | ---: | ---: | |
| 47 | +| $a$ | 0 | −253 | 15 | |
| 48 | +| $b$ | 0 | 0 | 1078 | |
| 49 | + |
| 50 | +Also $\min_{1\le k<90}W_b(k)=58$. Since $d\mid D$, shifting $k$ by $D$ |
| 51 | +adds $D/d$ to its quotient by $d$. Thus |
| 52 | +$W_c(k+D)-W_c(k)=\sum c_dt_d=0$, and the full-period bounds hold for every |
| 53 | +$k\ge0$. |
| 54 | + |
| 55 | +Write $\Lambda(p^j)=\log p$ for primes $p$ and $j\ge1$, and set |
| 56 | +$\Lambda(m)=0$ elsewhere. For real $x\ge0$, let |
| 57 | +$\psi(x)=\sum_{1\le m\le x}\Lambda(m)$. Prime factorization gives |
| 58 | +$\log i=\sum_{m\mid i}\Lambda(m)$. Summing over $1\le i\le t$ gives |
| 59 | +$\log(t!)=\sum_{m=1}^{t}\Lambda(m)\lfloor t/m\rfloor$. |
| 60 | +Each factorial with $t=t_dn$ may use the common upper limit $Dn$ because |
| 61 | +the added quotients vanish. Since |
| 62 | +$$ |
| 63 | +\left\lfloor\frac{t_dn}{m}\right\rfloor |
| 64 | +=\left\lfloor\frac{Dn}{dm}\right\rfloor |
| 65 | +=\left\lfloor\frac{\lfloor Dn/m\rfloor}{d}\right\rfloor, |
| 66 | +$$ |
| 67 | +interchanging two finite sums gives the identity for signed coefficients |
| 68 | +$$ |
| 69 | +F_c(n)=\sum_{1\le m\le Dn}\Lambda(m)\,W_c(\lfloor Dn/m\rfloor). |
| 70 | +$$ |
| 71 | + |
| 72 | +The upper bound $W_a\le15$ and $\Lambda\ge0$ give |
| 73 | +$$ |
| 74 | +F_a(n)\le15\psi(Dn). |
| 75 | +$$ |
| 76 | +For $Dn/90<m\le Dn$ the quotient $\lfloor Dn/m\rfloor$ belongs to |
| 77 | +$\{1,\ldots,89\}$, so $W_b\ge58$ there. All other terms for $b$ are |
| 78 | +nonnegative. Consequently |
| 79 | +$$ |
| 80 | +58\bigl(\psi(Dn)-\psi(Dn/90)\bigr)\le F_b(n). |
| 81 | +$$ |
| 82 | +The residual argument is exactly $Dn/90=308n$. At $m=308n>0$ the |
| 83 | +quotient is $90$, so the guaranteed contribution begins strictly above |
| 84 | +that endpoint. Both inequalities hold at $n=0$ by empty summation. |
| 85 | + |
| 86 | +## Slopes on the real line |
| 87 | + |
| 88 | +For each fixed $t\ge1$, dividing $\log((tn)!)$ by $n$ gives |
| 89 | +$t\log n+t\log t-t+o(1)$. This also follows by bounding $\log(m!)$ between |
| 90 | +$\int_1^m\log u\,du$ and that integral plus $\log m$. The balance |
| 91 | +$\sum c_dt_d=0$ cancels both the $\log n$ term and the term linear in the |
| 92 | +scales $t_d$. Summing the finitely many errors gives $F_c(n)/n\to E_c$. |
| 93 | + |
| 94 | +For $x\to\infty$ take $n=\lfloor x/D\rfloor$. Then $Dn\le x$, |
| 95 | +$n\to\infty$ and $n/x\to1/D$. Monotonicity of $\psi$ gives |
| 96 | +$$ |
| 97 | +\liminf_{x\to\infty}\frac{\psi(x)}x |
| 98 | +\ \ge\lim_{x\to\infty}\frac{F_a(n)}{15n}\frac n x |
| 99 | +=\frac{E_a}{15D}=:L. |
| 100 | +$$ |
| 101 | + |
| 102 | +For the upper bound take $n=\lceil x/D\rceil$ and $y=Dn/90$. Now |
| 103 | +$x\le Dn<x+D$, $n/x\to1/D$, $y\to\infty$, and $y/x\to1/90$. |
| 104 | +The second finite inequality gives $\psi(x)\le F_b(n)/58+\psi(y)$. |
| 105 | +In particular $S=\limsup_{x\to\infty}\psi(x)/x$ is finite. Indeed |
| 106 | +$F_b(n)=O(n)$, and $y\le x/45$ for $x\ge D$. Iterating |
| 107 | +$\psi(x)\le Cx+\psi(x/45)$ down to a bounded interval gives |
| 108 | +$\psi(x)\le Cx\sum_{j\ge0}45^{-j}+O(1)$. |
| 109 | + |
| 110 | +Fix any $V>S$. Eventually $\psi(y)\le Vy$, hence |
| 111 | +$$ |
| 112 | +S\le \lim_{x\to\infty}\left(\frac{F_b(n)}{58n}\frac n x+ |
| 113 | +V\frac yx\right)=\frac{E_b}{58D}+\frac V{90}. |
| 114 | +$$ |
| 115 | +Letting $V$ decrease to $S$ and rearranging yields |
| 116 | +$S\le U:=90E_b/(89\cdot58D)$. |
| 117 | + |
| 118 | +## Exact comparison of the slopes |
| 119 | + |
| 120 | +For $p\in\{2,3,5,7,11\}$ let $v_p(t)$ be the exponent of $p$ in $t$. |
| 121 | +Factoring each $t_d$ gives $E_c=\sum_p e_{c,p}\log p$ with |
| 122 | +$e_{c,p}=\sum_{d\mid D}c_dt_d v_p(t_d)$. Clearing denominators in |
| 123 | +$L>rU$ gives $(500\cdot58\cdot89)E_a>(457\cdot15\cdot90)E_b$. |
| 124 | +Dividing both sides by $50$ leaves the sign of |
| 125 | +$\Delta=51620E_a-12339E_b$. Its coefficient of $\log p$ is $g_p$ below. |
| 126 | + |
| 127 | +| $p$ | $e_{a,p}$ | $e_{b,p}$ | $g_p$ | $\ell_p$ | $u_p$ | |
| 128 | +| ---: | ---: | ---: | ---: | ---: | ---: | |
| 129 | +| 2 | 148642 | 673864 | −641907856 | 32768 | 32768 | |
| 130 | +| 3 | 119358 | 359673 | 1723254813 | 51936 | 51937 | |
| 131 | +| 5 | 47870 | 188925 | 139903825 | 76084 | 76085 | |
| 132 | +| 7 | 23933 | 149604 | −610542296 | 91991 | 91992 | |
| 133 | +| 11 | 15873 | 82808 | −202403652 | 113358 | 113359 | |
| 134 | + |
| 135 | +For $Q=32768$ the last two columns satisfy |
| 136 | +$2^{\ell_p}\le p^Q\le2^{u_p}$. The checker obtains $\ell_p$ from the bit |
| 137 | +length of the integer $p^Q$ and sets $u_p=\ell_p$ in the power-of-two |
| 138 | +case and $u_p=\ell_p+1$ otherwise. Using the lower endpoints for positive |
| 139 | +$g_p$ and the upper endpoints for negative $g_p$ gives |
| 140 | +$$ |
| 141 | +\frac{Q\Delta}{\log 2}\ \ge |
| 142 | +\sum_{g_p\ge0}g_p\ell_p+\sum_{g_p<0}g_p u_p |
| 143 | +=85\,483\,160>0. |
| 144 | +$$ |
| 145 | +Thus $L-(457/500)U>0$. |
| 146 | + |
| 147 | +## A prime in the interval and a Sidon set |
| 148 | + |
| 149 | +Set $\eta=(L-rU)/2>0$ and $\varepsilon=\eta/(1+r)$. The liminf and |
| 150 | +limsup estimates give $\psi(x)\ge(L-\varepsilon)x$ and |
| 151 | +$\psi(rx)\le(U+\varepsilon)rx$ for all sufficiently large real $x$, since |
| 152 | +$rx\to\infty$. Subtracting gives |
| 153 | +$$ |
| 154 | +\sum_{rx<m\le x}\Lambda(m)=\psi(x)-\psi(rx)\ge\eta x. |
| 155 | +$$ |
| 156 | +A positive term supplies a prime power in $(rx,x]$, including at the |
| 157 | +stated ratio $r=457/500$. |
| 158 | + |
| 159 | +Write $\theta(x)=\sum_{p\le x,\ p\text{ prime}}\log p$. Mathlib's |
| 160 | +`Chebyshev.psi_sub_theta_le_mul_sqrt` supplies a constant $C$ with |
| 161 | +$0\le\psi(x)-\theta(x)\le C\sqrt x$ for $x\ge0$, where the lower bound |
| 162 | +follows from the definitions. Hence |
| 163 | +$\theta(x)-\theta(rx)\ge\eta x-C\sqrt x>0$ eventually. A prime counted |
| 164 | +in this difference has $rx<p\le x$. |
| 165 | +[Mathlib's Chebyshev bounds](https://github.com/leanprover-community/mathlib4/blob/0df444a360eaa60ab8c11dca51a86af692955474/Mathlib/NumberTheory/Chebyshev.lean) |
| 166 | + |
| 167 | +For a prime power $q$, Singer gives a cyclic Sidon set of size $q+1$ |
| 168 | +modulo $M=q^2+q+1$. If $N\ge M$, representatives in $\{1,\ldots,M\}$ |
| 169 | +give $h(N)\ge q+1$. If $N<M$, the mean size of the intersection of a |
| 170 | +translate with $\{1,\ldots,N\}$ is $N(q+1)/M$. Each intersection lifts |
| 171 | +to an integer Sidon set, so $N(q+1)\le M h(N)$. When $h(N)\le q$ this |
| 172 | +gives $N\le qh(N)+h(N)/(q+1)<qh(N)+1$, hence $N\le qh(N)$ by |
| 173 | +integrality. We have proved the alternative $q+1\le h(N)$ or |
| 174 | +$N\le qh(N)$. The cyclic construction is due to J. Singer, *Trans. |
| 175 | +Amer. Math. Soc.* **43** (1938), 377–385. The supplied offline source |
| 176 | +states it in its covering form. [Bailleul–Riblet, Lemma 2.5](https://arxiv.org/abs/2605.03181) |
| 177 | + |
| 178 | +Take $x=\sqrt N/\sqrt r$ and a prime power $rx<q\le x$. In the first |
| 179 | +case $h(N)\ge q+1>rx=\sqrt r\,\sqrt N$. In the second, |
| 180 | +$h(N)\ge N/q\ge N/x=\sqrt r\,\sqrt N$. This proves the eventual bound |
| 181 | +and gives $\liminf_{N\to\infty}h(N)/\sqrt N\ge\sqrt r$. |
| 182 | + |
| 183 | +## Verification scope |
| 184 | + |
| 185 | +The Python check exhausts the residue tables and proves the integer |
| 186 | +comparisons behind the logarithm bounds. The argument from those data to |
| 187 | +the $457/500$ prime interval and Sidon bound is a paper proof. The |
| 188 | +standalone Lean proof of the strict logarithm comparison in task |
| 189 | +`t-68020f239f`, entry 6668, also checks with `propext`, |
| 190 | +`Classical.choice` and `Quot.sound`. |
| 191 | + |
| 192 | +The accepted Lean work contains the common-interval factorial expansion |
| 193 | +(`t-043e1fcd56`), the Stirling error at each fixed scale |
| 194 | +(`t-ccea4e55ab`), and the floor/ceiling argument for the earlier |
| 195 | +Chebyshev ratio (`t-7e6957df18`). [Factorial expansion](../../../ErdosSwarm/Erdos30Chebyshev.lean) · [Stirling estimates](../../../ErdosSwarm/Erdos30Stirling.lean) · [Real-argument bounds](../../../ErdosSwarm/Erdos30PsiBounds.lean) |
| 196 | + |
| 197 | +The fixed-ratio Sidon implication is Lean-checked in |
| 198 | +`eventually_sqrt_mul_sqrt_le_h_of_primePow_intervals` (`t-d4150461e5`). |
| 199 | +It assumes a prime power in $[rx,x]$ for every sufficiently large $x$. |
| 200 | +The strict lower endpoint proved above supplies that hypothesis. |
| 201 | +[Singer alternative](../../../ErdosSwarm/Erdos30SingerIntervals.lean) · [Fixed-ratio transfer](../../../ErdosSwarm/Erdos30PrimePowerIntervals.lean) |