/- Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ import FormalConjecturesUtil

Lonely runner conjecture

Reference: Wikipedia

namespace LonelyRunnerConjecture

Consider $n$ runners on a circular track of unit length. At the initial time $t = 0$, all runners are at the same position and start to run; the runners' speeds are constant, all distinct, and may be negative. A runner is said to be lonely at time $t$ if they are at a distance (measured along the circle) of at least $\frac 1 n$ from every other runner. The lonely runner conjecture states that each runner is lonely at some time, no matter the choice of speeds.

@[category research open, AMS 11] theorem declaration uses 'sorry'lonely_runner_conjecture (n : ) (speed : Fin n ) (lonely : Fin n Prop) (lonely_def : r t, lonely r t r2 : Fin n, r2 r dist (t * speed r : UnitAddCircle) (t * speed r2) 1 / n) (r : Fin n) : t 0, lonely r t := n:speed:Fin n lonely:Fin n Proplonely_def: (r : Fin n) (t : ), lonely r t (r2 : Fin n), r2 r dist (t * speed r) (t * speed r2) 1 / nr:Fin n t 0, lonely r t All goals completed! 🐙

For an $n$-tuple of distinct integer velocities $v_1,\dots,v_n$, deltaTuple v is the maximal value of $\min_i |t v_i|_{\mathbb{R}/\mathbb{Z}}$ over time.

noncomputable def deltaTuple {n : } (v : Fin n ) : := sSup { δ : | t : AddCircle (1 : ), i : Fin n, δ dist (v i t : AddCircle (1 : )) 0 }

The $n$th gap of loneliness $\delta_n$: the infimum of deltaTuple over all $n$-tuples of distinct nonzero integer velocities.

noncomputable def deltaGap (n : ) : := sInf { d : | v : Fin n , ( i : Fin n, v i 0) d = deltaTuple v }

Theorem 1.3 (Tao, 2017; arXiv:1701.02048). There exists an absolute constant $c > 0$ such that for all sufficiently large $n$, the gap of loneliness satisfies $\delta_n \ge \frac{1}{2n} + \frac{c \log n}{n^2 (\log \log n)^2}$.

@[category research solved, AMS 11] theorem declaration uses 'sorry'lonely_runner_conjecture.variants.tao_2017 : c : , 0 < c (∀ᶠ n : in Filter.atTop, deltaGap n ((1 : ) / (2 * (n : )) + c * Real.log (n : ) / ((n : ) ^ 2 * (Real.log (Real.log (n : ))) ^ 2))) := c, 0 < c ∀ᶠ (n : ) in Filter.atTop, deltaGap n 1 / (2 * n) + c * Real.log n / (n ^ 2 * Real.log (Real.log n) ^ 2) All goals completed! 🐙 end LonelyRunnerConjecture