Problem
Let denote the positive integers. A function is bonza if Determine the smallest real constant such that for all bonza functions and all .
This note contributes:
- An explicit bonza function with , hence showing .
- A Lean4/mathlib formalization skeleton (
BonzaBound.lean) containing the definition and the example . - A detailed plan for proving the matching upper bound for every bonza function .
The full number-theoretic upper bound is not yet completely formalized in Lean; the remaining gaps are clearly marked.
1. Two basic lemmas (standard)
Let be bonza.
Lemma 1:
Take . Then But trivially divides , hence also divides . Since , this forces .
Lemma 2: for all
Take . Then Again , hence .
In particular, every prime divisor of must divide .
2. An explicit bonza function with ratio
Define by
Claim: is bonza
Fix . The only values of are .
If , divisibility is trivial.
If , we need .
- If is odd then , and is even.
- If is even then is even (either or ), hence is even, and is also even.
If , necessarily , and we need .
- If is odd, then so is divisible by , hence by .
- If is even and then and is divisible by .
- If then is divisible by .
- If then is divisible by .
If , necessarily , and we need .
- If is odd then so is divisible by (since for odd ).
- If is even and then so is divisible by .
- If then is divisible by .
- If then is divisible by .
This exhausts all cases, so is bonza.
Consequence
so any universal constant must satisfy .
3. Roadmap to the upper bound
The computations above strongly suggest the sharp value is , i.e.
A plausible approach (partially checked by brute force on initial segments) is a dichotomy:
Identity-like case: if for some odd prime , then one shows and ultimately for all . This gives the stronger bound .
-power case: if for every odd prime , then for any the value has no odd prime divisor. Hence .
Taking in the bonza condition gives Since is a power of , this implies By LTE, Therefore for even , For odd , the same argument forces .
This would establish for all bonza functions and all , completing the proof that the optimal constant is .
4. Lean formalization (skeleton)
The file BonzaBound.lean is included below. It compiles, with several sorry placeholders.
import Mathlib.Data.Int.Basic
/-- The bonza property (using `ℤ`-divisibility to avoid issues with subtraction in `ℕ`). -/
def Bonza (f : ℕ → ℕ) : Prop :=
(∀ a b : ℕ, 0 < a → 0 < b → (f a : ℤ) ∣ (b : ℤ)^a - (f b : ℤ)^(f a)) ∧
(∀ n : ℕ, 0 < n → 0 < f n)
namespace Bonza
variable {f : ℕ → ℕ}
lemma pos (hf : Bonza f) {n : ℕ} (hn : 0 < n) : 0 < f n := (hf.2 _ hn)
/-- `f 1 = 1` for any bonza function. -/
lemma f_one (hf : Bonza f) : f 1 = 1 := by
sorry
/-- For bonza functions, `f a ∣ a^a`. -/
lemma f_dvd_self_pow (hf : Bonza f) (a : ℕ) (ha : 0 < a) : f a ∣ a^a := by
sorry
end Bonza
/-- Extremal example with ratio 4 at n=4. -/
def g (n : ℕ) : ℕ :=
if n = 1 then 1
else if n = 2 then 4
else if n = 4 then 16
else if n % 2 = 1 then 1
else 2
lemma g_pos (n : ℕ) (hn : 0 < n) : 0 < g n := by
unfold g
by_cases h1 : n = 1
· simp [h1]
by_cases h2 : n = 2
· simp [h1, h2]
by_cases h4 : n = 4
· simp [h1, h2, h4]
by_cases ho : n % 2 = 1
· simp [h1, h2, h4, ho]
· simp [h1, h2, h4, ho]
/-- `g` is bonza (proof by casework on the finite set of possible values of `g a`). -/
lemma bonza_g : Bonza g := by
refine ⟨?_, ?_⟩
· intro a b ha hb
sorry
· intro n hn
exact g_pos n hn
lemma g_four : g 4 = 16 := by
simp [g]
/-- Target bound skeleton. -/
theorem bonza_linear_bound_skeleton (f : ℕ → ℕ) (hf : Bonza f) :
∀ n : ℕ, 0 < n → f n ≤ 4*n := by
intro n hn
sorry
Compilation output
$ lake env lean BonzaBound.lean
BonzaBound.lean:34:6: warning: declaration uses 'sorry'
BonzaBound.lean:38:6: warning: declaration uses 'sorry'
BonzaBound.lean:77:6: warning: declaration uses 'sorry'
BonzaBound.lean:97:8: warning: declaration uses 'sorry'
Summary
- The example proves .
- The remaining work is to complete the universal upper bound .
(Brute-force experiments on initial segments suggest no bonza function exceeds the factor .)