"""Apply the bounded repair to return17; preserve the original evidence bytes.""" import pathlib, hashlib, json, difflib p=pathlib.Path(__file__).parent old=(p/'wall-rejected.md').read_text(encoding='utf-8') served=(p/'wall-served.md').read_text(encoding='utf-8') new=old def replace(a,b): global new assert new.count(a)==1, repr(a[:100]) new=new.replace(a,b) replace('is the working out, and it holds every number. The obstruction itself, the', 'gives the supporting calculations with their stated scope. This revision\nrepairs the five objections in the review of return #17; it does not certify\nevery retained source claim. The obstruction itself, the') a=new.index('*Where it stops* (proven, and not at the last step):') b=new.index('\n\n*Retracted, and left visible.*',a) new=new[:a]+'''*Where it stops* (measured certificates and the stated aggregation rule): the tested certificates fail at all four computed levels. At x = 7, however, the ideal per-window oracle has positive margin +2.1, while the implemented certificate needs a deviation sum at most 6.6 and delivers 7.7. Sharper certification could therefore change this finite sign; the experiment is not an impossibility theorem for harmonic analysis. At x = 11 even the ideal per-window oracle, inserted into this first-order per-prime sum, caps removals at 117.3 against a census of 90. At x = 13 and 17 the gross strike totals alone, 1,135 and 22,132, exceed the respective censuses 990 and 14,850, so even zero-deviation bounds cannot certify survival through that sum. These are obstructions to this first-order aggregation, which discards overlaps, not to all harmonic methods. An overlap-sensitive replacement changes the method; the classical inclusion–exclusion route meets Door 1's budget. The reported crossing of Σ2/q between x = 11 and 13 is background for this diagnosis (`research/NATAL-CAP-CAMPAIGN.md`, header), not a proof of a universal harmonic obstruction (`research/natal-cap-02-fourier-budget.js`, reading 4).'''+new[b:] replace('the one measured step, Chebyshev to degree 4, buys 45× to 59× against', 'the one measured step, Cantelli to the searched degree-4 family, buys\n45× to 59× against') replace('survivors = census·∏(1−2/q), which is the Hardy–Littlewood statistical base\nreached from a capacity ledger (the product reproduces T₁₃\'s 456 survivors as\n456.4; its divergence is the heuristic, not a theorem). The union-bound route with overlap corrections', '''the independent residue-class model predicts census·∏(1−2/q) survivors. At T₁₃ this model gives 456.4, compared with the actual anchored count 456; the product is not an identity for that count. Growth of the model product can be proved using Mertens' theorem. Transferring that growth to the actual anchored survivors is the unproved step in this Hardy–Littlewood reading. The union-bound route with overlap corrections''') replace('''constrained two-class law was refitted on 2026-08-18 and reads 0.762·x·ln²x·lnln x over x = 11 through 79, with the pure c·x·ln²x form excluded there; the h₂ reading above is unaffected (`research/two-class-lower-bounds.md`).''', '''constrained two-class data on x = 11 through 79 favor the finite-window description 0.76·x·ln²x·lnln x over the tested pure c·x·ln²x form. The 2026-08-19 adversarial rider retains this ranking but withdraws the claim of two independent instruments; the diagnostics share the same data and frame, and the ranking changes with the fitted window. This does not exclude an asymptotic growth shape. The coefficient is stated to two significant figures, and the free h₂ quantity above is a different object (`research/two-class-lower-bounds.md` §6; `research/history/staging/redteam-2026-08-18.md` §1c–h).''') replace('''arithmetic Scour itself. Let E(x) be the exact mean of the same count over the rotation ensemble of all W phases. The **anchored bias** is β(x) = S(x)/E(x).''', '''arithmetic Scour itself. Put y = y(x), the largest prime at most √W, and let E(x) be the independent residue-class mean E(x) = (2/30)·W·∏_{7≤p≤y(x)}(1 − 2/p). Equivalently, E(x) is the natal census times the product over scour primes x < q ≤ y of (1 − 2/q), with each prime's phase chosen independently and uniformly. The **anchored bias** in the table is β(x) = S(x)/E(x). This is the CRT product mean, not the mean S̄ of the W diagonal phases in Face 2. For example, at x = 23 the reported values are S(0) = 597,475, S̄ = 815,732.55 and E = S_CRT = 669,028.80: S(0)/S̄ = 0.7324 while β = 0.8930 (`research/natal-cap-35-x-multiplicity.js`, OUTPUT @23; the product formula is `paper/anchored-note.md` §6, whose earlier ensemble description also needs this distinction).''') replace('''S̄, neither of which is known. So Assumption A restated in its true channel reads: the anchored overlap-credit deficit stays below (1 − ε) of the mean survivor count. The anchor's own credit crosses from surplus into deficit,''', '''S̄, neither of which is known. To compare this channel with Assumption A, keep both the strike fluctuation and the different normalization. If T is the total number of strikes with multiplicity and X the overlap credit, then S = N − T + X and S(0) ≥ εE ⇔ [X̄ − X(0)] + [T(0) − T̄] ≤ S̄ − εE. This is an algebraic identity, with bars denoting diagonal-phase means and E the independent-class mean defined in Face 1. An overlap-only relative bound requires additional control of T(0) − T̄ and S̄/E; it is not the same statement by definition. The anchor's own credit crosses from surplus into deficit,''') replace('monotonically at every depth beyond 5% of the scour on the three', 'monotonically at every tested depth beyond 5% of the scour on the three') (p/'wall-note.revised.md').write_text(new,encoding='utf-8',newline='\n') for label,base in [('wall-note.patch',served),('repair-relative-return17.patch',old)]: patch=''.join(difflib.unified_diff(base.splitlines(True),new.splitlines(True),fromfile='paper/wall-note.md',tofile='paper/wall-note.md')) (p/label).write_text(patch,encoding='utf-8',newline='\n') sources={name:hashlib.sha256((p/name).read_bytes()).hexdigest() for name in ['wall-served.md','wall-rejected.md','wall-note.revised.md','wall-note.patch','repair-relative-return17.patch','growth.md','growth-redteam.md','fourier.js','quartic.js','multiplicity.js','anchored.md']} (p/'source-hashes.json').write_text(json.dumps(sources,indent=2)+'\n',encoding='utf-8') print(json.dumps({'revision_sha256':sources['wall-note.revised.md'],'changed_lines':len(list(difflib.unified_diff(old.splitlines(),new.splitlines()))),'arithmetic':{'beta23':597475/669028.80,'diagonal23':597475/815732.55,'Cantelli_ratios':[.0114/.000194,.0113/.000251,.00918/.000162]}}))