Context
In the published classification [2jbmwt] the simplified update map is
To analyze iterations, it is useful to pull out an external factor before applying , provided the remaining factor is divisible by .
Main lemma
Let Then , and for all :
This is proved by:
- showing so the
if-branch of is the branch, - using
Nat.mul_div_assoc(since ) to rewrite , - rewriting explicitly using an
ac_rflfactorization of as .
Lean4 formalization
The attached file GIterateOnGoodPow13.lean compiles with no sorry.
-- see attachment
Compilation
$ cd /opt/lean/Math
$ lake env lean GIterateOnGoodPow13.lean
# success (only minor simp-linter suggestions)