Algorithm Search⌘K

Algorithmcore

Huntington-Hill method

Also called method of equal proportions.

A divisor method that rounds each quota at the geometric mean of consecutive integers. The US House of Representatives uses it.

Time
O(n + h log n) worst
Space
O(n) extra
Where
h = the number of seats; n = the number of states
Properties
comparison baseddeterministiciterative
Origin
Joseph A. Hill, Edward V. Huntington, 1911

The Huntington-Hill method apportions hh seats among nn states in proportion to their populations, and gives every state at least one seat. It is the divisor method that rounds each quotient at the geometric mean a(a+1)\sqrt{a(a + 1)} of the two integers around it. In the highest averages form, each seat after the first nn goes to the state with the largest priority pi/ai(ai+1)p_i/\sqrt{a_i(a_i + 1)}. The US House of Representatives has used it since 1941.

In plain words

Every state first gets one seat. The other seats are then given one at a time. For each state, compute a priority number: its population divided by the square root of its seats times its seats plus one. The next seat goes to the state with the highest priority, and that state's priority then drops. This is the same as finding a number of people per seat such that, when each population is divided by it and rounded, the seats add up to the house size. The rounding point between two whole numbers is not the midpoint but a little below it, which helps small states a little.

The problem

The input is the populations p1,…,pn≥0p_1, \ldots, p_n \ge 0, integers with sum P>0P > 0, and the number of seats h≥nh \ge n. The output is integers ai≥1a_i \ge 1 with ∑iai=h\sum_i a_i = h. The quota of state ii is qi=hpi/Pq_i = h p_i / P. See the apportionment problem for the setting and the other methods.

In divisor form, the method finds a divisor λ>0\lambda > 0 and gives state ii the number pi/λp_i/\lambda rounded at the geometric mean: a number xx with a<x<a+1a < x < a + 1 rounds up when x>a(a+1)x > \sqrt{a(a + 1)}. Since 0⋅1=0\sqrt{0 \cdot 1} = 0, every state with pi>0p_i > 0 gets at least one seat. The highest averages form gives one seat to each state and then each further seat to the state with the largest pi/ai(ai+1)p_i/\sqrt{a_i(a_i + 1)}, ties to the smallest index. The two forms give the same apportionments.

The algorithm

The algorithm is the one of the D'Hondt method, with a different start and other divisors. To avoid square roots, a priority queue holds the squared priorities pi2/(ai(ai+1))p_i^2/(a_i(a_i + 1)), and two keys si/dis_i/d_i and sj/djs_j/d_j are compared by the integers sidjs_i d_j and sjdis_j d_i.

  1. HUNTINGTON-HILL(p, h) ▷ p = (p_1, ..., p_n) populations, h seats
  2. 1if h < n then fail ▷ every state needs one seat
  3. 2a_i ← 1 for each i
  4. 3Q ← a max-priority queue of the states, with keys p_i^2 / 2
  5. 4repeat h - n times
  6. 5i ← extract from Q the largest key, the smallest index among ties
  7. 6a_i ← a_i + 1
  8. 7insert i into Q with key p_i^2 / (a_i (a_i + 1))
  9. 8return a

Each pass of lines L4 to L7 gives one seat. Since the priorities are not negative, the order of their squares is the order of the priorities.

Example

Four states have populations 100000, 80000, 30000 and 20000, and h=8h = 8 seats are to be filled. Each state first gets one seat. The table lists the priorities pi/a(a+1)p_i/\sqrt{a(a + 1)}, rounded for display; the numbers in bold get seats 5 to 8, in the order given in brackets.

seats so far aa state 1 state 2 state 3 state 4
1 (2\sqrt{2}) 70711 (5) 56569 (6) 21213 14142
2 (6\sqrt{6}) 40825 (7) 32660 (8) 12247 8165
3 (12\sqrt{12}) 28868 23094 8660 5774

The result is (3,3,1,1)(3, 3, 1, 1), the same as the Sainte-Lague method and Hamilton's method give. In divisor form, λ=30000\lambda = 30000 works: 100000/30000≈3.33100000/30000 \approx 3.33 and 80000/30000≈2.6780000/30000 \approx 2.67 lie between 6≈2.45\sqrt{6} \approx 2.45 and 12≈3.46\sqrt{12} \approx 3.46, so they round to 3, and 11 and 0.670.67 lie below 2\sqrt{2}, so they round to 1. With h=4h = 4 the method gives (1,1,1,1)(1, 1, 1, 1), while the Sainte-Lague method gives (2,1,1,0)(2, 1, 1, 0) and the D'Hondt method gives (2,2,0,0)(2, 2, 0, 0).

Correctness

The proof shows that the heap picks the same state as the greedy rule, and that the squared keys of the seats never increase. So the largest squared key left at the end, ℓ\ell, is at most u=min⁡ai≥2pi2/((ai−1)ai)u = \min_{a_i \ge 2} p_i^2/((a_i - 1) a_i), and for every MM strictly between them, λ=M\lambda = \sqrt{M} puts each pi/λp_i/\lambda strictly between (ai−1)ai\sqrt{(a_i - 1) a_i} and ai(ai+1)\sqrt{a_i(a_i + 1)}. The proof also shows Huntington's pairwise test, house and population monotonicity, and checks the quota violation below.

Proof: Correctness and properties of the Huntington-Hill methodfull

Let p1,…,pn≥0p_1, \ldots, p_n \ge 0 be integers with P=∑ipi>0P = \sum_i p_i > 0, and let h≥nh \ge n. The quota of state ii is qi=hpi/Pq_i = h p_i / P. The greedy rule gives every state one seat and then gives the other h−nh - n seats one at a time; each goes to the state with the largest priority pi/ai(ai+1)p_i / \sqrt{a_i (a_i + 1)}, where aia_i is its current number of seats, the smallest index among ties.

Claim 1 (exact comparison). The method of the page gives the same seats as the greedy rule, with no square roots.

Proof. Priorities are nonnegative, so x≥yx \ge y exactly when x2≥y2x^2 \ge y^2. The heap compares the squares pi2/(ai(ai+1))p_i^2 / (a_i (a_i + 1)) and pj2/(aj(aj+1))p_j^2 / (a_j (a_j + 1)) by the integers pi2 aj(aj+1)p_i^2 \, a_j (a_j + 1) and pj2 ai(ai+1)p_j^2 \, a_i (a_i + 1), and breaks ties by the smaller index. After line L3 it holds the key of each state for ai=1a_i = 1, and lines L5 to L7 replace the key of the winner by its key for the new aia_i. So line L5 removes the state that the greedy rule picks.

Claim 2 (divisor form). Let ℓ=max⁡ipi2/(ai(ai+1))\ell = \max_i p_i^2/(a_i (a_i + 1)) and u=min⁡i:ai≥2pi2/((ai−1)ai)u = \min_{i : a_i \ge 2} p_i^2/((a_i - 1) a_i) (or u=∞u = \infty if no ai≥2a_i \ge 2). Then ℓ≤u\ell \le u. If ℓ<u\ell < u, then for every MM with ℓ<M<u\ell < M < u and λ=M\lambda = \sqrt{M}, each aia_i is pi/λp_i/\lambda rounded at the geometric mean: (ai−1)ai<pi/λ<ai(ai+1)\sqrt{(a_i - 1) a_i} < p_i/\lambda < \sqrt{a_i (a_i + 1)}, where the left bound is 0 for ai=1a_i = 1. Conversely, every vector b≥1b \ge 1 with sum hh that comes from such a rounding for some λ\lambda satisfies the same inequalities, so the output is the only Huntington-Hill apportionment when ℓ<u\ell < u.

Proof. The squared keys of the seats given after the first nn never increase, because a seat changes only the key of its winner, to a smaller value. So every such key is at least the largest key at the end, which is ℓ\ell. The last seat of a state with ai≥2a_i \ge 2 had the key pi2/((ai−1)ai)p_i^2/((a_i - 1) a_i), so u≥ℓu \ge \ell. If ℓ<M<u\ell < M < u, then pi2/M<ai(ai+1)p_i^2/M < a_i (a_i + 1) for every ii and pi2/M>(ai−1)aip_i^2/M > (a_i - 1) a_i when ai≥2a_i \ge 2; take square roots. The uniqueness argument is the one of the D'Hondt method with (b−1)b\sqrt{(b - 1) b} and b(b+1)\sqrt{b (b + 1)} in place of bb and b+1b + 1: if b≠ab \ne a, some bi>ai≥1b_i > a_i \ge 1 and some bj<ajb_j < a_j, and then Mb≤pi2/((bi−1)bi)≤pi2/(ai(ai+1))≤ℓM_b \le p_i^2/((b_i - 1) b_i) \le p_i^2/(a_i (a_i + 1)) \le \ell and Mb≥pj2/(bj(bj+1))≥pj2/((aj−1)aj)≥uM_b \ge p_j^2/(b_j (b_j + 1)) \ge p_j^2/((a_j - 1) a_j) \ge u, which contradicts ℓ<u\ell < u.

Claim 3 (Huntington's pairwise test). For any two states i≠ji \ne j with ai≥2a_i \ge 2, moving one seat from ii to jj does not lower the relative difference of their representations. Here state kk has rk=ak/pkr_k = a_k/p_k seats per person, and the relative difference of x,y>0x, y > 0 is max⁡(x,y)/min⁡(x,y)−1\max(x, y)/\min(x, y) - 1.

Proof. By Claim 2, pj2/(aj(aj+1))≤ℓ≤u≤pi2/((ai−1)ai)p_j^2/(a_j (a_j + 1)) \le \ell \le u \le p_i^2/((a_i - 1) a_i), that is,

(ai−1)aipi2≤aj(aj+1)pj2.(1)\frac{(a_i - 1) a_i}{p_i^2} \le \frac{a_j (a_j + 1)}{p_j^2}. \tag{1}

Let x=ai/pix = a_i/p_i, y=aj/pjy = a_j/p_j, x′=(ai−1)/pi<xx' = (a_i - 1)/p_i < x and y′=(aj+1)/pj>yy' = (a_j + 1)/p_j > y. First, y′≥x′y' \ge x': otherwise x>x′>y′>yx > x' > y' > y, and multiplying xx′>y′yx x' > y' y contradicts (1). So after the move the ratio is y′/x′y'/x'. If x<yx < y, the ratio before is y/x<y′/x′y/x < y'/x'. If x≥yx \ge y, the ratio before is x/yx/y, and y′/x′≥x/yy'/x' \ge x/y is yy′≥xx′y y' \ge x x', which is (1).

Claim 4 (house and population monotone). The seats for h+1h + 1 are those for hh plus one seat. If pi′≥pip'_i \ge p_i and pj′≤pjp'_j \le p_j, then ai′<aia'_i < a_i and aj′>aja'_j > a_j cannot both hold, unless one of the two apportionments has ℓ=u\ell = u.

Proof. The first part holds because the greedy rule for h+1h + 1 repeats the steps for hh. For the second, take M∈[ℓ,u]M \in [\ell, u] for pp and M′∈[ℓ′,u′]M' \in [\ell', u'] for p′p'. If ai′<aia'_i < a_i and aj′>aja'_j > a_j, then ai≥2a_i \ge 2 and aj′≥2a'_j \ge 2, and

M′≥pi′2ai′(ai′+1)≥pi2(ai−1)ai≥M≥pj2aj(aj+1)≥pj′2(aj′−1)aj′≥M′,M' \ge \frac{p'^2_i}{a'_i (a'_i + 1)} \ge \frac{p_i^2}{(a_i - 1) a_i} \ge M \ge \frac{p_j^2}{a_j (a_j + 1)} \ge \frac{p'^2_j}{(a'_j - 1) a'_j} \ge M',

so all are equal and u≤ℓu \le \ell for pp.

Claim 5 (quota fails). With p=(18,7,2,1)p = (18, 7, 2, 1) and h=8h = 8, the method gives (4,2,1,1)(4, 2, 1, 1), while q1=36/7≈5.14q_1 = 36/7 \approx 5.14, so state 1 gets less than its lower quota.

Proof. After one seat each, the squared keys are 324/2=162324/2 = 162, 49/2=24.549/2 = 24.5, 4/2=24/2 = 2 and 1/21/2. The four other seats go to the keys 162162, 324/6=54324/6 = 54 and 324/12=27324/12 = 27 of state 1, and 24.524.5 of state 2. The largest key left is 324/20=16.2324/20 = 16.2 and the smallest key used for a second or later seat is 24.524.5, so ℓ<u\ell < u and there is no tie.

Complexity

With a binary heap, line L3 takes O(n)O(n) time and each of the h−nh - n passes takes O(log⁡n)O(\log n), so the time is O(n+hlog⁡n)O(n + h \log n) and the extra space is O(n)O(n). The keys pi2p_i^2 and ai(ai+1)a_i(a_i + 1) have O(log⁡P+log⁡h)O(\log P + \log h) bits, and each comparison multiplies two of them. Cheng and Eppstein (2014) give an O(n)O(n) time algorithm for every divisor method, independent of hh.

Properties

  • One seat for every state. Rounding at 0⋅1=0\sqrt{0 \cdot 1} = 0 gives every state with a positive population at least one seat. The US Constitution requires this for the House.
  • Huntington's pairwise test. No transfer of one seat between two states lowers the relative difference of their seats per person, max⁡(ri,rj)/min⁡(ri,rj)−1\max(r_i, r_j)/\min(r_i, r_j) - 1 with ri=ai/pir_i = a_i/p_i. The same holds for the relative difference of their people per seat. Huntington showed that this test picks out the method, which he called the method of equal proportions.
  • House and population monotone. One more seat never takes a seat away, so there is no Alabama paradox. A state that grows does not lose a seat to a state that shrinks, except through a tie.
  • Quota can fail. With populations (18,7,2,1)(18, 7, 2, 1) and h=8h = 8, the method gives (4,2,1,1)(4, 2, 1, 1), while the quota of state 1 is 36/7≈5.1436/7 \approx 5.14; there is no tie. By the Balinski-Young theorem, every population monotone method fails quota for some input with 4 or more states.
  • A small bias. The geometric mean is below the midpoint, so small states round up a little more often than under the Sainte-Lague method. Balinski and Young show that the method favors small states on average, though much less than Adams's method.

Variants and improvements

  • Priority list. The US Census Bureau computes the priorities pi/a(a+1)p_i/\sqrt{a(a + 1)} for a=1,2,…a = 1, 2, \ldots for all states, sorts them, and gives seats 51 to 435 down the list. This is the same algorithm with a sort in place of the heap, and it gives the apportionment for every house size at once.
  • Other divisor methods. The D'Hondt method rounds down, Adams's method rounds up, the Sainte-Lague method rounds at the midpoint a+1/2a + 1/2, and Dean's method at the harmonic mean 2a(a+1)/(2a+1)2a(a + 1)/(2a + 1). Huntington compared all five with his pairwise tests.
  • Linear time. For many states and seats, the method of Cheng and Eppstein finds a divisor in O(n)O(n) time.

When to use it

Use the Huntington-Hill method when every state must get at least one seat and the result must be free of the Alabama and population paradoxes, as for the US House. If small and large states must be treated alike on average, the Sainte-Lague method is the better choice; if a law must keep every state within its quota, use Hamilton's method and accept its paradoxes.

Pitfalls

  • Square roots in floating point. The priorities p/a(a+1)p/\sqrt{a(a + 1)} are irrational in general, and rounding errors can break or invent ties. Compare the squares p2/(a(a+1))p^2/(a(a + 1)) with integer cross products.
  • Fewer seats than states. The method gives every state one seat first, so it needs h≥nh \ge n. A state with population 0 still gets a seat.
  • Not the same as rounding at one half. Rounding at the arithmetic mean is the Sainte-Lague method. The two agree in the example, but with h=4h = 4 they do not.
  • Ties. If the last seat goes to one of two equal keys, the result depends on the tie rule. State the rule.

Implementations

Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.

huntington_hill_method.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/huntington-hill-method/. The authors are listed in prov/Y00758.jsonl.

import heapq
from typing import Sequence


class _Key:
    """The priority s / d of state i in a min-heap: a larger quotient comes first, then a smaller index.

    Here s = p^2 and d = a (a + 1), so s / d is the square of p / sqrt(a (a + 1)). Quotients
    are compared by cross multiplication, so no square root and no division is needed.
    """

    __slots__ = ("s", "d", "i")

    def __init__(self, s: int, d: int, i: int) -> None:
        self.s, self.d, self.i = s, d, i

    def __lt__(self, other: "_Key") -> bool:
        x, y = self.s * other.d, other.s * self.d
        if x != y:
            return x > y
        return self.i < other.i


def huntington_hill_method(populations: Sequence[int], h: int) -> list[int]:
    """Apportion h seats by the Huntington-Hill method (method of equal proportions).

    populations are nonnegative integers with a positive sum, and h >= n. Every state first
    gets one seat. Each of the other h - n seats goes to the state with the largest priority
    p / sqrt(a (a + 1)), where a is its number of seats so far, the smallest index among
    ties. The priorities are compared through their squares p^2 / (a (a + 1)).
    """
    n = len(populations)
    if any(p < 0 for p in populations) or sum(populations) <= 0:
        raise ValueError("need populations >= 0 and a positive total")
    if h < n:  # @line L1
        raise ValueError("Huntington-Hill gives every state a seat, so it needs h >= n")
    a = [1] * n  # @line L2
    heap = [_Key(p * p, 2, i) for i, p in enumerate(populations)]  # @line L3
    heapq.heapify(heap)
    for _ in range(h - n):  # @line L4
        i = heapq.heappop(heap).i  # @line L5
        a[i] += 1  # @line L6
        heapq.heappush(heap, _Key(populations[i] ** 2, a[i] * (a[i] + 1), i))  # @line L7
    return a  # @line L8
test_huntington_hill_method.py 157 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/huntington-hill-method/. The authors are listed in prov/Y00758.jsonl.

import random
import unittest
from fractions import Fraction

from huntington_hill_method import huntington_hill_method


def compositions_at_least_one(h, n):
    """Yield every list of n integers >= 1 with sum h."""
    if n == 1:
        if h >= 1:
            yield [h]
        return
    for x in range(1, h - n + 2):
        for rest in compositions_at_least_one(h - x, n - 1):
            yield [x] + rest


def by_scan(pops, h):
    """A second implementation: a linear scan for each seat, on the squared priorities."""
    a = [1] * len(pops)
    for _ in range(h - len(pops)):
        best = max(range(len(pops)), key=lambda i: (Fraction(pops[i] ** 2, a[i] * (a[i] + 1)), -i))
        a[best] += 1
    return a


def gap(pops, a):
    """Return (low, high) on squared priorities: the largest p^2 / (a (a + 1)) and the smallest p^2 / ((a - 1) a).

    a is a Huntington-Hill apportionment exactly when low <= high; it is the only one when low < high.
    """
    low = max(Fraction(p * p, x * (x + 1)) for p, x in zip(pops, a))
    high = min((Fraction(p * p, (x - 1) * x) for p, x in zip(pops, a) if x >= 2), default=None)
    return low, high


def is_hh(pops, a):
    low, high = gap(pops, a)
    return high is None or low <= high


def tie_free(pops, a):
    low, high = gap(pops, a)
    return high is None or low < high


def round_geometric(x2):
    """Round x >= 0 given by its square x2: the a >= 1 with (a - 1) a <= x2 < a (a + 1)."""
    a = 1
    while a * (a + 1) <= x2:
        a += 1
    return a


def quotas(pops, h):
    return [Fraction(h * p, sum(pops)) for p in pops]


def floor(x):
    return x.numerator // x.denominator


class TestCheckValues(unittest.TestCase):
    V = [100000, 80000, 30000, 20000]

    def test_eight_seats(self):
        self.assertEqual(huntington_hill_method(self.V, 8), [3, 3, 1, 1])

    def test_four_seats(self):
        self.assertEqual(huntington_hill_method(self.V, 4), [1, 1, 1, 1])

    def test_lower_quota_violation(self):
        p, h = [18, 7, 2, 1], 8
        a = huntington_hill_method(p, h)
        self.assertEqual(a, [4, 2, 1, 1])
        self.assertEqual(quotas(p, h)[0], Fraction(36, 7))
        self.assertTrue(tie_free(p, a))

    def test_errors(self):
        with self.assertRaises(ValueError):
            huntington_hill_method([5, 3, 2], 2)
        with self.assertRaises(ValueError):
            huntington_hill_method([0, 0], 3)
        with self.assertRaises(ValueError):
            huntington_hill_method([4, -1], 3)


class TestProperties(unittest.TestCase):
    def test_against_scan_and_divisor_form(self):
        rng = random.Random(51)
        for _ in range(1500):
            n = rng.randint(1, 7)
            p = [rng.randint(0, 500) for _ in range(n)]
            if sum(p) == 0:
                continue
            h = rng.randint(n, n + 30)
            a = huntington_hill_method(p, h)
            self.assertEqual(sum(a), h)
            self.assertEqual(a, by_scan(p, h))
            self.assertTrue(is_hh(p, a))
            low, high = gap(p, a)
            if high is not None and low < high:
                m2 = (low + high) / 2
                self.assertEqual([round_geometric(Fraction(x * x) / m2) for x in p], a)

    def test_brute_force(self):
        rng = random.Random(52)
        for _ in range(250):
            n = rng.randint(1, 4)
            p = [rng.randint(1, 60) for _ in range(n)]
            h = rng.randint(n, n + 8)
            a = huntington_hill_method(p, h)
            hh = [b for b in compositions_at_least_one(h, n) if is_hh(p, b)]
            self.assertIn(a, hh)
            if tie_free(p, a):
                self.assertEqual(hh, [a])

    def test_no_transfer_lowers_the_relative_difference(self):
        rng = random.Random(53)
        for _ in range(400):
            n = rng.randint(2, 5)
            p = [rng.randint(1, 200) for _ in range(n)]
            h = rng.randint(n, n + 20)
            a = huntington_hill_method(p, h)
            for i in range(n):
                for j in range(n):
                    if i == j or a[i] < 2:
                        continue
                    r = [Fraction(a[i], p[i]), Fraction(a[j], p[j])]
                    s = [Fraction(a[i] - 1, p[i]), Fraction(a[j] + 1, p[j])]
                    self.assertGreaterEqual(max(s) / min(s), max(r) / min(r))

    def test_house_and_population_monotone(self):
        rng = random.Random(54)
        for _ in range(600):
            n = rng.randint(2, 5)
            p = [rng.randint(1, 100) for _ in range(n)]
            h = rng.randint(n, n + 15)
            a = huntington_hill_method(p, h)
            b = huntington_hill_method(p, h + 1)
            self.assertTrue(all(y >= x for x, y in zip(a, b)))
            p2 = [max(1, v + rng.randint(-30, 30)) for v in p]
            a2 = huntington_hill_method(p2, h)
            if not (tie_free(p, a) and tie_free(p2, a2)):
                continue
            for i in range(n):
                for j in range(n):
                    if i != j and p2[i] >= p[i] and p2[j] <= p[j]:
                        self.assertFalse(a2[i] < a[i] and a2[j] > a[j])


if __name__ == "__main__":
    unittest.main()

History

Joseph A. Hill, a statistician at the Census Bureau, proposed the method in 1911. Edward V. Huntington, a mathematician at Harvard, built its theory in the 1920s: he compared the divisor methods by pairwise tests and showed that the test of relative difference gives this method. Walter Willcox argued for Webster's method of major fractions, and a committee of the National Academy of Sciences sided with Huntington in 1929. Congress adopted the method in 1941 for the census of 1940, and has used it with a House of 435 seats since then. In 1992 the US Supreme Court upheld it in United States Department of Commerce v. Montana, a case Montana brought after it lost its second seat.

References

  1. Michel L. Balinski and H. Peyton Young, Fair Representation: Meeting the Ideal of One Man, One Vote, 2nd edition, Brookings Institution Press, 2001, Chapter 6 (The Controversy over Bias) and Appendix A (The Theory of Apportionment)
  2. Edward V. Huntington, The apportionment of representatives in Congress, Transactions of the American Mathematical Society 30(1) (1928), 85-110, the pairwise tests of relative difference and the method of equal proportions
  3. Zhanpeng Cheng and David Eppstein, Linear-time algorithms for proportional apportionment, Proc. 25th International Symposium on Algorithms and Computation (ISAAC 2014), LNCS 8889, 581-592, divisor methods in O(n) time, independent of the number of seats

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a scene preset for the example