TFPT scientific source excerpt Original repository path: experiments/theory-contracts/original-admissible-source-closure-20261025/elliptic_quillen_response/check_elliptic_quillen_response.py Original file SHA-256: 54bf2d0789eae5ec37be893f9f8d1ad99ebc520e0dc1539c0679d6c6b8f149cd Inclusive original lines: 1-113 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 | """Relative flat-connection determinant on the retained square NS/NS curve. 000002 | 000003 | No new geometry, heat profile, EM identification or P1 measure is selected. 000004 | The relative heat integral independently checks the theta determinant. 000005 | """ 000006 | from pathlib import Path 000007 | import json 000008 | import mpmath as mp 000009 | 000010 | HERE=Path(__file__).resolve().parent 000011 | 000012 | 000013 | def require(condition,message): 000014 | if not condition:raise RuntimeError(message) 000015 | 000016 | 000017 | def theta(z): 000018 | # Our Jacobi argument has period one; mpmath's argument has period pi. 000019 | return mp.jtheta(3,mp.pi*z,mp.exp(-mp.pi)) 000020 | 000021 | 000022 | def log_norm(z): 000023 | return -2*mp.pi*mp.im(z)**2+2*mp.log(abs(theta(z)/theta(0))) 000024 | 000025 | 000026 | def heat_circle(t,a): 000027 | a=a-mp.nint(a) 000028 | if t