Manuscript Offprint
arXiv:2611.24918Hardness of "Infinite Energy" Puzzles
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Infinite Energy (by Light Potato, 2025) is a single-player puzzle in which one wires a network of sockets so that, after every power source is unplugged, energy keeps circulating and leaves every board energized. We study several variants of the game and the complexity of deciding whether an instance can be won. The variants can be played at https://infinite-energy-peer-review.netlify.app, which also has worked examples of the reduction techniques.
The colorless game, with connectability given by an arbitrary matrix, is NP-hard (by reduction from Hamiltonian Path) and lies in PSPACE. We give a seven-socket instance winnable only by charging a temporary battery loop and then breaking it, so the natural “charge and keep” strategy fails. We reduce NP-membership to one conjecture: that every winnable instance has a winning play in which no socket is charged twice.
Two variants bound the complexity more tightly. The unconstrained variant, in which connectability is unrestricted, is TC0-complete under AC0 Turing reductions (hence in L). The geometric variant, in which connectability is set by proximity of points in , stays NP-hard for every fixed via reduction from Hamiltonian Path over grid graphs. The one-dimensional case is open. The colored variant is NP-hard, though a matching upper bound remains open.
Keywords:
Computational complexity NP-completeness Games and puzzles Hamiltonian path Geometric realizability

(a)

(b)

(c)
Figure 1: A play of Infinite Energy on an instance with one red power source (the octagon on the left) and four boards, each carrying a red color requirement shown by the red eyes of its face. (a) The initial configuration: every board is unenergized and the source is detached. (b) The source is attached and emits its color along a wire into the upper socket of the left vertical board. Two of its three sockets are joined into a directed cycle (the third stays free to pass energy on), and the board becomes energized red so its face smiles. The right vertical board is wired into a cycle of the same shape but remains unenergized, drawn cold, since no energy has yet entered it. (c) The source is detached. The charged cycle continues to circulate energy without it, and because sockets sharing a board are joined for free, the energy propagates along cross-board wires to the remaining boards. Every board now displays its requirement met, and the instance is won with no source attached. The sustaining directed cycle from (b) is drawn schematically in Fig. 2.
An instance is played on a collection of boards (the set ), each holding one or more circular sockets (collectively ) and displaying a cartoon face that smiles once the board is satisfied. Energy is supplied by external power sources (the set ), drawn as octagonal units, and travels along directed wires that the player draws between sockets. In the full game a board also carries a color requirement, shown by the eyes of its face. Color is a separate constraint that we isolate in Appendix 0.E and ignore until then, so the main text studies the colorless game. Two rules govern the flow of energy:
- The sockets on a board are intrinsically connected, so energizing any one of them energizes the whole board and makes the remaining sockets available as outgoing sources, and
- each socket admits at most one wire, so that a socket either transmits energy or receives it, but never both.
The object of the game is to keep the boards powered after every source has been disconnected, which compels the player to route energy into directed cycles that circulate without external input. Fig. 1 follows a single play through this mechanism, and Fig. 3 (Section 2) contrasts a small winnable instance with one that cannot be won.
The step from Fig. 1(b) to Fig. 1(c) is where the mechanism operates. While the source is present it charges the connected structure and after it is removed the boards stay charged because the energy is trapped in a self-sustaining cycle. The player must therefore reach a state in which energy keeps propagating to every board after the source is gone. Section 1.1 defines energization as the least fixed point of a monotone propagation rule, i.e., an instance is won when its energized set remains a nonempty fixed point after the sources are deleted. We encourage readers to try the variants at https://infinite-energy-peer-review.netlify.app.
This requirement places Infinite Energy between two families of previously analyzed games: the trajectory games, such as platformers and sliding-block puzzles, whose solutions are sequences of moves [1, 4, 6], and the consistency puzzles, such as Minesweeper, whose solutions are static labelings checked against local constraints [3, 11].
Infinite Energy shares with the trajectory games a winning condition defined over a process rather than a state, so the final configuration does not certify a win. The wire graph left behind once the sources are withdrawn is a union of paths and cycles, and it does not record whether its loops were ever charged. In Fig. 1(b) the un-energized cycle on the right is structurally identical to the charged one on the left, so the terminal graph underdetermines the energized set. A frozen frame of generalized Super Mario Bros. is uninformative in the same way, certifying nothing about the legality of the play that produced it [1]. The two families diverge in the certificate their processes admit. For a trajectory game the certificate is irreducibly a sequence of moves, checked by forward simulation, and generalized instances need not admit any short certificate, which places the reconfiguration framework underlying many of them in PSPACE [8, 7]. For Infinite Energy one might hope that charging is monotone, so a static witness suffices: the final loops, each with a route in the connectability graph from a source to a free socket on one of its boards. This hope fails. Some instances are winnable only by charging a temporary battery, a loop built and then broken to free its sockets (Proposition 3), so the final loops do not on their own certify a win. They must also be chargeable in some order, with batteries where needed and without the charging routes competing for socket capacity, and the final wiring has erased that schedule. We therefore take the certificate to be a short winning play, and reduce the existence of one to a single conjecture: that a winning play never needs to charge any socket twice (Section 5). Without this conjecture, the problem is NP-hard and in PSPACE.
The game layers two further constraints on this mechanic. Wires have bounded length, so not every pair of sockets may be joined. In the standard game this restriction comes from a maximum wire length, and only sockets closer than that length can be connected. We relax it by taking connectability to be arbitrary, given by a connectability matrix supplied with the instance, and we return to the geometric version in Section 6.
The second restriction assigns a color to each source and a color requirement to each board, with colors mixing additively as energy flows. We describe only the colorless game and defer the colored variant to Appendix 0.E. Since the game is NP-hard without color, the colored variant is NP-hard too, but a matching upper bound remains open.
| Variant | Complexity | Reference |
|---|---|---|
| Unrestricted (all-ones) | TC0-complete | Theorem 3.2 |
| Arbitrary | NP-hard, in PSPACE | Theorems 4.1, 5.1 |
| Geometric, | NP-hard, in PSPACE | Corollary 1 |
| Geometric, , | NP-hard, in PSPACE | Theorem 6.2 |
| Geometric, | open | — |
| Colored | NP-hard | Appendix 0.E |
Table 1: Complexity of Infinite Energy across variants. For the NP-hard rows, NP-completeness would follow from Conjecture 1 (recharge-free plays suffice), which we state and support but do not prove.
Our results.
We separate the combinatorics of the game from its geometry. When connectability is unrestricted ( all-ones), winnability reduces to two arithmetic conditions: at least sockets and some board with at least three sockets (Theorem 2.1), and the induced predicate is TC0-complete, hence in L (Theorems 3.1, 3.2, Proposition 1). With given arbitrarily the problem becomes NP-hard by reduction from Hamiltonian Path (Theorem 4.1), and lies in PSPACE (Theorem 5.1). We reduce NP-membership to a conjecture that recharge-free plays suffice (Conjecture 1, Section 5), which would give NP-completeness. This hardness is not an artifact of unrealizable matrices. Every symmetric is realizable as a distance-threshold graph in , where (Theorem 6.1), so the problem stays NP-hard under that geometric restriction (Corollary 1). In fixed dimension it remains NP-hard for every (Theorem 6.2). The one-dimensional case is open. Finally, the colored variant is NP-hard, though we do not settle a matching upper bound (Appendix 0.E). Table 1 collects these results.
1.1 Graph-Theoretic Formalization.
Definition 1 (Instance)
A (colorless) game instance is a tuple where
- is a finite set of sockets.
- is a finite set of sources, with .
- is a partition of into nonempty boards, with (the empty instance wins vacuously and is excluded). We write for the board containing socket .
- is a symmetric connectability matrix, where means a wire may join and . We set for all : a wire between two sources could never carry energy (a source only supplies, never receives, by Definition 2), so forbidding such wires loses no plays and lets us treat every socket uniformly.
A wire carries energy in one direction, so we model a wiring as a directed graph.
p_{1}$$p_{2}2-cycle,one board4-cycle,two boardswire (in )implicit board edge
Figure 2: The two smallest loops (Definition 4), drawn as directed cycles. Solid arrows are wires of . Dashed arrows are implicit board edges of , which cost no wire slot. Edge types alternate, so a loop of length uses wires and implicit edges. The 2-cycle is the loop drawn as the red wires with both ends on the same board in Fig. 1(c).
Definition 2 (Configuration)
A configuration for is a directed graph , where each edge is a wire oriented from the energy-supplying end to the receiving end, satisfying (with and being the out- and in-degree of in ):
- One wire per part: for every .
- Connectable: .
- Sources only supply: for every (no wire points into a source).
Since the vertex set is fixed by , a configuration is determined by its wire set . We write the configuration as when only the wires matter.
Sockets on the same board pass energy without a wire. We record this with edges that do not count against the degree bound.
Definition 3 (Implicit edges and completion graph)
The set of implicit edges is
(energy flows either way within a board). The completion graph of a configuration is .
Definition 4 (Loop)
A loop is a directed cycle in whose edges alternate between wires (from ) and implicit edges (from ):
Two facts follow immediately from Definition 4. First, because the edge types alternate around the cycle, every loop has even length , using exactly wires and implicit edges. We call these wires the -edges of the loop . Each socket of carries exactly one of them. Second, every socket on a loop has one incoming and one outgoing cycle edge of which exactly one is a wire, so a loop never exceeds the one-wire-per-socket budget.
It remains to say how energy spreads and what it means to win.
Definition 5 (Energization)
Fix a configuration . A socket is energized in if, in the completion graph , it is reachable from some energized socket or a power source by a directed path of wires and implicit edges. A board is energized if at least one of its sockets is energized (equivalently, because of the implicit edges, if one socket is energized all the sockets on the board are). A loop is said to be charged in if every socket on it is energized in .
The current wiring does not by itself determine energization: a charged loop keeps its sockets energized even after the source that charged it is unplugged (Fig. 2). Energization is therefore relative to a play’s history, not to the current wiring alone. Appendix 0.A makes this precise with a recurrence over the configurations a play traverses. Informally, a socket is energized at step when it is reachable, through wires and board edges, from a source or from a loop that was charged earlier and whose wires still stand. This persistence is the source of the problem’s difficulty.
Definition 6 (Move and play)
A move is a pair where is a directed edge with and . Applied to a configuration , the move yields
and is legal at if is a valid configuration (Definition 2) and, additionally, when and when .
A play is a finite sequence of moves such that, writing and , each is legal at . We call the configurations traversed by the play.
Problem (Infinite Energy)
Given an instance , is there a play whose final configuration connects no source yet leaves every board energized at (Appendix 0.A)?
2 Unconstrained Infinite Energy is in P
The unconstrained variant Unconstrained-Infinite Energy is the special case in which the connectability matrix imposes no restriction: for every socket–socket and source–socket pair (only source–source wires remain forbidden). The input is then only with , and we ask whether the instance is winnable, and we give a linear time algorithm.
Theorem 2.1
An unconstrained instance with is winnable if and only if
(i) , and (ii) some board has at least sockets.
Both conditions are checkable in time, so Unconstrained-Infinite Energy . Fig. 3 shows a small winnable and a small unwinnable instance. The construction behind sufficiency is illustrated in Fig. 5 (Appendix 0.B).
(removed)s$$b^{*}(a) winnable(b) not winnable
Figure 3: Two unconstrained instances (final configurations. No source attached. Shaded sockets are energized). (a) A winnable instance: has three sockets, so two of them form a self-sustaining 2-cycle (charged earlier through , then removed) and the third exports energy to the other board. (b) An unwinnable instance: two boards of two sockets each. Here , but no board has three sockets, so any loop would occupy both sockets of each board it meets and leave none off the loop to charge it (Lemma 1). Once is removed nothing stays energized.
2.1 Sufficiency
Proof (sketch)
Fix a board with and bootstrap a self-sustaining 2-cycle on two of its sockets (charge through a source, then disconnect it). Maintain a pool of free energized sockets. Energizing a board nets to , so processing boards in non-increasing size keeps nonempty exactly when . Full proof in Appendix 0.B.
2.2 Necessity
Both necessity proofs start from a winning final configuration , which by definition has no source connected yet every board energized. Since the base case of energization is empty without sources, all energy in originates from loops.
Lemma 1
If every board has at most sockets, the instance is not winnable.
Proof (sketch)
A charged loop’s sockets are all wire-saturated, so it can have been charged only through an implicit edge from an off-loop socket on a board it meets. Because implicit edges only exist within the same board, that board then has at least three sockets. Full proof in Appendix 0.B.
Lemma 2
If , the instance is not winnable.
Proof (sketch)
Contract each board to a node. Every energized board has in-degree at least one, so there are at least socket–socket wires and each uses two of the socket slots, so . Full proof in Appendix 0.B.
Together, Lemmas 1 and 2 give the necessary direction of Theorem 2.1.
3 Hardness Lower Bound for Unconstrained Infinite Energy
Theorem 2.1 reduces Unconstrained-Infinite Energy to checking two arithmetic conditions on : that and that some board has at least three sockets. We pin down the exact complexity of this predicate, which turns out to be far below P.
Membership in P already shows the unconstrained game is easy, but not how easy. The size test is a comparison of two counts, and we show below that this counting is not only sufficient but necessary. We use the standard circuit classes (see [2, 13]). AC0 is the class of languages decided by families of constant-depth, polynomial-size Boolean circuits over unbounded fan-in gates. TC0 is the same with unbounded fan-in threshold (equivalently majority) gates also allowed. Hence , and Majority [2, 13], so the inclusion is strict. Locating the predicate in TC0 but outside AC0 (under the encodings, uniformity, and reductions fixed below) is the sense in which its only difficulty is counting.
Theorem 3.1
Unconstrained-Infinite Energy .
Proof
Scan the input once, maintaining three quantities: a running count of boards (), a running count of sockets (), and a single bit recording whether any board seen so far has more than two sockets. At the end, accept iff the bit is set and . Each counter holds a number at most the input size , so uses bits. The comparison is computable in the same space. Hence the procedure runs in deterministic logspace.
The predicate is also constant-depth: is one threshold over the input, and “some board exceeds two sockets” is a disjunction of local checks. This gives us the following proposition:
Proposition 1
Unconstrained-Infinite Energy .
We complement this with a matching lower bound: the problem is as hard as counting, so it cannot lie in AC0 [2, 13].
Theorem 3.2
Majority reduces to Unconstrained-Infinite Energy by a projection, in particular by a many-one AC0 reduction. Since Majority is TC0-complete under AC0 Turing reductions [13], Unconstrained-Infinite Energy is TC0-complete under AC0 Turing reductions.
Proof (sketch)
Map to one board per bit: a three-socket board when and a singleton when . Then and with , so , and a 1-bit supplies the required three-socket board. Thus the instance accepts iff is majority-1. Each output board depends on one input bit, so the map is a projection, and a projection is an AC0 reduction. Full proof in Appendix 0.B.
Two conventions make the completeness statement precise. We take the standard encoding in which the boards are listed in input order in fixed-width records, so the -th board is the one-bit projection above (later output positions do not depend on earlier bits), and we read TC0 and AC0 as dlogtime-uniform, under which Majority is complete and hold. Majority accepts on ties (at least ones), matching the size test. A projection gives only many-one Majority-hardness, which already places Unconstrained-Infinite Energy outside AC0, whereas the preceeding completeness uses that Majority is TC0-complete under AC0 Turing reductions. Summarizing, Unconstrained-Infinite Energy sits at , a sharp drop from the NP-hardness of the full game.
4 Infinite Energy is NP-Hard
We reduce from Hamiltonian Path.
Definition 7 (Hamiltonian Path)
Given an undirected graph , decide whether has a Hamiltonian path: an ordering of all vertices such that for every .
Hamiltonian Path is NP-complete [5].
Theorem 4.1
Infinite Energy is NP-hard.
Construction
Given with , build an instance as follows.
- Node boards. For each a board with two sockets.
- Anchor board. One board with three sockets.
- Source. A single source , so .
Thus and . The connectability matrix permits exactly the following wires (and their symmetric entries):
(a) (the two anchor sockets, only to each other). (b) and for every and . (c) whenever .
All other entries of are . The construction is polynomial: sockets and an matrix filled directly from the adjacency relation of . See Fig. 4.

Figure 4: The reduction from Hamiltonian Path.
Correctness
Lemma 3 (Completeness)
If has a Hamiltonian path, then is winnable.
Proof (sketch)
Wire , form the anchor loop , disconnect , then follow the Hamiltonian path, wiring board by board. Full proof in Appendix 0.B.
Lemma 4 (Soundness)
If is winnable, then has a Hamiltonian path.
Proof (sketch)
Only has three sockets, so the sole charged loop is . Energy leaves only through , and the degree-two node boards force the energized region to be a single simple path visiting every one, i.e. a Hamiltonian path. Full proof in Appendix 0.B.
Lemmas 3 and 4 prove Theorem 4.1.
5 Upper bounds: PSPACE, and NP modulo a conjecture
A win is defined by a play, a sequence of moves, not by a static picture: the same final wiring can be a win or a dead position, depending on whether its loops were ever charged. A game state is captured by the pair (current wiring, currently energized set), which takes polynomially many bits, and the next state is a function of the state and the move (Appendix 0.A). Deciding whether a winning state is reachable from the empty wiring is therefore a reachability question over a state graph whose states have polynomial size.
Theorem 5.1
Infinite Energy .
For NP the certificate is a winning play, and two facts would suffice (Appendix 0.A): a play is verifiable in time polynomial in its length (Proposition 2), and every winnable instance has a short winning play (Theorem 0.A.1). The obstacle to the second is that a win can require temporary batteries, loops charged only to be broken again. A seven-socket instance is winnable yet has no play that never breaks a charged loop (Proposition 3), so the natural “charge and keep” strategy fails outright. However, no socket ever needs its loop charged twice. Plays with this property, which we call recharge-free, have only charged loops (Lemma 7), and we conjecture that one of polynomial length always exists (Conjecture 1).
Theorem 5.2
Infinite Energy is NP-hard (Theorem 4.1) and lies in PSPACE (Theorem 5.1). If Conjecture 1 holds, then Infinite Energy is NP-complete.
6 Geometric Realizability of Connectability Matrices
The connectability matrix abstracts a physical layout. In the real game two sockets are joinable when they lie within a fixed wire length. We ask whether requiring to come from points in weakens the hardness of Infinite Energy. In high dimension, geometry imposes no restriction, and hardness survives even in fixed, small dimension.
Definition 8 (-realizable matrix)
Let . A symmetric matrix with zero diagonal is -realizable if there exist a map and a threshold such that, for all distinct ,
Equivalently, is the adjacency matrix of a distance-threshold graph in .
6.1 Universal realizability in
Theorem 6.1
Every symmetric with zero diagonal is -realizable.
The proof is in Appendix 0.C. The reduction of Section 4 produces an arbitrary connectability matrix, and Theorem 6.1 places the sockets and sources of that matrix at points of whose pairwise distances put a wire exactly between the pairs allows. The hardness of Infinite Energy therefore persists under this geometric restriction.
Corollary 1
Infinite Energy is NP-hard, and NP-complete if Conjecture 1 holds, even when is required to be realizable in .
6.2 Hardness in fixed dimension
Corollary 1 leaves open whether hardness needs growing dimension. It does not. The reduction of Section 4 does not transfer directly: there the anchor socket is connectable to every node socket, which is what lets a Hamiltonian path begin at any vertex. In a fixed-dimensional realization a single socket cannot sit within the threshold of arbitrarily many node boards spread across the lattice. We remove this requirement by fixing the start of the path, so that the anchor need only reach one node board.
Definition 9 (Anchored Hamiltonian Path)
Given a graph and a vertex , decide whether has a Hamiltonian path with as an endpoint.
Lemma 5
Anchored Hamiltonian Path is NP-complete even when comes with a grid embedding in which the endpoint has degree one and is the strictly highest vertex, so no other vertex lies in the row of or above it.
Proof (sketch)
Reduce from Hamiltonian path between two specified boundary terminals of a grid graph [10]. Attach to an arm of new degree-two grid vertices that leaves the bounding box through empty exterior cells and ends, above the whole figure, in a degree-one tip . Attach a similar arm to ending in . The arms force to be the path’s endpoints, and is placed as the highest vertex. Full proof in Appendix 0.B.
Theorem 6.2
For every fixed , no-color Infinite Energy is NP-hard (and NP-complete if Conjecture 1 holds) even when is realizable in .
Proof (idea)
Place each grid vertex’s two-socket board at its lattice point (sockets at ), so boards are connectable iff the vertices are grid-adjacent, and put the anchor and source in the empty half-plane above the graph, reaching only the degree-one terminal . The reduction of Section 4 then applies with the path forced to start at . Full construction in Appendix 0.B, with a worked example in Appendix 0.D.
References
G. Aloupis, E. D. Demaine, A. Guo, and G. Viglietta (2015) Classic Nintendo games are (computationally) hard. Theoretical Computer Science 586, pp. 135–160. Cited by: §1, §1.
S. Arora and B. Barak (2009) Computational complexity: a modern approach. Cambridge University Press. Cited by: §3, §3.
M. de Bondt (2012) The computational complexity of Minesweeper. Note: arXiv preprint arXiv:1204.4659 External Links: 1204.4659 Cited by: §1.
M. Forišek (2010) Computational complexity of two-dimensional platform games. In Fun with Algorithms (FUN 2010), P. Boldi and L. Gargano (Eds.), LNCS, Vol. 6099, pp. 214–227. Cited by: §1.
M. R. Garey and D. S. Johnson (1979) Computers and intractability: a guide to the theory of NP-completeness. W. H. Freeman. Cited by: §4.
R. A. Hearn and E. D. Demaine (2005) PSPACE-completeness of sliding-block puzzles and other problems through the nondeterministic constraint logic model of computation. Theoretical Computer Science 343 (1–2), pp. 72–96. Cited by: §1.
R. A. Hearn and E. D. Demaine (2009) Games, puzzles, and computation. A K Peters. Cited by: §1.
R. A. Hearn (2004) The complexity of sliding-block puzzles and plank puzzles. In Tribute to a Mathemagician, B. Cipra, E. D. Demaine, M. L. Demaine, and T. Rodgers (Eds.), Cited by: §1.
P. Hliněný and J. Kratochvíl (2001) Representing graphs by disks and balls (a survey of recognition-complexity results). Discrete Mathematics 229 (1–3), pp. 101–124. Cited by: Proof.
A. Itai, C. H. Papadimitriou, and J. L. Szwarcfiter (1982) Hamilton paths in grid graphs. SIAM Journal on Computing 11 (4), pp. 676–686. Cited by: Proof, Proof.
R. Kaye (2000) Minesweeper is NP-complete. The Mathematical Intelligencer 22 (2), pp. 9–15. Cited by: §1.
N. Linial, E. London, and Y. Rabinovich (1995) The geometry of graphs and some of its algorithmic applications. Combinatorica 15 (2), pp. 215–245. Cited by: Proof.
H. Vollmer (1999) Introduction to circuit complexity: a uniform approach. Texts in Theoretical Computer Science. An EATCS Series, Springer. Cited by: Theorem 3.2, §3, §3, Proof.
Appendix 0.A Membership: verification, PSPACE, and recharge-free plays
Fix an instance , with implicit edges and completion graph (Definition 3). A plug wire joins two sockets. A source wire has its tail in . A loop is an alternating directed cycle of (Definition 4), which uses at least one plug wire.
0.A.1 Energization is history-dependent
A charged loop keeps its sockets energized after its source is gone, so which sockets are energized depends on the play so far, not on the current wiring alone. Fix a play (Definition 6). Put and, for , let be the sockets lying on some directed cycle of that uses a plug wire and all of whose sockets are in . Let be the least with closed under flow ( and imply ). A board is energized at if it meets . The play wins at if carries no source wire and every board is energized at , i.e., the instance is winnable if some play wins.
This agrees with Definition 4. A directed cycle using a plug wire and lying in contains an alternating loop through that wire, so is the flow-closure of the charged alternating loops’ sockets. The extra sockets it may name (co-board sockets carrying no wire) are energized anyway, so is unchanged. A loop, once all its sockets are in while its wires stand, remains in thereafter, which is the self-sustaining property of Fig. 2.
Proposition 2
Whether a play of length wins is decidable in time polynomial in and .
Proof
Compute in order. Given , restrict to and take its strongly connected components. A socket lies in iff its component contains a plug wire, since then it sits on a directed cycle through that wire inside . Then is the set reachable from in , by one graph search. Each step costs , and there are . Finally check that has no source wire and every board meets .
0.A.2 A polynomial-space bound
Proof (of Theorem 5.1)
A configuration is a wire set with each node on at most one wire, hence at most plug wires and source wires, described in bits. A state is a pair with , again of polynomial size. By §A.1 the successor of under a legal move is , where is a function of and computable in polynomial time. Winning states (no source wire, every board in ) are recognizable in polynomial time. Deciding whether a winning state is reachable from in this graph of states is in .
0.A.3 A win can require temporary batteries
A win may charge a loop only to break it later, using the loop as a battery that keeps a board energized while other sockets are rewired. Batteries are not a convenience: some instances cannot be won without one. Call a play monotone if , that is, if no charged loop is ever broken.
Proposition 3
Some winnable instance has no monotone winning play.
Proof
Let , with these three sets as the boards, a single source , and
The source reaches board only at and board only at . Writing for a disconnect, the play
wins: it lights from the source at , charges the battery loop , unplugs the source, relays energy through the freed socket by to charge the loop , dismantles the battery to free , installs the delivery , and relights from the now self-sustaining board by . The final wiring carries no source wire and energizes all three boards.
No monotone play wins. To close , board must be energized with free, so energy must enter at the spare . The only wire at is , so it arrives from , and must be energized yet free to carry . Board must therefore be lit while is free. The source meets that board only at , so it cannot light it without holding , and , still uncharged at this point, cannot deliver into it. So the board is lit by one of its own loops, and only avoids . Thus every win charges the loop , which uses . The only wire into board is , so the win must also deliver through . A monotone play never breaks , so stays occupied and can never be installed. Hence the instance is winnable but not monotone-winnable, and the battery is unavoidable.
0.A.4 Recharge-free plays and membership
The winning play above breaks a loop but never rebuilds one: each socket enters at most once. Call a play recharge-free if for every socket the set of steps with is an interval, so that once a loop through is broken, no loop through is ever charged again. Recharge-freeness is strictly weaker than monotonicity: it allows the discharges that Proposition 3 forces, but forbids charging any socket twice.
The charging macro.
Let be a charged wiring we will not disturb and a loop with a chosen closing wire . A support witness for over is a simple directed path with a valid wiring, both endpoints of free in it, and running from a source or a socket energized by to a socket off but on a board of .
Lemma 6 (Charging macro)
If is charged and is a support witness over , then can be charged in moves without disturbing .
Proof
Add the wires of and of . The witness makes this valid. Energy from ’s origin reaches its endpoint, and the arc carries it around every board of , so all their sockets are energized while both endpoints of stay free. Add : the cycle is present with all its sockets energized at the previous step, so it becomes sustaining by the recurrence of §A.1. Remove . The wires of remain, so stays charged. A simple path and a loop use wires.
Lemma 7
In a recharge-free play the loops that ever become charged are pairwise socket-disjoint. Hence at most loops are charged in all.
Proof
A socket carries at most one wire, so it lies on at most one loop at any step. If two loops charged at different steps shared a socket , then would leave when the first loop broke and re-enter it when the second charged, which recharge-freeness forbids. So the charged loops are pairwise socket-disjoint, and each uses at least two sockets.
Conjecture 1 (Recharge-free suffices)
Every winnable instance has a recharge-free winning play of length polynomial in .
Theorem 0.A.1
If Conjecture 1 holds, then Infinite Energy .
Proof
A play of polynomial length is verified in polynomial time (Proposition 2), so it is an NP certificate.
By Lemma 7 a recharge-free play charges only loops, each by an macro (Lemma 6). The content of Conjecture 1 is that the routes and discharges between these charges stay short, equivalently that a forced discharge never has to be undone. Across all instances with and several million further instances up to , every winnable instance had a recharge-free winning play, and no shortest winning play ever recharged a socket. Whether some family instead forces a recharge, and with it a superpolynomial minimal play, is open. Such a family would place Infinite Energy above NP and make the PSPACE bound of Theorem 5.1 close to tight.
Appendix 0.B Omitted proofs
Proof of Sufficiency in Theorem 2.1
Proof (of sufficiency)
Fix a source and a board with , labelling its sockets
Bootstrap. Wire (energizing ), then wire . The pair now forms a loop (wire , implicit edge ), and it is charged because is energized. Disconnect . The loop persists, so stays energized, and its remaining sockets are free and energized.
Figure 5: The construction behind sufficiency in Theorem 2.1. The boards fall into three groups: the single bootstrap board (green, any board with at least three sockets), the boards with (blue), and the singleton boards (orange). Here is the running pool of free energized sockets. (a) The initial instance, with . (b) Step 1 bootstraps a self-sustaining loop on . (c) Step 2 chains every board with , each net adding sockets to . (d) Step 3 spends one socket of per singleton, which never runs out exactly when .
Chaining. Maintain a pool of free energized sockets, initialized to the leftover sockets of . Process the remaining boards in order of non-increasing size. To energize a board , draw a wire from some to a socket . This consumes and but energizes all of , returning its other sockets to . The net increase to is .
Processing larger boards first means every board with (net change ) is handled before any singleton (net change ). When the first singleton is processed the pool has size , and the number of singletons is exactly . Their difference is by (i). Hence never empties prematurely, every board ends up energized, and no source is connected.
Proof of Lemma 1
Proof
contains at least one loop . Each socket of is incident to exactly one wire and one implicit edge, and the implicit edge joins it to its loop-neighbour on the same board. Hence every board meeting contributes at least two sockets to it. The sockets of are all wire-saturated, so for ever to have been charged, energy must have entered it through an implicit edge from a socket not on , lying on a board that also contains -sockets. That board has at least two -sockets plus this extra one, so , contradicting the assumption.
Proof of Lemma 2
Proof
In all remaining wires are socket–socket. Let be their number. Each wire uses two socket slots and each socket holds at most one, so .
Contract each board to a single node, turning each wire into a directed edge between board-nodes (an intra-board wire becomes a self-loop). Call the result , with exactly edges. Energy enters a board only through a wire into one of its sockets (implicit edges stay within a board), so every energized board has in-degree at least in . As all boards are energized, . Combining, , i.e. .
Proof of Lemma 3 (Completeness)
Proof
Let be a Hamiltonian path. Wire , energizing , then wire to form a charged loop, and disconnect . Now is self-sustaining and is free and energized.
Wire , energizing . For , the edge permits the wire , which energizes the next board. No source is connected and every board is energized, so is winnable.
Proof of Lemma 4 (Soundness)
Proof
Consider a winning final configuration : no source is connected, yet every board is energized. With no sources, all energy originates from charged loops. Recall (proof of Lemma 1) that any charged loop must contain a board with at least three sockets. The only such board is , so every charged loop uses an anchor socket. Since is not connectable to or , the only loop on is . Hence it is the sole source of energy, and the node boards carry no loop of their own.
Every node board is therefore energized by a directed path of wires and implicit edges starting at . The only wire leaving goes from (its single free socket) to one node board. Each node board has exactly two sockets, each holding at most one wire, so once energy enters a board through one socket it can leave only through the other. The energized region is thus a single simple path
visiting distinct node boards. As all boards are energized, the path visits every one, so is a permutation of . Each step uses a wire, which exists only when . Hence is a Hamiltonian path in .
Proof of Lemma 5
Proof
Membership is immediate (a path is a certificate). For hardness we reduce from the following form of grid-graph Hamiltonian path, which is NP-complete [10]: given a grid graph and two vertices on the outer boundary of its embedding, decide whether has a Hamiltonian – path. Boundary terminals are what the standard construction produces. The only feature of the instance we use is that and each have an empty orthogonally adjacent exterior cell. Let sit inside a bounding box. From route a self-avoiding path of new grid vertices: step first into that empty neighbour, then move through exterior cells that stay at least two cells away from every vertex of , out of the bounding box and up, ending in a tip strictly above the box. Staying two cells clear makes the new vertices adjacent only to one another (and to at the first step), so the arm is a chain of degree- vertices with a degree-one tip and creates no other adjacency with . Routing it above the box makes the strictly highest vertex. Attach a like arm to ending in a tip , routed through the exterior on the opposite side and kept two cells clear of the first arm so the two do not interfere. The augmented graph is a grid graph. Because each arm is a chain of degree- vertices, any Hamiltonian path of must traverse each arm end to end, and since have degree one they are forced to be the two endpoints. Deleting the arms turns a Hamiltonian path of into a Hamiltonian – path of , and conversely any such path extends through the arms. Hence , with highest and of degree one, has a Hamiltonian path with endpoint iff has one from to .
Proof of Theorem 6.2
Proof (sketch)
It suffices to treat , since any realization embeds in by padding with zeros. We reduce from Anchored Hamiltonian Path on a grid graph with (Lemma 5). Fix and threshold .
Node boards. For each grid vertex create a board . For adjacent vertices, horizontal or vertical, every socket pair is within : the farthest such pair is at distance . For diagonal vertices the nearest pair is at distance , and farther pairs are larger. Thus two node boards are connectable iff their vertices are grid-adjacent, and, as in Section 4, all four socket pairings between adjacent boards are available, so a Hamiltonian path can use distinct incoming and outgoing sockets at every internal board. (Intra-board pairings are immaterial: by Lemma 1 no two-socket board can sustain a charged loop.) Every node board has diameter .
Anchor and source. By Lemma 5 embed with its strictly highest vertex and place at the origin, so every other vertex has and the region is empty. Put , , , , with anchor board and source . One checks: (the anchor’s loop). , so connects to , while and are both and , so is not wireable to and reaches only . Every other node board lies at , at distance from all four points.
This matrix is realized in and matches the construction of Section 4 with the single change that is wireable only to . Hence the only anchor loop is , energy leaves only through into , and the degree-two node boards force a single simple path covering them all. The completeness and soundness arguments of Theorem 4.1 then go through, now with the path forced to start at : is winnable iff has a Hamiltonian path with endpoint . See Fig. 6 for an example reduction.
Proof of Theorem 3.2
Proof
Let with ones. Map to the instance with one board per bit:
Here and , giving
Moreover, when and some bit is , so some board has three sockets and the second condition of Theorem 2.1 holds automatically. When the size condition already fails. Thus the instance is accepted iff has a majority of ones. Each output board depends on a single input bit, so the map is a projection, and every projection is an AC0 reduction. Since Majority is TC0-complete under AC0 Turing reductions [13], and Unconstrained-Infinite Energy (Proposition 1), the problem is TC0-complete under AC0 Turing reductions.
Appendix 0.C Proof of Theorem 6.1
Proof
Write and pick , so that is positive semidefinite. Then is a Gram matrix: there are vectors with . Hence for all , and for , so
Choosing threshold separates the two cases: .
It remains to reduce the dimension. Translate by anchoring : set , so and for all . The threshold graph is unchanged. The lie in , a space of dimension at most . Identifying it with via an orthonormal basis realizes in . For further background, see standard sources such as [9, 12].
Remark 1
Theorem 6.1 is an existence statement about the matrix, so Corollary 1 classifies the variant whose input is a matrix promised to be realizable. The coordinates it produces are real and need not have polynomial bit-length. The fixed-dimension reduction of Theorem 6.2 is different: it outputs explicit rational coordinates (lattice points offset by , threshold ) of polynomial precision, so it is a reduction to the explicit-coordinate problem.
Appendix 0.D Example of the reduction

(a) Arbitrary grid graph on which a Hamiltonian Path must begin at the highlighted node. An edge exists between adjacent nodes on the grid.

(b) Corresponding game instance, where the dotted lines denote connectability governed by a distance threshold.
Figure 6: The reduction of Theorem 6.2, drawn schematically. (a) A grid graph whose Hamiltonian path must end at the highlighted degree-one terminal . (b) The game instance: each vertex becomes a two-socket board at its lattice point, so two boards are connectable (dotted lines, distance ) iff the vertices are grid-adjacent. The anchor board and source sit in an empty region beside and reach only ’s board. In the reduction proper (Theorem 6.2) is placed as the highest vertex with the anchor in the empty half-plane above it. Further examples are at https://infinite-energy-peer-review.netlify.app.
Appendix 0.E Extension: the color-constrained variant, and open directions
This appendix records the colored extension and the questions it raises. The only complexity result here is an easy inherited hardness, and the more interesting questions are open. We give the model, note NP-hardness, and explain why the colorless membership argument does not carry over.
Figure 7: A colored play. (a) The initial configuration. The rectangle on the top right of each board shows its color requirement , and the source cannot reach the lower one-socket board because forbids the wire (too far away). (b) In step 1 the source is wired into the board whose requirement is blue. In step 2 a loop is formed on that board. (c) In step 3 (dotted) the source is disconnected and in step 4 the now self-sustaining board energizes the lower board through a cross-board wire. Every board meets its requirement, so the instance is won.
We extend the colorless game of Section 1 with colors. The mechanic is the additive mixing of light: combining colored beams only ever adds primaries, never removes them, so mixing is modeled by union and named colors are abbreviations for subsets of primaries.
Color algebra.
Fix a finite set of primary colors . The figures use the three additive primaries red, green, and blue. A color is a nonempty subset of , and . Colors mix by union, , an operation that is commutative, associative, and idempotent. The familiar names label elements of :
We adjoin a distinguished symbol denoting the any-color requirement.
Instance.
Extending Definition 1, a colored instance adds to a colorless instance two maps:
- assigns a color to each power source.
- assigns a color requirement to each board.
Figure 8: Color mixing and propagation on a loop. (a) A socket on a board sustained by a purple loop exports purple. (b) A blue loop spanning four sockets on two boards. (c) Disconnecting the blue source and then connecting a red source turns the loop purple (), and the new color propagates to all four sockets and both boards. Panel (c) shows why the order of source connections and disconnections matters in the colored game.
Configurations, wires, implicit edges, loops, and the energized sets are exactly as in Section 1 and Appendix 0.A. Colors are on top of energization and do not affect which sockets are energized.
Color propagation.
Fix a play (energization is as in Appendix 0.A). Color accumulates along the play by the same flow, and transmission is gated by energization: a socket passes its color along an edge only while it is energized. For a socket , its color is the least solution of
i.e. the union of the colors of every source whose energy has reached at any point, propagated forward through wires, implicit edges, and around charged loops. We take this permanent-memory model: a socket keeps every primary it has ever received, so never shrinks, but by the gate it passes color on only while energized. For definiteness for a source , and for a socket never energized by step . Retaining a color while dark thus differs from transmitting one: on two singleton boards , wiring a red source to , unplugging it, then adding leaves colorless, because is dark when is present. A reset-on-de-energization variant is a different model with a different recurrence. The effective color of an energized board at time is
See Fig. 7 and 8 for examples.
Board satisfaction and the decision problem.
A board is satisfied at if it is energized in and its requirement is met exactly:
Colored Infinite Energy
Given a colored instance , does there exist a play whose final configuration connects no source yet leaves every board satisfied?
Hardness.
Proposition 4
Colored Infinite Energy is NP-hard.
Proof
Colorless Infinite Energy is the special case in which color is vacuous. Given a colorless instance , take a single primary , set for every , and for every . Then every energized board is satisfied, so the colored instance is winnable iff the colorless one is. The map is identity on and constant on , hence a polynomial-time (indeed projection) reduction. NP-hardness follows from Theorem 4.1.
Open problems.
The upper bound is open, and for a sharper reason than in the colorless case. There, whether a board is energized does not depend on the order in which sources are used, which is what the short-play route (Theorem 0.A.1, itself conditional) exploits. With colors the requirement is an exact match while color only accumulates (Fig. 8), so a board can be over-colored and never corrected. Meeting every requirement at once then constrains the order in which sources are connected and disconnected across the whole play, which the final configuration does not record. We leave three questions. (i) Is colored Infinite Energy in NP? (ii) Is it hard for a class above NP? It is in PSPACE by the state-space bound of Theorem 5.1, which applies verbatim once colors are added to the state. (iii) Does the reset-on-de-energization model differ in complexity from the permanent-memory one above?