#!/usr/bin/env python3 """Regenerate the 70-row source audit from the pinned formal-results corpus.""" import argparse, csv, hashlib, json from pathlib import Path ROOT=Path(__file__).resolve().parents[1] PIN="d74165987c12560864613ef43b748fbea049ab3d" # 'Used' means a mathematical premise or explicit reconstruction in this release. # 'Context' means checked in its source context but not used to prove a new claim. NOTES={ "1.1":("Used","C","Positive clock integral is locally invertible; chain rule preserves orbit image and derivative sign, not completeness."), "1.2":("Used","C","Coordinate divergence of (density/f)(fX) equals divergence of density times X. Global invariance additionally requires complete probability-preserving flow."), "1.3":("Used","C,G","Invariance integrates a nonnegative derivative to zero; bounded monotone transform in this release removes compactness and integrability requirements."), "1.4":("Used","C,branch,F","Combines independent clock, normalized measure, deterministic graph and canonical-form requirements; no common physical model is inferred."), "2.1":("Used","branch","Globally hyperbolic sheet Cauchy solutions agree on the common past by domain of dependence; compatible solutions descend."), "2.2":("Used","branch","Every future is determined by the same root Cauchy datum; attainable data form an injective symplectic graph, not a product."), "2.3":("Used","branch","Each full-sheet symplectic current gives the same root form; fixed weights sum to one."), "2.4":("Used","branch","Replacing a parent edge by children preserves weighted current exactly when weights obey Kirchhoff balance; tree rays give cylinder measures."), "2.5":("Used","branch","Pull back the direct-sum symplectic form along the diagonal evolution graph; normalized weights recover the root form."), "2.6":("Used","branch,F","Complete future pullbacks are the same nondegenerate root algebra; their cross Poisson brackets cannot all vanish."), "2.7":("Used","branch","Unequal advanced responses to future-sheet sources disagree in the common past; individual sheet advanced Green operators do not glue."), "3.1":("Used","branch","Advanced responses glue iff all their root Cauchy traces coincide; equivalent overlap equality follows from homogeneous uniqueness."), "3.2":("Used","branch","Under eventual complete separation, cut off prescribed homogeneous relative modes in a future slab; applying the PDE yields a compact compatible source with any trace defect."), "3.3":("Context","not a premise","Retarded-minus-advanced response is defined on the defect kernel; kernel/image exactness follows from Green identities and uniqueness."), "3.4":("Used","branch","Fourier-mode advanced traces give sine/cosine moments; the zero mode gives zeroth and first time moments."), "3.5":("Used","branch","Multiplication by a smooth cutoff can change the zero-mode moments; compatible source space is not a module over all local functions."), "3.6":("Context","not a premise","For root dimension 2d, a smooth parametrization of an open subset of H^N needs auxiliary dimension at least 2d(N-1). Weighted diagonal/relative symplectic decomposition attains equality."), "3.7":("Context","not a premise","The generated sheetwise causal preorder has the gluing universal property; finite causal chains cannot return from a future sheet through the common past."), "4.1":("Used","F","Common past image belongs to each surjective future image; cross-future commutativity makes it central."), "4.2":("Used","F","Faithfulness transfers central commutativity to the original past algebra, contradicting a noncommutative time-slice algebra."), "4.3":("Used","F","Commuting images of a nontrivial Weyl pair imply (1-exp(i theta))UV=0; unital invertibility forbids it."), "4.4":("Context","not a premise","Identify complete future copies with the past, then quotient by cross commutators; the universal quotient is the abelianization."), "4.5":("Used","F","Over a finite classical central record, direct sums of tensor products give faithful commuting future embeddings."), "4.6":("Used","F","Triangle inequality for commutators gives |1-exp(i theta)| <= eta+2 epsilon for unitary approximate copies."), "5.1":("Used","C","Cartan formula, contraction on X_H, and differentiation of contact volume yield conformal factor, energy law and divergence."), "5.2":("Used","C","Expand d(lambda/H); Reeb equations cancel exactly and volume scales by H^(-(n+1)) away from H=0."), "5.3":("Context","not a premise","Two normal projective chart types give nonvanishing b-contact volume; Hadamard division extends H/r; Reeb linear system extends on the noncharacteristic region."), "5.4":("Context","not a premise","Lifted X_H equals the normalized Reeb field with the original clock; radial convergence alone gives boundary accumulation, not a unique endpoint."), "5.5":("Context","not a premise","Wedge determinant n D_k v^(n-1) proves b^k contactness; direct Reeb contraction gives positive proportionality to X_H. The v factor is essential when n>=2."), "5.6":("Context","not a premise","Bounded chart yields integrable exponential radial decay; integrating the singular clock gives the stated power law, or exponential law for k=1."), "5.7":("Context","not a premise","For H=-az+b|p|^2, integrate radial, base and normal equations and the explicit positive clock derivative."), "5.8":("Used","C","Two divergence product rules give div_(g mu)(cX); integration around periodic orbits gives a necessary cocycle obstruction."), "5.9":("Used","C,G","Apply dominated convergence to bounded distance from the attractor; invariant finite mass must be supported on it."), "5.10":("Used","C context","A regular positive clock preserves the first-order normal term, incompatible with the r^k divisibility of a smooth b^k anchor for k>=2."), "5.11":("Context","not a premise","H=bp-az gives exponential normal decay and perpetual base rotation; a converging normal direction need not give a single boundary point."), "5.12":("Context","not a premise","Integrate the linear damped momentum equation, then q and z; H/r remains nonzero constant on the specified anisotropic orbits."), "6.1":("Used","C","Differentiate contact volume=dH wedge nu on H=0; subtract the energy-normal factor to obtain div_nu X_H=n R_lambda H."), "6.2":("Used","C context","Compact finite positive region cannot be forward invariant under everywhere positive Gelfand-Leray divergence; this forces the excluded crossing configuration."), "6.3":("Used","C context","The finite-volume argument forces at least one outward crossing; connected transverse separator fixes its sign everywhere."), "6.4":("Used","C","The forward-flow Jacobian is strictly above one on a finite-volume invariant region, contradicting containment of its image."), "7.1":("Context","not a premise","Contact transversality is gk-Xk>0; compact extension gives complete support; positivity cone is open convex and contractible."), "7.2":("Context","not a premise","Use a decreasing plateau function in the transverse separator collar; gk-Xk remains strictly positive on and off the separator."), "7.3":("Context","not a premise","Contract Gelfand-Leray volume to obtain contactness of the separator; wedge d(beta/k) gives exact symplectic chamber forms."), "7.4":("Context","not a premise","A convex sphere fails the stronger fixed-representative sign criterion; saturating its proper quadratic Hamiltonian makes the ambient field complete."), "7.5":("Context","not a premise","First rescale the form to cancel g on the dividing set; second rescaling by (k^2+epsilon^2)^(-1/2) enforces sign crossing. Requires compactness and change of representative."), "7.6":("Context","not a premise","Compact base flow plus damped inverse cotangent derivative gives complete affine contact solution; stable covector fibers characterize the basin."), "7.7":("Context","not a premise","Supremum derivative norm is submultiplicative; continuous-time subadditivity gives chi_B. Uniform normal attraction iff damping a>chi_B."), "7.8":("Context","not a premise","Metric derivative of squared covector norm and Gronwall give contraction above the maximal symmetric base deformation."), "7.9":("Context","not a premise","Explicit circle inverse derivative splits two exponentials; their critical/subcritical behavior gives the exact thin basin."), "8.1":("Used","C","Pure normal boundary Reeb field forces constant radial coefficient; remaining exact symplectic volume on closed E contradicts Stokes."), "8.2":("Used","C","Radial Legendrian contraction would require the excluded full-boundary normal Reeb field; local sectors remain possible."), "9.2":("Context","not a premise","Compute the torus contact Hamiltonian, volume and energy identities with its stated opposite Hamiltonian sign convention."), "9.3":("Context","not a premise","Bounded coefficients and the boundary-preserving coordinate equation give completeness without horizon crossing in the specified thermal model."), "9.4":("Context","not a premise","Distinguish bracket generation in the abstract b-tangent bundle from its degenerate ordinary anchor; Carnot interpretation applies only where justified."), "9.5":("Used","C: general score mechanism only","The general continuity-score and Fisher-zero equivalence in the proof is used. The specialized torus divergence/score formula is checked context, not imported into the new model."), "9.6":("Context","not a premise","Substitute the source model into the exact entropy derivative and evaluate the initial expectation; no universal entropy claim is imported."), "9.7":("Used","C","Changing reference by e^g adds E[g] to differential entropy and Xg to its derivative; generator must transform consistently."), "9.8":("Used","C","For nonstationary density the score has nonzero squared norm; scaling the reference perturbation changes the initial entropy derivative arbitrarily."), "9.9":("Used","B,C,D","Common invertible measurable transport preserves both likelihood ratios and all statistical tests, hence divergences."), "9.10":("Used","B,C","Immediate consequence of 9.9, with the flow transporting both ensembles. Corpus has no separate extracted proof; full chapter supplies the implication."), "9.11":("Context","not a premise","Cauchy-Schwarz bounds observable response by score norm times observable variance under the stated centering and regularity."), "9.12":("Context","not a premise","A specified smooth positive reference and dissipative generator give entropy dissipation; the reference and boundary conditions are physical inputs."), "9.13":("Used","branch,D","Disintegrate on the branch label; logarithmic density factors and conditional score orthogonality give entropy, KL and Fisher chain rules."), "9.14":("Used","D","Conditional Jensen proves data processing; equality requires likelihood ratio measurable in the retained observation. This release supplies a singular-safe bounded version."), "10.1":("Used","C","Preserving the original positive stationary density under fX requires Xf=0; orbitwise constant rescaling cannot repair finite endpoints."), "10.2":("Used","C","A bounded-speed positive clock on a complete metric completes trajectories but changes the invariant density; semicircle sech/tanh model is explicit."), "10.3":("Used","C,G","Infinite completed semicircle time makes the transported density nonnormalizable; bounded strictly monotone atan(v) excludes any invariant probability."), "11.1":("Used","C","Row-rescaling generator gives stationary law pi_i/(Z f_i), unchanged jump probabilities and common flux scaling."), "11.2":("Used","C","Clock factors telescope around cycles; flux differences and activity scale together, preserving entropy per event."), "11.3":("Context","C comparison","Pair detailed-balance flux contributions to obtain nonpositive KL derivative; connectedness gives equality only at the clocked stationary law.") } def main(): ap=argparse.ArgumentParser() ap.add_argument("corpus",type=Path) args=ap.parse_args() records=[json.loads(x) for x in args.corpus.read_text().splitlines()] assert len(records)==70 assert {x["number"] for x in records}==set(NOTES) out=[] for x in records: use,target,mechanism=NOTES[x["number"]] out.append({k:x[k] for k in ("id","number","type","title","label","source_path","source_line")} | {"source_commit":PIN,"disposition":use,"release_location":target, "proof_reconstruction":mechanism, "proof_extraction":x["proof_extraction"], "statement_sha256":hashlib.sha256(x["statement_latex"].encode()).hexdigest(), "proof_sha256":hashlib.sha256((x["proof_latex"] or "").encode()).hexdigest(), "scope":"Original chapter assumptions retained; source mathematical result, not historical-priority or empirical certification."}) folder=ROOT/"provenance";folder.mkdir(exist_ok=True) (folder/"xoriun_results_audit.json").write_text(json.dumps(out,ensure_ascii=False,indent=2)+"\n") with (folder/"xoriun_results_audit.csv").open("w",newline="") as f: writer=csv.DictWriter(f,fieldnames=list(out[0]));writer.writeheader();writer.writerows(out) print(json.dumps({"source_results":len(out),"used":sum(x["disposition"]=="Used" for x in out), "context_only":sum(x["disposition"]=="Context" for x in out)})) if __name__=="__main__": main()