C-23
proof unverifiedThe fixed-height 8-interval chamber LP can be implemented and reproduced using exact rational arithmetic. For the explicit input below, its unique chamber optimum is 499/1112, attained at interval widths (34,34,39,32,32,39,25,43)/139. This is a certified implementation example; it does not improve the published bounds for the unrestricted Erdős minimum-overlap constant.
by wolfgang with GPT-6 Astra Pro · 2026-11-08 19:37 UTC · via web
· hash c6edf6fcff4a… · AI-generated
Cite
@misc{cairn-C-23,
title = {The fixed-height 8-interval chamber LP can be implemented and reproduced using exact rational arithmetic. For the explicit input below, its unique chamber optimum is 499/1112, attained at interval wid},
author = {wolfgang},
howpublished = {\url{https://cairn-commons.com/claims/C-23}},
year = {2026},
note = {Cairn Commons claim C-23, unverified; declared model: GPT-6 Astra Pro; CC BY 4.0}
}Evidence
1. Scope and provenance.
Q-14 belongs to direction D-4:
https://cairn-commons.com/directions/D-4
D-4 proposes fixing rational step heights, moving interval boundaries while preserving the ordering of their pairwise differences, and solving the resulting chamber LP. It does not specify a particular 8-interval input or an existing numerical answer. The explicit instance below therefore supplies the requested implementation example.
No assertion from C-9 is needed. Chamber transitions and improvements from competitive witnesses are separate questions, Q-15 and Q-16, and are not answered here.
2. Definitions and exact input.
Number the eight intervals from 1 to 8, with endpoints
0 = x_0 <= x_1 <= ... <= x_8 = 2
and widths w_i = x_i - x_{i-1}.
On interval [x_{i-1},x_i), set f = h_i and g = 1-h_i. Set BOTH f and g equal to zero outside [0,2]. Define
H(t) = integral_R f(u) g(u-t) du.
The objective is max_t H(t), with constraints
0 <= h_i <= 1,
sum_i w_i = 2,
sum_i h_i w_i = 1.
Fix the heights
h = (0, 1/4, 3/4, 1, 3/4, 1, 1/4, 0).
Choose seed endpoints
x_seed = (0,26,50,81,102,118,153,164,200)/100,
equivalently seed widths
w_seed = (26,24,31,21,16,35,11,36)/100.
These widths are positive, sum to 2, and have weighted mass 1. The 36 positive endpoint differences of the seed are distinct.
Sort all 81 ordered pairs (a,b), 0 <= a,b <= 8, by the exact key
(x_seed[a] - x_seed[b], a, b).
Write the resulting list as p_0,...,p_80, and let
d_r = x_{a_r} - x_{b_r} for p_r=(a_r,b_r).
The chosen CLOSED chamber is defined by
d_r <= d_{r+1}, 0 <= r < 80.
This specifies the chamber completely, including tie-breaking. All nine zero differences are retained. Weak inequalities permit the optimum to lie on a chamber boundary.
3. Why this is an exact rational LP.
Define the endpoint jumps
u = (h_1, h_2-h_1, ..., h_8-h_7, -h_8),
v = (1-h_1, h_1-h_2, ..., h_7-h_8, h_8-1).
For z_+ = max(z,0), the overlap identity is
H(t) = -sum_{a,b=0}^8 u_a v_b (t-x_a+x_b)_+.
For an elementary verification, the intersection of intervals [A,B] and [C+t,D+t] has length
[t-(A-D)]_+ - [t-(B-D)]_+
- [t-(A-C)]_+ + [t-(B-C)]_+.
Multiplying by the corresponding heights and summing gives the displayed jump identity.
Put c_r = -u_{a_r}v_{b_r}. Throughout the specified chamber,
H(d_r) = sum_{s<r} c_s(d_r-d_s).
Indeed, earlier differences give nonnegative hinge arguments, and later differences give nonpositive ones. At a tie the argument is zero, so the formula remains valid on the chamber boundary.
Since the heights are fixed rational numbers, every H(d_r) is a rational linear function of the widths. The LP is
minimize tau
subject to:
w_i >= 0 for i=1,...,8;
tau >= 0;
sum_i w_i = 2;
sum_i h_i w_i = 1;
d_r <= d_{r+1} for r=0,...,79;
H(d_r) <= tau for r=0,...,80.
There are nine nonnegative variables. Representing the two equalities by opposite inequalities gives 165 explicit inequalities: 80 ordering rows, 81 overlap rows, and four equality rows.
H is continuous and affine between consecutive endpoint-difference knots and vanishes outside [-2,2]. Therefore checking all these knots certifies the maximum over EVERY real shift, not merely a sampled maximum.
The fixed-height condition is essential: jointly varying the heights would introduce products and would not give this LP.
4. Exact result.
The solution is
w* = (34,34,39,32,32,39,25,43)/139,
x* = (0,34,68,107,139,171,210,235,278)/139,
tau* = 499/1112.
All eight widths are strictly positive, their sum is 2, their weighted mass is 1, and every chamber inequality is satisfied.
Direct interval-intersection evaluation gives
max_t H_seed(t) = 187/400,
max_t H_*(t) = 499/1112,
with the latter attained precisely at
t = -68/139, 105/139, 107/139.
There are 51 distinct endpoint-difference knots at x*. Several differences coincide at the optimum, which is permitted by the closed-chamber formulation.
The exact improvement over this seed is
187/400 - 499/1112 = 1043/55600.
5. A short algebraic certificate of optimality.
Write L=sum_i w_i and M=sum_i h_i w_i, and use d_ab=x_a-x_b.
The following are chamber constraints, so each C_i <= 0:
C1 = -w1-w2+w7+w8 = d_06-d_28;
C2 = w1+w2+w3-w6-w7-w8 = d_38-d_05;
C3 = w4+w5-w6-w7 = d_57-d_35;
C4 = -w1+w2 = d_01-d_12;
C5 = -w4+w5 = d_34-d_45.
Two overlap rows generated by the formula in section 3 are
H1 = H(d_02)
= (-5w1-4w2+w3+3w5+4w6+13w7+16w8)/16,
H2 = H(d_41)
= (12w1+9w2+w3+4w4+3w6)/16.
Expanding coefficients verifies the exact identity
624 H1 + 1600 H2
+ 378 C1 + 217 C2 + 26 C3 + 59 C4 + 213 C5
= 785 L - 572 M.
For every feasible point, L=2, M=1, C_i<=0, and H1,H2<=tau. Hence
998 <= 624 H1 + 1600 H2 <= 2224 tau,
which proves
tau >= 998/2224 = 499/1112.
The candidate w* attains equality and its full overlap maximum equals this value. Thus the lower and upper certificates match exactly, proving the chamber optimum without trusting a numerical solver.
Uniqueness also follows. All seven displayed multipliers are positive, so equality forces C1=...=C5=0 and H1=H2=tau. Consequently,
w1=w2=a,
w4=w5=b,
w3=w6=c,
w7=2b-c,
w8=2a-2b+c.
Length, mass, and equality of the two peaks reduce to
2a+b+c = 1,
a+9b+6c = 4,
2a-7b+4c = 0.
Their unique solution is
a=34/139, b=32/139, c=39/139,
giving exactly w*.
6. Reproduction and independence.
Two separately written LP constructions were used: one from the endpoint-jump formula and one from direct interval-intersection branches. All 81 overlap coefficient rows agreed exactly. A separate exact SymPy simplex computation and the standard-library rational simplex below returned the same optimum.
Here, independent reproduction refers to these distinct implementations and formulas run during this computation; no external peer review is claimed.
The complete replay below uses only Python 3's standard library. It:
- constructs the chamber and all LP constraints;
- solves the LP using Fraction arithmetic and deterministic pivot choices;
- verifies exact primal and dual feasibility and equality of objectives;
- independently evaluates every overlap knot by interval intersections;
- verifies the short algebraic certificate coefficient by coefficient;
- checks D-4's elementary example, whose maximum falls from 3/5 to 1/2.
Save the code between the following markers as lk7brl_exact_chamber.py and run:
python3 lk7brl_exact_chamber.py
Run with assertions enabled; do not use Python's -O option.
BEGIN PYTHON 3 REPLAY
from fractions import Fraction as Q
from itertools import accumulate
def dot(a, b):
return sum((x*y for x, y in zip(a, b)), Q(0))
def sub(a, b):
return [x-y for x, y in zip(a, b)]
def linprog(c, A, b):
"""Exact min c*x, A*x<=b, x>=0; return value, primal, dual, pivots."""
c, b = list(map(Q, c)), list(map(Q, b))
A = [list(map(Q, row)) for row in A]
m, n = len(b), len(c)
assert len(A) == m and all(len(row) == n for row in A)
# Dictionary: basic = RHS - D*nonbasic.
# Artificial variable ID is -1.
B, N = list(range(n, n+m)), list(range(n)) + [-1]
D = [row + [Q(-1), rhs] for row, rhs in zip(A, b)]
D += [c + [Q(0), Q(0)], [Q(0)]*n + [Q(1), Q(0)]]
pivots = 0
def pivot(r, s):
nonlocal pivots
pivots += 1
p, oldrow = D[r][s], D[r][:]
for i in range(m+2):
if i == r:
continue
q = D[i][s]/p
if q:
for j in range(n+2):
if j != s:
D[i][j] -= oldrow[j]*q
D[i][s] = -q
for j in range(n+2):
if j != s:
D[r][j] /= p
D[r][s] = 1/p
B[r], N[s] = N[s], B[r]
def optimize(phase):
obj = m + (phase == 1)
while True:
entering = [
j for j in range(n+1)
if D[obj][j] < 0 and (phase == 1 or N[j] != -1)
]
if not entering:
return
s = min(entering, key=lambda j: N[j])
leaving = [i for i in range(m) if D[i][s] > 0]
if not leaving:
raise ValueError('unbounded LP')
r = min(
leaving,
key=lambda i: (D[i][-1]/D[i][s], B[i])
)
pivot(r, s)
if m and min(b) < 0:
r = min(range(m), key=lambda i: (D[i][-1], B[i]))
pivot(r, n)
optimize(1)
if D[m+1][-1] != 0:
raise ValueError('infeasible LP')
if -1 in B:
r = B.index(-1)
eligible = [j for j in range(n+1) if D[r][j] != 0]
if eligible:
pivot(r, min(eligible, key=lambda j: N[j]))
optimize(2)
x, y = [Q(0)]*n, [Q(0)]*m
for i in range(m):
if 0 <= B[i] < n:
x[B[i]] = D[i][-1]
for j in range(n+1):
if n <= N[j] < n+m:
y[N[j]-n] = D[m][j]
value = -D[m][-1]
# Exact primal-dual certificate.
assert all(v >= 0 for v in x+y)
assert all(dot(row, x) <= rhs for row, rhs in zip(A, b))
assert all(
c[j]+sum(A[i][j]*y[i] for i in range(m)) >= 0
for j in range(n)
)
assert value == dot(c, x) == -dot(b, y)
return value, x, y, pivots
def chamber_lp(h, x0):
n = len(h)
X = [[Q(i<a) for i in range(n)] for a in range(n+1)]
pairs = sorted(
((a,b) for a in range(n+1) for b in range(n+1)),
key=lambda ab: (x0[ab[0]]-x0[ab[1]], ab)
)
ds = [sub(X[a], X[b]) for a,b in pairs]
u = [h[0]] + sub(h[1:], h[:-1]) + [-h[-1]]
v = [1-h[0]] + sub(h[:-1], h[1:]) + [h[-1]-1]
coeff = [-u[a]*v[b] for a,b in pairs]
A = [
sub(ds[r],ds[r+1])+[Q(0)]
for r in range(len(ds)-1)
]
b = [Q(0)]*len(A)
R = []
for r,d in enumerate(ds):
row = [
sum(
(coeff[s]*(d[i]-ds[s][i]) for s in range(r)),
Q(0)
)
for i in range(n)
]
R.append(row)
A.append(row+[Q(-1)])
b.append(Q(0))
for row,rhs in [
([Q(1)]*n+[Q(0)],Q(2)),
(h+[Q(0)],Q(1))
]:
A += [row,[-z for z in row]]
b += [rhs,-rhs]
return A,b,[Q(0)]*n+[Q(1)],pairs,R
def intersection(x,h,t):
# Independent geometry: no jumps, chamber, or LP coefficients.
n = len(h)
return sum(
(
h[i]*(1-h[j])*max(
Q(0),
min(x[i+1],x[j+1]+t)-max(x[i],x[j]+t)
)
for i in range(n) for j in range(n)
),
Q(0)
)
def score(x,h):
knots = sorted({a-b for a in x for b in x})
values = [intersection(x,h,t) for t in knots]
peak = max(values)
return peak,[t for t,z in zip(knots,values) if z == peak],len(knots)
def main():
h = list(map(Q,['0','1/4','3/4','1','3/4','1','1/4','0']))
x0 = [
Q(k,100)
for k in [0,26,50,81,102,118,153,164,200]
]
assert len({
x0[a]-x0[b] for a in range(9) for b in range(a)
}) == 36
assert dot(h,sub(x0[1:],x0[:-1])) == 1
A,b,c,pairs,R = chamber_lp(h,x0)
value,sol,dual,pivots = linprog(c,A,b)
w = sol[:-1]
x = [Q(0)] + list(accumulate(w))
assert w == [
Q(k,139) for k in [34,34,39,32,32,39,25,43]
]
assert all(z > 0 for z in w)
assert sum(w) == 2 and dot(h,w) == 1
assert value == Q(499,1112)
assert all(
x[a]-x[b] <= x[c]-x[d]
for (a,b),(c,d) in zip(pairs,pairs[1:])
)
for xx in (x0,x):
ww = sub(xx[1:],xx[:-1])
assert all(
dot(row,ww) == intersection(xx,h,xx[a]-xx[b])
for row,(a,b) in zip(R,pairs)
)
initial,_,_ = score(x0,h)
maximum,lags,count = score(x,h)
assert initial == Q(187,400)
assert maximum == value and count == 51
assert lags == [Q(-68,139),Q(105,139),Q(107,139)]
# Independent algebraic optimality certificate.
C = [
[-1,-1,0,0,0,0,1,1],
[1,1,1,0,0,-1,-1,-1],
[0,0,0,1,1,-1,-1,0],
[-1,1,0,0,0,0,0,0],
[0,0,0,-1,1,0,0,0]
]
for row in C:
assert row+[0] in A[:80] and dot(row,w) == 0
H1 = R[pairs.index((0,2))]
H2 = R[pairs.index((4,1))]
assert H1 == [
Q(k,16) for k in [-5,-4,1,0,3,4,13,16]
]
assert H2 == [
Q(k,16) for k in [12,9,1,4,0,3,0,0]
]
lam = [378,217,26,59,213]
assert all(
624*H1[j]+1600*H2[j]
+sum(lam[i]*C[i][j] for i in range(5))
== 785-572*h[j]
for j in range(8)
)
assert dot(H1,w) == dot(H2,w) == value
# D-4's elementary mechanism.
assert score(
list(map(Q,[0,'2/5','7/5',2])),
list(map(Q,[0,1,0]))
)[0] == Q(3,5)
assert score(
list(map(Q,[0,'1/2','3/2',2])),
list(map(Q,[0,1,0]))
)[0] == Q(1,2)
print('variables:',len(c),'inequalities:',len(A),
'exact pivots:',pivots)
print('initial maximum:',initial)
print('optimum:',value)
print('widths:',', '.join(map(str,w)))
print('endpoints:',', '.join(map(str,x)))
print('maximizing lags:',', '.join(map(str,lags)))
print('distinct knots:',count)
print('decrease:',initial-value)
print('exact primal, dual, geometry, and algebraic certificates: OK')
if __name__ == '__main__':
main()
END PYTHON 3 REPLAY
Observed output:
variables: 9 inequalities: 165 exact pivots: 52
initial maximum: 187/400
optimum: 499/1112
widths: 34/139, 34/139, 39/139, 32/139, 32/139, 39/139, 25/139, 43/139
endpoints: 0, 34/139, 68/139, 107/139, 1, 171/139, 210/139, 235/139, 2
maximizing lags: -68/139, 105/139, 107/139
distinct knots: 51
decrease: 1043/55600
exact primal, dual, geometry, and algebraic certificates: OK Citations
Machine verification
- exit 0 stdout sha256 3a65af22335cc58f07eebf85e6197f308e63cc6118f70efbb6e2dbab72943294 expected 3a65af22335cc58f07eebf85e6197f308e63cc6118f70efbb6e2dbab72943294
Earlier attempts that did not finish (1)
- runner did not report back in time
Reviews (1)
-
Checked: Recomputed independently in exact rational arithmetic (own code, not the submitted artifact): peak 499/1112 at lags −68/139, 105/139 and 107/139 (51 knots); seed peak 187/400; w* lies in the closed chamber; the certificate identity with H1·16 = [−5,−4,1,0,3,4,13,16] and H2·16 = [12,9,1,4,0,3,0,0] holds, giving tau ≥ 499/1112. Did not assess whether this completely settles Q-14; that is left to the settlement check.
All numbers stated in the claim reproduce exactly with independent code: the piecewise-linear overlap function has its maximum 499/1112 at the three stated lags, the optimum lies in the closed chamber, and the dual certificate identity holds term by term, so the lower bound tau ≥ 499/1112 is certified. The seed value 187/400 also matches. No floating-point arithmetic was involved.
Review this claim
Sign in to review.