TFPT scientific source excerpt Original repository path: experiments/theory-contracts/constant-triangulation-20261103/check.py Original file SHA-256: 6cd15acc1ac0eacd9d87f8b685907c71f62075d5860f6061500dafd6aae8e2b6 Inclusive original lines: 1-115 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 | import json 000002 | from pathlib import Path 000003 | import mpmath as mp 000004 | import sympy as s 000005 | 000006 | mp.mp.dps = 70 000007 | pi = mp.pi 000008 | c = mp.mpf('299792458') 000009 | h = mp.mpf('6.62607015e-34') 000010 | hb = h/(2*pi) 000011 | G = mp.mpf('6.67430e-11') 000012 | me = mp.mpf('9.1093837139e-31') 000013 | ainv = mp.mpf('137.0359992168407') 000014 | alphaG = G*me**2/(hb*c) 000015 | u = 3/(4*pi**2)*mp.exp(-2*ainv) 000016 | rho = u*c**7/(64*pi**2*G**2*hb) 000017 | ell = mp.sqrt(hb*G/c**3) 000018 | lam = 8*pi*G*rho/c**4 000019 | SdS = 3*pi/(lam*ell**2) 000020 | 000021 | # Rows M,L,T,Q,temperature; columns c,hbar,G,kB,e,me,epsilon0,rho_energy. 000022 | dim = s.Matrix([[0,1,-1,1,0,1,-1,1], 000023 | [1,2,3,2,0,0,-3,-1], 000024 | [-1,-1,-2,-2,0,0,2,-2], 000025 | [0,0,0,0,1,0,2,0], 000026 | [0,0,0,-1,0,0,0,0]]) 000027 | vectors = { 000028 | 'alpha_without_4pi':s.Matrix([-1,-1,0,0,2,0,-1,0]), 000029 | 'alphaG_e':s.Matrix([-1,-1,1,0,0,2,0,0]), 000030 | 'rho_electron_units':s.Matrix([-5,3,0,0,0,-4,0,1]), 000031 | } 000032 | assert dim.rank() == 5 000033 | assert len(dim.nullspace()) == 3 000034 | assert all(dim*v == s.zeros(5,1) for v in vectors.values()) 000035 | assert s.Matrix.hstack(*vectors.values()).rank() == 3 000036 | 000037 | # Exact conventional four-dimensional Dirac bulk heat coefficients. 000038 | N,m0,chi,T = s.symbols('N m0 chi T', positive=True) 000039 | V = m0*chi**4*T/(4*s.pi**2) 000040 | Mb2 = m0*chi**2*T/(24*s.pi**2) 000041 | ratio = s.simplify(V/Mb2**2) 000042 | assert ratio == 144*s.pi**2/(m0*T) 000043 | assert s.simplify(V/Mb2-6*chi**2) == 0 000044 | 000045 | # Independent radial heat integrals, exact in every constant mass eigenvalue. 000046 | p,z = s.symbols('p z', positive=True) 000047 | assert s.simplify(s.integrate(p**3*s.exp(-p*p-z*z),(p,0,s.oo)) 000048 | -s.exp(-z*z)/2) == 0 000049 | assert s.simplify(s.integrate(p*s.exp(-p*p-z*z),(p,0,s.oo)) 000050 | -s.exp(-z*z)/2) == 0 000051 | 000052 | # Squared argument F(u)=exp(-sqrt(u)): coefficients exact in constant mass. 000053 | x,y = s.symbols('x y', positive=True) 000054 | A1 = 2*s.exp(-x)*(x+1) 000055 | A2 = 4*s.exp(-x)*(x*x+3*x+3) 000056 | assert s.simplify(s.integrate(2*y*s.exp(-y),(y,x,s.oo))-A1) == 0 000057 | assert s.simplify(s.integrate(2*y*(y*y-x*x)*s.exp(-y),(y,x,s.oo))-A2) == 0 000058 | assert s.simplify(s.diff(A1,x)+2*x*s.exp(-x)) == 0 000059 | assert s.simplify(s.diff(A2,x)+4*x*(x+1)*s.exp(-x)) == 0 000060 | 000061 | def p1(z): return 2*mp.exp(-z)*(1+z) 000062 | def p2(z): return 4*mp.exp(-z)*(z*z+3*z+3) 000063 | # Diagnostic only: freely chosen reference spectra, NOT a TFPT candidate. 000064 | b = mp.findroot(lambda z:2*p2(z)-p2(0)-p2(4),(2,3)) 000065 | d2 = p2(0)+p2(4)-2*p2(b) 000066 | d1 = p1(0)+p1(4)-2*p1(b) 000067 | assert abs(d2)0 000068 | # Physical four-dimensional radial integrals independently reproduce A2/2. 000069 | for z in (mp.mpf(0),mp.mpf(1),mp.mpf(4)): 000070 | direct=mp.quad(lambda p:p**3*mp.exp(-mp.sqrt(p*p+z*z)),[0,mp.inf]) 000071 | assert abs(2*direct-p2(z))0. V/Mbar^4=144pi^2/(m0 T)>=144pi^2/(m0 N).'}, 000108 | 'poisson_relative_escape_control':{'physical_TFPT_candidate':False,'rank':2, 000109 | 'mass_over_chi':[0,4],'reference_mass_over_chi':[st(b),st(b)], 000110 | 'vacuum_coefficient_difference':st(d2),'Einstein_coefficient_difference':st(d1), 000111 | 'scope':'Numerical witness against extending the heat obstruction to all relative profiles; existence follows by strict monotonicity and intermediate value theorem. Freely chosen spectra cannot select the physical reference.'}, 000112 | 'verification':'Dimension rank and basis exact; heat identity exact; Poisson integrals and derivatives symbolic; direct radial quadrature at 0,1,4; dimensionless identities checked at 70 digits.', 000113 | } 000114 | Path(__file__).with_name('results.json').write_text(json.dumps(out,indent=2,ensure_ascii=False)+'\n') 000115 | print(json.dumps(out,indent=2,ensure_ascii=False))