diff --git a/.github/workflows/remote-mixed-inverse.yml b/.github/workflows/remote-mixed-inverse.yml new file mode 100644 index 000000000..8551c08e4 --- /dev/null +++ b/.github/workflows/remote-mixed-inverse.yml @@ -0,0 +1,54 @@ +name: Remote mixed inverse-power finite controls + +'on': + pull_request: + paths: + - 'frontiers/remote_mixed_inverse_20260929/**' + - '.github/workflows/remote-mixed-inverse.yml' + - 'frontiers/remote_window_20260924/PROOF.md' + - 'frontiers/remote_collision_20260928/PROOF.md' + - 'frontiers/window_multiplicity_laws_20260928/REMOTE_PAIR_LAW.md' + - 'frontiers/remote_inverse_separation_20260928/PROOF.md' + push: + branches: [main] + paths: + - 'frontiers/remote_mixed_inverse_20260929/**' + - '.github/workflows/remote-mixed-inverse.yml' + workflow_dispatch: + +permissions: + contents: read + +jobs: + exact-mixed: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 + with: + persist-credentials: false + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 + with: + python-version: '3.11.16' + - name: Exact packet, both modes and upstream source bytes + run: | + set -euo pipefail + python -B -S frontiers/remote_mixed_inverse_20260929/verify.py --output "${RUNNER_TEMP}/mixed-inverse-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}" + python -B -S - <<'PY' + import hashlib, json, pathlib + repo = pathlib.Path.cwd().resolve() + source_map = json.loads((repo / 'frontiers/remote_mixed_inverse_20260929/SOURCE_MAP.json').read_text()) + for item in source_map['sources']: + rel = pathlib.PurePosixPath(item['path']) + if rel.is_absolute() or '..' in rel.parts: + raise ValueError('source path escapes repository') + path = repo.joinpath(*rel.parts) + if any(repo.joinpath(*rel.parts[:i]).is_symlink() for i in range(1, len(rel.parts)+1)): + raise ValueError('source symlink forbidden') + data = path.read_bytes() + actual = (len(data), hashlib.sha256(data).hexdigest(), hashlib.sha1(f'blob {len(data)}\0'.encode()+data).hexdigest()) + if actual != (item['bytes'], item['sha256'], item['git_blob']): + raise ValueError('upstream identity differs: ' + item['id']) + print('Four upstream byte identities verified; not analytic acceptance.') + PY + git diff --exit-code diff --git a/frontiers/remote_mixed_inverse_20260929/PROOF.md b/frontiers/remote_mixed_inverse_20260929/PROOF.md new file mode 100644 index 000000000..975d8211a --- /dev/null +++ b/frontiers/remote_mixed_inverse_20260929/PROOF.md @@ -0,0 +1,374 @@ +# Mixed inverse distance and height-gap moments of remote critical-point pairs + +Object: OA-REMOTE-MIXED-INVERSE-20260929-v1. +Author: OpenAI / ChatGPT, 29 September 2026. +Disposition: AUTHOR-SIDE MATHEMATICAL CANDIDATE; nonauthor analytic review required. +Scientific effect NONE. No existing source, review verdict, registry, graph, lemma +flag or prize is changed. All constants in the Gaussian claims are existential. + +## 1. Exact objects and the new question + +Use RM/RC/RP/RI in SOURCE_MAP.json. The field is the same variance-one periodized +Gaussian field on a fixed torus of side L, in a FIXED dimension d>=2. The original +maximum and saddle pins are M=-(r/2)u and S=(r/2)u, heights b and b-kr^3, with both +gradients zero. Birth marks b range over a compact real set, gap marks k over a +compact subset of (0,infinity) bounded away from zero; all orthonormal pin frames +are permitted. Constants may depend on these fixed parameters, never uniformly +on growing d,L or vanishing remote exclusion. + +Q_r is the original endpoint-conditioned Gaussian law. Retain the full weight +W_r=F_d(H_M)F_(d-1)(H_S) and the endpoint-only normalizer Z_r=E_Qr W_r. The index +convention counts negative eigenvalues; F_j is the absolute determinant on index +j, zero at singular Hessians. Q_r^W=(W_r/Z_r)Q_r. No witness-conditioned denominator +or adjacency event is introduced. + +Fix rho>0 and a deterministic positive-volume Borel E inside the same remote +region D_rho. E is FIXED as r varies. Count every critical index in E with height +in I_r=(b-kr^3,b). All pairs are ordered and distinct. Write + + delta=dist(x,x'), Delta=|f(x')-f(x)|, + theta=(b-f(x))/(kr^3), theta'=(b-f(x'))/(kr^3), + G=|theta-theta'|=Delta/(kr^3). + +For nonnegative inverse exponents q,beta define the nonnegative extended moment + + H_(q,beta)(r)=E_Qr^W sum_(x!=x') delta^(-q) Delta^(-beta). (M1) + +The sums are over counted pairs. Powers zero are one. At zero height difference, +negative powers are defined by increasing truncation. Distinct critical values +hold on the generic locus; equivalently, the off-diagonal value density shows +that this zero-height set has zero expected pair count. Tonelli/truncation makes +(M1) well-defined without assuming its integrability. Almost-sure finite point +counts do not imply finite expectations of inverse powers. + +This note asks for the simultaneous distance AND actual height-gap singularity. +A product of two separately finite-moment claims is not enough. The cubic relation +Delta=delta^3|t| makes their strengths interact. RP's unweighted gap law and RI's +inverse-distance theorem are credited, not presented as new results here. + +Put lambda=q+3beta. The claimed finite domain in the nonnegative quadrant is + + q>=0, beta>=0, lambda<2. (M2) + +### Theorem M: sharp domain, asymptotic coefficient and tilted height law + +For every sufficiently small fixed r>0, (M1) is finite IF AND ONLY IF (M2) holds. +For each fixed (q,beta) in (M2), as r goes to zero, + + H_(q,beta)(r)=r^(5-q-3beta) D_(q,beta)+o(r^(5-q-3beta)), (M3) + +with a strictly positive finite contact coefficient specified below. Uniformity +is on the fixed compact mark/frame sets for this fixed E; no little-o rate or +uniformity up to the exponent boundary is asserted. + +Let A_p be RI's microscopic distance coefficient. Then + + D_(q,beta)=k^(-beta) A_(-q) + (2-q)(5-q)/[(2-q-3beta)(5-q-3beta)]. (M4) + +Define a probability measure by weighting the EXPECTED ordered-pair measure with +delta^(-q)Delta^(-beta), and normalizing by H_(q,beta)(r). This is not a rule for +sampling a field conditioned on multiple points. Its joint height-deficit law +converges in total variation (the probability convention) to + + h_alpha(a,b)=alpha(alpha+1)|a-b|^(alpha-1)/2, + alpha=(2-q-3beta)/3>0, (a,b) in (0,1)^2. (M5) + +Thus G tends to Beta(alpha,2), with + + E G=alpha/(alpha+2), + Var G=2alpha/[(alpha+2)^2(alpha+3)]. (M6) + +These are limits of weighted critical-point marks, not persistence lifetimes. +At q=beta=0, alpha=2/3 recovers RP, including mean1/4 and variance9/176. Inverse +distance weighting q=1,beta=0 gives alpha=1/3 and mean1/7. The same height law +comes from q=0,beta=1/3, but the location/direction/jet weighting is different. +No equivalence of those full pair measures is claimed. + +### Fixed-r diagonal refinement and cutoffs + +For 0<=beta<1, let j_(r,beta)(delta) be the radial expected pair density weighted +by Delta^(-beta), but NOT by delta^(-q). At each fixed sufficiently small r, + + j_(r,beta)(delta)~J_(r,beta) delta^(1-3beta), + 00 in the collision chart and beta<1, restrict (M1) to + epsilon2: H_cut~J_(r,beta) epsilon^(2-lambda)/(lambda-2). (M8) + +No bounded remainder at the logarithmic threshold follows from (M7). For beta>=1, +a positive distance cutoff need not regularize the height-gap singularity; (M8) +is deliberately not asserted there. Infinite total moments for that range are +proved separately below. No arbitrary coupled cutoff epsilon(r) is claimed. + +## 2. What is actually imported + +RM supplies smooth conditional regression, positive Fourier spectrum and the +independence of distinct derivative functionals, the original full normalizer, +deterministic endpoint identities and all required finite field-norm moments. +RC supplies the two-witness Kac-Rice measure, its collision observation frame, +a joint covariance floor through r=delta=0, target-density decay times conditional +moment bounds, and the fixed-positive-separation estimates. RP supplies the coupled +conditional field construction, determinant limits and fixed-Borel translation +argument. RI identifies A_p and the positive fixed-r conditional jet list. + +These are used at their exact fixed-remote scopes. In particular W_r/r^2 under +ADDITIONAL witness conditioning uses coupled field moments and endpoint identities. +Z_r/r^2->z_0 is a SEPARATE endpoint-only assertion. The latter alone would not +supply the former. The three relevant spatial sites at fixed r are M,S,x; at +positive witness separation there are four. The full observation vectors are +nonduplicated. The fixed-r support argument is not a uniform full endpoint-Hessian +covariance assertion as r tends to zero. + +C4's p=1 distance crossover and its upper tail are not needed by this proof. +C5's single-point height law is a different sampling object and is not an input. +No historical blocked executable is consumed or recreated. + +## 3. Uniform weighted domination in the two collision variables + +In a near-diagonal chart, x'=x+delta e with delta=1, the windows imply +|t|=1. (M11) + +Both ends are integrable exactly on (M2) within q,beta>=0. This statement concerns +the envelope; the necessity direction for the ACTUAL moment is not inferred from +failure of an upper bound, and will be proved by a positive diagonal coefficient. + +For rigor with arbitrary fixed Borel E, first truncate s to [s_0,S_0], t away from +zero and infinity, and then remove 1_E(x+rse) by continuity of translation in L1. +On the truncated sets the remaining coefficients are uniformly bounded. The +integrable (M10) controls the removed regions, and (M11) controls the s tails. +This avoids assuming almost every boundary point of E has a useful pointwise +limit. It does not permit arbitrary oscillating E_r or field-selected sets. + +At separated positions delta>=eta_0, the weight delta^(-q) is bounded. The joint +value density times all determinant moments is uniformly bounded over the compact +height targets by distinct-site regression. Since beta<1, + + integral_(I_r x I_r) |y-y'|^(-beta)dy dy' + =2(kr^3)^(2-beta)/[(1-beta)(2-beta)]. (M12) + +The separated contribution is O(r^(6-3beta)), which divided by r^(5-q-3beta) is +O(r^(1+q)) and tends to zero. This argument uses the full value density; an +unweighted separated-pair bound alone would not control the inverse height gap. + +## 4. Compute the coefficient without discarding correlations + +Let Q_0 be the contact endpoint Gaussian law, with contact weight w_0 and full +normalizer z_0>0. At remote x and direction e set + + Y=(grad f(x),H_x e,f(x)), + A=H_x restricted to e-perp, T=D^3f(x)[e,e,e]. + +At bounded nonzero t, the coupled limit of the normalized determinant product is +36t^2(det A)^2, while W_r/r^2->w_0 under this same conditioning. Let +Psi(x,e,t) denote the conditional target density of (Y,-T/12) at (0,0,b,t) times +E[w_0(det A)^2 | Y=(0,0,b),-T/12=t]. This is a nonnegative smooth-in-target Gaussian +weighted density with sufficient integrable moment control, not a product of +independent Hessian/height distributions. The ordinary sphere measure is de. + +Integrating z in (M9) gives (k-s^3|t|)_+. Put lambda=q+3beta. For t!=0, + + integral_0^infinity s^(1-lambda)(k-s^3|t|)_+ ds + =3 k^((5-lambda)/3)|t|^(-(2-lambda)/3) + /[(2-lambda)(5-lambda)]. (M13) + +Indeed the upper root is s_max=(k/|t|)^(1/3), and direct integration gives +k s_max^(2-lambda)/(2-lambda)-|t| s_max^(5-lambda)/(5-lambda). +Multiplying by 36|t|^(2-beta) yields the exponent + + 2-beta-(2-q-3beta)/3=(4+q)/3. (M14) + +The beta-dependence cancels in this T moment, but NOT in the coefficient or its +k exponent. Converting t=-T/12 gives + + D_(q,beta)= + 3*12^((2-q)/3)*k^((5-q)/3-beta) + /[4(2-q-3beta)(5-q-3beta)z_0] + * integral_E dx integral_S de p_(Y|Q0)(0,0,b) + E[w_0 |T|^((4+q)/3)(det A)^2 |Y=(0,0,b)]. (M15) + +In (M2), 0<=q<2, so the exponent of |T| lies in [4/3,2). All needed moments +are finite. The positive full conditional support in RP/RI makes the integral +strictly positive. Its uniform compact-parameter finiteness and continuity follow +from the same regression/moment bounds. The k power in front is NOT a pure scaling +law: Q_0 also depends on k through the endpoint target f_xxx(0)=12k. + +(M10) and the coupled convergence prove weighted L1 convergence of the complete +blown-up densities. Tonelli away from t=0 followed by monotone exhaustion proves +(M15) without assigning meaning to an undefined zero-times-infinity product. +This proves (M3). Comparing (M15) with RI's A_p at p=-q proves (M4). + +## 5. The universal height law after mixed weighting + +For t!=0 set g=s^3|t|/k. The weighted radial element transforms as + + s^(1-q-3beta)ds + =(1/3)(k/|t|)^alpha g^(alpha-1)dg, + alpha=(2-q-3beta)/3. + +With z=k theta, for each sign of t the allowed lower of the two deficit marks +ranges freely over (0,1-g). The leading density has no dependence on that lower +mark. The remaining t power is again (4+q)/3, independent of beta. Thus the gap +has unnormalized density g^(alpha-1)(1-g), and + + integral_0^1 g^(alpha-1)(1-g)dg=1/[alpha(alpha+1)]. (M16) + +Interchanging the ordered pair swaps the two heights, leaves delta and Delta +unchanged, and preserves its expected weighted measure. Equal heights are null. +Consequently both triangles have equal mass. This proves (M5), including its +factor one-half, and G~Beta(alpha,2). Conditional on G=g, the smaller deficit is +uniform on (0,1-g), and the orientation is equiprobable. These statements describe +the LIMIT law; exact finite-r uniformity or independence is not claimed. + +Weighted L1 convergence from Section 4 contracts under the measurable height +pushforward; normalization by its converging positive mass proves probability TV +convergence in (M5). This is not deduced from RP's UNWEIGHTED TV convergence, since +our inverse weights are unbounded. All bounded limiting height moments follow. + +The marginal deficit density and height correlation are + + f_alpha(a)=(alpha+1)[a^alpha+(1-a)^alpha]/2, + Corr(theta,theta')=(2-alpha-alpha^2)/(2+alpha+alpha^2). (M17) + +To derive the correlation, use the conditional uniform smaller mark: writing +m1=E G and m2=E G^2, E theta^2=1/3-m1/6+m2/3 and +E(theta theta')=1/3-m1/6-m2/6, with E theta=1/2. This gives (M17) and recovers +2/7 for the original alpha=2/3 law, versus 7/11 at alpha=1/3. + +As a SEPARATE exponent-boundary limit taken AFTER the field limit, alpha down to +zero gives G->0 in probability and the marginal density tends to uniform in L1. +The joint law therefore tends weakly to (U,U), U uniform on (0,1). Its TV distance +from that diagonal law is nevertheless exactly one for every alpha>0, since the +joint density is absolutely continuous and the diagonal measure is singular. +This boundary observation does not justify a simultaneous r/exponent limit. + +## 6. A positive fixed-r coefficient proves necessity + +First fix 0<=beta<1 and a sufficiently small positive r. Use the SAME full RC +value-gradient frame at x,x+delta e, but now integrate y=f(x) directly over I_r. +The second height is y'=y+delta^3t, with dy'=delta^3dt. Its contribution has the +radial factors + + delta^(d-1) * delta^(-d-3) * delta^3 * delta^2 + * delta^(-3beta) = delta^(1-3beta). (M18) + +The normalized pair determinants divided by delta^2 tend to (T^2/4)(det A)^2. +For almost every y in I_r and bounded t, the second window indicator tends to +one. The fixed-r coupled field moments bound the pre-limit integrand by +C_r |t|^(-beta)(1+|t|)^(-N)1_{y in I_r}. This is integrable for beta<1. Boundary +heights are Lebesgue null; no indicator is differentiated. Integrable truncation +and the fixed-Borel L1 translation remove the second spatial indicator as before. +Thus (M7) follows with + + J_(r,beta)=12^beta/(4Z_r) integral_E dx integral_S de + p_(grad f(x),H_x e |Q_r)(0,0) + E_Qr[W_r 1_{f(x) in I_r}|T|^(2-beta)(det A)^2 + |grad f(x)=0,H_x e=0]. (M19) + +The raw finite-r observation list and endpoint/witness Hessian/third-derivative +complements have positive covariance at their distinct sites, by RM/RI's exact +positive-spectrum argument. They charge the open set with correct endpoint +indices, witness height strictly inside I_r, nonsingular A and nonzero T. +The integrand in (M19) is strictly positive there. Compactness in x,e at FIXED r +and bounded conditional moments give 00 is inferred from this fixed-r claim. + +The positive radial asymptotic, rather than a failed envelope estimate, gives +integrability exactly when 1-q-3beta>-1 for beta<1. Separated-position finiteness +uses (M12). The matching lower and upper comparisons near zero prove the cutoff +equivalences (M8) by first fixing a coefficient-error tolerance, then sending +epsilon to zero, then sending that tolerance to zero. No quantitative error rate +in (M7) is available, so no bounded logarithmic remainder is claimed. + +For beta>=1, take the already divergent moment at q=0,beta_0=2/3. Every counted +height gap satisfies 0=0, + + delta^(-q) Delta^(-beta) + >= D_T^(-q) ell_r^(-(beta-beta_0)) Delta^(-beta_0). (M20) + +The prefactor is strictly positive for fixed r, and Tonelli preserves the +inequality. Hence (M1) is infinite there. This closes the entire nonnegative +quadrant without wrongly claiming that a distance cutoff makes a beta>=1 +height singularity integrable. The fixed-r necessity and sufficiency are proved. + +## 7. Contact matching and a residue check + +For beta<1, disintegrate (M19) in y=b-kr^3theta, giving dy=kr^3dtheta. The contact +frame (U_r,grad f,H e,f) has the uniform covariance sandwich through r=0. +Extra-conditioned endpoint identities and moment bounds give W_r/r^2->w_0; +separately Z_r/r^2->z_0. Since 2-beta>1, the T moment is continuous and uniformly +integrable. Dominated convergence therefore yields + + J_(r,beta)/r^3 -> J_(0,beta)>0, + J_(0,beta)=12^beta k/(4z_0) integral_E dx integral_S de + p_(Y|Q0)(0,0,b)E[w_0|T|^(2-beta)(det A)^2|Y]. (M21) + +For fixed beta in [0,2/3), increase q to q_*=2-3beta from below. Formula (M15) +and dominated continuity of its positive T moments give the residue identity + + (2-q-3beta)D_(q,beta) -> J_(0,beta). (M22) + +At the boundary the remaining denominator is3, the power of12 becomes beta, +the k power is1, and the T power is2-beta. This checks the collision coefficient +and the microscopic coefficient independently; it is not a theorem about +arbitrary coupled limits q(r), beta(r) or epsilon(r). + +## 8. Scope and falsification targets + +The new conclusions are the sharp coupled domain, the mixed coefficient, the +weighted beta family, and the fixed-r weighted diagonal/cutoff/contact formulas. +The cases beta=0 reuse RI, and q=beta=0 reuse RP. No generic critical-point +repulsion, Kac-Rice theorem, beta integral or Gaussian regression identity is +claimed as an invention. Limited primary-source reconnaissance is recorded; +no exhaustive novelty or worldwide-priority claim is made. + +Nonauthor review should target: the t=0 singularity before and after conditioning; +both integrated ends of (M10); the actual two-height separated estimate (M12); +beta cancellation in (M14); preserving W once/Z once; positivity of (M19), not +just an upper envelope; fixed-r versus contact/exponent limits; and probability +TV on the correctly WEIGHTED expected-pair measure. No same-index threshold, +field-event sampling law, arbitrary real two-exponent domain, uniform-in-d bound, +rho->0 extension, C4 crossover import, numerical Gaussian coefficient, or global +pin-inclusive assertion is included. + +The finite suite checks rational exponents, coefficient factors, beta moments, +correlation, cutoff algebra and boundary sensitivity. It does not prove a Gaussian +covariance floor, Kac-Rice applicability, weighted dominated convergence or the +support argument. Those remain the written analytic obligations above. The new +program is not a reconstruction of #116's unavailable historical executable. diff --git a/frontiers/remote_mixed_inverse_20260929/README.md b/frontiers/remote_mixed_inverse_20260929/README.md new file mode 100644 index 000000000..a107c9de5 --- /dev/null +++ b/frontiers/remote_mixed_inverse_20260929/README.md @@ -0,0 +1,32 @@ +# Mixed inverse powers on the expected remote pair measure + +Author-side mathematical candidate; nonauthor analytic review required. +Scientific effect NONE. No existing proof or status is modified. + +[PROOF.md](PROOF.md) proposes a sharp coupled finiteness domain +q+3beta<2 for nonnegative inverse distance and ACTUAL height-gap powers. It gives +a mixed microscopic coefficient, the tilted Beta((2-q-3beta)/3,2) gap law, +positive fixed-r weighted diagonal coefficients, cutoff equivalents, and a +contact/residue consistency identity. All original fixed-remote/full-tilt and +expected-ordered-pair sampling restrictions are retained. + +The weak diagonal limit at the exponent boundary is not a TV limit and is not +a joint limit with r. Fixed-r cutoff equivalents have no claimed bounded +logarithmic remainder. The result does not concern persistence partners, +field-event-conditioned sampling, or same-index inverse thresholds. + +Run the self-contained finite packet check: + + python -B -S verify.py --output /path/to/new-output + python -B -O -S verify.py --output /path/to/another-new-output + +Each invocation verifies exact flat source membership and identities, executes +18 tests in BOTH Python modes and rejects eight semantic changes on their +intended assertions. It writes only to a new output directory outside the packet. +The checker proves finite identities and guards; it does not verify the Gaussian +analysis. The hosted workflow separately checks the current bytes of all four +consumed upstream source files against SOURCE_MAP.json. Packet-only local replay +does not claim a full upstream checkout. + +No unavailable historical author executable is reconstructed. Primary-source +reconnaissance and exact dependency exposure are recorded in the companion files. diff --git a/frontiers/remote_mixed_inverse_20260929/RECONNAISSANCE.md b/frontiers/remote_mixed_inverse_20260929/RECONNAISSANCE.md new file mode 100644 index 000000000..d57a9f241 --- /dev/null +++ b/frontiers/remote_mixed_inverse_20260929/RECONNAISSANCE.md @@ -0,0 +1,33 @@ +# Dependency-focused reconnaissance — 29 September 2026 + +Scientific effect NONE. No exhaustive novelty audit or historical priority claim. + +Consensus was called for joint critical-point distance/height differences, inverse +moments and Kac-Rice. It returned its monthly 30-search quota error, with October 1 +reset. No paper result from that call is invented or cited as read. + +Direct primary-source abstract/publisher records inspected through web search: + +1. Jean-Marc Azais and Celine Delmas, Mean number and correlation function of + critical points of isotropic Gaussian fields and some results on GOE random + matrices, arXiv:1911.02300; SPA150(2022),411-445. + https://arxiv.org/abs/1911.02300 +2. Stephen Muirhead, A second moment bound for critical points of planar Gaussian + fields in shrinking height windows, arXiv:1901.11336; Statistics & Probability + Letters160(2020),108698. + https://arxiv.org/abs/1901.11336 +3. Louis Gass and Michele Stecconi, The number of critical points of a Gaussian + field: finiteness of moments, PTRF190(2024),1167-1197. + https://doi.org/10.1007/s00440-024-01273-5 + +The records concern related collision correlations, shrinking windows and moment +finiteness. Generic adjacent-index attraction, Gaussian regression and Kac-Rice +are not claimed as new. These abstract-level reads do not establish this exact +pinned/full-tilt mixed inverse-power theorem, nor exclude its having antecedents. +No external theorem was silently imported from an abstract. The actual consumed +premises are the complete source-bound RM/RC/RP/RI project manuscripts. + +The new argument is a weighted-consumer extension. Its added obligations are +weighted domination near t=0 and s=0, a positive weighted fixed-r diagonal +coefficient, and the correctly normalized beta pushforward. The beta integrals, +power-law integrability criterion, Tonelli, and TV contraction are classical. diff --git a/frontiers/remote_mixed_inverse_20260929/RESULTS.json b/frontiers/remote_mixed_inverse_20260929/RESULTS.json new file mode 100644 index 000000000..e7593ba8b --- /dev/null +++ b/frontiers/remote_mixed_inverse_20260929/RESULTS.json @@ -0,0 +1,8 @@ +{ + "tests_per_mode": 18, + "semantic_mutants_per_mode": 8, + "identical_output_pairs": 9, + "all_intended_failures": true, + "scientific_effect": "NONE", + "continuum_proof_verified_by_code": false +} diff --git a/frontiers/remote_mixed_inverse_20260929/SOURCE_FILES.json b/frontiers/remote_mixed_inverse_20260929/SOURCE_FILES.json new file mode 100644 index 000000000..77a3bbf5b --- /dev/null +++ b/frontiers/remote_mixed_inverse_20260929/SOURCE_FILES.json @@ -0,0 +1,54 @@ +{ + "schema": 1, + "scientific_effect": "NONE", + "files": [ + { + "path": "PROOF.md", + "bytes": 19335, + "sha256": "f0cfa581e93ffbca8e167ccfaeddf222c27d0625dc81c492a1f3da1e8de123eb", + "git_blob": "975d8211a30be05cb337c81036a0c8de8a9f4264" + }, + { + "path": "README.md", + "bytes": 1769, + "sha256": "5c0ae3ae6a73be0c606f5a6150ab9be742bca9cdb66cebafafce3c11ee4d1864", + "git_blob": "a107c9de59a8c51aafcf296bb6cb098a2be474ec" + }, + { + "path": "RECONNAISSANCE.md", + "bytes": 1902, + "sha256": "44d6c737d95ae4aa4820a4fe757487ab483ea76e481c48ca0fecd9999cd9e2ab", + "git_blob": "d57a9f241935ccdaff0bad8605b8a80ea2d13717" + }, + { + "path": "RESULTS.json", + "bytes": 201, + "sha256": "2565293c04bb0e0e1bcb80bd3edaa261b9c6b40b3d8592fa29119d710b3370c3", + "git_blob": "e7593ba8b750f4a3e7ef51a14671e964e2e98d5b" + }, + { + "path": "SOURCE_MAP.json", + "bytes": 2039, + "sha256": "a2d4b1e2791ba8165628c071874a6bb42e496de36f67ef2b6d882d881b772317", + "git_blob": "99cfa01802af35eed8b37886d6935e860adad3d9" + }, + { + "path": "mixed.py", + "bytes": 3962, + "sha256": "e5963006389366717241853421ea02f9699d719ec8d2024d9c5265ad5f4583e6", + "git_blob": "b45f03815270d2a667c7fdfb4860b0fad8e6066b" + }, + { + "path": "test_mixed.py", + "bytes": 6299, + "sha256": "528eed59b26d0456140946511777624b78c58e0e402bfe955a6a737b79e3d2b5", + "git_blob": "2a92b965b4b3247fdfed3d30295edd6f30dc87ae" + }, + { + "path": "verify.py", + "bytes": 5146, + "sha256": "215a5d7567b4e541cf8e53e1bd1f00a1fa71f39c0b687e22849cfe37d4328d31", + "git_blob": "38c7aecf7ca69370a488472d3ba9bb8e4e8b8ef8" + } + ] +} diff --git a/frontiers/remote_mixed_inverse_20260929/SOURCE_MAP.json b/frontiers/remote_mixed_inverse_20260929/SOURCE_MAP.json new file mode 100644 index 000000000..99cfa0180 --- /dev/null +++ b/frontiers/remote_mixed_inverse_20260929/SOURCE_MAP.json @@ -0,0 +1,51 @@ +{ + "scientific_effect": "NONE", + "repository": "d6g8k5htny-coder/Math-", + "sources": [ + { + "id": "RM", + "path": "frontiers/remote_window_20260924/PROOF.md", + "commit": "e7f8aca41c308f8ad8614b587f75916943c86f27", + "bytes": 18355, + "sha256": "a332bae9bdc0106ce17047f7e0409cc3d94eb610a0c7b74ba5ba2d01a1620cb7", + "git_blob": "b383bfcc88ec4ad497dff01fb6640e429ba24a84" + }, + { + "id": "RC", + "path": "frontiers/remote_collision_20260928/PROOF.md", + "commit": "e7f8aca41c308f8ad8614b587f75916943c86f27", + "bytes": 26002, + "sha256": "b9b8b58fd8266db7ffe6537078003888ef138b445d3289ec5588f116af9050c2", + "git_blob": "7b48a88e2af54e759e89a8c8219573bb450a65ea" + }, + { + "id": "RP", + "path": "frontiers/window_multiplicity_laws_20260928/REMOTE_PAIR_LAW.md", + "commit": "e7f8aca41c308f8ad8614b587f75916943c86f27", + "bytes": 15878, + "sha256": "b818a11f1abcf37616d592ecda6341b0d99365cf3ac5047bc2dbaede95da4c5e", + "git_blob": "3fb602040b37158b16ba61bdfc62cc8df1ccc616" + }, + { + "id": "RI", + "path": "frontiers/remote_inverse_separation_20260928/PROOF.md", + "commit": "b3880006df94573b4d99d05c37b3254e063035fb", + "bytes": 18054, + "sha256": "95a9aa75e4a254a8f50efc16ee00a78a2ea1481f4013a708dfcbb77dcad4c393", + "git_blob": "1b24d0f6d07f84706a0a8e9b25e111e6eff93a2b" + } + ], + "roles": { + "RM": "Original model, full normalizer, conditional field moments, distinct jets and separated value densities.", + "RC": "Exact collision frame, joint gap, pair Kac-Rice and conditional moment/density envelopes.", + "RP": "Coupled determinant limit, fixed-Borel translation and unweighted pair law.", + "RI": "A_p coefficient and fixed-r positive support list; inverse-only case credited." + }, + "not_consumed": [ + "C4 positive-distance crossover", + "C5 singleton law", + "unavailable historical algebra.py" + ], + "new_analytic_review_required": true, + "local_packet_replay_checks_upstream_bytes": false +} diff --git a/frontiers/remote_mixed_inverse_20260929/mixed.py b/frontiers/remote_mixed_inverse_20260929/mixed.py new file mode 100644 index 000000000..b45f03815 --- /dev/null +++ b/frontiers/remote_mixed_inverse_20260929/mixed.py @@ -0,0 +1,109 @@ +"""Exact finite helpers for mixed distance/height-gap powers. + +These scalar identities do not verify the Gaussian proof. Standard library only. +""" +from fractions import Fraction as F + +MUTANT = None + +def parameters(q, beta): + q, beta = F(q), F(beta) + if q < 0 or beta < 0: + raise ValueError('nonnegative inverse powers required') + return q, beta + +def combined(q, beta): + q, beta = parameters(q,beta) + return q + (beta if MUTANT == 'lose-cubic-gap' else 3*beta) + +def finite(q, beta): + lam = combined(q,beta) + return lam <= 2 if MUTANT == 'include-boundary' else lam < 2 + +def alpha(q, beta): + if not finite(q,beta): + raise ValueError('positive finite mixed measure required') + return (2-combined(q,beta))/3 + +def gap_moment(q,beta,n): + a = alpha(q,beta) + if type(n) is not int or n < 0: + raise ValueError('nonnegative integer moment required') + return a*(a+1)/((a+n)*(a+n+1)) + +def gap_variance(q,beta): + return gap_moment(q,beta,2)-gap_moment(q,beta,1)**2 + +def square_density_factor(q,beta): + a = alpha(q,beta) + return a*(a+1)/(1 if MUTANT == 'omit-triangle-half' else 2) + +def coefficient_parts(q,beta): + """C, exponent of 12, k exponent, |T| exponent; omits 1/z0 and common integral.""" + q,beta = parameters(q,beta) + if not finite(q,beta): + raise ValueError('outside finite domain') + lam = combined(q,beta) + second = 5-q if MUTANT == 'uncoupled-denominator' else 5-lam + factor = F(3,4)/((2-lam)*second) + kp = (5-q)/3 - (0 if MUTANT == 'normalized-not-physical-gap' else beta) + tp = (4+q)/3 - (beta if MUTANT == 'retain-beta-in-T' else 0) + return factor, (2-q)/3, kp, tp + +def overlap_integral(q,beta,k,t,smax): + """Exact integral when smax=1, plus a rational scaling for integral powers. + +Integral s^(1-q-3beta)|t|^-beta (k-s^3|t|)_+ ds. +This helper returns the dimensionless coefficient times k*smax^(2-q-3beta) +and the separate |t| exponent -beta rather than evaluating fractional powers. + """ + q,beta=parameters(q,beta);k,t,smax=F(k),F(t),F(smax) + if not finite(q,beta) or min(k,abs(t),smax)<=0 or k!=abs(t)*smax**3: + raise ValueError('positive exact overlap root required') + lam=combined(q,beta) + return 3*k/((2-lam)*(5-lam)),2-lam,-beta + +def envelope_powers(q,beta): + return 1-combined(q,beta),-2-F(q) + +def radial_power(d,beta): + if type(d) is not int or d<2: + raise ValueError('fixed dimension at least two required') + beta=F(beta) + if beta<0 or beta>=1: + raise ValueError('weighted diagonal proof requires 0<=beta<1') + # Polar + value-gradient density + dh' + determinant product + gap weight. + jac = -d if MUTANT == 'wrong-height-frame' else -d-3 + return (d-1)+jac+3+2-3*beta + +def cutoff_regime(q,beta): + parameters(q,beta) + if F(beta)>=1: + raise ValueError('distance cutoff need not regularize height gap for beta>=1') + lam=combined(q,beta) + return 'finite' if lam<2 else ('logarithmic' if lam==2 else 'power') + +def pole_parts(beta): + """Limit of (2-q-3beta)D_qb as q increases to 2-3beta; beta<2/3.""" + beta=F(beta) + if beta<0 or beta>=F(2,3): + raise ValueError('fixed beta in [0,2/3) required') + # Coefficient is 12^beta*k/(4*z0), T power 2-beta. + return F(1,4),beta,F(1),2-beta + +def integral_power_interval(power,left,right): + """Finite exact integral for integer powers other than -1; endpoints positive.""" + if type(power) is not int or power==-1: + raise ValueError('integer power other than logarithmic case required') + left,right=F(left),F(right) + if not 0-1) + self.assertEqual(m.finite(q,b),expected) + + def test_strict_endpoint(self): + for b in (F(0),F(1,6),F(1,3),F(1,2),F(2,3)): + self.assertFalse(m.finite(2-3*b,b)) + self.assertEqual(m.cutoff_regime(2-3*b,b),'logarithmic') + + def test_beta_shape(self): + self.assertEqual(m.alpha(F(1,2),F(1,4)),F(1,4)) + self.assertEqual(m.alpha(1,0),F(1,3)) + self.assertEqual(m.alpha(0,F(1,3)),F(1,3)) + + def test_beta_normalization_by_integer_substitution(self): + for q,b in ((0,0),(1,0),(0,F(1,3)),(F(1,2),F(1,4)),(F(1,3),F(2,5))): + a=(2-F(q)-3*F(b))/3 + n,k=a.denominator,a.numerator + # g=u^n transforms g^(a-1)(1-g)dg to n*u^(k-1)(1-u^n)du. + integral = n*(F(1,k)-F(1,k+n)) + self.assertEqual(2*m.square_density_factor(q,b)*integral,1) + + def test_beta_moments_and_old_law(self): + self.assertEqual(m.gap_moment(0,0,1),F(1,4)) + self.assertEqual(m.gap_variance(0,0),F(9,176)) + self.assertEqual(m.gap_moment(1,0,1),F(1,7)) + self.assertEqual(m.square_density_factor(0,0),F(5,9)) + for q,b in ((0,0),(1,0),(0,F(1,2))): + a=(2-F(q)-3*F(b))/3 + for j in range(7): + self.assertEqual(m.gap_moment(q,b,j),a*(a+1)*(F(1)/(a+j)-F(1)/(a+j+1))) + + def test_coefficient_parts(self): + c,p12,pk,pt=m.coefficient_parts(F(1,2),F(1,4)) + self.assertEqual((c,p12,pk,pt),(F(4,15),F(1,2),F(5,4),F(3,2))) + self.assertEqual(m.coefficient_parts(0,0),(F(3,40),F(2,3),F(5,3),F(4,3))) + + def test_physical_gap_not_normalized_gap(self): + q,b=F(1,2),F(1,4) + self.assertEqual(m.coefficient_parts(q,b)[2],(5-q)/3-b) + self.assertNotEqual(m.coefficient_parts(q,b)[2],(5-q)/3) + + def test_T_exponent_beta_cancels(self): + for q in (F(0),F(1,3),F(1)): + for b in (F(0),F(1,12),F(1,6)): + if m.finite(q,b): + self.assertEqual(m.coefficient_parts(q,b)[3],2-b-(2-q-3*b)/3) + + def test_overlap_via_integer_substitution(self): + for q,b in ((0,0),(1,0),(0,F(1,3)),(F(1,2),F(1,4))): + q,b=F(q),F(b) + exponent=2-q-3*b + n,k=exponent.denominator,exponent.numerator + # s=u^n, root=1 and |t|=k_window=1 gives elementary polynomial integral. + integral=n*(F(1,k)-F(1,k+3*n)) + c,_,_=m.overlap_integral(q,b,1,1,1) + self.assertEqual(c,integral) + # Multiplying by 36 and converting t=-T/12 preserves the claimed prefactor. + self.assertEqual(36*c/144,m.coefficient_parts(q,b)[0]) + + def test_coefficient_relative_to_A_minus_q(self): + for q,b in ((0,F(1,3)),(F(1,2),F(1,4)),(1,F(1,6))): + q,b=F(q),F(b);lam=q+3*b + c=m.coefficient_parts(q,b)[0];base=m.coefficient_parts(q,0)[0] + self.assertEqual(c/base,(2-q)*(5-q)/((2-lam)*(5-lam))) + self.assertEqual(m.coefficient_parts(q,b)[1],m.coefficient_parts(q,0)[1]) + + def test_dimension_cancellation_and_fixed_r_boundary(self): + for d in range(2,13): + for b in (F(0),F(1,6),F(1,3),F(2,3),F(5,6)): + self.assertEqual(m.radial_power(d,b),1-3*b) + self.assertEqual(m.cutoff_regime(0,F(3,4)),'power') + self.assertEqual(m.cutoff_regime(0,F(1,2)),'finite') + + def test_cutoff_constants_model_density(self): + # j_beta=J delta^(1-3beta). Integer powers avoid approximate log computation. + J=F(7,3);left,right=F(1,8),F(1,2) + for q,b in ((3,0),(2,F(1,3)),(1,F(2,3))): + power=F(1-q-3*b) + self.assertEqual(power.denominator,1) + power=int(power) + self.assertEqual(J*m.integral_power_interval(power,left,right), + J*(left**(2-q-3*b)-right**(2-q-3*b))/(q+3*b-2)) + # At logarithmic threshold each geometric shell has the same log coefficient J. + self.assertEqual(m.radial_power(4,F(1,3))-1,-1) + + def test_envelope_both_ends(self): + for q,b in ((0,0),(F(1,2),F(1,4)),(1,F(1,6))): + near,far=m.envelope_powers(q,b) + self.assertGreater(near,-1);self.assertLess(far,-1) + self.assertEqual(far,1-F(q)-3*F(b)-3*(1-F(b))) + + def test_abelian_boundary_residue(self): + for b in (F(0),F(1,6),F(1,3),F(1,2)): + c,p12,pk,pt=m.pole_parts(b) + q0=2-3*b + self.assertEqual((c,p12,pk,pt),(F(1,4),(2-q0)/3,(5-q0)/3-b,(4+q0)/3)) + for eps in (F(1,16),F(1,64)): + q=q0-eps + self.assertEqual(eps*m.coefficient_parts(q,b)[0],F(3,4)/(3+eps)) + + def test_invalid_domains_rejected(self): + with self.assertRaises(ValueError):m.finite(-1,0) + with self.assertRaises(ValueError):m.alpha(2,0) + with self.assertRaises(ValueError):m.cutoff_regime(0,1) + with self.assertRaises(ValueError):m.overlap_integral(0,0,2,1,1) + + def test_height_correlation(self): + self.assertEqual(m.height_correlation(0,0),F(2,7)) + self.assertEqual(m.height_correlation(1,0),F(7,11)) + for q,b in ((0,0),(1,0),(0,F(1,2))): + a=(2-F(q)-3*F(b))/3 + self.assertEqual(m.height_correlation(q,b),(2-a-a*a)/(2+a+a*a)) + + def test_boundary_gap_collapse(self): + previous=F(1) + for n in (4,16,64,256): + q=2-F(3,n);b=0 + self.assertEqual(m.alpha(q,b),F(1,n)) + mean=m.gap_moment(q,b,1) + self.assertLess(mean,previous) + self.assertEqual(mean,F(1,2*n+1)) + previous=mean + self.assertGreater(m.height_correlation(2-F(3,256),0),F(99,100)) + +if __name__=='__main__':unittest.main() diff --git a/frontiers/remote_mixed_inverse_20260929/verify.py b/frontiers/remote_mixed_inverse_20260929/verify.py new file mode 100644 index 000000000..38c7aecf7 --- /dev/null +++ b/frontiers/remote_mixed_inverse_20260929/verify.py @@ -0,0 +1,112 @@ +"""Verify the flat source packet and both-mode finite semantic controls. + +No network, external dependencies, repository writes or Gaussian-proof claim. +""" +import argparse +import hashlib +import io +import json +from pathlib import Path +import subprocess +import sys +import unittest + +ROOT=Path(__file__).resolve().parent +MUTANTS={ + 'lose-cubic-gap':'test_cubic_gap_domain', + 'include-boundary':'test_strict_endpoint', + 'omit-triangle-half':'test_beta_normalization_by_integer_substitution', + 'uncoupled-denominator':'test_coefficient_parts', + 'normalized-not-physical-gap':'test_physical_gap_not_normalized_gap', + 'retain-beta-in-T':'test_T_exponent_beta_cancels', + 'wrong-height-frame':'test_dimension_cancellation_and_fixed_r_boundary', + 'independent-heights':'test_height_correlation', +} + +def require(ok,message): + if not ok: + raise ValueError(message) + +def decode(text): + def unique(items): + answer={} + for key,value in items: + require(key not in answer,'duplicate JSON key: '+key) + answer[key]=value + return answer + return json.loads(text,object_pairs_hook=unique) + +def identity(path): + require(path.is_file() and not path.is_symlink(),'regular source required') + data=path.read_bytes() + return {'bytes':len(data),'sha256':hashlib.sha256(data).hexdigest(), + 'git_blob':hashlib.sha1(f'blob {len(data)}\0'.encode()+data).hexdigest()} + +def sources(): + identity(ROOT/'SOURCE_FILES.json') + entries=decode((ROOT/'SOURCE_FILES.json').read_text())['files'] + names=[entry['path'] for entry in entries] + require(len(names)==len(set(names)) and all(Path(n).name==n and n!='SOURCE_FILES.json' for n in names), + 'unique flat source paths required') + require(sorted(p.name for p in ROOT.iterdir())==sorted(names+['SOURCE_FILES.json']), + 'source membership differs') + for entry in entries: + require(identity(ROOT/entry['path'])=={k:entry[k] for k in ('bytes','sha256','git_blob')}, + 'source identity differs: '+entry['path']) + return {p.name:identity(p) for p in sorted(ROOT.iterdir())} + +def child(mutant): + import mixed + import test_mixed + mixed.MUTANT=mutant + suite=unittest.defaultTestLoader.loadTestsFromModule(test_mixed) + result=unittest.TextTestRunner(stream=io.StringIO()).run(suite) + print(json.dumps({'tests':result.testsRun,'passed':result.wasSuccessful(), + 'failures':sorted(t.id().rsplit('.',1)[-1] for t,_ in result.failures), + 'errors':sorted(t.id().rsplit('.',1)[-1] for t,_ in result.errors)},sort_keys=True)) + return 0 if result.wasSuccessful() else 1 + +def replay(output): + output=output.resolve() + require(not output.exists() and not output.is_relative_to(ROOT),'new output outside packet required') + before=sources() + output.mkdir(parents=True) + cases={} + for case in ['baseline',*MUTANTS]: + pair=[] + for mode,flags in (('normal',[]),('optimized',['-O'])): + cmd=[sys.executable,'-B',*flags,'-S',str(ROOT/'verify.py'),'--child'] + if case!='baseline': + cmd+=['--mutant',case] + run=subprocess.run(cmd,capture_output=True,timeout=30) + (output/(case+'_'+mode+'.stdout')).write_bytes(run.stdout) + (output/(case+'_'+mode+'.stderr')).write_bytes(run.stderr) + result=decode(run.stdout.decode()) + require(not run.stderr and not result['errors'],'execution error: '+case) + require(result['tests']==18,'wrong test count') + if case=='baseline': + require(run.returncode==0 and result['passed'] and not result['failures'],'baseline failed') + else: + require(run.returncode==1 and not result['passed'] and MUTANTS[case] in result['failures'], + 'intended semantic assertion did not reject: '+case) + pair.append(run.stdout) + require(pair[0]==pair[1],'normal and optimized outputs differ: '+case) + cases[case]=decode(pair[0].decode()) + summary={'tests_per_mode':18,'semantic_mutants_per_mode':8,'identical_output_pairs':9, + 'all_intended_failures':True,'scientific_effect':'NONE','continuum_proof_verified_by_code':False} + require(summary==decode((ROOT/'RESULTS.json').read_text()),'stored summary differs') + require(before==sources(),'source changed during replay') + (output/'REPORT.json').write_text(json.dumps({**summary,'cases':cases,'source_identities':before, + 'sources_unchanged':True},indent=2,sort_keys=True)+'\n') + print(json.dumps(summary,indent=2,sort_keys=True)) + return 0 + +if __name__=='__main__': + parser=argparse.ArgumentParser(description=__doc__) + group=parser.add_mutually_exclusive_group(required=True) + group.add_argument('--child',action='store_true') + group.add_argument('--output',type=Path) + parser.add_argument('--mutant',choices=MUTANTS) + args=parser.parse_args() + require(args.child or args.mutant is None,'mutant requires child mode') + raise SystemExit(child(args.mutant) if args.child else replay(args.output))