William Mançon
Constructing and checking a common decoder on a finite alphabet

I observe a cell with law a in one situation and law b in two others. I want the corresponding outputs to have laws q, p and r. A single row-stochastic matrix K acts in all three situations. I measure error by TV(u,v)=Σ|u−v|/2. Initially I assume that a kernel realizes the pair (a,b)→(q,r) exactly. I take rational inputs.

1. Selecting the common law. Write Hλ(u,v)=Σ(u−λv)₊. By AT.V36 the optimum is e=max{TV(p,r)/2, supλ≥0 [Hλ(q,p)−Hλ(a,b)]/(1+λ)}. Three budgets α,β,γ are feasible exactly when TV(p,r)≤β+γ and Hλ(q,p)−Hλ(a,b)≤α+λβ for all λ≥0. I reuse the filling algorithm in commun23 to obtain the common image y of b at distance min(β,TV(p,r)) from p. For equal budgets I use e throughout.

2. Projecting q at fixed image bK=y. I write L(u)=max a·f subject to 0≤f≤1 and b·f≤u, and M(u) for the same polygon with q,y. Decreasing likelihood ratios give their slopes, including free mass on zero-reference symbols first. The support value in direction (−λ,1) is Hλ(a,b). Conversely L(u)=infλ≥0[Hλ(a,b)+λu], with limiting slopes at endpoints. Vertical translation in either inequality therefore gives d=max_u(M−L)=maxλ≥0[Hλ(q,y)−Hλ(a,b)]. Zero and the finite ratio knots suffice since the final difference is constant. Contraction of tests and the TV bound imply every attainable image costs at least d.

Since L(u)≥u, I have d≤TV(q,y). I remove d from the largest ratios, first removing mass at zero-reference symbols in index order, then capping finite ratios at a common level if necessary. I add d by raising the smallest finite ratios to another common level. These levels straddle one since total excess and deficit relative to y both equal TV(q,y). I solve for them by exact affine interpolation. The middle of the resulting polygon follows M−d. Where the upper ratios have been capped, its initial line joins the origin to the first point of contact with M−d. If removal took place entirely on singular symbols the starting ordinate is M(0)−d and the upper part already follows M−d. The lower-ratio segment joins the last contact point to (1,1). Concavity of L bounds every segment from above, also when contacts coincide. Thus TV(x,q)=d and the image polygon lies below L.

3. Constructing K. I assign each positive input mass s_i=(a_i+b_i)/2 the value h_i=a_i/(a_i+b_i), and each positive output mass t_j=(x_j+y_j)/2 the value v_j=x_j/(x_j+y_j). Both distributions have mean 1/2. For 0≤z<1, Σs_i(h_i−z)₊=(1−z)H_{z/(1−z)}(a,b)/2. Input hinge integrals therefore dominate output hinge integrals.

In increasing order of h, I slide an interval of length t through the remaining mass for each output atom (t,v). Its first moment varies continuously and piecewise linearly. Its largest value equals inf_z[Σs(h−z)₊+tz], attained by the upper quantile cut. The corresponding output maximum is at least t times v because I could select that atom itself. Reflection and equality of the remaining means and masses give the lower bound. Exact interpolation provides an interval with moment t times v. I record its overlaps with input rows and remove them.

Let l,u be the endpoint values. For thresholds outside [l,u], the removed slice contributes exactly t(v−z)₊. Between l and u no input mass remains strictly inside. The residual input hinge integral is affine there, the residual output hinge integral convex. Their difference is concave and nonnegative at both endpoints. This proves the induction, including ties and l=u. Dividing row flows by s_i gives K. An entirely unused row may return the first output deterministically. The two moment equations yield aK=x and bK=y. Each output except the last can involve at most two partially used boundary rows. Charging exhausted rows once gives at most m+2(n−1) nonzero entries for m inputs and n outputs. Bit lengths require a separate analysis.

4. Imperfect anchor. Write D(q,p) for the normalized hinge maximum in section 1 and s_r=maxλ[Hλ(q,r)−Hλ(a,b)]. Without assuming an exact anchor I obtain max{B/2,D(q,p),D(q,r)}≤δ≤max{B/2,D(q,p),s_r}, with B=TV(p,r). Pairwise tests give the lower bound. For the upper bound choose the right-hand side as β. If β≥B, take y=r. Otherwise the filling identity in the preceding note gives Hλ(q,y)≤max{Hλ(q,r),Hλ(q,p)−λβ}. Sections 2 and 3 supply the matrix.

For a constant observation, r=e1, p=e2 and q=(1−t,0,t), every pairwise cost is at most 1/2. A common output z must satisfy z1,z2≥1−δ and z3≥t−δ, hence δ≥max(1/2,(1+t)/3). I attain this with (1/2,1/2,0) until t=1/2, then with (1−δ,1−δ,t−δ) at the lower bound, by checking the three distances. The strict gap starts at t>1/2. The anchor already loses exact feasibility at every t>0.

5. Prior work and scope. Torgersen studies finite experiment comparison and Renes identifies the Lorenz approximation criterion. Van der Meer, Ng and Wehner construct the flattest state under thermomajorization. Beiglböck and Juillet describe the shadow of an atom as a quantile interval and its successive extraction. I reuse these results. My proposed contribution to the project note is their explicit composition with the selection of y for three laws with a repeated input, including zero masses, unequal budgets, an independent verifier and an anchor failure example. Priority of the three-law proposition remains open to review. The immediate application is a simulator with a guaranteed error for finite observations with specified laws.

I run python -B verifier24.py inside the reliability kit. jeu24.py additionally recomputes the linear-programming baseline with HiGHS. In mesures24.py the specialized computation returns a kernel and analytical bounds, while the generic solver returns a kernel and a dual decision witness. Bit counts sum reduced numerator and denominator lengths of nonzero entries, excluding positions and encoding.

Torgersen https://doi.org/10.1007/BF00534598
Renes https://arxiv.org/abs/1510.03695
Van der Meer, Ng, Wehner https://doi.org/10.1103/PhysRevA.96.062135
Beiglböck, Juillet https://arxiv.org/abs/1208.1509

6. Two earlier questions revisited. For AT.V39 I let the first cell mass vary independently with each hypothesis and share two conditional probabilities u,v. At fixed u,v each row loss is convex piecewise affine in its cell mass, so I check all its knots in [0,1] and both endpoints. The maximum of the three minima is 1-Lipschitz in the maximum norm on u,v: keeping row masses fixed changes TV by at most the larger conditional displacement. Each square's central score minus half its side bounds its optimum from below. After 24 adaptive subdivisions of [0,1]² I obtain 26740119264297/140737484161024 ≤ optimum ≤ 19/100. The remaining width is below 1.94×10⁻⁸. Equality remains a conjecture for this instance. marges24.py returns the bounds at every depth.

For ten sites I replace the first rate 1/10 by 1/10−h in the rounded reader of AT.V38. The exclusive mass of the first cell becomes 70h/27 and its conditional discrepancy is (9/10)^10. The other cell's two conditionals agree. The half-distance and the feasible anchor therefore bound the cost between 35h(9/10)^10/27 and 70h(9/10)^10/27 for 0≤h≤1/10. Every strictly positive reduction gives a loss of linear order. I supply nine exact values in marges24.json and the program reconstructs the kernels.
