Use case · Civic & elections

Elections you can recount.

Apportionment math lives in statutes, spreadsheets, and someone's R script — and when the result is contested, none of them is an audit trail. In Grid the allocation is a native audited kernel cross-checked against pure formulas in the same model, and a forecast is seeded — anyone can rerun it and get the same answer.

Grids
01 · The model

Monday morning, as source.

apportionment.gridgrid
votes = [100000, 60000, 20000]
house = 6

# native audited kernel
seats = APPORTION(votes, house, "d'hondt")
conserved = SUM(seats) = house

# gerrymander math, named
gap = EFFICIENCY_GAP(party_a_votes, party_b_votes)

This is adapted from a canonical model that builds the D'Hondt quotient table in pure Grid and calls the native kernel — and asserts they agree.

Not a demo. A working domain.

The canonical library ships D'Hondt apportionment and a reproducible election forecast — models a journalist, an official, and a rival campaign can all rerun.

More MondaysAll use cases