Obfuscated Natural Number Game
- Obfuscated Natural Number Game is a term for diverse games that hide underlying natural number structures while retaining key invariants such as prime factorizations and binary patterns.
- It encompasses models ranging from Lean 4 benchmarks and divisor games to card-based reconstructions and online sequencing, each unveiling deep arithmetic properties.
- The framework challenges both computational systems and human analysts to recover global arithmetic insights from locally obfuscated information using minimal observable cues.
The expression Obfuscated Natural Number Game does not denote a single canonical mathematical object. In recent arXiv usage, it appears both as the name of a specific Lean 4 benchmark obtained by obfuscating the Natural Number Game and as an expository label for several number-theoretic and combinatorial games in which an underlying natural-number structure is hidden, redistributed, or only partially revealed. In these different settings, the hidden object may be a prime factorization, a base- expansion, an online ordering constraint, an increasing random tuple, or a formal proof state; what persists are sharply defined invariants such as binomial parity, total variation distance, positional digits, Sprague–Grundy values, or Lean type structure (Li, 1 May 2026, Cobeli et al., 2014, Vesco, 2 Oct 2025, Kuklinski et al., 2023, Jakobsen, 2015, Baily et al., 2021, Ellis et al., 2023).
1. Terminological scope
The most specific contemporary use of the term is the Lean benchmark introduced to evaluate architectural reasoning under identifier obfuscation. In broader expository use, the same label has been attached to several mathematically unrelated games whose common feature is the concealment of arithmetic structure behind local rules or limited observations.
| Usage | Core mechanism | Source |
|---|---|---|
| Lean 4 ONNG benchmark | Randomized identifiers in a closed theorem-proving environment | (Li, 1 May 2026) |
| Divisor/exponent game | Primewise absolute differences of exponents via | (Cobeli et al., 2014) |
| Card reconstruction game | Yes/no card membership reveals base- digits | (Vesco, 2 Oct 2025) |
| Blind number sequencing | Online placement of random numbers into ordered slots | (Kuklinski et al., 2023) |
| Numbers-on-foreheads game | Increasing tuples with nearly indistinguishable subsets | (Jakobsen, 2015) |
| Generalized Bergman / arithmetic impartial games | Local recurrence rewrites or arithmetic move rules on | (Baily et al., 2021, Ellis et al., 2023) |
A common misconception is that the phrase names a single standardized recreational puzzle. The literature instead supports a plural reading: it is a family resemblance term whose instances differ substantially in state space, observability model, and objective.
2. Divisors, exponent differences, and the Cobeli–Zaharescu field
A particularly number-theoretic instance begins from the map
If and for a fixed prime , then
so the transformation acts prime-by-prime as an absolute difference of exponents. Writing
the associated exponent vector is 0, and the induced local rule is
1
The principal game starts from Row 2 equal to the infinite sequence of primes 3 and defines
4
producing a triangular or honeycomb field whose left edge is 5 (Cobeli et al., 2014).
Because the top row consists of primes, all exponents remain in 6, so every entry in every row is squarefree. The dynamics are Ducci-like at the exponent level: for each fixed prime 7, the exponent profile evolves exactly as an absolute-difference process started from a monomial seed. This yields a proved analog of Gilbreath’s conjecture. If 8 denotes the number of prime factors of 9, then
0
where 1 and, more precisely,
2
equals the number of 3s in the binary expansion of 4. The same row invariant holds everywhere:
5
Hence every entry in row 6 is a product of exactly 7 distinct primes (Cobeli et al., 2014).
The entire row admits an explicit formula. With
8
one has
9
Equivalently,
0
This is the Sierpiński–Pascal structure underlying the field. In the 1 polynomial model, if a finitely supported 2–3 sequence is encoded as 4, then the difference operator becomes multiplication by 5:
6
For 7,
8
which explains the power-of-two periodicity patterns in prime-exponent renderings (Cobeli et al., 2014).
The game is “obfuscating” only in a limited sense. Later rows mix neighboring prime supports and obscure the initial row locally, but the process preserves strong global invariants such as squarefreeness and rowwise constancy of 9. The paper also notes that from a single later row one cannot in general recover the original sequence, because absolute differences discard directional information.
3. Positional-card reconstruction in arbitrary base
Another mathematically precise use of the label concerns the classical “guess my number” card game generalized from base 0 to any integer base 1. The hidden integer 2 is recovered from yes/no answers about membership in printed cards. In the binary version, there is one card for each power 3, and 4 belongs to the 5 card exactly when the 6-th binary digit is 7, equivalently when
8
Reconstruction is immediate:
9
where 0 records the answer on the 1 card. With cards for 2 through 3, one represents all integers from 4 up to 5, and the required card count is
6
for a specified target 7 (Vesco, 2 Oct 2025).
For general base 8, every integer has an expansion
9
Because the framework keeps answers strictly binary, digit 0 is identified by using 1 separate cards for the position 2, one for each nonzero coefficient 3. The card 4 contains precisely those integers satisfying
5
This gives the exact formulas
6
for the number of yes/no cards needed to recover a given integer 7, and
8
for the largest determinable integer with 9 cards (Vesco, 2 Oct 2025).
The central optimality result is that binary is best in both directions. For every 0 and every integer base 1,
2
with equality only for 3 and 4. Likewise, for every fixed card count 5 and every 6,
7
The paper interprets this as an information-theoretic efficiency statement: each yes/no answer contributes one bit, and the binary scheme uses those bits directly as positional coefficients. Multi-valued response variants, including a base-8 colored version, can reduce the number of physical cards to 9, but the paper’s formulas and optimality results are explicitly stated for yes/no cards (Vesco, 2 Oct 2025).
4. Blind sequencing as an online obfuscation problem
A different stochastic formulation appears in Blind Number Sequencing, which models the TikTok “20 number challenge.” There are 0 empty slots, random numbers arrive one at a time, and each number must be placed immediately so that the final list is strictly increasing from left to right. The paper studies the continuous model
1
which is mathematically equivalent to the discrete 2–3 setting by scaling. Obfuscation here is temporal rather than notational: future values are hidden, so each placement decision must be made online under uncertainty (Kuklinski et al., 2023).
A strategy is encoded by threshold functions 4 for subproblems of size 5, with thresholds
6
If the first draw 7 is placed in slot 8 of an 9-slot problem, the remaining game splits into subproblems of sizes 0 and 1, and the win probability satisfies the Bellman-type recursion
2
3
Equal spacing,
4
is greedy-optimal for maximizing the probability that the current partial order is correct, but it is not globally optimal for eventual success (Kuklinski et al., 2023).
The optimal policy is risk-tolerant rather than greedily local. Defining
5
the optimal rule chooses the slot 6 maximizing 7, and adjacent thresholds satisfy
8
This yields the explicit formula
9
For 00, the equal-spacing strategy has
01
whereas the optimal risk-tolerant policy has
02
a factor of about 03, described in the paper as about a 04 improvement. For 05, the reported factor is about 06. Structurally, the optimal policy shrinks the end bins; for large 07, the first and last bins are about 08 of an equal-spacing bin, reflecting deliberate avoidance of early extreme placements (Kuklinski et al., 2023).
5. Indistinguishability, local rewrites, and arithmetic impartial games
Several additional constructions fit the same broad pattern of hiding arithmetic information behind constrained local views. They do not define one unified game, but together they show how widely the obfuscation motif extends in discrete mathematics.
Numbers-on-foreheads. In the dealer–gambler setting, a dealer samples a strictly increasing 09-tuple of natural numbers
10
and player 11 sees all coordinates except 12. The objective is to make any two equal-size subsets 13 and 14 nearly indistinguishable in total variation:
15
The paper proves existence of such distributions with
16
where 17 and 18, and also proves matching lower bounds of the same tower height up to constants in the top exponent. The same total variation quantity exactly measures betting advantage in an associated identification game, which is why the construction yields approximate timing implementations in extensive-form game theory (Jakobsen, 2015).
Generalized Bergman Game. Here the state is a finite-support tuple of nonnegative integers attached to a non-increasing positive linear recurrence sequence with coefficients 19. The dominating root 20 of
21
defines a canonical base-22 expansion. Legal states are those whose every length-23 window is lexicographically smaller than 24. The game uses local carry and split moves implementing the recurrence identity
25
Every play terminates at the unique legal tuple representing the same integer, the longest possible play from an initial state with 26 summands has length 27, the shortest play lies between 28 and 29, and the maximum index reached during play is 30 (Baily et al., 2021).
SALIQUANT and NONTOTIENT. These impartial normal-play games live directly on 31. In SALIQUANT, a move from 32 subtracts a non-divisor:
33
The Sprague–Grundy function satisfies 34 for odd 35, 36, and, more generally, for 37 one has
38
for some divisor 39. In NONTOTIENT, the only move is
40
so the game is a no-choice chain and the Sprague–Grundy value is the parity of the iteration length to reach 41. If 42 is the least 43 with 44, then
45
and the paper proves, among other structural identities,
46
These games are not “obfuscated” in the same sense as identifier randomization, but they exhibit the same theme of simple local arithmetic rules generating unexpectedly rigid global structure (Ellis et al., 2023).
6. The Lean 4 ONNG benchmark and architectural reasoning
The most explicit and current technical meaning of Obfuscated Natural Number Game is the benchmark introduced to test whether theorem-proving systems can reason from formal structure alone. The benchmark starts from the Lean 4 Natural Number Game, a self-contained progression of proofs about the natural numbers built from Peano-style axioms and definitional extensions, intentionally avoiding external libraries such as mathlib and relying on a restricted set of basic tactics. The paper defines Architectural Reasoning as the ability to synthesize formal proofs using exclusively local definitions, axioms, theorems, and limited tactics within a closed theory, while excluding semantic knowledge of names, external repositories, and high-level automated tactics (Li, 1 May 2026).
ONNG is produced by obfuscating all identifiers in the Natural Number Game. The noise parameter is
47
with 48 corresponding to the original game and 49 to fully randomized identifiers. The character-level perturbation probability 50 is mapped from 51 by an exponential schedule. Operationally, the augmenter applies substitution with probability 52 per character, insertion with probability 53 per inter-character position, and deletion with probability 54 per character, while preserving non-emptiness and Lean validity. The implementation uses nlpaug RandomCharAug; type signatures, arities, dependency order, and the dependency graph are preserved, but names, operators, definitions, and theorems are randomized. Prompts exclude hints, docstrings, and comments and contain only the obfuscated local context, the target theorem, and a brief list of permitted tactics. Verification is done by the Lean 4 kernel, and the environment is explicitly closed-world (Li, 1 May 2026).
The benchmark comprises 68 problems across eight modules: Addition, Implication, Algorithm, Multiplication, Power, Advanced Addition, Less-Than-or-Equal, and Advanced Multiplication. The primary reported metrics are
55
with 56, and Average Time in seconds. The latency tax is
57
and the paper also discusses the robustness ratio
58
Each model is run five independent times per noise level. The evaluated systems are GPT-4o, Claude-Sonnet-4.5, DeepSeek-R1, GPT-5, and DeepSeek-Prover-V2 (Li, 1 May 2026).
| Model | Correct Rate ANOVA 59-value | Average Time ANOVA 60-value |
|---|---|---|
| GPT-4o | 0.0242* | 0.0004* |
| Claude-Sonnet-4.5 | 0.0001* | 0.0000* |
| DeepSeek-R1 | 0.1573 | 0.0000* |
| GPT-5 | 0.0863 | 0.0001* |
| DeepSeek-Prover-V2 | 0.3077 | 0.0000* |
The reported empirical pattern is a universal latency tax under obfuscation together with a divergence in robustness. General-purpose models show statistically significant degradation in Correct Rate as 61 increases, whereas reasoning-focused models do not show a statistically significant drop. The paper interprets this as evidence that identifier obfuscation suppresses semantic pattern matching and exposes whether a model can reconstruct meaning from types, local equations, and previously proved lemmas alone. It also identifies limitations: type signatures may still leak structure, models may recognize isomorphism with Peano arithmetic, the benchmark covers only 68 problems on 62, and Lean tactic familiarity is itself a learned competence (Li, 1 May 2026).
In this benchmark-specific sense, the Obfuscated Natural Number Game is not primarily a recreational number game at all. It is a formal stress test for reasoning without semantic cues. The broader mathematical uses of the phrase make clear, however, that the same conceptual template recurs across several domains: a natural-number object is transformed so that local access becomes opaque, while deep structural invariants remain available to analysis.