TFPT scientific source excerpt Original repository path: experiments/theory-contracts/tfpt-unified-source-derivation-20261029/aps_source_review/check_original_admissibility_source.py Original file SHA-256: 2386c8851836eecdb3efb1d4ce5de4eeaa2632c0790109214b95f708fe3b3adc Inclusive original lines: 1-60 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 | """Actual four-generator admissibility complex, not a chosen spacetime model.""" 000002 | from pathlib import Path 000003 | import json 000004 | import sympy as s 000005 | 000006 | checks=[] 000007 | def need(name, value): 000008 | good=bool(value) 000009 | checks.append({'name':name,'passed':good}) 000010 | if not good: raise AssertionError(name) 000011 | 000012 | n=4; dim=1<>j)&1: 000018 | a[mask|(1<>j)&1 for j in range(n)) for mask in range(dim)] 000047 | costs=[sum(lam[j]*e[j] for j in range(n)) for e in patterns] 000048 | need('only joint zero pattern is harmonic',all((cost==0)==(mask==0) for mask,cost in enumerate(costs))) 000049 | need('every positive pattern is bounded below by a realized positive penalty',all(cost==0 or any(s.simplify(cost-lam[j]).is_nonnegative for j in range(n) if patterns[mask][j]) for mask,cost in enumerate(costs))) 000050 | need('at most sixteen fixed finite penalty eigenvalues',len(costs)==16 and all(s.simplify(sum(lam)-cost).is_nonnegative for cost in costs)) 000051 | need('positive penalty reweighting preserves the whole joint kernel',all((sum((j+2)*lam[j]*e[j] for j in range(n))==0)==(mask==0) for mask,e in enumerate(patterns))) 000052 | 000053 | # Resolvent source variation identity, with independent variations in every K_j. 000054 | v=s.symbols('v0:4'); dD=sum((v[j]*(cre[j]+ann[j]) for j in range(n)),zero) 000055 | dK=2*sum(k[j]*v[j] for j in range(n)) 000056 | need('full energy-source variation including off-diagonal insertions',s.simplify((dD*(K-z*z)-(D+z*I)*dK)+(D+z*I)*dD*(D+z*I))==zero) 000057 | 000058 | out={'date':'2026-10-31','results':['R049','R050'],'scope':'Actual original four-ghost Koszul admissibility operator; no physical ghost measure or normal-sphere to spacetime identification. Symbolic scalar joint fibers encode the whole commuting spectral family.','all_passed':all(x['passed'] for x in checks),'checks':checks,'grade_multiplicities':mult} 000059 | Path(__file__).with_name('ORIGINAL-ADMISSIBILITY-SOURCE.json').write_text(json.dumps(out,indent=2)+'\n') 000060 | print(json.dumps({'all_passed':out['all_passed'],'checks':len(checks),'grade_multiplicities':mult}))