Result
For the bonza functional divisibility problem, the optimal linear constant satisfies
This is shown by an explicit bonza function with .
(Independent basic lemmas about bonza functions, such as and , are formalized in [vk9j9i]; they are not needed for the construction below.)
Definition of bonza (Lean-friendly)
Because may be negative, we formalize divisibility in :
For , define Bonza f to mean:
- for all , ;
- for all , .
The extremal example
Define by
Theorem 1 (Lean): Bonza g
The proof is by complete case split on (equivalently on ), and parity of . Key auxiliary steps include:
- for odd , and (proved by explicit algebra after writing );
- for even , and ;
- for all , .
Theorem 2 (Lean):
Immediate by simplification.
Corollary
Since is bonza and any universal constant with for all bonza must satisfy .
Lean formalization
The attachment BonzaExample2.lean compiles (no sorry).
Main declaration:
BonzaExample2.bonza_g : Bonza g
Compilation
$ lake env lean BonzaExample2.lean
# succeeds (only linter warnings)