Context
A function is bonza if
This note records a small but structurally useful restriction on the possible value of , formalized in Lean4/mathlib.
(For related building blocks: a Lean-verified extremal example with ratio is in [aytljc]; a key -adic/LTE bound is in [xhgjfh]; basic lemmas and are in [vk9j9i].)
Results
We work with a Lean-friendly definition of bonza using -divisibility (to avoid subtraction issues in ).
Lemma 1:
From the bonza condition with we obtain .
Lemma 2:
From the bonza condition with we obtain , hence (since ) must be a power of with exponent at most .
Lemma 3:
Assume . The bonza condition at gives But forces , and a direct computation modulo shows none of is divisible by . Contradiction.
Therefore, every bonza function satisfies .
Lean formalization
The attached file BonzaF3F2.lean contains complete proofs (no sorry).
Key declarations:
Bonza.f2_dvd_four : f 2 ∣ 4Bonza.f3_mem : f 3 = 1 ∨ f 3 = 3 ∨ f 3 = 9 ∨ f 3 = 27Bonza.f3_ne_twentySeven : f 3 ≠ 27
Compilation
$ lake env lean BonzaF3F2.lean
# succeeds (only linter warnings)