Hecke mass kernel
Follow two swarms through the same graph with the primes in opposite orders. Select a thread to trace its two arrows from the outside to the middle.
Two Hecke walks

Each order lands 16 paths at A, 40 at B and 16 at C (72 total).
Read the paths
Both swarms start at the same class. A prime p gives each path p + 1 ways to continue. The first swarm follows p then q. The second takes them in reverse. Each colored thread finishes one two-step walk. Its color tells you where it ends. Select a thread to inspect both arrows, or focus the drawing and use the arrow keys.
These recorded Hecke operators commute. You can see what that means by comparing the two arrival counts for each class. Cut one arrow to remove a single entry from the first prime’s neighbor table. Both swarms then use that same edited table.
Inspect the level-11 graph
Two arrows leave curve A and land on B. Each arrow is a distinct 2-isogeny between elliptic curves in characteristic 11. Collapse repeated destinations to see how the balance changes.
| To A | To B | |
|---|---|---|
| From A | ||
| From B |
Select a node to trace its outgoing arrows. Select a matrix cell to change its count.
Do the flows balance?
The curves have 4 and 6 symmetries. Their reciprocal weights add to a class mass of 5/12. Dividing by that mass gives A three fifths of the weight and B two fifths. To get the flow between them, multiply each weight by the fraction of its outgoing arrows that cross to the other curve.
The weighted flows are equal.
Replay the Lean fixtures
The Rust kernel running in this page can also replay the reference inputs and results generated by Lean. Each check compares a class mass or Hecke coefficient as an exact fraction.
The companion article follows the two sums back to their Lean definitions. The kernel source includes the Rust and C implementations and the worked graph example.