RULER — evaluations that know their optimum

The object: an integer x in Z/N, N = Mc, read through the residue r = x mod M, held in its channels, the residues of x at the prime powers exactly dividing M; the fiber over r is the c integers r + jM, j its index, and c is the cofactor, with M > 1 and c > 1 throughout. An eval is a task with a prior, this evidence and a score (0-1 accuracy, or log-loss in nats). Its ceiling is the Bayes-optimal expected score, its floor the best score with the evidence severed, and a cell (N, M), or its slice at one threshold or tilt, is dead when the two coincide (a family's cell, at every slice), live otherwise, in 0-1 accuracy unless the log-loss is named; a gauge is the closed form naming the dead cells. The tasks ask one question of size or order: the sign bit [2x ≥ N], the threshold [x ≥ t], the cyclic orientation of three points, the comparison of two, and the magnitude class ⌊kx/N⌋ of k ≥ 2, its cell (M, c, k). The prior is uniform or the tilt θ^x, whose ratio between neighbours in a fiber is q = θ^M. The exact Bayes error then makes these evals a ruler: an estimator of the Bayes error is scored on its bias against the truth and on the coverage of its own stated 95% interval, the fraction of trials in which that interval holds the truth.

The thesis: each eval read here at uniform ships its 0-1 ceiling as a closed form, a solver of a CRT combination or two and a comparison (a division, for the magnitude class) that attains it, and a gauge; which channels pay is the task's, not the ring's. The threshold family's 0-1 dead cells at uniform, the even-c ones, are a resonance of that one prior: every rational tilt off uniform gives each a live threshold, only a threshold on a fiber boundary stays dead at every tilt, and the k-ary parent trades the isolated resonant tilts for one live arc of tilts. Turned on the textbook Bayes-error estimators, the ruler finds intervals that more data does not repair, or for a stretch makes worse, each failure the estimator's own, its bias a law at every sample size, the ring supplying only its placement; the two distribution-free brackets are one bound, certifying about one in c of the family's own live thresholds. A stated interval is protected only on the side its omitted term's known sign favours, and the bias that decides its coverage is read by resampling only through the fitted class's own functional. Turned on two published deletion audits, whose targets the depth column (FORGET: Two witnesses buy the robust grade) places exactly: the first's estimate, a mixture weight in the box [0, 1], takes, off a zone and the ties, the side of 1/2 that the sign of one product of sample moments names, and in the normal model no statement of that side's instability read off the one noisy scalar is right in the mean at every distance of its mean from 0; the second, per-example, converges to its model's Gaussian limit rather than to the posterior, its mean error a finite sum at any count of shadow models, and its membership call survives only where the two share a side.

The parity law of the sign bit

Tier: theorem (squarefree N).
Verifier: proof; ceiling.py::section_sign.

The below-count of fiber r is ⌈c/2 − r/M⌉. At even c it is c/2 on every fiber, so the posterior is the prior; at odd c it is (c+1)/2 for r < M/2 and (c−1)/2 otherwise, and every fiber scores (c+1)/2c. So the 0-1 ceiling is (c+1)/2c at odd c and 1/2 at even c, and the log-loss is H₂((c+1)/2c) and log 2, H₂ the binary entropy in nats. At even squarefree N, c is even iff 2 does not divide M: those cells are dead. At odd N, c is odd and no cell is dead. The achiever reconstructs r from the channels read and compares 2r with M. A lone channel p is the same law at M = p: at even squarefree N only channel 2 lifts the score, to 1/2 + 1/N, and at odd N every channel scores 1/2 + p/2N. This is the hiding lemma of SIZE: The hiding lemma read as a score.

One threshold range, one tent: the threshold family

Tier: theorem.
Verifier: proof; ceiling.py::section_threshold.

Write t = QM + s, 0 ≤ s < M. Fiber r holds Q + [r < s] points below t, so at most two fiber types exist. The 0-1 ceiling is the floor max(t, N − t)/N except when c = 2m + 1 is odd and t lies strictly inside the middle range (mM, (m+1)M), where it is (c+1)/2c. The lift there is the tent min(s, M − s)/N, highest at the midpoint, the sign bit. The achiever guesses below at fiber r iff Q + [r < s] > c/2. The log-loss is (s/M)H₂((Q+1)/c) + ((M−s)/M)H₂(Q/c), at the prior's entropy iff M | t, so its dead slices are the seam {M | t}, the thresholds on a fiber boundary; the 0-1 dead slices are those outside the odd-c middle range, where the posterior, off the seam, moves but never crosses 1/2; so the log-loss dead set lies inside the 0-1 dead set.

The gauge is the task's: orientation and comparison

Tier: theorem.
Verifier: proof; ceiling.py::section_orientation.

Orientation. A uniform ordered triple of distinct points, all three read mod M, is positive iff (y − x) mod N < (z − x) mod N, x independent of those differences. With the differences reduced mod M to (α, β), a class with α ≠ β, both nonzero, leans (c+1)/2c toward the residue order (the differences α + jM and β + j′M compare by j against j′ and at a tie by α against β; at α = 0 ≠ β, j runs from 1 and half the c(c − 1) pairs (j, j′) order each way); α = β, or a zero among them, is balanced. The ceiling is 1/2 + c(M−1)(M−2)/(2(N−1)(N−2)), the floor 1/2, and no fiber's posterior reaches 0 or 1. The one dead cell shape is M = 2: channel 2, without which the sign bit is dead at even squarefree N, is the one lone channel blind to orientation, and a lone channel is worth more the larger its modulus. The achiever subtracts the residues channel by channel, CRT-combines the two differences and compares them.

Comparison. [x < y] on a uniform ordered pair of distinct points, both read mod M, to residues r_x and r_y: r_x < r_y leans (c+1)/2c, r_x = r_y is balanced, and the ceiling is 1/2 + (M−1)/(2(N−1)), with no condition on c, over a floor of 1/2. The achiever CRT-combines both residues and compares them.

In the sign, threshold, orientation and comparison tasks at uniform, every evidence class of a live slice whose posterior is not exactly 1/2 scores exactly (c+1)/2c.

The threshold-range law under a tilted prior

Tier: theorem.
Verifier: proof; ceiling.py::section_tilt.

Under the tilt a fiber of below-count J lies below t with probability Pb(J) = (1 − q^J)/(1 − q^c), and leans below iff J > Q*, Q* = log_q((1 + q^c)/2), which lies strictly in (0, c) whenever q ≠ 1 and rises with q: at q = e^(−u) < 1 it is c·log(2/(1 + e^(−cu)))/(cu), the numerator concave and 0 at 0, and Q*(1/q) = c − Q*(q). So a threshold is live iff s ≠ 0 and Q < Q* < Q + 1: at every tilt off uniform the live thresholds are the M − 1 with Q = ⌊Q*⌋ when Q* is not an integer, and none when it is. The seam {M | t}, every fiber of one type, is the whole log-loss dead set at every tilt. The map x ↦ N − 1 − x sends the ceiling at (θ, t) to the ceiling at (1/θ, N − t). A fixed threshold is live only on an interval of tilts, Q* being monotone; the family's one live range, empty only where the resonance criterion below says, slides to Q = 0 as q → 0 (Q* ≤ log 2/u) and to Q = c − 1 as q → ∞. The sign bit's row is the magnitude arc's k = 2 row: at odd c = 2m + 1 ≥ 3 it is alive exactly while q lies in (ρ_m, 1/ρ_m), ρ_m the root in (0, 1) of q^(2m+1) − 2q^m + 1, the q putting Q* in (m, m + 1), an interval free of M, and at even c its threshold N/2 sits on the seam, dead at every tilt.

The resonance criterion

Tier: criterion.
Verifier: proof; ceiling.py::section_resonance.

Off uniform, q ≠ 1, the live range of a cell with cofactor c is empty iff q is a root of f(q) = q^c − 2q^J + 1 for some 0 < J < c; at uniform it is empty iff c is even, the parity law. Proof. At q ≠ 1, Q* = J is 2q^J = 1 + q^c, and Q* lies in (0, c). f is monic with constant term 1, so its only rational roots are ±1: no rational tilt off uniform is ever resonant. Its signs +, −, + allow two positive roots, one of them q = 1 with f′(1) = c − 2J. From f(0) = 1 and f → ∞, at 2J < c the other root lies in (0, 1) and at 2J > c in (1, ∞), one algebraic irrational per pair; q ↦ 1/q exchanges J and c − J. At 2J = c, f = (q^J − 1)², so q = 1 is a double root and the only positive one: the uniform prior is where the 2J = c family collapses, which is the parity law's dead half. At (J, c) = (1, 3), f = (q − 1)(q² + q − 1), and the root is the reciprocal golden ratio. ∎

One live arc: the magnitude parent

Tier: theorem (every N, squarefree or not); observation (the masses read at three tilted cells).
Verifier: proof; ceiling.py::section_magnitude, sets.py::section_family.

Write c = ak + v, 0 ≤ v < k. At an atom, the fiber over r, x = r + jM has Y = ⌊kx/N⌋ = ⌊k(j + r/M)/c⌋, so class y holds the j in [yc/k − r/M, (y + 1)c/k − r/M), a + 1 of them (heavy) iff an integer ℓ has yv/k ≤ ℓ + r/M < (y + 1)v/k, else a: contiguous blocks, exactly v heavy, at {⌊k(ℓ + r/M)/v⌋ : 0 ≤ ℓ < v}; the first heavy class is y₁(r) = ⌊kr/(vM)⌋. At uniform every atom's best class carries ⌈c/k⌉/c, so the ceiling is ⌈c/k⌉/c over a floor of ⌈N/k⌉/N, and guessing y₁(r) attains it (at k | c, v = 0, any guess does). A cell is dead at uniform iff k | c or M(k − v) < k, saturation, where class 0 is heavy at every atom; it needs k > M, and at k = 2 the gauge is the parity law's.

Under the tilt a block starting at lo of length w carries mass ∝ q^lo(1 − q^w)/(1 − q). Since q's powers are monotone, the first of equal-length blocks wins at q < 1 and a heavy block beats every later light one; so off uniform an atom's best class is 0 or y₁(r) at q < 1, the last heavy or k − 1 at q > 1, and at k | c, no block heavy, class 0 at every atom at q < 1 and k − 1 at q > 1, the cell dead. Until the three kinds, k ∤ c. At q < 1 an atom with y₁ ≥ 1 overrules the floor's guess, class 0 (most points, the largest weights), iff g(q) = 1 − q^a − q^L + q^(L+a+1) < 0, L = a·y₁(r): g has one root in (0, 1), at a ≥ 1, and the atom overrules above it; at a = 0 its class 0 is empty and it overrules at every q < 1; an atom with y₁ = 0, as r = 0, keeps 0. The root rises with L, since g < 0 iff q^L > (1 − q^a)/(1 − q^(a+1)), a ratio falling from 1 to a/(a + 1) on (0, 1) while q^L rises from 0 to 1, so they cross once. The partition by ⌊kx/N⌋ is symmetric under x ↦ N − 1 − x only at k | N, so q > 1 is read on its own, where a cell is dead exactly when one class is best at every atom. An atom whose top class is heavy keeps class k − 1; one whose top class is light prefers its last heavy class y_last on (1, 1/q′), q′ the root of g at L = a(k − 1 − y_last), and k − 1 above it, or y_last at every q > 1 when a = 0. The top class is light at the atom r = 0 whenever k ∤ c, and if it is light at every atom, which needs Mv < k, the atoms r = 0 and r = M − 1 differ in y_last = ⌊k(v − 1 + r/M)/v⌋. So at a tilt q > 1 the cell is alive iff q lies in (1, 1/q′) for some light-topped atom: it is alive on (1, q_up), q_up the largest of those 1/q′ and infinite when a = 0. So every cell is of one of three kinds: dead at every tilt iff k | c; alive at every tilt when a = 0 and it is unsaturated; otherwise alive on exactly one open arc (q_lo, q_up), q_lo the least root in (0, 1) of g over the atoms with y₁ ≥ 1, or 1 if there is none, each end algebraic, 1 or infinite. A saturated cell has q_lo = 1, live only above uniform. When M > k, a ≥ 1 and k ∤ c the arc is (ρ_a, 1/ρ_a), ρ_a the root in (0, 1) of q^(2a+1) − 2q^a + 1, the f of The resonance criterion at J = a and cofactor 2a + 1, a function of ⌊c/k⌋ alone: a phase r/M in [v/k, 2v/k) gives y₁ = 1 and one in [1 − 2v/k, 1 − v/k) gives y_last = k − 2, each meeting [0, 1) in length at least 1/k > 1/M, so L = a is reached at each end.

Read set-valued, the class keeps what the fiber index loses. The index j reads q^j at every atom, the θ^r cancelling, while the class blocks move with the atom's phase r/M. At uniform every atom carries the same multiset of masses, so SETS's threshold form has one set size at every atom and only its labels move; at k | c the blocks do not move, so every atom carries one law at every tilt (by construction, read at one cell and one tilt); at a = 0 each class holds one point or none, and every atom carries one multiset at every tilt; at the two tilted cells with k ∤ c that sets.py::section_family reads, the masses depend on the atom. SETS scores set rules on this class.

The knife: a consistent point inside an inconsistent interval

Tier: property (the deficit, exact at every n); known (a fair binomial's mean absolute deviation); theorem (the coverage's limit, at every M and μ ≥ 0; C_1 never under the nominal level; an edge at every M ≥ 2, C_M tending to the level from above; the excess's exact split; C_2 in closed form, crossing once); rule (C_15 at μ = 0, 0.7217 and 2, the edge μ*(M) at eleven M from 3 to 64, brackets computed in floating point, μ*(2) a 40-digit bisection; one crossing on the grid to 12 at those eleven M; the certificates μ_c2(M) at fourteen M from 3 to 1000).
Source: P. Diaconis and S. Zabell, Closed form summation for classical distributions: variations on a theme of De Moivre, Statist. Sci. 6 (1991) 284–302.
Verifier: proof; estimators.py::section_controls, estimators.py::section_knife, knife_limit.py, knife_zone.py, knife_edge.py, knife_cross.py, knife_two.py.

Drawing x uniform and reading (x mod M, [x ≥ t]) draws a bin r uniform and a label Bernoulli(η_r), η_r = (c − J(r))/c with J(r) the number of fiber r's points below t, so any failure an estimator shows on the ring it shows on bare bins with those η_r; what the ring adds is placement, η_r = 1/2 exactly at a knife slice (c even, t = N/2). There resubstitution on n points, ê = (1/n)Σ_r min(n_r0, n_r1) with n_r0 and n_r1 the label counts in bin r, stating ê ± 1.96√(ê(1 − ê)/n), loses each bin's distance from an even split: min(B, m − B) = m/2 − |B − m/2|, B ~ Bin(m, 1/2) has mean absolute deviation dev(m) = νC(m, ν)/2^m at ν = ⌊m/2⌋ + 1 (de Moivre), and a bin holds m ~ Bin(n, 1/M) points, so

E[resubstitution] = 1/2 − (M/n)·E[dev(m)]

at every n and M. ∎ Over the half-bar a rate of 1/2 states, 1.96/(2√n), the deficit is 1.5711 at M = 15, n = 500 and 1.5765 at 32,000, under its limit √(2M/π)/1.96 = 1.5766: both fall as 1/√n. The point estimate is consistent; its interval is not: its coverage, in this section the probability that it holds the truth, tends as n grows to a limit, at M = 15 far under the nominal level L = 2Φ(1.96) − 1. Point i, in bin r_i with label y_i, gives X_i = (y_i − 1/2)e_{r_i} in ℝ^M, iid of mean 0 and covariance I/(4M), and B_r − m_r/2 in bin r is coordinate r of their sum; by the multivariate central limit theorem D = Σ_r |B_r − m_r/2|, with ê = 1/2 − D/n, has D/√(n/(4M)) tending in law to |Z_1| + … + |Z_M|, Z_r iid N(0, 1). The interval covers iff that ratio is at most 1.96√M·g, g = 2√(ê(1 − ê)) → 1 in probability, so by Slutsky's lemma and the portmanteau theorem, the limit law having a density,

coverage → C_M(0) = P(|Z_1| + … + |Z_M| ≤ 1.96√M)

at every M. ∎ A bracket by the cell masses of |Z| puts C_15(0) in [0.02201, 0.02207]. At label rate 1/2 + δ in every bin, δ ≥ 0 (a swap of the labels carries −δ to δ), R* = 1/2 − δ, with μ = 2δ√(n/M) held fixed, the law moving with n, the Lindeberg–Feller theorem puts coordinate r at Z_r + μ, and the same two steps give

coverage → C_M(μ) = P(|Σ_r (|Z_r + μ| − μ)| ≤ 1.96√M),

a function of M and μ alone. ∎ In the limit one bin never fails: |Z + μ| − μ is Z on Z ≥ −μ and −Z − 2μ below, so C_1(μ) is Φ(1.96) − Φ(−2μ − 1.96) to μ = 1.96, rising from the level, and the level plus Φ(1.96 − 2μ) − Φ(−1.96 − 2μ) past it, falling back, its peak 0.97500. ∎ At every M ≥ 2 the limit starts under the level and ends over it. Under: Σ|Z_r| ≥ |ΣZ_r|, a normal of variance M, so C_M(0) ≤ L, and strictly, the difference holding an open set (Z_1 near 0.8w, Z_2 near −0.3w, the rest near 0, w = 1.96√M). Over: |Z + μ| − μ = Z + 2(−Z − μ)₊, so the sum is G + 2E, G = ΣZ_r and E = Σ_r(−Z_r − μ)₊ ≥ 0, and with f the indicator of [−w, w], C_M(μ) − L = E[f(G + 2E) − f(G)]. Its one-tail term, Q = Σ_r E[f(G + 2(−Z_r − μ)₊) − f(G)], is

Q = M ∫₀^∞ φ(μ + s)[F(μ − s) − F(μ + s)] ds,

F(c) = P(|G′ − c| ≤ w), G′ ~ N(0, M − 1), even and strictly decreasing in |c|, so Q > 0 at every μ > 0. The integrands differ only where k ≥ 2 coordinates fall below −μ, by at most 1 + k ≤ (3/2)k(k − 1), so |C_M(μ) − L − Q| ≤ R = (3/2)M(M − 1)Φ(−μ)², and Q/R → ∞, log(Q/R) at least μ²(M − 2)/(2(M − 1)) − O(μ) at M ≥ 3 and μ(w − 2) − O(log μ) at M = 2 (knife_edge.py's header). So C_M(μ) − L = Q(1 + o(1)) > 0 past some μ, and C_M, continuous in μ (the sum moves by at most 2M times μ's move and has a density), crosses the level upward: an edge μ*(M) at every M ≥ 2, the limit tending to L from above. ∎ At M = 2 the edge is one point: |z_1| + |z_2| = √2 max(|u|, |v|), u, v = (z_1 ± z_2)/√2; with U, V those of Z_r + μ, U ~ N(t, 1) and V ~ N(0, 1) independent at t = √2μ, the window is max(|U|, |V|) in [t − a, t + a], a = 1.96, a product: C_2 = g(t) − h(t), g(t) = [Φ(a) − Φ(−a − 2t)][2Φ(a + t) − 1], h(t) = [Φ(−a) − Φ(a − 2t)][2Φ(t − a) − 1] past t = a, else 0, and C_2(0) = L². To t = a, g rises to g(a) > L; past it, C_2 − L ≥ Φ(a − t)[2Φ(−a) − 6Φ(−2a)] > 0, the normal tail log-concave (knife_two.py's header): one crossing, at μ*(2) = 0.240152725641689 (a 40-digit bisection), and C_2 − L ~ 2Φ(−a)Φ(a − t). ∎ At the eleven M 3, 4, 6, 8, 12, 15, 16, 24, 32, 48 and 64 the brackets place an edge, μ*(M) in [1.0527, 1.0567] at 15 and [1.5664, 1.5772] at 64, the intervals disjoint and rising; on the grid μ = 0, 0.05, …, 4 every bracket lies wholly below the level before the edge and none past it. So on the grid the failure is a zone at 1/2, |δ| < μ*√(M/(4n)): at M = 15 and n = 8000 the limit's zone is |δ| under 0.02279 to 0.02288, about 1/44. A rate 1/64 off 1/2 there, μ = 0.7217, has its limit C_15(0.7217) in [0.88724, 0.88737]. Past the edge the grid's brackets lie wholly over the level as far as the first to hold it, at μ = 3.3 to 3.75 by M, with C_15(2) in [0.95731, 0.95737]. Möbius inversion over the coordinates below −μ splits the excess exactly, C_M(μ) − L = Q + Q₂ + T₃, Q₂ the pairs' term (one integral), T₃ that of three or more, and |T₃| ≤ B₃ = ((1 + 2p)^M − 1 − 2Mp − 2M(M − 1)p²)/2, p = Φ(−μ), a k-set's term being at most 2^(k−1) (knife_cross.py's header). ∎ Q + Q₂ > B₃ at every grid μ from the certificate μ_c2(M) to 12, μ_c2 = 0.95 at M = 3, 2.25 at 15, 3.0 at 64 and 4.1 at 1000, under the first bracket to hold the level at each of the eleven M (3.0 against 3.3 at 64): the grid μ = 0, 0.05, …, 12 sees one crossing.

More data, a worse held-out interval

Tier: property (the bias, exact to the chance 2^−n of an empty test half); observation (the coverage, 40 trials a point on bare bins, to n = 512,000).
Verifier: proof; estimators.py::section_controls, estimators.py::section_transient.

Held-out fits the per-bin majority on a fair-coin half of the sample, an empty or tied bin guessing 1, and scores it on the other half. Each test point is a fresh draw, so given the fitted rule the estimate's mean is the rule's risk, and its bias against the Bayes error is Σ_r P(r)|2η_r − 1|·P(bin r flips, its majority on the wrong side). ∎ At M = 105 bins of η = 6/11 (the ring's N = 1155, t = 525) a bin's training points number K ~ Bin(n, 1/(2M)) and it flips when they hold strictly more zeros, so the bias is P(flip)/11, P(flip) = Σ_K P(K)·P(Bin(K, 6/11) < K/2): 0.310, 0.328, 0.260, 0.122, 0.012, 0.000003 at n = 500, 2000, 8000, 32,000, 128,000, 512,000. At |η_r − 1/2| = δ it is exponentially small in δ²K only once K's mean, n/(2M), passes order 1/δ², while the stated bar shrinks as 1/√n from the start. So coverage falls as data grows, then recovers: on bare bins 35 of 40 at n = 500, 7 at 8000 and 32,000, 38 at 128,000.

One bound at two statistics

Tier: theorem.
Verifier: proof; estimators.py::section_bound, estimators.py::section_controls.

Two distribution-free brackets are standard: Cover–Hart's [(1 − √(1 − 2R_NN))/2, R_NN] from the nearest-neighbour error, and the bracket [(1 − √u)/2, (1 − u)/2] of Berisha, Wisler, Hero and Spanias (IEEE Trans. Signal Process. 2016, Theorem 2) from a Friedman–Rafsky spanning-tree count, u = 1 − 2W/n with W the number of the tree's edges joining two labels, taken as 0 when negative. On a categorical feature, ties among zero-distance neighbours broken blind to the label, a test point meets a training label of its own bin r, a one at a share whose mean is η_r: with every training bin populated R_NN has mean E[2η(1 − η)] at every n. Under a tree blind to the labels u has population value E[(2η − 1)²]; (1 − u)/2 = E[2η(1 − η)] identically, so the two are one bound read through two statistics. Since the Bayes error is R* = 1/2 − E|2η − 1|/2, the lower end's gap is (√E[(2η − 1)²] − E|2η − 1|)/2: zero iff |c − 2J(r)| is constant in r, iff M | t or t lies in the odd-c middle range. On that range, c = 2m + 1, the upper end is 2m(m + 1)/c² = 1/2 − 1/(2c²), so the lower end is R* exactly and the bracket excludes the no-evidence value min(t, N − t)/N only at |t − N/2| < M/(2c), about M/c of the M − 1 live thresholds: at N = 105, M = 15 the exact bracket is [3/7, 24/49] and holds the no-evidence value at 12 of the range's 14 thresholds.

The spanning tree is not identified

Tier: property; known (a bin's trees; the count averaged over all).
Source: H. Chen and N. R. Zhang, Graph-based tests for two-sample comparisons of categorical data, Statist. Sinica 23 (2013), arXiv:1208.5755, Sections 2.2, 3.1.1 and Theorem 1.
Verifier: proof; estimators.py::section_mst.

The Friedman–Rafsky count assumes a unique minimum spanning tree. On a categorical feature two points of one bin sit at distance 0, so any spanning tree of a bin's clique belongs to a minimum spanning tree. A chain in label order puts one cross edge in each two-label bin, so W/n → 0 and the bracket collapses to [0, 0]; a spanning tree of the bipartite graph between a bin's two label classes makes all n_r − 1 of its edges cross, so W/n tends to the mass of the two-label bins, which is 1 where every fiber holds both labels, as on the odd-c middle range; there u → −1 is clipped to 0 and the bracket sits at [1/2, 1/2]. Exchanging one edge of a tree moves W by at most 1, and such exchanges join any two spanning trees; every tree crosses at least once in each two-label bin, so where every fiber holds both labels the bracket's upper end takes every value from order M/n to 1/2 in steps of 1/n: the values the bracket states over the minimum spanning trees, its identified set, are every value a binary Bayes error can take, to within order M/n. A tree whose shape ignores the labels has the labels exchangeable on its n_r − 1 edges, expected cross count 2n_r0 n_r1/n_r, the plug-in of n_r·2η_r(1 − η_r) and the within-bin term of the source's average over all minimum spanning trees: one label-blind tree has that mean. The edges between bins number at most M − 1, so they move W/n by at most M/n. ∎

The sign law of a stated interval

Tier: property (proved); observation (8 settings of 400 trials, two worlds at four sample sizes; on the audit, three Gaussian worlds and two depth cells at three sizes, 200 replicates of 200 resamples).
Verifier: proof; statements.py::section_controls, statements.py::section_sign, statements.py::section_held, statements.py::section_fits, audit.py::section_band.

A statement "estimate ± h", or one side of it, counts only the error its own arithmetic admits; what it omits is its uncounted term. A held-out bound fits a classifier on an exact half of the sample and, at x errors on the m points of the other, states f(x) = x/m + z√(x(m − x)/m³), z = 1.96, one-sided. The classifier is fixed before the test half is read, so x is binomial about its own risk ρ, and ρ is at least the Bayes error R*. f is concave on [0, m] with f(m) = 1, so the counts whose bound holds R* are every count from a least one, x*, up, and a binomial's upper tail rises with its rate. So in every world, however the classifier is chosen from its half,

P(f(x) ≥ R*) ≥ P(Bin(m, R*) ≥ x*),

with equality where every classifier has risk R*. ∎ The omitted term ρ − R* has a known sign and only adds margin, and the floor is the bar's own chance at a coin of rate R*, not its nominal 0.975: at R* > 0 it is at most 1 − (1 − R*)^m, a count of 0 stating a bar of 0, and it is 0.97091 to 0.97418 on a world with no bin rate nearer 1/2 than 1/10, where the bound also stayed below 1/2 in every trial, and 0.97316 to 0.97515 at the knife, under 0.975 at seven of the eight settings. The protection is one-sided: the same held-out error stated two-sided has the term against its lower end and can fail (71 hits of 400 at n = 8000 on the transient's bins, on the plane of Coverage is a function of two ratios). A fit, a plug-in with its model-implied bar, has a term signed only in the mean: the per-bin plug-in never reads high in the mean, min being concave, while a pooled fit, the bins merged into groups, adds its pooling gap, the excess of the pooled limit over the Bayes error, against that pull.

The law survives a target the estimator does not identify, where the omitted term is not a displacement but which root is the truth. On the audit below (The audit world and its two roots, the box being [0, 1]), report from the same resamples of the audited set the 95% quantile of the largest in-box root as an upper bound and the 5% quantile of the smallest as a lower one (a box end if none): the truth is one of the roots, so the root term only widens, and the upper is never under the lower, so the pair is never wrong together. At equal class variances and the audit's mixture weight κ = 1/5, the pair closes on [1/5, 4/5], the span of the identified set, and not on a point: the bound on the second root's side covers in every trial and closes on 4/5 (0.048 past it in the mean at n = 1000), never on κ, the other tightens and covers 0.93 to 1 (0.925 to 1 at κ = 4/5, the roles traded). With the second root pushed out of the box the same upper bound contracts (0.047 above κ at n = 1000) and covers 0.87 to 0.96 against 0.95: the root term is gone in the population, and what is left omits the class samples' noise (whether that omission is the shortfall is not read). The tool's own band, the quantiles of the argmin, chooses a mode and omits that noise too, resampling the audited set with the class samples held fixed: on the two worlds below with one root in the box, it covers 0.69 to 0.78 against its nominal 0.90, where the same quantiles with all three samples resampled cover 0.87 to 0.945, above the band at all six rows, and the one-sided bound at the box end nearest the truth covers 0.83 to 0.915 against 0.95 at five of the six, with no arm resampling the class samples for it.

Coverage is a function of two ratios

Tier: property (a fit's mean deviation, exact); observation (44 settings over five worlds, four sample sizes and five kinds of statement, measuring that the normal approximation holds).
Verifier: proof; statements.py::section_controls, statements.py::section_plane, statements.py::section_fits, statements.py::section_held, knife_limit.py.

With b the estimate's mean deviation from the truth, S its sd and h the mean stated bar, a two-sided statement of a normal estimate covers at Φ((h − b)/S) − Φ((−h − b)/S), Φ the standard normal distribution function, and an upper bound, estimate + h, at Φ((b + h)/S). Each of 44 settings, n ≥ 500, landed within 0.034 of that: mechanisms differ in coverage by where they put a statement on the plane (b/S, h/S). A fit's b is exact: a bin of weight w and rate η holds K ~ Bin(n, w) points, and with e = min(η, 1 − η) and X ~ Bin(K, e) its minority labels have mean nwe − E(2X − K)⁺, since min(X, K − X) = X − (2X − K)⁺; summed over the bins and divided by n that is the per-bin plug-in's mean, and on the groups' weights and mean rates a pooled fit's. ∎ With h/S settled, whether data carries coverage to its value at b = 0 is the trajectory of b/h: to 0, remedied (a well-specified plug-in, b = −0.00287 at n = 500 and −0.00008 at 2000); to a constant, sample size irrelevant (the knife at M = 15, √(2M/π)/1.96 = 1.5766, its bar too wide at h/S = 3.25 derived, covering in 9 to 13 of 400, the rest lost to bias alone; the plane at its limiting ratios reads 0.0304, over 0.008 above the knife's limiting coverage, Σ_r |Z_r| being no normal law); to infinity, more data is worse, in two ways. A model class that cannot hold the truth, pooling bins whose group straddles 1/2, has b on its pooling gap 7/750 to five places from n = 2000 while h falls: |b|/h 0.22 to 1.81, coverage 377 to 23 of 400. A shrinkage toward 1/2 at weight λ = n^(−1/4) is (1 − λ)·(plug-in) + λ/2 exactly, since the lesser of a rate and its complement is linear on each side of 1/2 and the pull never crosses, so b, at R* < 1/2, decays as n^(−1/4): divergent while still moving (|b|/h 1.24 to 3.79). Held-out's transient (More data, a worse held-out interval) sits on the same plane, within 0.027 of it at four sizes in a second run of 400 trials, its halves split exactly.

The kernel of the inside instruments

Tier: property (the kernel, the drift's mean, the shrinkage identity and Δ̂ ≥ 0 with its limit, proved; the knife factor derived asymptotically); observation (the detectors' counts of 400 trials, the repair's at three pooled worlds).
Verifier: proof; statements.py::section_kernel, statements.py::section_repair, statements.py::section_fits, statements.py::section_controls.

An auditor holding one sample estimates S by resampling, as Ŝ, the sd of the estimate over bootstrap resamples of that sample, so h/S can be read from inside, with a bias where the functional is not smooth (at the knife Ŝ/S is 1.18 to 1.24); b/S decides, and it is the hidden coordinate. Two instruments reach for b. With Ê the estimate of R* and Ê* its value on a resample, the bootstrap's reading, mean Ê* − Ê at the same n, estimates the bias against the estimator's own estimand, the class's functional on the population; the drift is Ê on the sample minus Ê on an exact half, at even n n/2 independent points, so its mean is b(n) − b(n/2). So the gap between a class's limit and the truth is invisible to the bootstrap by construction, the drift differences a settled term away, and a term that has stopped moving is in the kernel of both. ∎ At the shrinkage the bootstrap is blind to the term by identity, the λ/2 parts cancelling at equal n, while the drift's mean, exact by the law of Coverage is a function of two ratios, is −0.143 of the mean bar at n = 500 and −0.716 at 32,000; its limit form −(2^(1/4) − 1)λ(1/2 − R*), −0.189|b|, misses the first by 0.09 of the bar, the plug-in's part not yet small. At the knife the bootstrap sees the term and reads only √2 − 1 of it: a resampled bin rate carries twice the fitted one's variance where |·| is not differentiable (0.402 to 0.420 drawn). The drift's mean reads the same fraction with the opposite sign, b falling as 1/√n there, but a single drift's sd is 1.29 to 1.31 S. The failure is anti-monotone: at the threshold holding alarms to 0.10 on the fit settings that cover at 0.90 or more, the bootstrap caught every knife trial and 109, 5, 0, 0 of 400 of the pooled fit's on the world of pooling gap 29/150, as its |b|/h grew 4.4 to 35, since severity there is bought by the term converging.

The nested repair escapes by fitting a richer class that nests the model and reading the two fits' difference in the functional, Δ̂ = pooled − per-bin: min is concave, so Δ̂ ≥ 0, its mean is the difference of the two fits' exact means, and its limit is the pooling gap, which vanishes where every bin of each group sits on one side of 1/2. It reads the term, not the model: on a world pooled wrongly about 14 of its 15 bins and exactly about the Bayes error, a goodness-of-fit statistic's standardized mean ran 8 to 548 while Δ̂/h alarmed on 24 of 400 trials, then none (its threshold set in sample, on a pool four fifths this world's runs); Δ̂ caught every trial of a world of pooling gap 29/150 and 399 of 400 of one of gap 7/750 at n = 32,000. An alarm is not a failed statement: at n = 500 the small gap alarms on 176 of 400 trials and covers in 377. The kernel narrows and does not empty: error outside every class the auditor can nest stays uncounted.

The audit world and its two roots

Tier: property (proved; the depth-cell roots and the tangency checked in exact rationals, the Gaussian second root in floats at κ = 1/5 and γ in {0, 1/4, 1/2, 4/5, 1, 2}).
Verifier: proof; audit.py::section_controls, audit.py::section_tangency.

A mixture-proportion deletion audit (Statistical Membership Inference, arXiv:2602.01150, Lemma 3.2 and Algorithm 1, read at source) models the audited features as F_u = κF_out + (1 − κ)F_in, F_in the member class and F_out the non-member class, and reports κ. For a scalar feature, with d = μ_out − μ_in, μ_out and μ_in the class means, B = d², A = var_u − var_in and G = var_out − var_in + B, it returns the minimizer of (A − pG + p²B)² over the candidates 0, 1 and the objective's critical points in [0, 1], the vertex G/(2B) and the roots of Bp² − Gp + A. It never reads the audited set's mean; its band is the {5%, 95%} quantiles of the estimate over resamples of the audited set. The world it is turned on is the depth column of FORGET: a history is a route of moves, each multiplying the state by 2 or by 3, and a depth cell is named by its counts of moves by 2 and by 3, the cell (12, 3) holding the routes to the state 2^12 3^3 in every arrangement, equally likely. The audited datum is the first move, the member class the routes opening with 2 and the non-member class those opening with 3. That depth cell is an exact mixture of the two classes at weight κ, the share of moves by 3 (1/5 at (12, 3)), whose distance from ½ is the size of the count leak of FORGET: Readability descends, spread ascends, flatness neither, and with the feature the number of moves by 2 in the three positions after the first, each class is hypergeometric: the audit's model holds exactly and every moment is rational.

For any two-class mixture var_u = κ var_out + (1 − κ) var_in + κ(1 − κ)d², so A = κG − κ²B identically: κ is a root of the population objective in every world, and for d ≠ 0 the other root is G/B − κ. ∎ With F_in = 𝒩(0, 1) and F_out = 𝒩(2, 1 + γ) it is 1 − κ + γ/4: equal variances give the twin {κ, 1 − κ}, and a variance excess γ > 0 slides the second root up until it leaves the box past γ = 4κ. The box, not the objective, identifies. The depth cells (12, 3) and (2, 8), κ = 1/5 and 4/5, have second roots −113/65 and 17/10: both are identified. For a {0, 1} feature A − Bκ² = κd(1 − 2μ_u), μ_u the audited set's mean, its rate, since var_out − var_in = d(1 − μ_out − μ_in): for κd ≠ 0 the two roots meet at κ exactly when the audited set is balanced, a tangency. ∎

The side of 1/2 is the sign of one product

Tier: theorem; observation (the flip's rate, 1,000 replicates a row at two depth cells and three sizes).
Verifier: proof; audit.py::section_controls, audit.py::section_level.

Write L̂(p) = Ĝp − B̂p², the level the objective needs at p. The candidates hold every critical point of (Â − L̂(p))² in the box and the box's two ends, so the estimate is a p of [0, 1] whose L̂(p) is nearest Â, and B̂ ≥ 0 makes L̂ concave or linear, with ends L̂(0) = 0 and L̂(1) = Ĝ − B̂ and half-box level L̂(1/2) = Ĝ/2 − B̂/4. Put

D̂ = Â − L̂(1/2) = s_u² − s_in²/2 − s_out²/2 − d̂²/4,

s_u², s_in² and s_out² the sample variances (divisor n − 1) of the audited, member and non-member samples and d̂ the difference of the two class sample means. The estimate is above 1/2 iff D̂(Ĝ − B̂) > 0 and below it iff D̂(Ĝ − B̂) < 0, off the ties D̂(Ĝ − B̂) = 0 and off the split zone max(0, Ĝ − B̂) ≤  ≤ L̂(1/2), where an in-box root sits on each side of 1/2 or at it, each zeroing the objective, and the winner is candidate order and rounding. Proof. L̂(p) − L̂(1 − p) = (2p − 1)(Ĝ − B̂), and p ↦ 1 − p turns  − L̂ into the same family with 2B̂ − Ĝ for Ĝ and  − Ĝ + B̂ for Â: the sign of Ĝ − B̂ reversed, D̂ and the zone unchanged. So take Ĝ > B̂. Then L̂′ = Ĝ − 2B̂p ≥ Ĝ − B̂ > 0 on [0, 1/2]: L̂ climbs from 0 to L̂(1/2) there, and on [1/2, 1] it stays at or above the lower of L̂(1/2) and L̂(1), both positive. If D̂ > 0, every p < 1/2 sits farther below  than 1/2 does, and L̂ still climbs at 1/2: the estimate is above 1/2. If D̂ < 0 and  ≥ 0, L̂ meets  once below 1/2, and again above 1/2 exactly when L̂(1) ≤ Â, the zone; if  < 0 the nearest level is L̂(0), at 0 alone. ∎

The flip, an estimate strictly across 1/2 from κ, is D̂ < 0 at both depth cells for a replicate off the zone whose Ĝ − B̂ has the population's sign, D itself being positive; D̂ draws noise from all three samples, so the flip is not Â's event. At n = 200 and 1000 its rate over all replicates is Φ(−D/sd(D̂)) within 2.1 standard errors, sd(D̂) by the delta method from the exact moments (0.247 against 275 of 1000 at (12, 3), n = 200); at (12, 3), n = 50, the normal reading of D̂ degrades (0.368 against 440).

With σ known, no self-report read off D̂ is unbiased at every distance

Tier: theorem (in the normal model with σ known); property (the laws' closed forms, the wedge's mass argued in selfreport.py and held against the fold at 13 distances each); observation (two depth cells, three sizes, 1,000 replicate pairs each, and five further seeds).
Verifier: proof; selfreport.py::section_controls, selfreport.py::section_theorem, selfreport.py::section_statements.

Off the box, with both vertices on one side of it, two audits of one world land on opposite sides of 1/2 exactly when their D̂s differ in sign, off the ties, by the law above (a vertex off the box empties the zone), an event the one unknown direction cannot touch, so an auditor can state their answer's instability from inside: Φ(−|D̂|/(ζσ̂)) at a scale ζ > 0, or the pair form 2p̂(1 − p̂) with p̂ = Φ(−k|D̂|/σ̂), k = 1 or sharpened to 2. The spread is in reach: σ̂ from the replicate's own moments sits, in the mean, within 2.5% of the delta-method sd(D̂) at n = 200 and 1000. The form is not. With ν = D/σ, signed, the pair rate is g(ν) = 2Φ(ν)Φ(−ν), even in ν, and a form's mean is its folded law, its expectation at |ν + ε|, ε standard normal (within 0.012 of measurement at n = 200 and 1000, over six seeds); take ν ≥ 0. Each law is closed in Owen's T(h, a) = (1/2π)∫₀ᵃ e^{−h²(1 + x²)/2}/(1 + x²) dx, the mass a standard normal pair puts beyond a line at distance h from the origin, seen from the origin between the line's foot and the point ah along it. Two such lines meeting at an apex hc from each foot bound a wedge, beyond one and on the origin's side of the other, of mass 2T(h, c); and for W standard normal and independent, Φ(−|y|/ζ) = P(ζW + y < 0, ζW − y < 0) is at y = ν + ε that wedge with h = ν/√(1 + ζ²), c = ζ, and 2Φ(ky)Φ(−ky) twice another. So the Φ form's law is 2T(ν/√(1 + ζ²), ζ), the pair form's 4T(ν/√2, 1/√3) and the sharpened one's 4T(2ν/√5, 1/3), against g(ν) = 4T(ν, 1). From h = 1 on, T(h, a) lies between two multiples of e^{−h²/2}/h, the lower depending on a, and every form reads ν scaled by an s < 1, so its ratio to g is at least a constant times e^{(1 − s²)ν²/2}: noise in D̂ flattens every tail exponent, and each form over-warns far enough out, by a ratio that diverges while both tend to 0. On the grid ν ∈ [0, 6] of step 0.01 each form is right in the mean at one distance ν* (1.51, 1.13, 1.07, 2.18 for ζ = 1, ζ = √2, the pair form and the sharpened one, each the grid point at or below the crossing), under-warns below it and over-warns above it; past ν = 6 no crossing was searched.

No function of D̂ alone escapes. Take X = D̂/σ ~ 𝒩(ν, 1) with σ known: no f with a mean at every ν has E_ν f(X) = g(ν) for every ν. Proof. φ(x − ν) = φ(x)e^{νx − ν²/2}, φ the standard normal density, and ∫|f|φ(x)e^{ax}dx = e^{a²/2}E_a|f| is finite at every real a, so Γ(ν) = E_ν f(X) is entire in ν, with |Γ(iξ)| ≤ E₀|f|·e^{ξ²/2}, ξ real. g(ν) = (1 − erf(ν/√2)²)/2 is entire too, and g(iξ) = (1 + erfi(ξ/√2)²)/2 ≥ (4/π)e^{ξ² − 4}/ξ² for ξ ≥ √2, since ∫₀ˣ e^{s²}ds ≥ e^{(x − 1/x)²}/x at x ≥ 1. Were Γ = g on the real line the two would agree on ℂ, and the bounds cross. ∎ For a statement valued in [0, 1] one point decides: g(2i) = 7.618 against e² = 7.389. Given the auditor's own D̂, the truth is Φ(−|ν|) or 1 − Φ(−|ν|) by whether D̂ has D's sign (117 of 861 pairs and 124 of 139 against 0.137 and 0.863 at (2, 8), n = 200), so any such statement, binned, mixes the two.

The per-example audit states its Gaussian limit

Tier: property (proved: the limit, the side criterion and the exact means at a finite K, computed to K = 512 on the two-point world and to 128 at four depth cells); observation (the census, p_lim in floats, over every depth cell with 2 to 30 moves by 2 and by 3; 400 replicates a row at K = 512).
Verifier: proof; lira.py::section_controls, lira.py::section_census, lira.py::section_law, lira.py::section_tool.

U-LiRA (arXiv:2403.01218, Algorithm 1) fits a Gaussian of mean μ₁ and variance s₁² to an example's scores under K shadow models that saw and then unlearned it and one of mean μ₀ and variance s₀² to its scores under K that never saw it, and states at the example's score o p = 𝒩(o; μ₁, s₁²)/(𝒩(o; μ₁, s₁²) + 𝒩(o; μ₀, s₀²)), 𝒩(o; μ, s²) the normal density at o, calling a member when p > 1/2. Its estimand is the equal-prior posterior τ, exact at a depth cell with the feature of the audit world (The audit world and its two roots). The fits converge to the class moments, so where both class variances are positive (at two or more moves of each kind, (2, 2) apart) p converges to the Gaussian limit p_lim, and the calibration error Σ P_u|p − τ| over the scores, P_u a score's mass in the depth cell, converges to its value at p_lim, a property of the model class that more shadow models do not remove. At (12, 3), τ = (1, 11/15, 5/9, 3/7) against p_lim = (0.982, 0.840, 0.554, 0.414): the certain score is stated short of certainty and the scores at 11/15 and 3/7 past theirs. Two support points {0, 3}, the member's masses 9/10 and 1/10 and the non-member's mirrored, give p_lim = 1/(1 + e^{−40/9}) = 0.988 at score 0 against 9/10, because the Gaussian prices the far support point by a squared distance.

A finite K needs no simulation. A class's K scores enter its fit only through their sum and the sum of their squares, a function of their multinomial counts at the support points, and the two classes are drawn apart: the mean of the accuracy, of the error and of the stated p is a finite double sum over the pairs of fits (the variance fitted with divisor K; scores that coincide a point mass, two of them stating 1/2 where both hold the score or both miss it; in floats, under 10⁻¹⁰ of a class's mass left out). ∎ The limit is no floor: on the two-point world the mean error is 0.0799, 0.0847, 0.0874 at K = 32, 128, 512, under the 0.0884 at p_lim. And at (5, 5) the mean at the source's own K = 128 is 0.0269 where the limit is 0.0031.

Balanced accuracy is maximized by taking τ's side of 1/2, so the limit call reaches the ceiling iff the call p_lim > 1/2 takes τ's side at every score with mass, τ = 1/2 counting as either side, and each exception costs |P_in − P_out|/2, P_in and P_out the two classes' masses at that score. ∎ At (5, 5), (12, 3), (2, 8) and on the two-point world the call is at the ceiling in all 400 replicates at K = 512: the cost lands on the stated probability. The census finds 90 of 841 cells with an exception, the worst costing 11/1120 at (5, 12), where τ = 0.4898 and p_lim = 0.5019, and at its mirror (12, 5). There the fit's noise splits the call at that score and the split is right more often than the limit: the mean accuracy at K = 128 is 0.5416, above the limit call's 151/280 = 0.5393, to which it converges, so somewhere past 128 more shadow models lower it. Off the depth column an exception can sit far from a tie: member masses 0.45, 0.1, 0.45 at 0, 1, 10 against non-member 0.2, 0.8 at 1, 5 put τ = 1/3 at score 1 and p_lim near 0.65, costing 1/20.

Open fronts

The tilted prior is read here only for the sign bit, the threshold and the magnitude class: does it kill any comparison cell, and where do orientation's dead cells sit under it? An exact count at N = 30 over a grid of tilts is the cheapest probe. Outside the normal model, or with σ estimated rather than known, is there a self-report whose mean is the rate at which two audits' sides differ, at every distance? No probe is named. Whether the knife's limit C_M crosses its level once at M ≥ 3, between the grid's points and past 12, and how the edge grows, are closed with no proof: M = 2's proof leans on the plane's ℓ¹ ball being a turned square, and in three coordinates it is an octahedron, no box. Were the sum normal, the edge would sit at M·m(μ) = 2μ to leading order in 1/M, m(μ) = 2(φ(μ) − μΦ(−μ)) the mean of |Z + μ| − μ, a root 0.02 above the edge's interval at M = 15 and inside it at 64. They reopen on a product form for C_M at some M ≥ 3, or on a proof locating the edge.