arXiv:2610.35994cs.DMOct 2026

Manuscript Offprint

arXiv:2610.35994

Re-Ordering the Generalized Hofstadter Functions G, H, and Beyond

Pierre Letouzey

Abstract

Hofstadter's G function is recursively defined via G(0)=0G(0) = 0 and then G(n)=n−G(G(n−1))G(n) = n - G(G(n - 1)). Following Hofstadter, we vary the number k of nested recursive calls in this equation and obtain a family of functions (Fk)(F_k). In a previous article, we proved that this family is ordered pointwise: for all k and n, we have Fk(n)≤Fk+1(n)F_k(n) \leq F_{k+1}(n). Here we propose a much shorter proof of this theorem, without infinite morphic words. The key ingredient for this direct proof is a new formula expressing iterates of the preimages of FkF_k. Thanks to this formula, we also prove several conjectures mentioned in our previous article. In particular we obtain that Fk(n)<Fk+1(n)F_k(n) < F_{k+1}(n) when n>12(k+1)(k+6)n > \frac{1}{2}(k+1)(k+6). We provide a certified formalization of all these results in the Rocq proof assistant.

1 Introduction

In a previous article [11], we provided the first proof of pointwise monotonicity for a family of generalized Hofstadter functions. We also expressed several conjectures concerning these functions, and in particular a conjecture about their strict ordering. The present article is a follow-up of this last work: this time we provide a much shorter proof for the main theorem of our last article as well as first proofs for our former conjectures. Once again, all these proofs has been formalized and verified in the Rocq proof assistant, as described in Section 1.3.

This new article can be read alone, since it contains again all the required initial definitions. The basic properties are also mentioned again briefly, before focusing on the novel content. Nevertheless, much of the context described in the former article is still fully relevant but not duplicated here, in particular the discussion on related works [11, Sect. 1.7].