# Summary table for job 4314. Columns: H = hybrid (sup of d<=D part + L1 tail)/mean_m; sup X_{>h} = exact sup of the # in-band part with d > h (largest divisor D <= h); H(D<=h)/sup X_{>h} = L1-vs-actual (phase-cancellation) factor. # from s__.jsonl (split4314.py output) and #1932's premise4323.out. import json, math prem = {} for l in open('premise4323.out'): o = json.loads(l); prem[(o['x'], o['dim'], o['h'])] = o['band_terms'] print('| x | dim | which | h (exp) | band terms | L1/mean | H(D<=h) | H(Dh}/mean | H(D<=h)/sup X_{>h} | gates |') print('|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|') for x in (11, 13, 17, 19): for dim in (1, 2): for l in open('s_%d_%d.jsonl' % (x, dim)): o = json.loads(l) gc = prem.get((x, dim, o['h']), o['band_terms']) == o['band_terms'] ok = o['gate_a_blocks_vs_irfft'] < 1e-12 and o['gate_b']['max_over_mean'] == o['gate_b']['recorded_1927'] and gc print('| %d | %d | %s | %d (%.3f) | %d | %.2f | %.3f | %.3f | %d (%.3f, %d) | %d | %s | %.4f | %.3f | %.1f | %s |' % ( x, dim, o['which'], o['h'], o['exp_h'], o['band_terms'], o['L1_over_mean'], o['H_at_D_le_h'], o['H_at_D_lt_q_over_x'], o['least_D'], o['least_D_log'], o['least_D_terms'], o['q'] // x, o['D_from_which_all_certify'], o['gate_b']['max_over_mean'], o['sup_gt_at_D_le_h'], o['H_at_D_le_h'] / o['sup_gt_at_D_le_h'], ('ok' if (x, dim, o['h']) in prem else 'ok (a,b; c n/a)') if ok else 'FAIL')) # Second table: split at D* = largest divisor of q with D* <= q/x (= q/x itself, since q/x = (x-1)# divides q). print() print('| x | dim | which | D* | sup X_{<=D*}/mean | sup X_{>D*}/mean (exact) | L1_{>D*}/mean (tail) | sup+sup | H(D*) = sup+L1 | least D with sup X_{>D} <= 0.1 mean (log_x D) |') print('|---|---|---|---|---|---|---|---|---|---|') for x in (11, 13, 17, 19): for dim in (1, 2): for l in open('s_%d_%d.jsonl' % (x, dim)): o = json.loads(l) c = [r for r in o['curve'] if r['D'] <= o['q'] // x][-1] s10 = next(r for r in o['curve'] if r['sup_gt'] <= 0.1) print('| %d | %d | %s | %d | %.3f | %.3f | %.3f | %.3f | %.3f | %d (%.3f) |' % ( x, dim, o['which'], c['D'], c['sup'], c['sup_gt'], c['tail'], c['sup'] + c['sup_gt'], c['H'], s10['D'], math.log(s10['D']) / math.log(x) if s10['D'] > 1 else 0.0)) # Third table: where the cancellation in the top range d > D* = q/x happens. # A = sum_{d > D*} max|block_d| (within-block cancellation only), B = L1_{>D*}, C = max|X_{>D*}| (actual). print() print('| x | dim | which | blocks d > D* | L1 B | sum of block sups A | actual sup C | B/A (within-block) | A/C (across blocks) | block d=q: sup, L1 |') print('|---|---|---|---|---|---|---|---|---|---|') for x in (11, 13, 17, 19): for dim in (1, 2): for l in open('s_%d_%d.jsonl' % (x, dim)): o = json.loads(l); Ds = o['q'] // x top = [r for r in o['curve'] if r['D'] > Ds] A = sum(r['blk_sup'] for r in top); B = sum(r['blk_L1'] for r in top) C = [r for r in o['curve'] if r['D'] <= Ds][-1]['sup_gt'] last = o['curve'][-1] print('| %d | %d | %s | %d | %.3f | %.3f | %.3f | %.1f | %.1f | %.3f, %.3f |' % ( x, dim, o['which'], len(top), B, A, C, B / A, A / C, last['blk_sup'], last['blk_L1']))