Balanced Spanning Tree Distributions Have Separation Fairness

Harry Chen, Kamesh Munagala, Govind S. Sankar · DOI

Introduction

In the mathematics of democracy, algorithms are increasingly used to detect gerrymandering. However, a critical question remains: can we trust the "fair" maps these algorithms generate? This paper introduces separation fairness, providing a theoretical foundation for the tools currently used by expert witnesses in U.S. courtrooms. The authors demonstrate that the widely used balanced spanning tree distribution satisfies this property, ensuring that redistricting algorithms do not systematically "crack" communities by always separating adjacent neighbors.

The Problem: Are "Unbiased" Ensembles Actually Fair?

Redistricting is often prone to gerrymandering, where parties "pack" or "crack" voters to dilute their influence. To combat this, mathematicians use Monte Carlo Markov Chain (MCMC) methods to generate thousands of random, "unbiased" maps. If a proposed map is a wild outlier compared to this ensemble, it is flagged as gerrymandered.

However, if an algorithm produces maps that always separate two neighboring precincts, it might inadvertently crack a community of interest. The authors formalize this as separation fairness: a distribution is $\alpha$-fair if any two adjacent precincts remain in the same district with at least some constant probability $\alpha > 0$. Until now, it was unclear if the distributions used in practice, such as those constrained by population balance, met this standard.

Methodology

The researchers focused on the $\lambda$-smooth spanning tree distribution on $m \times n$ grid graphs for two-district partitions ($k=2$). This distribution is the theoretical core of the popular ReCom (Recombination) algorithm, favoring compact districts while penalizing population imbalance.

To prove fairness, the authors developed several technical tools:

  • Dual Graph Cycles: District boundaries were modeled as cycles on a dual graph.
  • Modified Wilson’s Algorithm: An adaptation of the classic algorithm for generating random spanning trees was used to sample boundary cycles directly.
  • Local-Interchangeability Lemma: The authors proved that if a map separates two neighbors $u$ and $v$, a "local surgery" on the boundary can always put them back in the same district without violating connectivity or population balance constraints.

Empirical Validation and Key Results

The paper combines theoretical proofs with empirical validation on synthetic $50 \times 50$ grids and real-world precinct maps from North Carolina ($k=14$) and Pennsylvania ($k=18$).

Distribution of separation probabilities for edges in a 50x50 grid, showing a maximum separation probability of 0.33.

The main theoretical result (Theorem 1) proves that for any constant population balance constraint, the distribution is $f_\lambda$-fair. Empirically, the authors found that the probability of neighbors staying together was consistently high. In tests on North Carolina and Pennsylvania, the empirical probability of neighbors staying together was $\geq 0.6$, suggesting that real-world audits are even fairer than conservative theoretical bounds suggest.

Empirical separation probabilities for a real-world precinct graph, demonstrating that most edges have a very low probability of being separated.

Discussion and Limitations

The authors found a natural tension between compactness and fairness. While extreme compactness might "freeze" boundaries, the spanning tree distribution is sufficiently random to avoid this. Furthermore, the probability of separating multiple edges decays exponentially with distance, suggesting that the algorithm's behavior is local and lacks problematic long-range correlations.

Despite these advances, challenges remain. The current proof relies heavily on the geometry of grid graphs and is limited to 2-district partitions. Extending these results to irregular planar graphs and larger numbers of districts ($k > 2$) remains a subject for future work, as does proving fairness for distributions with exact population balance constraints.

Conclusion

By proving that balanced spanning tree distributions satisfy separation fairness, this work provides a mathematical "seal of approval" for popular auditing tools like ReCom. It ensures that the ensembles used to detect gerrymandering are not themselves biased toward cracking communities, strengthening the role of mathematical evidence in the pursuit of fair representation.

Summary updated

BibTeX
@inproceedings{chen2026balanced,
  author = {Harry Chen and Kamesh Munagala and Govind S. Sankar},
  title = {{Balanced Spanning Tree Distributions Have Separation Fairness}},
  booktitle = {SODA},
  year = {2026},
  doi = {10.1137/1.9781611978971.84},
}
Figure