A037274 - home primes: formalization and certified anchors (Lean 4)

theorem A037274: home primes sequence - for n >= 2, a(n) = the prime finally reached by iterating the map 'concatenate the prime factors' (A037276), a(n) = -1 if no prime is ever reached. Formalized in Lean 4: concatNat (decimal concatenation of factor lists), homeStep n = concatNat (Nat.primeFactorsList n), homeIter n k (k-th iterate), IsHomePrime n p (a prime reached by the orbit), and a037274 n : Int defined via Classical.choose (noncomputable) with a(1) = 1 per the entry convention. Proved unconditionally: uniqueness of the reached prime (isHomePrime unique), fixed points of homeStep are exactly the primes (homeStep eq self iff), the orbit is non-decreasing and >= n for n >= 2 (homeStep gt of not prime, homeIter ge - the home prime of n is >= n), persistence of a reached prime, a(1) = 1 via the orbit 1,0,0,..., and the full specification theorem A037274 (value when reached, -1 when never reached, a(1) = 1, uniqueness, lower bound). Certified anchors: a(p) = p for all primes p <= 47 and a(n) for 25 of the 31 documented composites n <= 47 (a(4) = 211, a(10) = 773, a(14) = a(27) = 13367, a(24) = 331319, a(32) = 241271, a(34) = 31397, a(36) = 71129, a(46) = 223, ...), each orbit step certified by an explicit sorted factorization (Nat.primeFactorsList unique) and decimal evaluation by decide - never by kernel evaluation of primeFactorsList; primality certified by norm num sqrt-certificates. The orbit of 8 is certified to iterate 7 (homeIter 8 k for k = 1..7). NOT certified: a(8) = 3331113965338635107 (primality of a 19-digit integer beyond the norm num certificate reach); no certified anchor for the other documented composites 16, 20, 40, 44, 45 (n <= 47); the totality of a is not proved in this work (the OEIS entry reports a(49) still composite after 100+ iterations). Trust base: the three standard axioms only; zero native decide.

Link
https://zenodo.org/records/24083218
Found by
Zenodo
Authors
Gaudin, Frederic
Categories
evaluation
Published
2026-11-09
Last seen by the radar
2026-11-09
Downloads
0
Views
0
Radar score
34.63 / 100 (how it is scored)
Why it scored so
Matched: evaluat; Recency discount: updated event ×0.5; Primary record: Zenodo
Related links
https://doi.org/10.5281/zenodo.24083218
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Zenodo