arXiv:2611.01048cs.LGOct 2026

Manuscript Offprint

arXiv:2611.01048

Infinite Worlds from One Example: What Local Generators Must Share

Amin Najafgholizadeh, Mohsen Afsharchi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Seeded noise lets games generate any region of an unbounded world on demand. We ask what such a generator needs when every small window must come from one example, the constraint behind Wave Function Collapse. The difficulty is that local constraints can require agreement over arbitrary distances: in a brick wall, each row keeps its place between the mortar lines. We study local generators, each cell a fixed function of the randomness near it. When the constraints carry a quantity that varies across the example, no generator that applies one rule, ignoring position, to independent randomness at every cell can be both exactly valid and faithful to the example's statistics, however far each cell reads. At radius rr, staying faithful forces forbidden windows at a density of at least order 1/r1/r, and a construction attains this order. To vary the quantity between exactly valid worlds, a generator needs randomness shared along its direction. We give a finitely checkable condition under which row types drawn from the seed and the position modulo a fixed period suffice for exact validity without learning. A search over the example's patches certifies these quantities and names the input each needs. Across 52 public examples of Wave Function Collapse and 27 from other implementations, it certifies only examples where a learned generator on independent randomness stays far from valid after repair. Given that input, a neural cellular automaton and a diffusion model become valid on 10 and 8 of the 12 certified examples that receive one, and on none from independent randomness. Valid means at most one forbidden window in a thousand after repair. With octaves of seeded noise elsewhere, the automaton is valid on 45 of the 52 public examples and 21 of the 27 from other implementations, and repair keeps random access.

1. Introduction

Games generate unbounded worlds from seeded noise. A terrain height is a hash of its coordinates and a seed, so any region can be computed on its own and in any order, and machines that share the seed make the same world. When every small window of a map must come from a designer's example, worlds are made by search instead. Wave Function Collapse (Gumin, 2016) fills a canvas in a data-dependent order and restarts when the constraints run into a contradiction. Model synthesis (Merrell, 2009) modifies a valid model one overlapping block at a time, so that a contradiction costs one block, and block solvers built on it (Boris the Brave, 2021; Kleineberg, 2023) give random access by re-solving blocks over a fixed periodic background, which they keep where a block cannot be solved. Where validity fixes a row's place, as in a brick wall, their worlds keep the background's rows. Learned generators with random access, such as InfiniteDiffusion for terrain (Goslin, 2026), carry no hard constraint.

We study random access through locality: each cell is a fixed function of the randomness near it, which may include coins shared along whole rows or on blocks that meet its neighborhood (Section 2). A cellular automaton run for a fixed number of rounds is local in this sense, and so is a diffusion sampler whose convolutional denoiser draws fresh noise at every step. A generator may also read its position modulo a fixed period; one that reads its position with no period, or randomness at unboundedly many scales, can also give random access but lies outside this model. We ask what a local generator must be given, whatever its architecture, to make worlds whose every window comes from one example (Figure 1).

A brick wall shows what independent coins, which give each cell randomness of its own, cannot do (Figure 2). No window of the example lets a mortar row step up or end, so a row's place among the mortar lines is a quantity that validity carries along the whole row. A local generator on independent coins decides it at distant cells of a row independently, and wherever they disagree a forbidden window lies between them. Bergmann et al. (2017) observed the same of textures: a generator on independent noise with a limited receptive field cannot align distant regions. For any quantity that validity carries along an axis and the statistics

¹Department of Computer Engineering, University of Zanjan, Zanjan, Iran. Correspondence to: Amin Najafgholizadeh amin.ngz@znu.ac.ir.

Preprint.

Figure

Figure 1. Worlds from one example. Each column shows a public example and the central 64 × 64 cells of a 256 × 256 canvas from shifted replay (the example tiled from a random offset), the block reference (a block solver on blocks placed at random), the rule on independent coins and the method (the learned rule given the input of Section 4), both mended, with the share of forbidden windows on the whole canvas. On the first five examples validity carries a quantity over any distance, an invariant along rows or a phase. Independent coins leave forbidden windows on all five; given the quantity, the method leaves none, and on Fabric and RedMaze its world is the tiled example. Cave carries no such quantity, and both rules are valid on it.

make vary, a generator of radius rr on independent coins leaves forbidden windows at a density of order at least 1/r1/r unless its statistics stray from the example's. At any depth, that is, however far each cell reads, no such generator is both free of forbidden windows and faithful to the statistics (Section 3). This holds even where one repeated color satisfies every constraint, so that the constraints alone are solvable in constant time (Brandt et al., 2017). The order cannot be improved: the min-coin copy, which copies the example over regions drawn from the coins, stays within a constant factor of the bound, and a rule learned on indepen-

dent coins leaves forbidden windows at about the copy's rate (Figure 3).

The example alone shows whether the theorems apply. A search over the overlap graphs of the example's locally valid patches finds quantities that validity carries, and we call an example with one certified (Section 4). We call a generator valid on an example when, after mending, a local re-solve around each forbidden window, at most one window in a thousand stays forbidden on each canvas. On 21 public examples, which we call resistant, a rule learned on independent coins stays far from valid. The search certifies

Figure

Figure 2. The row type on Wall, a row's place relative to the horizontal mortar lines, which validity keeps constant along every row. (a) The example and the row type of each of its rows. (b) The rule on independent coins after repair and mending, each cell tinted by the row type of the window centered on it: the type changes along rows, and the forbidden windows sit where it changes. (c) The method, given row types drawn from the seed, at the same coin seed: every row keeps its type, and no window is forbidden. (d) A mending instance with no completion (Appendix S4.1): of the cells freed around a forbidden window (hatched), two frozen patches on one row carry row types that validity cannot join, a witness (Appendix B.11).

13 of them and none of the others. Where mending fails on a certified example, at the radii we examined, the re-solve mostly holds a witness, two frozen patches whose values of the quantity no valid filling can join (Figure 2(d)), and the min-coin copy, mended the same way, is valid on no certified example at radii up to 128 (Section 6.1).

A shared input escapes the bound, and random access allows one. An invariant along rows is supplied as row types drawn band by band from the seed with the example's own transitions, and a phase as the coordinates modulo its period, both at bounded work per cell (Section 4). Coins shared on blocks of bounded length help only as a larger radius would, unless the generator ties the quantity to their grid (Proposition 1). The position alone also escapes the bound but gives one world, the example tiled from absolute coordinates. A generator free of forbidden windows, at any depth, can vary the quantity between worlds only through randomness shared along whole lines (Theorem 3). Where the example's rows glue, a condition decided by a finite computation on the example, that is also enough: a generator that reads only its band's coin and its position leaves no forbidden window for any value of the coins (Theorem 4).

The rows glue on seven of the eight examples with a row invariant, all but 3Bricks. These are the examples where the copier, which fills the sampled rows with stretches of the example's rows, exists and leaves no forbidden window (Section 4). With the copier, or a lookup of the example at the coordinates modulo the period, the input carries validity by itself, without learning or mending, on ten of the twelve certified examples that receive one.

A learned local generator can use the input as well. A small neural cellular automaton (Mordvintsev et al., 2020), learned from the single example and given this input, is

valid after mending on the same ten certified examples, all but 3Bricks and SmileCity. On the octaves of seeded noise alone, which share coins along whole rows as well as on blocks, it is valid on five of the twelve, and on independent coins on none. On the nine certified examples where it is valid on all eight canvases, no canvas keeps a forbidden window, while no generator on independent coins with the same statistics could be free of them, at any depth on most of these examples and at the radius of the whole pipeline on the rest (Section 6.2). A convolutional diffusion model given the input is valid on eight of the twelve, five of them without copying the example (Section 6.5).

Outside the corpus on which we built the procedure, the automaton is valid on all five examples we held out, two of them only with the input. On 27 examples taken from other implementations of Wave Function Collapse and related generators, the search again certifies only examples that resist independent coins, and the automaton, given the input where a certificate exists and the octaves elsewhere, is valid on 21 of them, against 18 on the octaves alone (Section 6.2).

Where a copier exists, learning is not what makes the worlds valid or new. The automaton composes its rows instead of copying them, and on Wall its canvases lie where Theorem 2 excludes the law of every generator on independent coins (Figure 5), but a block solver that re-solves the copier's canvases does the same without learning (Section 6.3). Learning adds something of its own where nothing is certified, as the prior from which a mender starts. From a rule learned on the octaves, one mender makes 34 of the 39 uncertified examples valid, more than from any prior without learning that we gave it, though a block solver started from the tiled example needs no prior and is valid.

there by construction.

With the octaves where nothing is certified and the input elsewhere, the automaton, which we call the method, is valid on 45 of the 52 public examples. Most of that validity comes with the mender, which rewrites a median of 18% of the cells where the method ends valid. Regions mended separately agree once each carries a margin as wide as a mending change can travel, so the method keeps random access (Section 6.4).

Our contributions are the lower bound, its counterpart at any depth and a construction that attains its order (Section 3); a necessary condition on what a local generator free of forbidden windows must share to vary the quantity between worlds, and a sufficient one decided on the example; the certificate and the input built from it, which keeps random access (Section 4); and a measured account of what a learned rule adds to that input (Section 6). Appendix S8 gives, for most experiments, the outcome we expected before the run beside the outcome observed.