/- 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. -/ module public import FormalConjecturesUtil

Mahler's 3/2 Problem

Reference: Wikipedia

@[expose] public sectionnamespace Mahler32

For a real number α, define Ω(α) as $$ \Omega (\alpha )=\inf _{\theta > 0}\left({\limsup _{n\rightarrow \infty }\left\lbrace {\theta \alpha ^{n}}\right\rbrace -\liminf _{n\rightarrow \infty }\left\lbrace {\theta \alpha ^{n}}\right\rbrace }\right). $$

noncomputable def Ω (α : ) : := sInf {Filter.atTop.limsup (fun n Int.fract (θ * α ^ n)) - Filter.atTop.liminf (fun n Int.fract (θ * α ^ n)) | (θ : ) (_ : 0 < θ)}

The Mahler Conjecture states that there are no Z-numbers.

@[category research open, AMS 11] theorem mahler_conjecture (x : ) (hx : IsZNumber x) : False := x:hx:IsZNumber xFalse All goals completed! 🐙

Mahler's conjecture would follow if Ω(3/2) exceeded 1/2: a Z-number x has all fractional parts {x (3/2)^n} below 1/2, so Ω(3/2) ≤ 1/2.

@[category textbook, AMS 11] theorem mahler_conjecture.variants.consequence (H : 1 / 2 < Ω (3 / 2)) : type_of% mahler_conjecture := H:1 / 2 < Ω (3 / 2) (x : ), IsZNumber x False All goals completed! 🐙

Flatto, Lagarias and Pollington proved that for all rational p/q > 1 in lowest terms with q ≥ 2, we have Ω(p/q) ≥ 1/p: for every θ > 0, the limit points of {θ (p/q)^n} are not contained in any interval of length less than 1/p.

@[category research solved, AMS 11] theorem mahler_conjecture.variants.flatto_lagarias_pollington (p q : ) (hq : 1 < q) (hpq : p.Coprime q) (hpq' : q < p) : 1 / p Ω (p / q) := p:q:hq:1 < qhpq:p.Coprime qhpq':q < p1 / p Ω (p / q) All goals completed! 🐙end Mahler32