/- 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

Erdős Problem 264

Reference: erdosproblems.com/264

namespace Erdos264 open Filter open scoped ENNReal Asymptotics

A sequence $a_n$ of integers is called an irrationality sequence if for every bounded sequence of integers $b_n$ with $a_n + b_n \neq 0$ and $b_n \neq 0$ for all $n$, the sum $$ \sum \frac{1}{a_n + b_n} $$ is irrational.

Note: there are other possible definitions of this concept. See FormalConjectures/ErdosProblems/263.lean for another possible definition.

def IsIrrationalitySequence (a : ) : Prop := b : , BddAbove (Set.range b) BddBelow (Set.range b) 0 Set.range (fun n (a n : ) + b n) 0 Set.range b Irrational (∑' n, (1 : ) / ((a n : ) + b n))

Is $2^n$ an example of an irrationality sequence? Kovač and Tao proved that it is not [KoTa24]

[KoTa24] Kovač, V. and Tao T., On several irrationality problems for Ahmes series. arXiv:2406.17593 (2024).

@[category research solved, AMS 11] theorem declaration uses 'sorry'erdos_264.parts.i : ¬IsIrrationalitySequence (2 ^ ·) := ¬IsIrrationalitySequence fun x => 2 ^ x All goals completed! 🐙

Is $n!$ an example of an irrationality sequence?

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_264.parts.ii : answer(sorry) IsIrrationalitySequence Nat.factorial := True IsIrrationalitySequence Nat.factorial All goals completed! 🐙

One example is $2^{2^n}$.

@[category research solved, AMS 11] theorem declaration uses 'sorry'erdos_264.variants.example : IsIrrationalitySequence (fun n 2 ^ (2 ^ n)) := IsIrrationalitySequence fun n => 2 ^ 2 ^ n All goals completed! 🐙

Kovač and Tao [KoTa24] generally proved that any strictly increasing sequence of positive integers $a_n$ such that $\sum \frac{1}{a_n}$ converges and $$ \liminf_{n \to \infty} (a_n^2 \sum_{k > n} \frac{1}{a_k^2}) > 0 $$ is not an irrationality sequence.

[KoTa24] Kovač, V. and Tao T., On several irrationality problems for Ahmes series. arXiv:2406.17593 (2024).

@[category research solved, AMS 11] theorem declaration uses 'sorry'erdos_264.variants.ko_tao_neg {a : } (h₁ : StrictMono a) (h₂ : 0 Set.range a) (h₃ : Summable ((1 : ) / a ·)) (h₄ : 0 < atTop.liminf fun n a n ^ 2 * ∑' k : Set.Ioi n, (1 : ) / a k ^ 2) : ¬IsIrrationalitySequence a := a: h₁:StrictMono ah₂:0 Set.range ah₃:Summable fun x => 1 / (a x)h₄:0 < liminf (fun n => (a n) ^ 2 * ∑' (k : (Set.Ioi n)), 1 / (a k) ^ 2) atTop¬IsIrrationalitySequence a All goals completed! 🐙

On the other hand, Kovač and Tao [KoTa24] do prove that for any function $F$ with $\lim_{n \to \infty} \frac{F(n + 1)}{F(n)} = \infty$ there exists such an irrationality sequence with $a_n \sim F(n)$.

[KoTa24] Kovač, V. and Tao T., On several irrationality problems for Ahmes series. arXiv:2406.17593 (2024).

@[category research solved, AMS 11] theorem declaration uses 'sorry'erdos_264.variants.ko_tao_pos {F : } (hF : atTop.Tendsto (fun n (F (n + 1) : ) / F n) atTop) : a : , IsIrrationalitySequence a (fun n (a n : )) ~[atTop] fun n (F n : ) := F: hF:Tendsto (fun n => (F (n + 1)) / (F n)) atTop atTop a, IsIrrationalitySequence a (fun n => (a n)) ~[atTop] fun n => (F n) All goals completed! 🐙 end Erdos264