TFPT scientific source excerpt Original repository path: experiments/theory-contracts/e-series-compiler-closure-20261023/rank_response_20261106.py Original file SHA-256: df2abb2465f2888a2fdbf75a98d52d32c262aa22282d6aff6913c8059ab3b175 Inclusive original lines: 1-41 Line numbers below refer to the original source. This bounded excerpt is source evidence; it is not a new proof/checker run. Conversation metadata and personal execution details are omitted where indicated. 000001 | """Exact existing-block E7 restriction and inverse-trace diagnostic.""" 000002 | import ast 000003 | import itertools 000004 | import json 000005 | from pathlib import Path 000006 | import numpy as np 000007 | 000008 | repo = Path(__file__).resolve().parents[3] 000009 | if not (repo / 'verification/v1_e8_glue.py').exists(): 000010 | [OMITTED: non-scientific conversation or execution metadata] 000011 | source = repo / 'verification/v1_e8_glue.py' 000012 | tree = ast.parse(source.read_text()) 000013 | fn = next(x for x in tree.body if isinstance(x, ast.FunctionDef) and x.name == 'e8_roots') 000014 | ns = {'np':np, 'itertools':itertools} 000015 | exec(compile(ast.Module(body=[fn],type_ignores=[]),str(source),'exec'),ns) 000016 | R = np.rint(2*np.array(ns['e8_roots']())).astype(int) 000017 | D5 = set(np.flatnonzero(np.all(R[:,5:]==0,axis=1))) 000018 | D3 = set(np.flatnonzero(np.all(R[:,:5]==0,axis=1))) 000019 | B = {i for i,r in enumerate(R) if np.all(np.abs(r)==1) and sum(r[:5]<0)%2==0} 000020 | assert (len(R),len(D5),len(D3),len(B)) == (240,40,12,64) 000021 | rows=[] 000022 | for i in sorted(D3): 000023 | if next(int(x) for x in R[i] if x) != 2: 000024 | continue 000025 | C = set(np.flatnonzero(R@R[i]==0)) 000026 | kept = B&C 000027 | weights = sorted({tuple(int(v) for v in R[j,5:]) for j in kept}) 000028 | assert D5 <= C and len(C)==126 and len(kept)==32 and len(weights)==2 000029 | # Every D5 root step starting in the selected block remains in it or 000030 | # is absent from the E8 shell. This checks the actual carrier action. 000031 | lookup = {tuple(r):j for j,r in enumerate(R)} 000032 | for j in kept: 000033 | for a in D5: 000034 | target = lookup.get(tuple(R[j]+R[a])) 000035 | assert target is None or target in kept 000036 | rows.append({'normal_doubled':R[i].tolist(),'root_count':len(C),'block_rank':len(kept),'family_weights':weights}) 000037 | assert len(rows)==6 and len({tuple(map(tuple,r['family_weights'])) for r in rows})==6 000038 | allowed=[16*k for k in range(5)] 000039 | assert 48 in allowed and 64 in allowed and 40 not in allowed and 56 not in allowed 000040 | result={'verdict':'PASS_SCOPED','claim':'MATH.SEAM.ESERIES.RESPONSE.20261106','six_E7_cuts':rows,'D5_equivariant_projector_ranks':allowed,'inverse_trace_E7_denominator':4,'inverse_trace_E6_triplet_denominator':6,'scope':'Native B=(16,4), D5 equivariance, idempotents and ordinary trace only. No physical coupling prediction.'} 000041 | print(json.dumps(result,indent=2))