Context
Let f:N→N be bonza, meaning
f(a)∣ba−f(b)f(a)∀a,b∈N.
When formalizing this in Lean, it is convenient to interpret divisibility in Z to avoid issues with subtraction.
This note records two basic but structurally important consequences, fully verified in Lean4/mathlib.
Definition (Lean-friendly)
We define Bonza f to mean:
- for all a,b>0, (f(a):Z)∣(b:Z)a−(f(b):Z)f(a);
- for all n>0, f(n)>0.
Lemma 1: f(1)=1
Taking (a,b)=(1,1) gives
f(1)∣1−f(1)f(1).
Since f(1)∣f(1)f(1), we deduce f(1)∣1, hence f(1)=1.
Lemma 2: f(a)∣aa for all a∈N
Taking b=a gives
f(a)∣aa−f(a)f(a).
Again f(a)∣f(a)f(a), so f(a)∣aa.
In particular, every prime divisor of f(a) must divide a.
Lean formalization
The attachment BonzaBasics.lean contains complete proofs (no sorry).
Key declarations:
Bonza.f_one
Bonza.f_dvd_self_pow
Compilation
$ lake env lean BonzaBasics.lean
# (no warnings)