William Mançon · 3 December 2026
Following the change of active constraint as two weights vary

I fit two proportions u,v shared by three four-outcome laws. For each law I may choose its own m and reconstruct (mu,m(1−u),(1−m)v,(1−m)(1−v)). My objective is the largest total variation distance across the three laws. I fix A=(9,5,7,6)/27 and C=(1,3,2,8)/14 and set B=(1,9+s,7+r,4)/K, K=21+s+r.

Theorem. For every real r in [−1/64,1/64], the join equation R(s,r)=0 has exactly one solution s=α(r) in [−1/4,1/8]. There the global optimum has a unique setting. In a neighbourhood of the join at each fixed r, B switches from constraint 48 to 46 as s increases. The two one-sided error slopes are strictly ordered. I certify this local change along the whole curve. The neighbourhood width may depend on r. Uniqueness within the rectangle refers to the root of R.

Derivation. At the join B's second and fourth outcomes are reconstructed exactly. The first and third residuals are t and −t. This gives
t=[7+r−(11+r)v]/[K(1−v)],     u=[8+r−(12+r)v]/[K(1−v)−4].
I substitute into (27v−7)u=(9−27t)v and (1−u)[14(1−v)−8+14t]=3(1−v), obtained from A and C. Eliminating v gives the factors s+9, K and R. The JSON lists the integer coefficients of R, of total degree five, and a rational expression recovering v. The linear subresultant has a nonzero leading coefficient. Both input equations keep their degrees. On the full rectangle R_s>0 and R_r<0, with opposite signs on the two vertical edges. Existence, uniqueness and α′=−R_r/R_s follow. I obtain α′(0)≈2.632743749. At r=−1/64, 0 and +1/64 I find α≈−0.1346935311, −0.0935810455 and −0.0524203231, respectively.

Global optimality. I split r into sixteen adjacent rational intervals. Monotonicity of α lets me bound s by isolating its roots at each endpoint. Outward rational arithmetic bounds the settings, masses and all nonzero residuals. The equations give the remaining identities. The signs for A,B,C are (−,+,0,+), (+,0,−,0) and (+,0,+,−), respectively, and positive residuals sum to t. In three of the four setting triangles the reference triple with r=s=0 is impossible even at radius 1/5. The total variation displacement of B is at most (|s|+|r|)/K. Adding this bound to the radius gives less than 1/5 on each box.

In the remaining triangle A requires u≥A(v)=(a₁−t)v/(v−a₃) and C requires u≤C(v)=1−c₂(1−v)/(1−v−c₄+t). The B upper bounds are B₄₆=(b₁+t)(1−v)/(1−v−b₄) and B₄₈=[(1−b₂)v−b₃+t]/[v−b₃+t]. Event bounds force v>a₃ and 1−v>c₄−t. I check c₄−t>b₄, a₃>b₃−t and b₃>t. A is decreasing and both B bounds are increasing. A−C is strictly convex with positive derivative at contact. Left of the common v, A exceeds the B bound. Right of that v, A exceeds C. At the sole remaining setting a smaller t violates A. These are reusable sufficient conditions when attainment and exclusion of the other triangles are also checked.

Switching sides. I differentiate the three contact equations in (v,u,t) with respect to s for each B equation. Both Jacobians are invertible in the boxes. The remaining sign is given by E=K(1−u)(1−v)−(9+s)(1−v)−4(1−u). Along each branch its total s derivative is negative at the join. A positive sign makes B48 admissible on the left and a negative sign makes B46 admissible on the right. All other strict inequalities persist by continuity. The optimality argument applies to both sides. Rational interval evaluation of Cramer's rule separates the two derivatives of t on each box.

On r=0 I project possible residual and denominator zeros and compare with 32 rational reference triples, extending the proof to −1≤s≤1 with no further switch inside these limits. Four rational samples on r=±1/64 confirm both sides. Two additional triples, modifying A or C, pass the sufficient test. I can replay courbe33.py, extension33.py and transfert33.py with SymPy. For arbitrary rational input in range, python -S -B lecteur33.py 1/100 returns the specialised polynomial and rational bounds on the threshold, radius, settings and threshold derivative in standard Python.

The algebraic degree of optimisation and sensitivity under an active-set change have published precedents. I propose the globally certified instance, two additional controls and a reproducible sensitivity benchmark for review. Priority for this specialisation and use on field data remain open.
Nie and Ranestad, Algebraic Degree of Polynomial Optimization, https://arxiv.org/abs/0802.1233
Generalized sensitivity analysis of nonlinear programs using a sequence of quadratic programs, https://doi.org/10.1080/02331934.2018.1517159

Beyond the reserved window I followed an additional lead. At β≈−7.51067077436 on r=0 I certify another unique global contact, of radius ≈0.18915443701. Both outcomes in B's first cell are exact, giving signs (0,0,−,+). Here u=1/(10+s), v=(7−(21+s)t)/11 and t=(44s+408)/(11s²+481s+3402). The A and C equations yield 297s⁵+30664s⁴+1034653s³+14804482s²+94882428s+225389304=0. I isolate its root between −7.51068 and −7.51066. A reference law at s=−7.51067 excludes the three other triangles at radius 0.1892. In the remaining triangle B48 directly implies (b₃−t)(1−u)≤(1−u−b₂)v, hence v>b₃−t. This allows the monotonicity proof even where a₃≤b₃−t. Along the continuation of B48, B's first residual has strictly positive derivative at β. Immediately below it the prescribed reconstruction therefore exceeds t in total variation. I certify this point and the one-sided failure. Connecting the optimal branch all the way from β to −1 and identifying the replacement setting are open. The polynomial and rational bounds are in extension33.json.
