Experiments & connections
I folded the Good Will Hunting graph.
My obsession with harmonics started in a bar scene.
In Good Will Hunting, Sean and Lambeau are arguing about Will’s future. Somewhere in the middle of all that, Robin Williams says, “Specifically, bounded harmonic functions.” It was like an echo of an echo in my brain. Weird way to put it, I know, but those words stuck like a fly on flypaper.
Years later, I finally got a good look at the other bit of mathematics in that movie, the graph on the hallway blackboard. I looked at the four stations and immediately wanted to know if I could get away with drawing three. Oliver Knill’s Harvard Math 21b handout lays out the original graph and matrix solution.
A complicated sound can be separated into simpler tones. That’s one of the ideas in harmonic analysis, and a graph can be understood in much the same way: as a combination of simpler patterns. Some carry information our calculation needs. Others distinguish things that make no difference to its answer.
I wanted to know whether the difference between two stations was something I could let go of. Folding them together would change the network’s description; I would have to show that it preserved the count. This little graph gave me a concrete way into the question running through The Geometry of Sameness: when we change a description, what must stay the same?
The question on the board
Picture a board game with four places where a counter can stop. We’ll call them stations. Roads connect 1, 2, and 4 in a triangle, and two separate roads connect 2 to 3. Each road crossing costs one move. You can revisit a station or use a road again. Taking one of the two roads between 2 and 3 counts as a different walk from taking the other.
Put the counter at 1 and give yourself exactly four moves. How many walks finish at 3? Four moves is our first manageable case; eventually we want a rule that works for any number of moves. The circles and roads are what mathematicians call a graph, and this is a walk-counting problem.
A journey begins with somewhere to stand
Before folding anything, I want to be clear about what we are counting. Write down a possible journey: 1 → 2 → 1 → 2 → 3. There are five positions on that list and four crossings between them. A position is a visit in the journey; the repeated 1 and 2 do not mean we have built extra stations.
This is where Zero Does Not Exist enters the calculation. In that paper, I construct a counting system that retains a graph of connections along with the number of elements. Its simplest case is a chain: a count of n steps is represented by n + 1 positions joined in order. Before the first crossing, there is already one position—the place where the journey begins. Zero crossings does not mean there is no starting place.
The paper also gives a rule for joining chains. Take a two-crossing journey and another two-crossing journey that starts where the first ends. Each has three positions. Join them at the meeting position, counting that position once, and we get 3 + 3 − 1 = 5 positions: a four-crossing journey.
That lets us count our walks by cutting them in half. For each possible halfway station, multiply the number of ways to get there in two crossings by the number of ways to reach 3 in two more. The two roads between 2 and 3 count separately throughout.
| Halfway station | Ways there from 1 | Ways onward to 3 | Complete walks |
|---|---|---|---|
| 1 | 2 | 2 | 2 × 2 = 4 |
| 2 | 1 | 0 | 1 × 0 = 0 |
| 3 | 2 | 4 | 2 × 4 = 8 |
| 4 | 1 | 2 | 1 × 2 = 2 |
For instance, there are two ways to be back at 1 after two crossings: go through 2 or through 4. From 1, there are then two ways to reach 3 in two crossings, through 2 and along either final road. That row contributes four walks. Adding the rows gives 4 + 0 + 8 + 2 = 14. Every complete walk has exactly one halfway station, so each appears in exactly one row.
The path construction and the matrix calculation
Section 5 of Zero Does Not Exist defines the embedding φ(n) = Pn+1, where Pk is the canonical path with k vertices. Its path addition is Pa ⊕ Pb = Pa+b−1. Thus P₃ ⊕ P₃ = P₅. To represent a walk on the board, label the path positions by visited stations and choose a road for each crossing. The labels need not be distinct; parallel roads require separate edge choices.
These are two different graphs: the chain records successive positions in a journey; the board records which stations are connected. Joining compatible labeled chains gives ordinary walk concatenation. If A is the board’s adjacency matrix, the table above is (A⁴)₁₃ = ∑ₖ (A²)₁ₖ(A²)ₖ₃ = 14. The path construction gives a geometric interpretation of this standard matrix product.
At zero crossings, the single-position path can be placed at the chosen starting station in exactly one way. Thus a zero-crossing return count is 1, while a zero-crossing count between distinct stations is 0. Neither statement says that the underlying graph is absent. The paper’s exclusion of an empty geometric configuration concerns the domain of its objects; walk counts answer a separate question about those objects.
Now we know the answer using all four stations. The fold asks whether we can organize these same journeys with fewer labels. That takes us from joining paths to grouping the places they visit.
Which stations can become one group?
My geometric partition-counting paper asks how many ways a network can be divided into groups, with every group connected internally. Each station belongs to one group. A station on its own is allowed. A larger group must contain connecting roads between its members; it cannot borrow an outside station to connect itself.
There are 15 ways to divide four labeled stations into groups if we ignore the roads. On this board, 10 meet that connectedness rule. Grouping {1, 4} is allowed because they share a road. Grouping {1, 3} alone is not: their route goes through 2, which would be outside the group. Here, ten counts possible groupings of stations; fourteen counts complete journeys through them.
The paper already uses the operation we need next. In its proof for cycles, I join two adjacent vertices into one and track which connected partitions correspond before and after. This is called contraction. It gives a precise starting point for the fold: choose connected pieces and represent each piece by one label. The walk problem adds a further requirement—we must keep enough information to count journeys correctly.
Inspect all ten connected groupings
Braces enclose a group; a vertical bar separates groups. The grouping count ignores duplicate roads, because a second road does not change whether a group is connected. Road multiplicities return when we test walk counts.
| Number of groups | Connected partitions | Count |
|---|---|---|
| 4 | {1} | {2} | {3} | {4} | 1 |
| 3 | {1,2} | {3} | {4} {1,4} | {2} | {3} {1} | {2,3} | {4} {1} | {2,4} | {3} | 4 |
| 2 | {1} | {2,3,4} {1,2,3} | {4} {1,2,4} | {3} {1,4} | {2,3} | 4 |
| 1 | {1,2,3,4} | 1 |
Thus p𝔾(G) = 1 + 4 + 4 + 1 = 10. The partition polynomial, which also records the number of groups, is x⁴ + 4x³ + 4x² + x. Connected partitions and their interpretation as contractions are established objects; see Simon, Tittmann and Trinks, Section 3. The application here uses the connected-partition definition and contraction argument in my paper.
I noticed that 1 and 4 have the same relationship to the rest of this little network. Stand at either one: you have one road to 2 and one road to the other member of the pair. That suggested a smaller description, with a shared label S for {1, 4}. There would be three labels to keep track of: S, 2, and 3. The question was whether that description would still count correctly.
Try it below. Press Play this walk, then Fold 1 and 4 together and replay it. The left drawing shows the actual stations throughout. The right drawing shows the proposed simplification. Watch what happens when the counter crosses between 1 and 4.
Every walk starts at station 1 and takes exactly 4 road crossings.
There are 14 different complete walks ending at station 3. The totals count alternative walks; the animated dot follows just one of them.
What folding is allowed to change
A crossing from 1 to 4 becomes a loop at S. The counter has still taken one step: it has changed physical stations while staying inside the same group. Our five-position journey must still have four crossings after we change its labels.
This is the first piece of information the new unit must carry. S stands for two connected stations. Drawing it as one circle does not make their internal road disappear. The loop remembers that crossing, so grouping the stations does not shorten the journey.
We can use the shared label only if it gives us the right instructions wherever the counter actually is inside the pair. So let’s check. Count the roads from 1 into each proposed group, then do the same from 4:
| Starting place | Into {1, 4} | Into 2 | Into 3 |
|---|---|---|---|
| 1 | 1, to 4 | 1 | 0 |
| 4 | 1, to 1 | 1 | 0 |
The rows match. From either member of S, the same menu tells us how many choices lead into each group. After a crossing, we can use the menu for the group we arrive in. This lets the smaller description keep counting step after step.
Compare that with grouping {1, 2}. It is one of the ten connected groupings, but 1 has no direct road to 3 and 2 has two. A shared label would leave us unsure which instruction to use. Connectedness tells us the piece holds together; the matching menus tell us whether it can act as one state in this calculation.
We must also keep the number of choices on each arrow. From either individual station in S, there is one road to 2. From 2, there are two roads into S: one to 1 and one to 4. That is why the arrows in opposite directions carry different numbers. The loop has weight 1; both arrows between 2 and 3 have weight 2.
Those numbers make the fold useful. A route on the smaller drawing can stand for several original walks, and its arrow weights tell us how many. We can now count with three labels while keeping the choices that mattered on the four-station board.
Fourteen walks, three patterns
Return to the counter at 1. To finish at 3 on the fourth move, it must be at 2 after the third. The folded drawing makes the possibilities easy to organize:
- S → S → S → 2 → 3. Cross from 1 to 4 and back to 1, then go to 2. Choose either road to 3. The weights multiply to
1 × 1 × 1 × 2 = 2. - S → 2 → S → 2 → 3. Go to 2, take a side trip to either 1 or 4, return to 2, then choose either road to 3. This gives
1 × 2 × 1 × 2 = 4. - S → 2 → 3 → 2 → 3. Go to 2, then cross between 2 and 3 three times. Each of those crossings offers two roads:
1 × 2 × 2 × 2 = 8.
Altogether, 2 + 4 + 8 = 14—the same fourteen we obtained by joining two halves of each journey. We have reorganized the walks into three patterns without changing their total. A walk can pass through 3 early; its final stop is what decides whether it counts. Use Next walk in the experiment to inspect the fourteen original walks behind these three patterns.
That solves our first case. The next question is the mathematical one: did we find a convenient way to count fourteen, or a simplification we can trust for every walk length?
Turning the fold into a method
The matching-menu test has a name. A partition puts every station in exactly one group. It is equitable when stations in the same group have the same number of road choices into each group. The groups do not need to have equal sizes. The smaller graph built from them is a quotient graph. Chan and Godsil’s Symmetry and Eigenvectors, Sections 5–6, develops this theory.
Checking all fifteen partitions of this particular weighted board leaves just two that pass the equitable test: keeping every station separate, and grouping {1, 4} | {2} | {3}. Both are connected partitions. Our fold is therefore the only nontrivial equitable grouping available here. This is a result for this board, rather than a claim that every connected grouping works.
Our quotient is directed and weighted: each arrow specifies a destination and a number of choices. Simply merging the circles and discarding repeated roads would give the wrong calculation. Here is the complete table of choices that we actually keep:
| Start in | Into S | Into 2 | Into 3 |
|---|---|---|---|
| S = {1, 4} | 1 | 1 | 0 |
| 2 | 2 | 0 | 2 |
| 3 | 0 | 2 | 0 |
In matrix language, A records the original roads, B records this smaller table, and P records each station’s group. The equality AP = PB says that taking one original step and collecting destinations by group gives the same tally as using the smaller table. Repeating that equality proves AⁿP = PBⁿ for every number n of steps.
Here is the point that makes it answer our question: station 3 remains alone in its group. A tally into that group is therefore a tally into the exact station we wanted. Starting at station 1, we get the right count at every length. The proof explains why the agreement in the experiment continues beyond the walks we can reasonably watch.
Show the matrices and the proof for every walk length
Rows name starting places; columns name destinations. A uses the order 1, 2, 3, 4. B uses S, 2, 3. P is a membership table: a 1 says that the original station belongs to that group.
A = [0 1 0 1]
[1 0 2 1]
[0 2 0 0]
[1 1 0 0]
B = [1 1 0]
[2 0 2]
[0 2 0]
P = [1 0 0]
[0 1 0]
[0 0 1]
[1 0 0]
Multiplication gives the same four-by-three table both ways:
AP = PB = [1 1 0]
[2 0 2]
[0 2 0]
[1 1 0]
AP means: count one move between original stations, then collect the destinations by group. PB means: identify the starting group, then use its shared menu. The equality is the numerical certificate that both instructions agree.
Induction gives AⁿP = PBⁿ for every integer n ≥ 0: the zero-step case is P = P, and Aⁿ⁺¹P = A(AⁿP) = A(PBⁿ) = (AP)Bⁿ = PBⁿ⁺¹. Consequently, for u in Cᵢ,
∑v ∈ Cⱼ (Aⁿ)uv = (Bⁿ)ij.
The left side counts original walks into a whole destination group. Since {3} contains only one station, (Aⁿ)13 = (Bⁿ)S3. We never needed the starting counter to be spread evenly between 1 and 4. This holds starting at the specific station 1. It also holds starting at 4.
This is the standard equitable-partition identity applied to this graph. A finite replay checks the arithmetic; the induction proves the statement for every walk length.
Precise definition for a graph with weights or parallel roads
Let Auv count roads from vertex u to vertex v, and let π = {C₁, …, Cₘ} partition the vertices. The partition is equitable when, for every pair of cells Cᵢ and Cⱼ, the sum ∑v ∈ Cⱼ Auv is independent of the choice of u within Cᵢ. Call that common sum Bij. The matrix B is the quotient used here. For arbitrary nonnegative weights the same identity holds, with powers counting products of weights along walks instead of integer road choices.
For a general partition, averaging the row sums can still produce a smaller matrix, but it need not reproduce the original walk counts. Equality of the row sums within each cell is the condition that makes this calculation exact.
Find the grouping without spotting the symmetry
Keep 3 separate because it is the destination, and tentatively group {1, 2, 4} together. Stations 1 and 4 have no direct roads to 3; station 2 has two. Split off 2. The resulting groups {1, 4}, {2}, {3} pass the matching-menu test.
Repeating this splitting process on a larger graph is called partition refinement, described in Section 5 of Chan and Godsil’s survey. Equal total degree is insufficient: the counts into each group must match. Here, exchanging 1 and 4 also preserves the whole graph, a symmetry called an automorphism. Equitable partitions can exist without such a global symmetry.
We can also package all the counts into a single expression called a generating function. Think of it as a tally sheet: the coefficient of z² records two-step walks, the coefficient of z³ records three-step walks, and so on. Our first entries are 0, 0, 2, 2, 14, 18, 94, beginning at zero steps. The three-state calculation gives:
The coefficient of z⁴ in that fraction is our fourteen. The fraction records the entire sequence, so the smaller description gives us more than a single worked example.
Work out the fraction from the three stations
Let a, b, and c be the tallies as power series for walks ending at 3 that start at S, 2, and 3. Choose the first road, then count the rest of the walk. The factor z accounts for the step you just took.
a = z(a + b), b = 2z(a + c), and c = 1 + 2zb. The 1 is the zero-step walk that starts and ends at 3. The first and third equations give zb = (1 − z)a and c = 1 + 2(1 − z)a. Substitute those into the second equation multiplied by z. What’s left is (1 − z − 6z² + 4z³)a = 2z².
Replay the exact GIGI calculation
GIGI counts walks on the original graph, counts them again on the certified fold, and expands the rational function. All three calculations agree for lengths 0 through 128. At length 24, each gives 3,820,058,238.
cargo run --locked --features kahler --example good_will_hunting_walks -- 128
Inspect the saved replay, including the graph and all 129 counts.
The road weights are doing essential work. My counting papers are formulated for simple graphs, where a pair of stations has at most one connecting edge. For this application, we retain the multiplicity of roads as well. Compare three versions of the board:
| Roads on the board | Connected groupings | Four-crossing walks, 1 → 3 |
|---|---|---|
| Only one road between 2 and 3 | 10 | 4 |
| The movie’s two roads between 2 and 3 | 10 | 14 |
| Movie board, plus a second road between 1 and 2 | 10 | 40 |
The connected groupings remain the same because no new pair of stations becomes connected. The number of journeys changes because the choices change. In the last row, our fold also fails the matching-menu test: 1 now has two roads to 2, while 4 still has one. The partition count identifies possible connected pieces; the transition information decides which pieces support the exact calculation.
The scope of the connection to the counting papers
The geometric naturals in Zero Does Not Exist retain a positive vertex count and a connected simple graph, with the singleton included as a seed. Edge succession changes connections at fixed cardinality. The partition paper’s Subgraph Lattice Theorem compares connected-partition counts when edges are added on the same vertex set. Neither result alone certifies a weighted walk quotient.
The original movie board is a multigraph. The exact quotient has asymmetric transition weights and a loop, so it is not itself a simple graph in the papers’ original domain. Applying the framework here requires retaining those additional data. The simple connectivity graph supports the partition calculation; the weighted transition matrix supports the journey calculation.
Connectedness and equitability are independent requirements in general. Our {1, 2} example is connected but fails equitability. In a three-vertex chain a—b—c, grouping {a, c} | {b} is equitable but its first group is disconnected. Here we deliberately ask for both.
The question that breaks the fold
Now someone is waiting specifically at station 1, and the counter starts at 1 with exactly one move to make. How many walks end at that meeting place?
On the original board, the answer is zero. Every road leaves 1. On the folded board, the loop says there is one way to finish in S. That crossing actually ends at 4. The smaller map has answered “did I arrive somewhere in {1, 4}?” Calling its answer an arrival at 1 would be a mistake.
Try changing the destination to Station 1 in the experiment. The mismatch makes the lost information visible. The earlier proof still holds: it promises counts into groups. Our new question requires a distinction inside one of those groups.
If you then move the slider to eight crossings, the totals are 458 and 915. There are 458 different eight-crossing walks from 1 back to 1, and another 457 from 1 to 4. The folded total adds them: 458 + 457 = 915. Each walk uses exactly eight crossings. The larger number counts more alternative walks because it accepts either destination; it does not mean that one counter has taken 915 steps. With destination 3 selected instead, both totals are 638.
The partition paper lets us describe another loss exactly. Once 1 and 4 share the label S, we can no longer put them in separate groups. If we look only at connectivity, the smaller board is the chain S—2—3. It has four connected groupings:
Try the ten groupings below. Watch stations 1 and 4 slide together. Four groupings can give S a single group; the other six would give it two conflicting memberships. Select any grouping to inspect the reason: do 1 and 4 already belong to the same group, or would the single label S have to belong to two different groups?
Drag the slider to stop anywhere in the movement. Replay follows the selected grouping.
Faded groupings stay available to inspect. “Disappears” means the smaller description cannot express that grouping. These drawings show connectivity only: duplicate roads and the internal loop do not affect this grouping count. Letters and colors mark groups, not stations that have physically merged.
Read the four surviving groupings as a table
| On the smaller board | What it means on the original board |
|---|---|
| S | 2 | 3 | {1, 4} | {2} | {3} |
| {S, 2} | 3 | {1, 2, 4} | {3} |
| S | {2, 3} | {1, 4} | {2, 3} |
| {S, 2, 3} | {1, 2, 3, 4} |
Those are exactly the original groupings that keep 1 and 4 together. The other six separate them. So the fold takes 10 connected groupings to 4, even while it keeps 14 four-crossing walks to station 3 at 14. These are different questions about the same network. We can say precisely which answer survives and which distinctions have been lost.
Why the four surviving groupings correspond exactly
For a connected partition π, form the ordinary contracted connectivity graph G/π, dropping loops and duplicate edges for this connectivity calculation only. A connected grouping of contracted vertices lifts to the union of their original blocks. Those blocks are connected internally, and the quotient’s connecting edges join them, so the union is connected. Conversely, a connected original group that is a union of whole π-blocks projects to a connected quotient group. The two operations undo each other.
Thus the connected partitions of G/π correspond exactly to the connected partitions of G that are coarser than π: they may join its blocks but never split one. This is the contraction correspondence used in the cycle proof, applied here to π = {{1, 4}, {2}, {3}}. It is distinct from the weighted quotient identity that preserves walk counts.
An exhaustive check covered all 15 partitions of the movie board. The general contraction correspondence was also checked on all 772 connected labeled simple graphs with one through five vertices, covering 19,353 connected partitions. These finite checks support the implementation; the correspondence argument gives the general proof. Inspect the exact enumeration and numerical checks.
This is why I wanted to show both drawings. Stations 1 and 4 never become the same physical place. They are interchangeable starting states for counting onward walks to 3. A meeting at 1 gives their separate identities a job to do again.
Why this belongs in The Geometry of Sameness
The two papers now have distinct jobs in the story. Zero Does Not Exist supplies the path construction we used to assemble journeys. The partition paper supplies connected groupings and the contraction correspondence. The equitable condition tells us when a grouping can carry the walk calculation forward exactly. Together they make the book’s central question concrete: what must a description retain for the question we are asking?
Chapter 14 makes the same issue tangible with a straight bar. Mark one end, then cover the mark. The bar still has an axis, but the unmarked picture no longer tells you which end you chose. A half-turn returns the axis to the same position while exchanging the ends.
Put an arrow on that horizontal bar. Pointing right is v = (1, 0); pointing left is −v = (−1, 0). If we ask how well the bar’s axis aligns with the horizontal, squaring the horizontal component gives 1² = 1 and (−1)² = 1. If we ask whether the marked arrow points right, the unsquared values 1 and −1 distinguish the answers.
In both examples, we have to name the measurement before deciding which differences to erase. The line description can forget the arrow’s sign when comparing axes. The folded graph can forget the distinction between 1 and 4 when counting arrivals at 3. A question about the marked end or the particular meeting place needs information those descriptions leave out.
The precise connection—and why this graph fold is not a double cover
If q maps detailed states to their reduced descriptions, a measurement f can be read from the reduced description exactly when f = f̄ ∘ q for some function f̄. Equivalently, f must have the same value on every set of states that q identifies. For this graph, take fₙ(i) = (Aⁿ)i3. The equitable-partition identity establishes that fₙ is constant on each cell for every n.
For unit planar arrows, identifying v with −v gives the double cover S¹ → ℝP¹ discussed in Chapter 14. Every unoriented axis has two arrow representatives, with the required local covering structure. The graph map here has two vertices over S and only one over each of 2 and 3. It is a symmetry quotient, not that double-cover construction. The common principle is a measurement surviving an identification; the mathematical objects remain distinct.
We can now put numbers to the pattern the fold leaves out: +1 at station 1, −1 at station 4, and zero at 2 and 3. Applying the graph’s adjacency matrix reverses that pattern. It is a mode of the graph that the count at station 3 does not see. The fold removes this mode from the calculation; the canceled factor in the generating function records the same fact algebraically.
The mode that disappears, in numbers
With coordinates ordered 1, 2, 3, 4, set u = (1, 0, 0, −1)ᵀ. Direct multiplication gives Au = −u. The group-constant vectors have the form (a, b, c, a)ᵀ; they form the three-dimensional subspace represented by P. Its orthogonal complement is the line spanned by u.
Thus det(I − zA) = (1 + z) det(I − zB), and det(I − zB) = 1 − z − 6z² + 4z³. The omitted mode has zero coordinate at station 3. Its contribution to the 1 → 3 entry of the inverse is zero, explaining the cancellation of 1 + z in that entry. The full graph still has that mode; this particular measurement does not see it.
The connection here is through symmetry and eigenvectors; this finite graph calculation is not a solution to a bounded-harmonic-function problem. What it gives me is a small, exact example of the discipline the book develops: say what the observation must retain, then check whether a different description retains it.
From the Russian geometry books to ICARUS
In Delone and Zhitomirsky’s Geometry Problem Book, Problem 375 asks for the common points of three spheres. Here is a numerical example of the ambiguity that construction can leave. Put three measuring stations at (0, 0, 0), (2, 0, 0), and (0, 2, 0). A transmitter at (1, 1, 1) or (1, 1, −1) gives the same three squared distances: (3, 3, 3). The readings preserve distance to those stations but cannot tell us which side of their plane the transmitter occupies. A fourth station at (0, 0, 2) distinguishes these two candidates: its squared distance is 3 for the first and 11 for the second.
That is the same test we applied to the fold: if two possibilities receive the same description, can the question still tell them apart? Distance to the first three stations survives. Which side of the plane we occupy does not. The construction is classical; this comparison with the graph is my reading of it. The source is the 1949 edition, statement p. 40 and solution p. 232.
In the GIGI × ICARUS experiment, two opposite unit quaternions, q and −q, likewise describe one physical orientation. A sign change in the stored coordinates alone is no evidence that the aircraft turned. The experiment also uses an actual bounded holomorphic field, whose real and imaginary parts are harmonic. Additional readings narrow the possible field values and the resulting drift allowance. That is an inference problem under explicit assumptions, rather than the exact walk-counting reduction on this board.
Vygodsky’s Handbook of Higher Mathematics provides another useful check: local differential rules and global path independence require separate attention (§433 and §§474–476 in the 1977 edition). We cannot infer a globally compatible field just by pairing two arbitrary sensor readings. In each setting, the representation earns our trust through the conditions we check.
The same preservation question in a sensor display
That discipline matters in engineering too. Suppose a telemetry display stores only the average of two sensors. Readings (20, 30) and (25, 25) both become 25. The average survives perfectly. An alarm that must notice an individual reading above 28 cannot be reconstructed from that average alone. Just as with the meeting at station 1, the lost distinction matters because of the question being asked.
A useful representation therefore comes with a statement of what it preserves. On this graph we can prove that statement exactly. For learned representations or noisy measurements, we need assumptions and error bounds appropriate to those systems. The board game makes the requirement visible before those complications enter.
Where this solution fits
My route was to notice the symmetry, build a smaller description, and establish which answer it preserves. It leads to the same exact result as working with all four stations. Oliver Knill’s treatment uses the original adjacency matrix; Ben Lynn’s recurrence derivation obtains the same reduced generating function. Equitable partitions and quotient graphs are established mathematics.
The gain here is concrete: four state variables become three, and the drawing explains which distinction the calculation can discard. We can establish something stronger for this particular question: three is the smallest number of state variables in a fixed linear update rule that generates the entire 1 → 3 count sequence. A two-state rule of that kind cannot do it. This is a precise limit on further reduction within that class of calculation; practical speed still requires measurement.
Why two linear state variables cannot generate all these counts
Let aₙ = (Aⁿ)₁₃. The first five values are 0, 0, 2, 2, 14. Arrange overlapping triples in a matrix:
H = [a₀ a₁ a₂] [0 0 2]
[a₁ a₂ a₃] = [0 2 2]
[a₂ a₃ a₄] [2 2 14]
det(H) = −8
Suppose a fixed d-dimensional linear state model produces aₙ = cᵀMⁿb. Then Hᵢⱼ = cᵀMⁱMʲb factors through that d-dimensional state space, so rank(H) ≤ d. Its nonzero determinant gives rank(H) = 3, hence d ≥ 3. Our quotient supplies a three-dimensional realization, so the bound is attained.
Equivalently, the quotient gives aₙ₊₃ = aₙ₊₂ + 6aₙ₊₁ − 4aₙ, with initial values 0, 0, 2. This proves minimality for fixed linear state realizations of the complete sequence starting at n = 0. It makes no claim about all nonlinear algorithms or the work required to calculate one selected term.
In the sources checked, I did not locate an earlier explanation explicitly drawing this particular fold {1, 4}, {2}, {3} for the movie’s walk problem. That leaves a narrow historical question open; it does not establish priority. I present this as an exact application of known theory, approached through the question of what a representation must preserve.
Compare exactly what the two descriptions can do
| Question | What this fold establishes |
|---|---|
| Is the answer more accurate? | Both exact methods give 14 at four steps, and agree at every length for the count from 1 to 3. |
| Is the calculation smaller? | Yes: four station variables become three; a 4 × 4 transition matrix becomes 3 × 3. |
| Is it faster in practice? | That requires measurement. Finding and checking a partition also takes work. This article makes no measured speed claim. |
| Does it answer every original question? | It preserves counts into the retained groups. It does not by itself recover separate arrivals at 1 and 4 or the full original all-pairs walk matrix. |
| What does the drawing explain? | Which distinction we can remove, which arrow weights we must retain, and why the omitted mode cannot affect the count to 3. |
What was searched, and what that search can establish
Research checked November 11, 2026. Searches combined “Good Will Hunting” with “equitable partition,” “quotient graph,” “symmetry,” “walks,” “fold,” and “merge.” The review compared Knill’s matrix solution, Lynn’s recurrence derivation, Chan and Godsil’s theory, and the research linked below. Lynn’s separate Better than Will Hunting concerns the film’s other problem, counting trees; it is not evidence for this walk-counting fold.
This is a focused literature and web search, not an exhaustive priority review. It cannot exclude unindexed lecture notes, differently named presentations, unpublished work, or sources we could not access. The algebra establishes correctness independently of that historical uncertainty.
Earlier theory and possible next research questions
Powers and Sulaiman’s 1982 paper, The walk partition and colorations of a graph, studies walk-based partitions and matrix characterizations of equitable partitions. Together with the Chan–Godsil survey, it places this example within a long-established subject. These references are not an attribution of the entire subject’s invention.
A further contribution would need a specified advance over existing methods: a new preservation theorem, an algorithm with a proved advantage, or a measured improvement on a defined application. Automatic partition finding already exists. For GIGI, proposed comparisons include which queries it can certify for a smaller representation, how certificates behave when a graph changes, and their cost against existing approaches. The replay above checks this example; it does not establish those broader advances.
Where the same idea is useful: probabilities, networks, and embeddings
Counting without carrying every label. Our board game is one example. A network can have many vertices but relatively few groups with matching menus. When the required output is a group total, powers of a smaller quotient matrix can supply exact answers. The savings depend on the size of the quotient and how many calculations reuse it.
Following probabilities. Suppose the counter chooses an outgoing road at random, with every road at its current station equally likely. We now ask for the chance of reaching a group, rather than the number of possible walks. The corresponding condition is lumpability: each station inside a group must give the same total probability of moving into every other group. Kemeny and Snell’s Finite Markov Chains, Section 6.3, states and proves this criterion.
The probability version of this same board game
Divide each original row by its total number of roads. Stations 1 and 4 have two roads each, station 2 has four, and station 3 has two. The quotient probabilities, in order S, 2, 3, are:
Q = [1/2 1/2 0 ]
[1/2 0 1/2]
[ 0 1 0 ]
From S, half the probability stays in S and half goes to 2. From 2, half enters S and half goes to 3. Every row totals 1. If T is the original probability matrix, then TP = PQ. The same induction preserves probabilities of landing in each group. B and Q answer different questions: B counts choices; Q gives probabilities.
Understanding groups that move together. In networks of interacting oscillators, researchers use related partitions to describe clusters that synchronize. Schaub and colleagues’ 2016 paper develops this using external equitable partitions and graph Laplacians, which encode differences between connected states. The precise condition follows the dynamics being modeled; our walk-counting identity alone is not a guarantee of synchronization.
Representing similar roles in data. Two vertices can play similar structural roles even when they are far apart. Squillace and colleagues’ 2024 work uses approximate equitable partitions to build network embeddings: smaller numerical descriptions for tasks such as classification and regression. Allowing approximate menu matches changes the guarantee. Our exact proof does not automatically extend to a noisy or approximate fold.
Comparing structure across graphs. Different networks can share a quotient even though their individual vertices and edges differ. Cançado and Coutinho’s 2024 paper studies shared quotients and their connections to fractional isomorphisms and stochastic matrices. This gives a precise setting for asking in what respect two different networks behave alike.
Look once more at the two maps. We began with a starting position, joined crossings into journeys, and counted fourteen ways to finish at 3. Then we grouped connected stations, kept the internal crossing and every road choice, and counted those same fourteen journeys with three labels. The answer survived because we checked the relationships it depends on. That is what makes the fold a solution.
Preview the Chapter 24 illustration
