The science
Schelling (1971). A household is happy if the fraction of like occupied neighbours, s = same / (same + other) over its 8 Moore neighbours, is at least the tolerance t. Unhappy households relocate to a random vacancy.
The surprise: even t = 3/8 (content in a 62% mixed street) produces a mean like-neighbour share far above the 0.5 expected for a random mix. Micro motives do not equal macro behaviour.
The check list compares the random-start mean share with its exact expectation (N_g - 1)/(N - 1) summed over groups and verifies bookkeeping with a brute-force recount.
Simplifications: two groups, square grid with wrap-around edges, random relocation with no costs or prices, no income or housing market. It shows a mechanism, it does not describe any real city.