Repository navigation
C47: improved lower bound c_2 ≥ 1.6863860747 (exact rational certificate) - #401
babifarah9 wants to merge 2 commits into
Conversation
|
Independent replay of the constant-47 certificate in this PR: it checks out. What I replayed. I downloaded Results (exact
What I did not check. I took on trust the two reductions the README cites (point masses suffice [Ald2011-discretization]; the periodic-measure area-to-mass ratio bounds I am not the author of this PR. I did this replay with AI assistance (Claude Code, Anthropic). Since CONTRIBUTING says a replay by someone other than the submitter is what is needed before an asterisk comes off, I'm leaving that decision to the maintainer. My verifier (Python standard library + numpy for the cross-check only)"""Independent replay of the constant-47 certificate (PR 401). Written from the stated method only;
the author's verify47.py was NOT executed. Exact rational arithmetic (fractions.Fraction)."""
import json, sys, math
from fractions import Fraction as F
d = json.load(open(sys.argv[1]))
W, H = F(d["W"]), F(d["H"])
pts = [(F(a), F(b)) for a, b in d["points"]]
ms = [F(m) for m in d["masses"]]
assert len(pts) == len(ms)
M = sum(ms)
rects = [[F(v) for v in r] for r in d["rectangles"]]
print("cell", float(W), "x", float(H), "points", len(pts), "total mass", float(M), "clusters", len(rects))
assert all(m > 0 for m in ms)
assert all(0 <= x < W and 0 <= y < H for x, y in pts), "points must lie in the fundamental cell"
# 1. every cluster: S = periodic copies inside the closed box; need width <= 2r and 4 r^2 <= m(S)
def copies_in_box(xlo, xhi, ylo, yhi):
tot = F(0)
i0, i1 = math.floor((xlo) / W) - 1, math.floor((xhi) / W) + 1
j0, j1 = math.floor((ylo) / H) - 1, math.floor((yhi) / H) + 1
for i in range(i0, i1 + 1):
for j in range(j0, j1 + 1):
for (px, py), m in zip(pts, ms):
X, Y = px + i * W, py + j * H
if xlo <= X <= xhi and ylo <= Y <= yhi:
tot += m
return tot
R = []
bad = 0
for k, (xlo, xhi, ylo, yhi, r) in enumerate(rects):
ok = True
if not (xlo <= xhi and ylo <= yhi and r > 0):
ok = False
if xhi - xlo > 2 * r or yhi - ylo > 2 * r:
ok = False
mS = copies_in_box(xlo, xhi, ylo, yhi)
if 4 * r * r > mS:
ok = False
if not ok:
bad += 1
print("cluster", k, "FAILS", float(4 * r * r), float(mS))
# every x with |x - p|_inf <= r for all p in the box lies in this rectangle
R.append((xhi - r, xlo + r, yhi - r, ylo + r))
print("cluster checks failed:", bad)
assert bad == 0
assert all(a <= b and c <= e for a, b, c, e in R)
# 2. exact area of (union of all lattice translates of R) inside the cell [0,W) x [0,H)
clipped = []
for (xa, xb, ya, yb) in R:
for i in range(math.floor(-xb / W) - 1, math.floor((W - xa) / W) + 2):
for j in range(math.floor(-yb / H) - 1, math.floor((H - ya) / H) + 2):
a, b = max(xa + i * W, F(0)), min(xb + i * W, W)
c, e = max(ya + j * H, F(0)), min(yb + j * H, H)
if a < b and c < e:
clipped.append((a, b, c, e))
xs = sorted({v for r in clipped for v in r[:2]})
area = F(0)
for u, v in zip(xs, xs[1:]):
ivs = sorted((c, e) for a, b, c, e in clipped if a <= u and b >= v)
length, cur_s, cur_e = F(0), None, None
for c, e in ivs:
if cur_e is None or c > cur_e:
if cur_e is not None:
length += cur_e - cur_s
cur_s, cur_e = c, e
else:
cur_e = max(cur_e, e)
if cur_e is not None:
length += cur_e - cur_s
area += length * (v - u)
bound = area / M
print("rectangles after clipping:", len(clipped))
print("exact union area / mass =", float(bound))
claimed = F(d["claimed_lower_bound"])
print("certificate's claimed value =", float(claimed))
print("area/mass >= claimed:", bound >= claimed, " equal:", bound == claimed)
print(">= 1.6863860747:", bound >= F("1.6863860747"))
print("margin over 1.6863860747 =", float(bound - F("1.6863860747")))
print("exceeds previous record 1.6855099933555 (Lin):", bound > F("1.6855099933555"))
# 3. independent numerical cross-check of {M mu >= 1} (does not use the rectangles)
import numpy as np
rng = np.random.default_rng(12345)
Wf, Hf = float(W), float(H)
P = []
for i in range(-4, 5):
for j in range(-4, 5):
for (px, py), m in zip(pts, ms):
P.append((float(px) + i * Wf, float(py) + j * Hf, float(m)))
P = np.array(P)
N = 40000
X = rng.random((N, 2)) * [Wf, Hf]
inlev = 0
disagree = 0
# membership in the certified union (exact sets, in floats) for comparison
Rf = []
for (xa, xb, ya, yb) in R:
for i in range(-2, 3):
for j in range(-2, 3):
Rf.append((float(xa) + i * Wf, float(xb) + i * Wf, float(ya) + j * Hf, float(yb) + j * Hf))
Rf = np.array(Rf)
for s in range(0, N, 2000):
xb_ = X[s:s + 2000]
dist = np.maximum(np.abs(xb_[:, None, 0] - P[None, :, 0]), np.abs(xb_[:, None, 1] - P[None, :, 1]))
order = np.argsort(dist, axis=1)
dsort = np.take_along_axis(dist, order, axis=1)
msort = P[:, 2][order]
cum = np.cumsum(msort, axis=1)
ratio = cum / (4 * np.maximum(dsort, 1e-12) ** 2)
lev = (ratio.max(axis=1) >= 1 - 1e-12)
inU = ((xb_[:, None, 0] >= Rf[None, :, 0] - 1e-12) & (xb_[:, None, 0] <= Rf[None, :, 1] + 1e-12) &
(xb_[:, None, 1] >= Rf[None, :, 2] - 1e-12) & (xb_[:, None, 1] <= Rf[None, :, 3] + 1e-12)).any(axis=1)
inlev += int(lev.sum())
disagree += int((inU & ~lev).sum()) # certified-in-union but NOT in the level set would be a failure
print("random-sample level-set fraction %.5f (certified area fraction %.5f)" % (inlev / N, float(area / (W * H))))
print("points in the certified union but NOT in the level set (must be 0):", disagree) |
Improves the lower bound for constant 47 (centered Hardy–Littlewood maximal constant over squares in R^2): 1.68550999 → 1.6863860747* (+8.8·10⁻⁴).
Construction: Lin's periodic two-mass measure (retuned) plus nine small masses (≈0.0009–0.0018) placed in the four thin slots that Lin's level set leaves uncovered. Lin's construction is a local optimum on its own (no improvement from 234 local searches in 2- and 4-point cells); the gain comes from the new slot masses.
Certificate: for a cluster S of masses and r > 0 with 4r² ≤ μ(S), every x within ℓ∞-distance r of all of S has Mμ(x) ≥ 1; these x form an explicit rectangle. The certificate lists 365 clusters (box + rational radius). A standalone verifier (Python standard library only, ~0.4 s) checks every box and mass condition and computes the area of the union in a period cell in exact rational arithmetic. It rejects mutated certificates (halved mass, stretched cell, enlarged radius, overstated claim). Point masses suffice by [Ald2011-discretization]; the periodic setting is as in [Lin2026].
Certificate and verifier: https://doi.org/10.5281/zenodo.24523954
SHA-256 of the archive: 82d6bffc0d0e35ba735f350800b2575cf7e28afde74472c104515e2508f1b47c
Markdown-only changes: one row appended to the lower-bounds table of 47a.md, reference [AF2026], a contribution note, the README cell and a Recent progress line.
AI disclosure: the construction was found, and the certificate and verifier written, with the assistance of Claude (Anthropic). I have checked the results and the references and take responsibility for them. An independent replay would be welcome; the asterisk should stay until then.