Papers
Topics
Authors
Recent
Search
2000 character limit reached

Obfuscated Natural Number Game

Updated 5 July 2026
  • 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-bb 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 Z(a,b)Z(a,b) (Cobeli et al., 2014)
Card reconstruction game Yes/no card membership reveals base-bb 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 N\mathbb{N} (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

Z(a,b):=ab(gcd(a,b))2.Z(a,b):=\frac{ab}{(\gcd(a,b))^2}.

If a=psa=p^s and b=ptb=p^t for a fixed prime pp, then

Z(ps,pt)=pst,Z(p^s,p^t)=p^{|s-t|},

so the transformation acts prime-by-prime as an absolute difference of exponents. Writing

n=i=1kpiαi,n=\prod_{i=1}^{k} p_i^{\alpha_i},

the associated exponent vector is Z(a,b)Z(a,b)0, and the induced local rule is

Z(a,b)Z(a,b)1

The principal game starts from Row Z(a,b)Z(a,b)2 equal to the infinite sequence of primes Z(a,b)Z(a,b)3 and defines

Z(a,b)Z(a,b)4

producing a triangular or honeycomb field whose left edge is Z(a,b)Z(a,b)5 (Cobeli et al., 2014).

Because the top row consists of primes, all exponents remain in Z(a,b)Z(a,b)6, so every entry in every row is squarefree. The dynamics are Ducci-like at the exponent level: for each fixed prime Z(a,b)Z(a,b)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 Z(a,b)Z(a,b)8 denotes the number of prime factors of Z(a,b)Z(a,b)9, then

bb0

where bb1 and, more precisely,

bb2

equals the number of bb3s in the binary expansion of bb4. The same row invariant holds everywhere:

bb5

Hence every entry in row bb6 is a product of exactly bb7 distinct primes (Cobeli et al., 2014).

The entire row admits an explicit formula. With

bb8

one has

bb9

Equivalently,

N\mathbb{N}0

This is the Sierpiński–Pascal structure underlying the field. In the N\mathbb{N}1 polynomial model, if a finitely supported N\mathbb{N}2–N\mathbb{N}3 sequence is encoded as N\mathbb{N}4, then the difference operator becomes multiplication by N\mathbb{N}5:

N\mathbb{N}6

For N\mathbb{N}7,

N\mathbb{N}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 N\mathbb{N}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 Z(a,b):=ab(gcd(a,b))2.Z(a,b):=\frac{ab}{(\gcd(a,b))^2}.0 to any integer base Z(a,b):=ab(gcd(a,b))2.Z(a,b):=\frac{ab}{(\gcd(a,b))^2}.1. The hidden integer Z(a,b):=ab(gcd(a,b))2.Z(a,b):=\frac{ab}{(\gcd(a,b))^2}.2 is recovered from yes/no answers about membership in printed cards. In the binary version, there is one card for each power Z(a,b):=ab(gcd(a,b))2.Z(a,b):=\frac{ab}{(\gcd(a,b))^2}.3, and Z(a,b):=ab(gcd(a,b))2.Z(a,b):=\frac{ab}{(\gcd(a,b))^2}.4 belongs to the Z(a,b):=ab(gcd(a,b))2.Z(a,b):=\frac{ab}{(\gcd(a,b))^2}.5 card exactly when the Z(a,b):=ab(gcd(a,b))2.Z(a,b):=\frac{ab}{(\gcd(a,b))^2}.6-th binary digit is Z(a,b):=ab(gcd(a,b))2.Z(a,b):=\frac{ab}{(\gcd(a,b))^2}.7, equivalently when

Z(a,b):=ab(gcd(a,b))2.Z(a,b):=\frac{ab}{(\gcd(a,b))^2}.8

Reconstruction is immediate:

Z(a,b):=ab(gcd(a,b))2.Z(a,b):=\frac{ab}{(\gcd(a,b))^2}.9

where a=psa=p^s0 records the answer on the a=psa=p^s1 card. With cards for a=psa=p^s2 through a=psa=p^s3, one represents all integers from a=psa=p^s4 up to a=psa=p^s5, and the required card count is

a=psa=p^s6

for a specified target a=psa=p^s7 (Vesco, 2 Oct 2025).

For general base a=psa=p^s8, every integer has an expansion

a=psa=p^s9

Because the framework keeps answers strictly binary, digit b=ptb=p^t0 is identified by using b=ptb=p^t1 separate cards for the position b=ptb=p^t2, one for each nonzero coefficient b=ptb=p^t3. The card b=ptb=p^t4 contains precisely those integers satisfying

b=ptb=p^t5

This gives the exact formulas

b=ptb=p^t6

for the number of yes/no cards needed to recover a given integer b=ptb=p^t7, and

b=ptb=p^t8

for the largest determinable integer with b=ptb=p^t9 cards (Vesco, 2 Oct 2025).

The central optimality result is that binary is best in both directions. For every pp0 and every integer base pp1,

pp2

with equality only for pp3 and pp4. Likewise, for every fixed card count pp5 and every pp6,

pp7

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-pp8 colored version, can reduce the number of physical cards to pp9, 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 Z(ps,pt)=pst,Z(p^s,p^t)=p^{|s-t|},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

Z(ps,pt)=pst,Z(p^s,p^t)=p^{|s-t|},1

which is mathematically equivalent to the discrete Z(ps,pt)=pst,Z(p^s,p^t)=p^{|s-t|},2–Z(ps,pt)=pst,Z(p^s,p^t)=p^{|s-t|},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 Z(ps,pt)=pst,Z(p^s,p^t)=p^{|s-t|},4 for subproblems of size Z(ps,pt)=pst,Z(p^s,p^t)=p^{|s-t|},5, with thresholds

Z(ps,pt)=pst,Z(p^s,p^t)=p^{|s-t|},6

If the first draw Z(ps,pt)=pst,Z(p^s,p^t)=p^{|s-t|},7 is placed in slot Z(ps,pt)=pst,Z(p^s,p^t)=p^{|s-t|},8 of an Z(ps,pt)=pst,Z(p^s,p^t)=p^{|s-t|},9-slot problem, the remaining game splits into subproblems of sizes n=i=1kpiαi,n=\prod_{i=1}^{k} p_i^{\alpha_i},0 and n=i=1kpiαi,n=\prod_{i=1}^{k} p_i^{\alpha_i},1, and the win probability satisfies the Bellman-type recursion

n=i=1kpiαi,n=\prod_{i=1}^{k} p_i^{\alpha_i},2

n=i=1kpiαi,n=\prod_{i=1}^{k} p_i^{\alpha_i},3

Equal spacing,

n=i=1kpiαi,n=\prod_{i=1}^{k} p_i^{\alpha_i},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

n=i=1kpiαi,n=\prod_{i=1}^{k} p_i^{\alpha_i},5

the optimal rule chooses the slot n=i=1kpiαi,n=\prod_{i=1}^{k} p_i^{\alpha_i},6 maximizing n=i=1kpiαi,n=\prod_{i=1}^{k} p_i^{\alpha_i},7, and adjacent thresholds satisfy

n=i=1kpiαi,n=\prod_{i=1}^{k} p_i^{\alpha_i},8

This yields the explicit formula

n=i=1kpiαi,n=\prod_{i=1}^{k} p_i^{\alpha_i},9

For Z(a,b)Z(a,b)00, the equal-spacing strategy has

Z(a,b)Z(a,b)01

whereas the optimal risk-tolerant policy has

Z(a,b)Z(a,b)02

a factor of about Z(a,b)Z(a,b)03, described in the paper as about a Z(a,b)Z(a,b)04 improvement. For Z(a,b)Z(a,b)05, the reported factor is about Z(a,b)Z(a,b)06. Structurally, the optimal policy shrinks the end bins; for large Z(a,b)Z(a,b)07, the first and last bins are about Z(a,b)Z(a,b)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 Z(a,b)Z(a,b)09-tuple of natural numbers

Z(a,b)Z(a,b)10

and player Z(a,b)Z(a,b)11 sees all coordinates except Z(a,b)Z(a,b)12. The objective is to make any two equal-size subsets Z(a,b)Z(a,b)13 and Z(a,b)Z(a,b)14 nearly indistinguishable in total variation:

Z(a,b)Z(a,b)15

The paper proves existence of such distributions with

Z(a,b)Z(a,b)16

where Z(a,b)Z(a,b)17 and Z(a,b)Z(a,b)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 Z(a,b)Z(a,b)19. The dominating root Z(a,b)Z(a,b)20 of

Z(a,b)Z(a,b)21

defines a canonical base-Z(a,b)Z(a,b)22 expansion. Legal states are those whose every length-Z(a,b)Z(a,b)23 window is lexicographically smaller than Z(a,b)Z(a,b)24. The game uses local carry and split moves implementing the recurrence identity

Z(a,b)Z(a,b)25

Every play terminates at the unique legal tuple representing the same integer, the longest possible play from an initial state with Z(a,b)Z(a,b)26 summands has length Z(a,b)Z(a,b)27, the shortest play lies between Z(a,b)Z(a,b)28 and Z(a,b)Z(a,b)29, and the maximum index reached during play is Z(a,b)Z(a,b)30 (Baily et al., 2021).

SALIQUANT and NONTOTIENT. These impartial normal-play games live directly on Z(a,b)Z(a,b)31. In SALIQUANT, a move from Z(a,b)Z(a,b)32 subtracts a non-divisor:

Z(a,b)Z(a,b)33

The Sprague–Grundy function satisfies Z(a,b)Z(a,b)34 for odd Z(a,b)Z(a,b)35, Z(a,b)Z(a,b)36, and, more generally, for Z(a,b)Z(a,b)37 one has

Z(a,b)Z(a,b)38

for some divisor Z(a,b)Z(a,b)39. In NONTOTIENT, the only move is

Z(a,b)Z(a,b)40

so the game is a no-choice chain and the Sprague–Grundy value is the parity of the iteration length to reach Z(a,b)Z(a,b)41. If Z(a,b)Z(a,b)42 is the least Z(a,b)Z(a,b)43 with Z(a,b)Z(a,b)44, then

Z(a,b)Z(a,b)45

and the paper proves, among other structural identities,

Z(a,b)Z(a,b)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

Z(a,b)Z(a,b)47

with Z(a,b)Z(a,b)48 corresponding to the original game and Z(a,b)Z(a,b)49 to fully randomized identifiers. The character-level perturbation probability Z(a,b)Z(a,b)50 is mapped from Z(a,b)Z(a,b)51 by an exponential schedule. Operationally, the augmenter applies substitution with probability Z(a,b)Z(a,b)52 per character, insertion with probability Z(a,b)Z(a,b)53 per inter-character position, and deletion with probability Z(a,b)Z(a,b)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

Z(a,b)Z(a,b)55

with Z(a,b)Z(a,b)56, and Average Time in seconds. The latency tax is

Z(a,b)Z(a,b)57

and the paper also discusses the robustness ratio

Z(a,b)Z(a,b)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 Z(a,b)Z(a,b)59-value Average Time ANOVA Z(a,b)Z(a,b)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 Z(a,b)Z(a,b)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 Z(a,b)Z(a,b)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.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Obfuscated Natural Number Game.