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

Lawton's Multivariable Mahler Limit and Boyd's Range Conjectures

Given a nonzero polynomial $P \in \mathbb{C}[X_0, \dots, X_{n-1}]$, its logarithmic Mahler measure integrates $\log |P|$ across the complex unit $n$-torus $\mathbb{T}^n$: $$m(P) = \int_{[0, 1]^n} \log |P(e^{2\pi i \theta_0}, \dots, e^{2\pi i \theta_{n-1}})| , d\theta.$$ David W. Boyd (1981) conjectured—and Wayne M. Lawton (1983) proved—that $m(P)$ equals the limit of specialized univariate measures $m(P(t^{r_0}, \dots, t^{r_{n-1}}))$ once the shortest nonzero integer relation norm $q(r) = \min { \max_j |s_j| : s \in \mathbb{Z}^n \setminus {0}, \sum_j s_j r_j = 0 }$ grows unboundedly. Writing $L_n$ for the values $m(P)$ over nonzero $P \in \mathbb{Z}[X_0, \dots, X_{n-1}]$ and $L_\infty = \bigcup_n L_n$, Boyd conjectured both that $L_\infty$ is closed in $\mathbb{R}$ (which implies LehmerMahlerMeasureProblem.lehmer_mahler_measure_problem) and that $L_1 \subsetneq L_2 \subsetneq L_3 \subsetneq \cdots$. Christopher J. Smyth (1981) established $m(1 + X_0 + X_1 + X_2) = \frac{7}{2\pi^2} \zeta(3)$.

References:

    Wikipedia: Mahler measure

    D. W. Boyd (1981), Canad. Math. Bull. 24, no. 4, 453–469, DOI: 10.4153/cmb-1981-069-5.

    C. J. Smyth (1981), Bull. Austral. Math. Soc. 23, no. 1, 49–63.

    W. M. Lawton (1983), J. Number Theory 16, no. 3, 356–362, DOI: 10.1016/0022-314X(83)90063-X.

@[expose] public sectionnamespace MultivariableMahlerMeasureopen MeasureTheory MvPolynomial

Univariate circle integral $\int_0^1 \log |P(e^{2\pi i r_0 t}, \dots, e^{2\pi i r_{n-1} t})| , dt$ associated with an exponent tuple $r \in \mathbb{Z}^n$.

noncomputable def univariateSpecLogMahler {n : ℕ} (P : MvPolynomial (Fin n) ℂ) (r : Fin n → ℤ) : ℝ := ∫ t in Set.Icc (0 : ℝ) 1, Real.log ‖MvPolynomial.eval (torusPoint (fun j ↦ (r j : ℝ) * t)) P‖

Lawton's relation-norm condition $q(r) > B$: every nonzero integer tuple $s \in \mathbb{Z}^n$ satisfying $\sum_j s_j r_j = 0$ has some coordinate with $|s_j| > B$.

def HasNoShortRelation {n : ℕ} (B : ℕ) (r : Fin n → ℤ) : Prop := ∀ s : Fin n → ℤ, s ≠ 0 → ∑ j, s j * r j = 0 → ∃ j, (B : ℤ) < |s j|

Boyd's value set $L_n = {m(P) : P \in \mathbb{Z}[X_0, \dots, X_{n-1}] \setminus {0}}$.

def intLogMahlerSet (n : ℕ) : Set ℝ := {m : ℝ | ∃ P : MvPolynomial (Fin n) ℤ, P ≠ 0 ∧ m = logMahlerMeasure (MvPolynomial.map (Int.castRingHom ℂ) P)}

On constant polynomials, univariateSpecLogMahler agrees with univariate (Polynomial.C c).logMahlerMeasure.

@[category API, AMS 11] theorem univariateSpecLogMahler_const {n : ℕ} (c : ℂ) (r : Fin n → ℤ) : univariateSpecLogMahler (MvPolynomial.C c : MvPolynomial (Fin n) ℂ) r = (Polynomial.C c).logMahlerMeasure := n:ℕc:ℂr:Fin n → ℤ⊢ univariateSpecLogMahler (C c) r = (Polynomial.C c).logMahlerMeasure n:ℕc:ℂr:Fin n → ℤ⊢ ∫ (t : ℝ) in Set.Icc 0 1, Real.log ‖(eval (torusPoint fun j ↦ ↑(r j) * t)) (C c)‖ = (Polynomial.C c).logMahlerMeasure All goals completed! 🐙

Every value set $L_n$ contains $0$, witnessed by the constant polynomial $1$.

@[category test, AMS 11] theorem zero_mem_intLogMahlerSet (n : ℕ) : 0 ∈ intLogMahlerSet n := ⟨1, one_ne_zero, n:ℕ⊢ 0 = ((map (Int.castRingHom ℂ)) 1).logMahlerMeasure All goals completed! 🐙⟩

Boyd's pair $(1, N)$ satisfies HasNoShortRelation B whenever $N > B$.

B:ℕN:ℤhBN:↑B < Ns:Fin (Nat.succ 0).succ → ℤhs:s ≠ 0hsum:s 0 + s 1 * N = 0hs1:¬s 1 = 0h0:s 0 = -(s 1 * N)habs1:1 ≤ |s 1|hNpos:0 ≤ Nhabs0:|s 0| = |s 1| * N⊢ ↑B < |s 0| All goals completed! 🐙

The degenerate tuple $(1, 0)$ fails HasNoShortRelation 1.

h:HasNoShortRelation 1 ![1, 0]hs:![0, 1] ≠ 0⊢ False rcases h ![0, 1] hs (h:HasNoShortRelation 1 ![1, 0]hs:![0, 1] ≠ 0⊢ ∑ j, ![0, 1] j * ![1, 0] j = 0 All goals completed! 🐙) with ⟨j, hj⟩ h:HasNoShortRelation 1 ![1, 0]hs:![0, 1] ≠ 0hj:↑1 < |![0, 1] ((fun i ↦ i) ⟨0, ⋯⟩)|⊢ Falseh:HasNoShortRelation 1 ![1, 0]hs:![0, 1] ≠ 0hj:↑1 < |![0, 1] ((fun i ↦ i) ⟨1, ⋯⟩)|⊢ False h:HasNoShortRelation 1 ![1, 0]hs:![0, 1] ≠ 0hj:↑1 < |![0, 1] ((fun i ↦ i) ⟨0, ⋯⟩)|⊢ Falseh:HasNoShortRelation 1 ![1, 0]hs:![0, 1] ≠ 0hj:↑1 < |![0, 1] ((fun i ↦ i) ⟨1, ⋯⟩)|⊢ False All goals completed! 🐙

Lawton's Multivariable Limit Theorem (conjectured by Boyd 1981, proved by Lawton 1983): for every nonzero $P \in \mathbb{C}[X_0, \dots, X_{n-1}]$ and $\varepsilon > 0$, some threshold $B \in \mathbb{N}$ ensures $|m(P(t^{r_0}, \dots, t^{r_{n-1}})) - m(P)| < \varepsilon$ whenever $q(r) > B$.

@[category research solved, AMS 11] theorem lawton_multivariable_mahler_measure_limit {n : ℕ} (P : MvPolynomial (Fin n) ℂ) (hP : P ≠ 0) (ε : ℝ) (hε : 0 < ε) : ∃ B : ℕ, ∀ r : Fin n → ℤ, HasNoShortRelation B r → |univariateSpecLogMahler P r - logMahlerMeasure P| < ε := n:ℕP:MvPolynomial (Fin n) ℂhP:P ≠ 0ε:ℝhε:0 < ε⊢ ∃ B, ∀ (r : Fin n → ℤ), HasNoShortRelation B r → |univariateSpecLogMahler P r - P.logMahlerMeasure| < ε All goals completed! 🐙

Smyth's Linear Mahler Formula (1981): $1 + X_0 + X_1 + X_2$ has logarithmic measure $\frac{7}{2\pi^2} \zeta(3)$.

@[category research solved, AMS 11] theorem smyth_three_variable_linear_mahler_measure : logMahlerMeasure (1 + MvPolynomial.X 0 + MvPolynomial.X 1 + MvPolynomial.X 2 : MvPolynomial (Fin 3) ℂ) = 7 / (2 * Real.pi ^ 2) * (riemannZeta 3).re := ⊢ (1 + X 0 + X 1 + X 2).logMahlerMeasure = 7 / (2 * Real.pi ^ 2) * (riemannZeta 3).re All goals completed! 🐙

Boyd's Closedness Conjecture (1981): $L_\infty = \bigcup_{n \in \mathbb{N}} L_n$ (which equals $\bigcup_{n \ge 1} L_n$ since $L_0 \subseteq L_1$ via constant polynomials) is closed inside $\mathbb{R}$. This implies LehmerMahlerMeasureProblem.lehmer_mahler_measure_problem.

@[category research open, AMS 11] theorem boyd_mahler_measure_set_closed_conjecture : IsClosed (⋃ n, intLogMahlerSet n) := ⊢ IsClosed (⋃ n, intLogMahlerSet n) All goals completed! 🐙

Boyd's Strict Hierarchy Conjecture (1981): every dimension $n \ge 1$ satisfies the strict inclusion $L_n \subsetneq L_{n + 1}$ (note $n = 0$ is excluded because $L_0 \subsetneq L_1$ holds unconditionally).

@[category research open, AMS 11] theorem boyd_mahler_measure_strict_hierarchy_conjecture {n : ℕ} (hn : 1 ≤ n) : intLogMahlerSet n ⊂ intLogMahlerSet (n + 1) := n:ℕhn:1 ≤ n⊢ intLogMahlerSet n ⊂ intLogMahlerSet (n + 1) All goals completed! 🐙end MultivariableMahlerMeasure