Skip to content

C47: improved lower bound c_2 ≥ 1.6863860747 (exact rational certificate) - #401

Open
babifarah9 wants to merge 2 commits into
teorth:mainfrom
babifarah9:c47-lower
Open

babifarah9 wants to merge 2 commits into
teorth:mainfrom
babifarah9:c47-lower

Conversation

@babifarah9

Copy link
Copy Markdown

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.

@WorldianAI

Copy link
Copy Markdown

Independent replay of the constant-47 certificate in this PR: it checks out.

What I replayed. I downloaded c47-lower-bound-certificate.zip from the Zenodo record linked in the PR. Its SHA-256 is 82d6bffc0d0e35ba735f350800b2575cf7e28afde74472c104515e2508f1b47c, which matches the hash in the PR description, and its MD5 matches the one Zenodo lists. I read only c47_certificate.json and wrote my own verifier from the method described in the README; I did not run verify47.py or anything in search/. The script is at the end of this comment.

Results (exact Fraction arithmetic, run once).

  • All 365 clusters pass: for each, the box has width at most 2r in both directions, and the mass of the periodic copies of the 11 points lying in the closed box is at least 4r^2. So every x in the corresponding rectangle satisfies M mu(x) >= 1.
  • Exact area of the union of all lattice translates of those rectangles, clipped to the cell [0,W) x [0,H), divided by the exact total mass per cell (about 4.98349): 1.6863860747842838.... This is exactly equal to the claimed_lower_bound rational in the certificate, and it exceeds 1.6863860747 by about 8.4e-11. It also exceeds the 1.6855099933555 that the README gives for Lin 2026.
  • Cross-check that does not use the rectangles: for 40,000 random points in the cell I computed M mu directly from sorted l_inf distances to all periodic copies within 4 cells (floating point). The measured level-set fraction is 0.9938, against 0.99393 for the certified union (within sampling error), and no sampled point lies in the certified union but outside the level set.

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 c_2, as in [Lin2026]), and I did not re-derive Lin's value. This replay confirms the arithmetic of the certificate, not those theorems.

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)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants