Skip to content

What does one extra detector reading reveal?

Keep the spin label on each detected position. In the six-stage walk, that bit predicts a forbidden outcome and lets two pulses test interference. Independent rods, packet speeds and spin rotations ask a further question about what measures distance.

What the covering theorem gives us

Aiger, Har-Peled and Žužić prove in their November 2026 preprint that every compact convex body with interior in three-dimensional Euclidean space fits inside the union of eight translated, uniformly shrunken copies of itself. The common shrink factor may depend on the body. An affine cube needs all eight. One smaller copy can contain at most one corner, and eight half-sized copies suffice. The paper also supplies a Lean formalization. Preprint, version 3 · Formalization notes

The theorem applies after a physical model has supplied the points and an observer has chosen which of them to count. The previous walk calculation found two bodies for the same six-stage evolution. The convex hull of all detectable sites in a finite tick sequence is a cube for an initially localized unpolarized walker. The closure of the group velocities of its wave packets is a ball. A determinant-one shear can change the angles in either while preserving every homothetic covering. Original walk calculation

We can ask a stronger question of the same model. Keep the final spin label attached to each detected position. Which combinations can ever occur? That produces a shot-by-shot prediction, a control pulse with a tunable violation rate, and an example where a three-dimensional apparatus records a planar hull. Later we compare independent measurements that could test whether the walk's spatial and spin coordinates describe the same physical geometry.

What does one spin bit reveal about the front?

Sections in this chapter

Prepare a walker at the origin in an x-spin eigenport with known sign s = ±1. After N complete x,y,z,z,y,x ticks, measure its coarse position (X,Y,Z) and its final x-port sign t. An ideal detector obeys the exact selection rule st = (−1)^(N−X). Every event tests it, including events deep inside the front. For example, with a positive input at the second tick, even X tags a positive output and odd X tags a negative output. The port populations themselves vary with time. The probabilities of retaining the input sign at the first three ticks are 1/4, 25/32 and 55/128. Earlier support and velocity calculation

The signs at tick boundaries

The path expansion of a tick uses the projectors onto the two eigenstates of each Pauli matrix. At the join between successive ticks, the last x projector of one touches the first x projector of the next. Opposite projectors have zero product. Thus the 2N signed x steps have endpoints s and t, and each of the N−1 intermediate signs uⱼ occurs twice. Two fine links make one coarse cell. Consequently

X = (s+t)/2 + u₁ + ⋯ + uₙ₋₁.

Every uⱼ is odd. If the two endpoints agree, (s+t)/2 is odd. If they differ, it is zero. Taking parity gives the selection rule before summing interfering paths.

The hull selected by the detector

Write m = (s+t)/2. The convex hull of all sites with nonzero joint probability at that port is

[m−N+1, m+N−1] × [−N,N] × [−N,N].

The x formula gives the first interval. The available y and z steps bound the other two. At any proposed vertex, an extreme Y and Z fix all their respective signs. An extreme X fixes every intermediate x sign. This leaves one fine-step path to the specified vertex. It changes Pauli basis four times per tick, with squared overlap 1/2 at each change. Its joint probability of the specified position and port is 16⁻ᴺ. The probability given a successful port selection is 16⁻ᴺ divided by the total probability of that port. For N=1 and s=+1 each of the four vertices has joint probability 1/16 at either port. The corresponding conditional probabilities are 1/4 for t=+1 and 1/12 for t=−1.

At one tick each port's hull is a square in the plane X=m. Four half-size squares cover it in its own plane, and each strictly smaller square can contain at most one original vertex. From two ticks onward the hull is a three-dimensional rectangular box. Its eight half-size translates cover it, and each smaller positive homothet contains at most one vertex. Keeping both outputs for a positive input gives the hull [1−N,N] × [−N,N]². The underlying walk and its three spatial axes are the same in these measurements. Dimension here refers to the convex hull of a specified detector record. The general three-dimensional theorem requires nonempty interior in three dimensions. Aiger, Har-Peled and Žužić, Theorem 1.1

A pulse with a known violation rate

For N ≥ 2, put a uniform spin rotation Rz(θ) = cos(θ/2) I − i sin(θ/2) σz at exactly one tick boundary. In the identity branch the x signs at that join agree. In the σz branch they reverse, because σz interchanges the x eigenports. Those two x half-steps now contribute zero to X, in place of one of ±1. This flips the allowed parity at fixed s and t. The two branches occupy disjoint joint (X,t) outcomes, so they cannot interfere in those counts. Each branch by itself is unitary. Summing over the entire detected output therefore gives

P[st ≠ (−1)^(N−X)] = sin²(θ/2).

A quarter-turn rotation about z gives a wrong-parity fraction of 1/2 for either source sign at any interior tick boundary. This prediction assumes the specified ideal walk, localized preparation, one spatially uniform pulse and complete position and port readout. A position-dependent loss could bias the observed fraction.

The companion program propagates both complex spin amplitudes on every fine link with integer arithmetic. It checks all hull vertices and every occupied position through six ticks. It also checks four rotation strengths at every interior boundary for N=2,3,4, obtaining wrong-parity fractions of 0, 1/2, 16/25 and 1.

Turn the spin between ticks

Choose one rotation between two complete ticks. The result is the ideal fraction of detections whose position parity disagrees with the unperturbed spin rule.

50.0% of detections violate the unperturbed rule.

The two spin paths give the exact fraction sin²(θ/2). At zero rotation every ideal detection obeys the rule. A 180° pulse reverses every label.

Two pulses distinguish coherent parity transport from independent flips

Sections in this chapter

For the forward six-stage walk, insert two z rotations one full tick apart and reverse the sign of the second pulse. With π/2 Bloch rotations on each pulse, the model predicts wrong-parity probabilities 5/8 for the same signs and 3/8 for opposite signs. The signed difference is 1/4. Independently dephasing the two parity sectors between pulses gives 1/2 for either sign. These are theoretical probabilities for a proposed measurement.

Pulse sequence in time orderTotal ticks+π/2, +π/2+π/2, −π/2Difference
Pulse, W, pulse15/83/81/4
W, pulse, W, pulse, W35/83/81/4
Either sequence with complete parity dephasing1 or 31/21/20

W is a forward tick with conditional shifts along x, y, z, z, y, x. The one-tick layout places pulses immediately after preparation and before readout. Three ticks are the minimum when both pulse boundaries must be interior. Prepare a localized x eigenstate with sign s, record the output x-port sign d and coarse x displacement X, and count events with sd ≠ (−1)^(N−X). Sum over every endpoint and both detector signs. The two sign settings can be interleaved at fixed pulse magnitude. Single-pulse parity convention and source

Two paths to the same parity sector

Write each pulse as cᵢI − isᵢZ, where cᵢ and sᵢ are the cosine and sine of half its signed angle. Let ψ denote the state just before the first pulse. Exactly one Z insertion is needed to reach the wrong sector. The two contributing amplitudes immediately after the second pulse are −is₁c₂ WZψ and −ic₁s₂ ZWψ. Any common subsequent walk preserves their overlap. Hence

κ      = Re ⟨WZψ | ZWψ⟩
Pwrong = (s₁c₂)² + (c₁s₂)² + 2κ s₁c₂ c₁s₂ .

The overlap is exactly 1/4 for this timing and localized preparation. At each momentum k, the real part of the overlap operator ZW†ZW is the anticommutator of Z and W†ZW divided by two. Pauli algebra makes this Rzz(k) times the identity, where R is the Bloch rotation of one tick. A localized source has uniform momentum weight, which preceding translation-invariant unitary ticks preserve. Thus κ is the Brillouin-zone average of Rzz.

In the adjoint representation one tick is Rₓ(a) Rᵧ(b) R_z(c) Rᵧ(b) Rₓ(a), with a, b and c integer multiples of the corresponding momentum components winding full circles. Averaging the central z rotation over c gives the projector onto z. The remaining zz element is cos²(a) cos²(b). The two averages factor, giving κ = (1/2)(1/2) = 1/4.

Complete dephasing in the two parity sectors after the first pulse removes the cross term. An independent binary flip at each pulse with flip probability sin²(θᵢ/2) gives the same incoherent expression. The contrast tests that specified loss-of-coherence model. A phase-sensitive classical control error could also produce sign dependence, so interpreting a measurement requires pulse-sign and readout calibration. This protocol was calculated for the six-stage walk. Sugawa's rubidium measurements used a different sequence.

Replay

Run python3 echo.py beside port.py. The exact replay propagates the signed pulses, evaluates the overlap of their two one-insertion arms, and propagates each dephased arm separately. It checks both source signs, all one-tick-spaced placements through four total ticks, and an additional nonsymmetric pair of pulse angles with rational half-angle coefficients. No inverse walk enters the protocol.

A comparison a rival can pass

A classical model with memory can reproduce both fractions. Give the first pulse a fair flip bit u. Draw a second independent bit v with probability 5/8 of being one. For equal pulse signs, set the second flip to u XOR v. For opposite signs, complement that second flip. Each pulse still flips half the time, yet the total flip probabilities are 5/8 and 3/8. The comparison tests independent random flips or complete loss of the specified phase. A positive result alone leaves this correlated rival viable.

The dephased control has a concrete implementation. Between the pulses, choose with equal probability to do nothing or to apply the joint parity operator Q = (−1)^X σₓ. This combines a staggered positional phase and a global spin rotation. Averaging the two operations removes the cross terms between the two Q sectors while preserving their populations and their within-sector coherences. For randomized runs, calibrate both operations and compare the two pulse signs separately.

For a first hardware test, randomly interleave the two pulse signs after identical localized preparations. Register the input port, both pulse settings, the tick count, the position and the final port. Keep a separate count of missing events, since sign-dependent loss changes a detected fraction. If independent symmetric misclassification changes the parity label with calibrated probability e in both settings, the observed contrast is (1−2e)/4. At 400 independent detected events per sign, the ideal counting standard deviation of the difference is about 0.034. Pulse errors, drift and loss require their own calibration. No laboratory count from this sequence enters the prediction.

Can rods and packets agree on a distance?

Sections in this chapter

The covering count survives every invertible affine change of coordinates, including a shear. To test a physical metric we need an independent way to compare lengths, directions and clock ticks. Here is a calibration with a prediction that can fail.

Measure six directions, then reserve a seventh

In a common three-coordinate chart, let v be a displacement and let n label a detector plane with equation n·z = constant. Measure squared rod length L(v)². Separately measure the extreme group velocities along n for prepared packets on the calibrated band. Half their separation is h(n), a speed in plane-coordinate units. This cancels a constant drift and assumes that both extremes have been located. A rare finite-time count at the outermost lattice site estimates a different quantity.

A spatial metric G predicts L(v)² = vᵀGv. If the packet velocities form an ellipsoid, then h(n)² = nᵀQn for a positive definite Q. A common direction-independent speed c in the rod geometry requires GQ = c²I. This follows by maximizing n·v subject to vᵀGv ≤ c². Measuring only the shape leaves the absolute speed to a rod and a clock.

For either quadratic form, take readings along the three coordinate directions and their three pairwise sums. Each off-diagonal entry is half the sum-direction reading minus half each of the two individual readings. The mixed readings register the shear. Use the same chart for rods and detector planes, retain their units and propagate the calibration covariance before interpreting a discrepancy.

Squared reading in a synthetic calibrationxyzx+yx+zy+zHeld back x−y+z
Rod1245565
Packet half-width84149521
Alternative packet front84149525

The example uses a rod embedding (x+y, y, 2z) and speed 2. Reconstruction gives GQ = 4I. Add the two velocities ±(2,−2,1) to the packet body and take its convex hull. Every fitted plane still has the same half-width. The seventh plane sees a squared half-width of 25, exceeding the ellipsoid prediction of 21. The comparison is an exact synthetic control. A physical implementation would have to locate the extremal group velocities with measured packet bandwidth and independent timing. A whole continuum of fronts could pass any finite list of directions.

What it would take to claim geometry

Use a separate rod network to calibrate the frame that labels the spin axes. The next chapter predicts the spin rotation from rods around one hinge. The comparison can reject the hypothesis that material directions and spins experience the same transport. Agreement on that loop leaves open the microscopic origin of both, their response to matter and the gravitational field equations. The original programme's common law for matter, probability and gravity remains open.

Earlier derivation of the native packet velocity body

Can rods predict the axis and sense of a transport measurement?

Sections in this chapter

Four equilateral tetrahedra supply an exact test of whether a measured spin rotation agrees with a spatial metric. The rods define the prediction before any spin data enter. In this example the wrong rotation can have exactly the right angle. Regge's construction treats each tetrahedron as internally Euclidean and concentrates intrinsic curvature along the glued edges. Regge, General relativity without coordinates (1961)

Measure the metric independently

Label the common interior edge AB and the ring vertices C₀ through C₃. Tetrahedron i has vertices A, B, Cᵢ, Cᵢ₊₁, with indices modulo four. Glue matching labelled faces isometrically in the specified cyclic order. There are 13 distinct rods: AB, four outer edges and eight spokes to A and B. These are intrinsic lengths in a piecewise-flat spatial complex. Four ordinary rigid equilateral tetrahedra placed around a straight edge in Euclidean space leave a gap; closing that gap is part of the intrinsic gluing specification.

For one tetrahedron with ring vertices C,D, set h=AB. Define axial coordinates z_C=(AC²−BC²+h²)/(2h) and z_D likewise. The perpendicular distances from the hinge are r_C=√(AC²−z_C²) and r_D. The internal dihedral angle satisfies

cos θ = [r_C²+r_D²+(z_C−z_D)²−CD²]/(2r_C r_D).

With every rod equal, cos θ=1/3. Take z along A→B and choose the transverse reference frame and circuit order so that components transported into the next incoming-face frame rotate by −θ. On returning to the root tetrahedron, the proper Levi-Civita rotation is about z with signed deficit δ=2π−4θ. Direct multiplication of the four face transitions gives

δ = 1.359347637816 radians
cos δ = 17/81,     sin δ = 56√2/81 .

Reversing the circuit reverses the signed angle. A connection producing Rₓ(δ) or R_z(−δ) gives the same rotational trace 115/81 as R_z(δ), and all three have spinor trace magnitude 14/9. A trace-only readout cannot choose between them.

Two pair measurements

Use four probe cells, one per tetrahedron on the closed dual circuit, with bipartite preparation signs. Register the probe polarization with the material rod directions. Use three independently calibrated spin links as an open tree. A coherent source prepares the spin-one vector v, with unit norm, transported along that tree into each cell with equal amplitudes. Repeating the measurement with the last link on and off isolates its contribution from the full pair-addition energy variance. Denote the closing-link hopping by t and the number of cells by V=4.

Choose the closing edge from cell 3 to root cell 0. Put a phase exp(iφ) on the pair amplitude of the root cell, and apply the same phase in the on and off runs. All open-tree contributions then cancel in the difference, including the contribution changed by the root phase. Link switching must preserve the other hoppings, the material source and common onsite parameters. With W the measured vector holonomy represented in the root frame, the calibrated readout is

Bφ(v) = V [Var_on−Var_off]/(4|t|²)
      = 1−Re[exp(−iφ) v† W v] .

First prepare the real polarization along the hinge, v=z, at φ=0. Levi-Civita transport predicts B=0. Rotation by the same angle about a perpendicular axis predicts B=64/81. This test needs a registered line, and is insensitive to the choice of direction along that line. The one-side quadrupole readout still misses the distinction between forward and inverse rotation about z.

For a signed comparison, register a transverse ordered pair x,y and prepare v=(x+i y)/√2. In the stated convention R_z(δ)v=exp(−iδ)v. At φ=+π/2 and −π/2, the predicted readouts are 1+sin δ and 1−sin δ. Their difference is +112√2/81 for the metric prediction and −112√2/81 for its inverse. Each phase setting uses its own edge-off run. The checker uses a two-boson hopping matrix and finds a nonzero open-tree variance when the endpoint phase is applied; that contribution cancels as specified. The sense check requires calibrated helicity, phase sign, circuit order and frame orientation. Either spinor lift ±U gives the same triplet measurement.

Rod and registration uncertainty

A derivative of the dihedral formula at equal lengths gives the fan-deficit response to small fractional rod changes. In the order (hinge, four outer edges, eight spokes), its coefficients are −4√2/3, four times −√2 and eight times +2√2/3. A common length rescaling cancels exactly. For small independent log-length errors of common standard deviation σ the propagated deficit uncertainty is √(56/3) σ radians. Use the full rod covariance gᵀΣg when the calibrations are correlated. Shared edges count once.

A deterministic check uses hypothetical bounds of ±0.1% on every rod length. Enclosing the positive axial coordinates, squared perpendicular distances and numerator and denominator of the dihedral formula by interval arithmetic gives 1.3125<δ<1.4071 radians, without a linear error approximation. For a total hinge-to-probe registration error of at most 2°, B₀ ≤0.001021 for the metric and B₀ ≥0.7437 for the perpendicular equal-angle candidate. This follows from B₀=(1−cos δ)sin²α, where α is the actual angle between the preparation and rotation axis. These intervals include only the specified rod and axis errors. A physical comparison also needs bounds on the preparation, tree transport, energy-variance difference, hopping normalization and link-switch errors. Resolving a nonzero discrepancy rejects the given spatial connection under those calibrations.

An affine ambiguity that survives the test

For any spatial one-form a, define a second affine connection by ∇′_X Y=∇_X Y+a(X)Y, starting with the Levi-Civita connection of the measured metric. Its transport along a path equals the original transport times exp(−∫a). Its geodesic equation gains a term parallel to the velocity, so the unparametrized paths remain the same. Both normalized direction measurements above also remain unchanged. Yet ∇′g=−2a⊗g, and its torsion is a(X)Y−a(Y)X. If a is exact, even the closed-loop length scale is unchanged while open-link scales can differ. Absolute length transport or further physical inputs are needed to distinguish these examples. An internal spin readout tests geometric transport only to the extent that its attachment to rod frames is independently established.

How to recover a signed rotation

Each loop needs a common reference frame. Calibrate the pulse axes and the frame along an open tree. Close one edge and subtract the variance measured with that edge open, using exactly the same coherent pair preparation in each run. Normalize the difference as in the hinge experiment. Write R for the real three-component spin rotation around the loop, v for a unit complex triplet, and φ for the root-end phase. The measured number is B(v,φ) = 1 − Re[exp(−iφ) v†Rv].

Three Cartesian preparations with φ = 0 give the diagonal entries Rᵢᵢ = 1 − B(eᵢ,0). For each pair of axes i < j, prepare (eᵢ+eⱼ)/√2 at phase zero. Subtract the mean diagonal from 1 − B to get (Rᵢⱼ+Rⱼᵢ)/2. Prepare (eᵢ+i eⱼ)/√2 at φ = π/2. Then 1 − B is (Rᵢⱼ−Rⱼᵢ)/2. These nine settings recover the entire signed matrix with no inverse-rotation choice. They require controllable complex spin-1 preparations, a coherent relative pair phase and a switchable link of known hopping strength. Experimental reconstructions should report uncertainty and test orthogonality and determinant +1 before imposing them in a fit.

Repeat this procedure in the same registered root frame for each distinct closing edge. On a connected graph the spanning tree then fixes the internal frame choices and the remaining edges contain the independent loop transports. Spin-1 sees the same rotation for the two spinor lifts U and −U. Resolving their sign requires a phase reference sensitive to a single spinor. Even an exactly measured array of spin matrices needs independent rods to turn an internal spin axis into a spatial direction.

Pair variance and link-rotation derivation

Predicting a reversed atomic holonomy from forward tomography

Sections in this chapter

Sugawa and colleagues transported a degenerate pair of hyperfine states of rubidium-87 around a loop in a five-dimensional space of applied couplings. At equal coupling strengths, they measured the process in both directions. We use only their forward process estimate to predict where the reversed loop sends an initially prepared +z Bloch vector. The observed and predicted unoriented lines differ by 5.04°. Applying the forward rotation again gives 80.76°. This is a retrospective split by ramp direction in an existing experiment. Primary paper, Figs. 2 and 3 · Open author version

Reverse-run observableForward-only predictionReverse measurementObserved minus predicted
Bloch x−0.6244−0.68 ± 0.01−0.0556
Bloch y+0.6519+0.59 ± 0.05−0.0619
Bloch z+0.4303+0.40 ± 0.05−0.0303

The residual vector has length 0.0885. The x discrepancy exceeds the spread printed for the reverse x measurement. Fig. 2 describes its error bars as standard deviations. The precision of the fitted forward rotation and correlations between the estimated components are unknown from the figures. These summaries therefore do not support a calibrated joint significance or a claim of agreement within all reported errors. Fig. 2 and tomography methods

Reconstruction

In the authors' Pauli basis ordered I, X, Y, Z, the forward process acts as ρ ↦ Σᵢⱼ χᵢⱼ σᵢ ρ σⱼ. Write U = wI − i(xX + yY + zZ), with real unit quaternion q = (w,x,y,z), and D = diag(1,−i,−i,−i). Its process matrix is (Dq)(Dq)†. The rotation maximizing overlap with the printed forward process is the leading eigenvector of Re(D†χD). We obtain q = (0.629783, 0.533421, 0.017719, −0.564377) and overlap 0.974969. Flipping the overall sign of q gives the same rotation. The inverse unitary U† gives the predicted vector in the table. No component of the reverse run enters the fit.

The line angle uses arccos(|p·b| / (‖p‖ ‖b‖)), with p the prediction and b the measured Bloch vector. This compares the one-dimensional spans in the fixed preparation and readout frame. The component table retains the orientation that the line score discards. For an additional whole-process check, the Frobenius distance from the reported reverse matrix to the complex conjugate of the reported forward matrix is 0.10677. Keeping the forward matrix as printed gives 1.31674. The conjugate prediction follows from U → U† in this Hermitian operator basis. For a noisy channel it describes the adjoint, which need not be its inverse. The reverse process estimate includes +z as one of its tomography inputs, so its score and the reverse vector score cannot be counted as independent replications. Methods and Fig. 3

Resolution and scope

Each printed process entry is rounded to hundredths. Allowing ±0.005 in every entry of the real symmetric quaternion-fit matrix changes its spectral norm by at most 0.020. The replay bounds the leading eigengap from below by 0.9566 using the Frobenius norm and eigenvector residual. The resulting maximum rotation change is 2.45° under rounding alone. Specifically, for gap lower bound g and perturbation bound ε, the quaternion deflection obeys sin β ≤ ε/(g−ε), and the rotation deflection is at most 2β. Counting 16 real and 12 off-diagonal imaginary entries, simultaneous rounding of both process matrices changes either quoted Frobenius distance by at most 0.01√28 ≈ 0.053. Experimental sampling and calibration can contribute additional errors.

This test accesses the three-dimensional adjoint action of an internal SU(2) holonomy on the Bloch vector. It shows what an independently measured reverse traversal can check once both preparation and readout use a common physical frame. A single loop and its reverse commute, so this split does not establish a nonzero commutator between different loops. The experiment supplies neither a spacetime loop with a measured physical area nor an independently determined spacetime curvature tensor. A metric interpretation requires additional measurements connecting control paths to physical positions, lengths and transport.

Replay and provenance

Run python3 sugawa.py from this directory. The standard-library replay and transcribed data preserves all four real and imaginary arrays, both matrix triangles, and the reported reverse vector. The indices are row first. To verify the transcription, read the unparenthesized values in published Fig. 3a and 3b at θ₂ = π/4. The parenthesized values are the authors' theoretical calculations. Read the vector and its component spreads in the Fig. 2 caption. The authors make the underlying data available on request. Published figure artwork · Author text and data-availability statement

SHA-256 of the publisher PNG used for visual verification is e5cd89019ca7e86ab6ce36c0c85077de0086129d6a20b371894050e7223ca7d8.

What an orbiting physical gyroscope measured

Sections in this chapter

Gravity Probe B tracked four spinning rotors in a nearly polar Earth orbit using the guide star IM Pegasi. Its published joint north–south geodetic drift was −6601.8 ± 18.3 milliarcseconds per year (one standard uncertainty). This is a measurement of spin transport along an actual spacetime trajectory. The mission team corrected for guide-star proper motion, solar geodetic drift and instrument torques. The following comparison uses the joint result once; the four individual gyros and the published joint fit share measurements. Everitt and colleagues, Table II

Predict the sign and scale from the orbit

The mission's post-flight orbit summary gives semimajor axis a=7027.4 km, eccentricity e=0.0014, inclination i=90.007° and right ascension of the ascending node Ω=163.26°. Independent radio astrometry gives guide-star right ascension α≈343.2594°. Use Earth’s gravitational parameter μ=3.986004418×10¹⁴ m³/s² and c=299792458 m/s. These inputs are independent of the gyro drift used below. Stanford post-flight orbit summary · IM Pegasi astrometry · NGA geodetic constants

For a circular orbit around a spherical nonrotating Earth, the leading weak-field GR precession vector follows the orbital angular momentum ĥ. With s the unit direction toward the guide star, the drift is ds/dt=Ω_geo ĥ×s. Project onto increasing declination. The north component of ĥ×s is sin i cos(α−Ω), which is −0.9999999925 here. The result is southward.

Ω_geo = (3/2)[μ/(a c²)] √(μ/a³)
north–south drift ≈ −6603.88 mas per Julian year

The same calculation gives 1.22687 mas of precession per revolution. Keeping the leading Keplerian eccentricity correction multiplies the rate by 1/(1−e²), giving −6603.89 mas/yr. This calculation uses rounded orbital elements and omits the detailed orbit history, Earth's multipoles, frame dragging and the mission readout model. The team's GR prediction for the north–south observable was −6606.1 mas/yr. The joint measured value minus that prediction is +4.3 ± 18.3 mas/yr, or 0.235 standard uncertainties. Mission result and GR comparison

The experiment supports the sign and scale of geodetic spin transport on this orbit. Its gyro orientations supply no direct measurement of an internal lattice spin link, a Regge fan's spatial hinge angle or a universal affine length transport. Connecting those observables requires specifying how the respective probes couple. The offline calculation reuses the published joint estimate and checks its orbital scale. It does not refit the spacecraft time series.

Programs and transcript

The offline study includes the seven calculation programs and all 18 native Tally checks. Run the supplied replay with the published Tally runtime. Source measurements are identified in the two experimental chapters.

Complete Tally transcript
✓ one-tick joint corner count and conditional switched-port corner count  (by cross-pairing plus and minus sides; derived)
✓ identity and full spin flip place every count in opposite parity classes  (by cross-pairing plus and minus sides; derived)
✓ a single port-mixing pulse predicts its violation fraction  (by cross-pairing plus and minus sides; derived)
✓ independent position-parity and port read errors preserve the balanced control  (by cross-pairing plus and minus sides; derived)
✓ the zero and full pulse calibrations have complementary observed rates  (by cross-pairing plus and minus sides; derived)
✓ independent measurements of a mixed rod and a mixed front register their opposite shears  (by cross-pairing plus and minus sides; derived)
✓ xz shear vanishes in both reconstructions  (by cross-pairing plus and minus sides; derived)
✓ yz shear vanishes in both reconstructions  (by cross-pairing plus and minus sides; derived)
✓ the three diagonal rod times front entries give the same squared speed  (by cross-pairing plus and minus sides; derived)
✓ the mixed rod times front entries cancel  (by cross-pairing plus and minus sides; derived)
✓ held-back packet plane and displacement have separately predicted squared readings  (by cross-pairing plus and minus sides; derived)
✓ two added velocities pass the six front calibrations and cross the seventh plane  (by cross-pairing plus and minus sides; derived)
✓ four equilateral wedge angles give the deficit cosine  (by cross-pairing plus and minus sides; derived)
✓ the scalar rotation trace agrees for axial and transverse rotations  (by cross-pairing plus and minus sides; derived)
✓ moving the spin rotation to a perpendicular axis gives a finite residual  (by cross-pairing plus and minus sides; derived)
✓ the squared signed-phase contrast follows from the same rod geometry  (by cross-pairing plus and minus sides; derived)
✓ reversing the second quarter turn changes the retained interference sign  (by cross-pairing plus and minus sides; derived)
✓ the signed contrast separates the coherent prediction from independent flips  (by cross-pairing plus and minus sides; derived)
Native Tally source
# Exact rational controls for port-resolved fronts and spin transport.
ratchet 32 step
import "atom"
let zero=whole(0 trial)
let one=whole(1 trial)
let two=whole(2 trial)
let three=whole(3 trial)
let four=whole(4 trial)
let half=fraction(1 trial,2 trial)

fn wrong(u,v)
  return share(v*v,u*u+v*v)
end
let joint=fraction(1 trial,16 trial)
let same=four*joint
check same==fraction(1 trial,4 trial) and share(joint,one+flip(same))==fraction(1 trial,12 trial) "one-tick joint corner count and conditional switched-port corner count"
check wrong(one,zero)==zero and wrong(zero,one)==one "identity and full spin flip place every count in opposite parity classes"
check wrong(one,one)==half and wrong(three,four)==fraction(16 trial,25 trial) "a single port-mixing pulse predicts its violation fraction"
fn xor_rate(a,b)
  return a*(one+flip(b))+b*(one+flip(a))
end
let e=xor_rate(fraction(1 trial,100 trial),fraction(1 trial,50 trial))
check e==fraction(37 trial,1250 trial) and xor_rate(e,half)==half "independent position-parity and port read errors preserve the balanced control"
check xor_rate(e,zero)==e and xor_rate(e,one)==one+flip(e) "the zero and full pulse calibrations have complementary observed rates"

fn mixed(a,b,ab)
  return half*(ab+flip(a)+flip(b))
end
let gxx=one
let gyy=two
let gzz=four
let gxy=mixed(gxx,gyy,whole(5 trial))
let qxx=whole(8 trial)
let qyy=four
let qzz=one
let qxy=mixed(qxx,qyy,four)
check gxy==one and qxy==flip(four) "independent measurements of a mixed rod and a mixed front register their opposite shears"
check mixed(gxx,gzz,whole(5 trial))==zero and mixed(qxx,qzz,whole(9 trial))==zero "xz shear vanishes in both reconstructions"
check mixed(gyy,gzz,whole(6 trial))==zero and mixed(qyy,qzz,whole(5 trial))==zero "yz shear vanishes in both reconstructions"
check gxx*qxx+gxy*qxy==four and gxy*qxy+gyy*qyy==four and gzz*qzz==four "the three diagonal rod times front entries give the same squared speed"
check gxx*qxy+gxy*qyy==zero and gxy*qxx+gyy*qxy==zero "the mixed rod times front entries cancel"
let held=qxx+qyy+qzz+flip(two*qxy)
check held==whole(21 trial) and gxx+gyy+gzz+flip(two*gxy)==whole(5 trial) "held-back packet plane and displacement have separately predicted squared readings"
let alternative=power(two+two+one,2 trial)
check alternative==whole(25 trial) and alternative>held "two added velocities pass the six front calibrations and cross the seventh plane"

fn double_cos(c)
  return two*c*c+flip(one)
end
let c=fraction(1 trial,3 trial)
let deficit_cos=double_cos(double_cos(c))
check deficit_cos==fraction(17 trial,81 trial) "four equilateral wedge angles give the deficit cosine"
check one+two*deficit_cos==fraction(115 trial,81 trial) "the scalar rotation trace agrees for axial and transverse rotations"
let width=one+flip(deficit_cos)
check width==fraction(64 trial,81 trial) and width>zero "moving the spin rotation to a perpendicular axis gives a finite residual"
check one+flip(deficit_cos*deficit_cos)==two*power(fraction(56 trial,81 trial),2 trial) "the squared signed-phase contrast follows from the same rod geometry"

# Each Bloch rotation supplies one mean squared cosine for the one-tick overlap.
let kappa=half*half
let base=two*half*half
let interference=two*kappa*half*half
check base+interference==fraction(5 trial,8 trial) and base+flip(interference)==fraction(3 trial,8 trial) "reversing the second quarter turn changes the retained interference sign"
check two*interference==fraction(1 trial,4 trial) and base==half "the signed contrast separates the coherent prediction from independent flips"
port.py
"""Exact joint probabilities for the six-stage walk and one inserted z rotation.

Run python3 port.py. All amplitudes in the finite calculation are Gaussian
integers with a common normalization removed. No third-party packages.
"""
from fractions import Fraction
from itertools import product


STAGES = (0, 1, 2, 2, 1, 0)
SIGNS = (-1, 1)
ZERO = (0, 0, 0, 0)


def project(v, axis, sign):
    """Apply the signed Pauli projector, times 2 for x or y, times 1 for z."""
    a, b, c, d = v  # spinor (a + ib, c + id) in the z basis
    if axis == 2:
        return (a, b, 0, 0) if sign == 1 else (0, 0, c, d)
    if axis == 0:
        u, w = a + sign*c, b + sign*d
        return u, w, sign*u, sign*w
    # The y eigenspinor is (1, i*sign)/sqrt(2).
    u, w = a + sign*d, b - sign*c
    return u, w, -sign*w, sign*u


def tick(state):
    for axis in STAGES:
        following = {}
        for site, v in state.items():
            for sign in SIGNS:
                vout = project(v, axis, sign)
                if vout == ZERO:
                    continue
                pos = list(site)
                pos[axis] += sign
                pos = tuple(pos)
                old = following.get(pos, ZERO)
                following[pos] = tuple(a+b for a, b in zip(old, vout))
        state = {p: v for p, v in following.items() if v != ZERO}
    return state


def rotate_z(state, u, v):
    """Apply u*I - i*v*sigma_z, with sqrt(u²+v²) restored in probabilities."""
    return {p: (u*a+v*b, u*b-v*a, u*c-v*d, u*d+v*c)
            for p, (a, b, c, d) in state.items()}


def measure(state, ticks, source, denominator, verify_hull):
    wrong = 0
    port_masses = {}
    for detector in SIGNS:
        shift = (source+detector)//2
        ends = (shift-ticks+1, shift+ticks-1)
        extremes = set(product(ends, (-ticks, ticks), (-ticks, ticks)))
        found = set()
        port_mass = 0
        for site, (a, b, c, d) in state.items():
            # The two external normalized x spinors supply a factor 1/2.
            intensity = (a+detector*c)**2 + (b+detector*d)**2
            if intensity == 0:
                continue
            assert all(i % 2 == 0 for i in site)
            x, y, z = (i//2 for i in site)
            port_mass += intensity
            if (1 if (ticks-x) % 2 == 0 else -1) != source*detector:
                wrong += intensity
            if verify_hull:
                assert ends[0] <= x <= ends[1] and max(abs(y), abs(z)) <= ticks
                if (x, y, z) in extremes:
                    found.add((x, y, z))
                    assert intensity * 16**ticks == denominator
        if verify_hull:
            assert found == extremes and len(found) == (4 if ticks == 1 else 8)
        port_masses[detector] = Fraction(port_mass, denominator)
    assert sum(port_masses.values()) == 1
    return Fraction(wrong, denominator), port_masses


def main():
    for source in SIGNS:
        state = {(0, 0, 0): (1, 0, source, 0)}
        for n in range(1, 7):
            state = tick(state)
            wrong, ports = measure(state, n, source, 4*16**(2*n), True)
            assert wrong == 0
            if n <= 3:
                assert ports[source] == (Fraction(1, 4), Fraction(25, 32),
                                         Fraction(55, 128))[n-1]
            if source == 1:
                print(f"N={n}: P(same port)={ports[source]}, wrong parity={wrong}")

    for n in (2, 3, 4):
        for boundary, source, (u, v) in product(range(1, n), SIGNS,
                                               ((1, 0), (1, 1), (3, 4), (0, 1))):
            state = {(0, 0, 0): (1, 0, source, 0)}
            for step in range(1, n+1):
                state = tick(state)
                if step == boundary:
                    state = rotate_z(state, u, v)
            norm2 = u*u+v*v
            wrong, _ = measure(state, n, source, 4*norm2*16**(2*n), False)
            assert wrong == Fraction(v*v, norm2)
    print("Both x sources passed the exact hull and parity checks through 6 ticks.")
    print("One z rotation gave wrong-parity mass 0, 1/2, 16/25, or 1 at every tested boundary.")


if __name__ == "__main__":
    main()
echo.py
"""Two z pulses one forward tick apart. Run with python3 echo.py."""
from fractions import Fraction

from port import SIGNS, ZERO, measure, rotate_z, tick


def initial(source):
    return {(0, 0, 0): (1, 0, source, 0)}


def norm2(state):
    return sum(a*a for v in state.values() for a in v)


def overlap_after_one_tick(psi):
    # The common -i in both alternatives cancels from their overlap.
    a = tick(rotate_z(psi, 0, 1))
    b = rotate_z(tick(psi), 0, 1)
    aa, bb = norm2(a), norm2(b)
    if aa != bb:
        raise ArithmeticError("Inconsistent branch normalization")
    real_dot = sum(sum(x*y for x, y in zip(v, b.get(k, ZERO))) for k, v in a.items())
    return Fraction(real_dot, aa)


def wrong_mass(n, first_boundary, source, pulse1, pulse2):
    if not 0 <= first_boundary < n:
        raise ValueError("The two pulses need one whole tick between them")
    state = initial(source)
    for boundary in range(n + 1):
        if boundary:
            state = tick(state)
        if boundary == first_boundary:
            state = rotate_z(state, *pulse1)
        if boundary == first_boundary + 1:
            state = rotate_z(state, *pulse2)
    normalization = 4 * (16**(2*n))
    for u, v in (pulse1, pulse2):
        normalization *= u*u + v*v
    return measure(state, n, source, normalization, False)[0]


def branch_formula(pulse1, pulse2, kappa):
    c1, s1 = pulse1
    c2, s2 = pulse2
    norm = (c1*c1 + s1*s1) * (c2*c2 + s2*s2)
    return Fraction((s1*c2)**2 + (c1*s2)**2 + 2*s1*c2*c1*s2*kappa, norm)


def main():
    for source in SIGNS:
        psi = initial(source)
        for _ in range(4):
            assert overlap_after_one_tick(psi) == Fraction(1, 4)
            psi = tick(psi)
        for n in range(1, 5):
            for boundary in range(n):
                for p1, p2 in (((1, 1), (1, 1)), ((1, 1), (1, -1)),
                               ((3, 4), (4, -3))):
                    direct = wrong_mass(n, boundary, source, p1, p2)
                    assert direct == branch_formula(p1, p2, Fraction(1, 4))
        for n, boundary in ((1, 0), (3, 1)):
            for sign in (1, -1):
                p2 = (1, sign)
                # Independent arms implement complete dephasing between the
                # parity sectors after the first half pulse.
                separated = (wrong_mass(n, boundary, source, (1, 0), p2)
                             + wrong_mass(n, boundary, source, (0, 1), p2)) / 2
                coherent = wrong_mass(n, boundary, source, (1, 1), p2)
                assert separated == Fraction(1, 2)
                if source == 1:
                    print(f"N={n} first={boundary} second sign={sign:+d} "
                          f"coherent={coherent} dephased={separated}")
    print("Both x sources passed. One-tick overlap and signed contrast each equal 1/4.")


if __name__ == "__main__":
    main()
front.py
"""Infer a velocity ellipsoid and a rod metric from separate exact synthetic measurements."""
from fractions import Fraction as F
from itertools import product

UNIT = ((1, 0, 0), (0, 1, 0), (0, 0, 1))
PROBES = UNIT + ((1, 1, 0), (1, 0, 1), (0, 1, 1))
VALIDATION = (1, -1, 1)


def apply(matrix, v):
    return tuple(sum(a*b for a, b in zip(row, v)) for row in matrix)


def dot(a, b):
    return sum(x*y for x, y in zip(a, b))


def quadratic(matrix, v):
    return dot(v, apply(matrix, v))


def infer(readings):
    """Polarize the three coordinate and three pairwise-sum readings."""
    x, y, z, xy, xz, yz = map(F, readings)
    b, c, e = (xy-x-y)/2, (xz-x-z)/2, (yz-y-z)/2
    return ((x, b, c), (b, y, e), (c, e, z))


def facet(v, point):
    return dot(v, point)**2


def main():
    # Physical displacement A z in a Euclidean frame, with c=2 per clock unit.
    # These synthetic generators are independent of the reconstruction routine.
    def rod(v):
        x, y, z = v
        return (x+y)**2+y*y+4*z*z

    def front(n):
        x, y, z = n
        return 4*(x*x+(y-x)**2)+z*z

    rods = tuple(map(rod, PROBES))
    fronts = tuple(map(front, PROBES))
    assert rods == (1,2,4,5,5,6)
    assert fronts == (8,4,1,4,9,5)
    g, q = infer(rods), infer(fronts)
    for i, j in product(range(3), repeat=2):
        assert dot(g[i], q[j]) == 4*(i == j)
    assert quadratic(g, VALIDATION) == rod(VALIDATION) == 5
    assert quadratic(q, VALIDATION) == front(VALIDATION) == 21

    # Appending two antipodal velocities changes a support function by pointwise max.
    point = (2,-2,1)
    assert all(facet(n, point) <= front(n) for n in PROBES)
    assert facet(VALIDATION, point) == 25
    print("Rod and front squared readings:", rods, fronts)
    print("GQ = 4 I; seventh rod squared = 5; seventh front squared = 21.")
    print("The nonellipsoidal control agrees on six front probes and yields 25 on the seventh.")


if __name__ == "__main__":
    main()
fan.py
"""Independently compare rod reconstruction, face transport and a pair readout."""
from fractions import Fraction as F
from itertools import product
from math import acos, atan2, cos, exp, pi, sin, sqrt
from random import Random


def mm(a,b):
    return [[sum(x*y for x,y in zip(row,col)) for col in zip(*b)] for row in a]


def tr(a):
    return [list(row) for row in zip(*a)]


def scale(k,a):
    return [[k*x for x in row] for row in a]


def add(a,b):
    return [[x+y for x,y in zip(l,r)] for l,r in zip(a,b)]


def tet(h, ac, bc, ad, bd, cd):
    z=(ac*ac-bc*bc+h*h)/(2*h)
    zp=(ad*ad-bd*bd+h*h)/(2*h)
    r=sqrt(ac*ac-z*z)
    rp=sqrt(ad*ad-zp*zp)
    q=(r*r+rp*rp+(z-zp)**2-cd*cd)/(2*r*rp)
    if not -1<q<1:
        raise ValueError("Degenerate tetrahedron")
    return acos(q)


def deficit(lengths):
    # Shared rods are supplied only once.
    h=lengths[0]
    ring=lengths[1:5]
    ar=lengths[5:9]
    br=lengths[9:13]
    return 2*pi-sum(tet(h,ar[j],br[j],ar[(j+1)%4],br[(j+1)%4],ring[j])
                    for j in range(4))


def rotation(c,s):
    return [[c,-s,0],[s,c,0],[0,0,1]]


def enclosure():
    lo,hi=F(999,1000),F(1001,1000)
    zlo=(2*lo*lo-hi*hi)/(2*hi)
    zhi=(2*hi*hi-lo*lo)/(2*lo)
    assert zlo>0
    rlo=lo*lo-zhi*zhi
    rhi=hi*hi-zlo*zlo
    nlo=2*rlo-hi*hi
    nhi=2*rhi+(zhi-zlo)**2-lo*lo
    assert nlo>0 and rlo>0
    clo,chi = nlo/(2*rhi),nhi/(2*rlo)
    return 2*pi-4*acos(float(clo)),2*pi-4*acos(float(chi))


I=[[1,0],[0,1]]
pauli=([[0,1],[1,0]],[[0,-1j],[1j,0]],[[1,0],[0,-1]])
singlet=[[0,1/sqrt(2)],[-1/sqrt(2),0]]
waves=[mm(singlet,tr(s)) for s in pauli]


def variance(axis,angle,v,endpoint_phase,close):
    # Build the spinor hopping matrix and normalized symmetric two-boson
    # amplitude in the first-quantized position/spin product basis.
    V=4; d=2*V
    H=[[0j]*d for _ in range(d)]
    psi=[[0j]*d for _ in range(d)]
    edges=[(0,1,I),(1,2,I),(2,3,I)]
    if close:
        U=add(scale(cos(angle/2),I),scale(-1j*sin(angle/2),pauli[axis]))
        edges.append((3,0,U))
    for n,m,U in edges:
        for i,j in product(range(2),repeat=2):
            H[2*m+i][2*n+j]=U[i][j]
            H[2*n+j][2*m+i]=U[i][j].conjugate()
    for n in range(V):
        phase=complex(cos(endpoint_phase),sin(endpoint_phase)) if n==0 else 1
        for i,j in product(range(2),repeat=2):
            psi[2*n+i][2*n+j]=((-1)**n)*phase*sum(v[k]*waves[k][i][j] for k in range(3))/sqrt(V)
    out=add(mm(H,psi),mm(psi,tr(H)))
    norm=sum(abs(x)**2 for row in psi for x in row)
    centroid=sum(x.conjugate()*y for l,r in zip(psi,out) for x,y in zip(l,r))
    assert abs(norm-1)<1e-14 and abs(centroid)<1e-14
    return sum(abs(x)**2 for row in out for x in row)


def closing(axis,angle,spin,phase):
    return variance(axis,angle,spin,phase,True)-variance(axis,angle,spin,phase,False)


def main():
    unit=[1.0]*13
    delta=deficit(unit)
    co=17/81; si=56*sqrt(2)/81
    assert abs(cos(delta)-co)<1e-14 and abs(sin(delta)-si)<1e-14
    assert abs(2*cos(delta/2)-14/9)<1e-14
    # Face transitions in the local hinge-oriented incoming-face frames use
    # the actual cross-section geometry, independent of the rotation readout.
    c=F(1,3)
    face=rotation(float(c),-sqrt(1-float(c*c)))
    W=mm(mm(face,face),mm(face,face))
    assert abs(atan2(W[1][0],W[0][0])-delta)<1e-14
    assert abs(sum(W[i][i] for i in range(3))-115/81)<1e-14
    hinge=[0,0,1]
    circular=[1/sqrt(2),1j/sqrt(2),0]
    assert abs(closing(2,delta,hinge,0))<1e-14
    assert abs(closing(0,delta,hinge,0)-64/81)<1e-14
    for direction in (1,-1):
        plus=closing(2,direction*delta,circular,pi/2)
        minus=closing(2,direction*delta,circular,-pi/2)
        assert abs(plus-(1+direction*si))<1e-14
        assert abs(plus-minus-2*direction*si)<1e-14
    assert abs(variance(2,delta,circular,pi/2,False)-1)<1e-14

    # Check the covariance gradient using independent rod perturbations.
    grad=[-4*sqrt(2)/3]+[-sqrt(2)]*4+[2*sqrt(2)/3]*8
    for i,expected in enumerate(grad):
        off=1e-6
        high,low=unit.copy(),unit.copy()
        high[i]=exp(off);low[i]=exp(-off)
        assert abs((deficit(high)-deficit(low))/(2*off)-expected)<1e-8
    assert abs(sum(grad))<1e-13
    assert abs(sum(x*x for x in grad)-56/3)<1e-13
    lower,upper=enclosure()
    assert 1.3125<lower<delta<upper<1.4071
    rng=Random(3)
    for _ in range(32):
        assert lower<=deficit([rng.uniform(.999,1.001) for _ in range(13)])<=upper
    align=pi/90
    right_max=(1-cos(upper))*sin(align)**2
    wrong_min=(1-cos(lower))*cos(align)**2
    assert right_max<.001021 and wrong_min>.7437

    # Identity-valued connection term adds scalar transport without changing
    # the normalized direction. For exact a the loop norm also returns.
    for a in ((.07,-.04,.02,.08),(.10,-.05,-.02,-.03)):
        P=rotation(1,0)
        for edge in a:
            P=mm(scale(exp(-edge),face),P)
        norm=sqrt(sum(P[i][0]**2 for i in range(3)))
        assert abs(norm-exp(-sum(a)))<1e-14
        assert max(abs(P[i][0]/norm-W[i][0]) for i in range(3))<1e-14
    print(f"Four-tetrahedron deficit {delta:.12f} rad; cosine 17/81, sine 56*sqrt(2)/81.")
    print("Three competing rotations have common SO(3) trace 115/81.")
    print(f"Hinge and perpendicular readouts 0, {64/81:.9f}; signed phase contrast ±{2*si:.9f}.")
    print(f"Rod envelope [{lower:.9f}, {upper:.9f}] rad; axis witnesses ≤{right_max:.9f}, ≥{wrong_min:.9f}.")
    print("Exact lengths, phase-referenced spinor hopping, shared-rod derivatives and affine ambiguity passed.")


if __name__=="__main__":
    main()
tomography.py
"""Reconstruct a real vector rotation from coherent two-phase pair-width data."""
from math import cos, sin, sqrt
from itertools import combinations


def expectations(matrix, vector):
    return sum(a.conjugate()*r*b for i,a in enumerate(vector)
               for r,b in zip(matrix[i],vector))


def read_width(matrix, vector, reference):
    # The reference phase is applied to the root end of the closing edge.
    return 1 - (reference.conjugate()*expectations(matrix, vector)).real


def reconstruct(read):
    basis = [[int(i == j) for j in range(3)] for i in range(3)]
    result = [[0.0]*3 for _ in basis]
    for i, vector in enumerate(basis):
        result[i][i] = 1 - read(vector, 1)
    for i, j in combinations(range(3), 2):
        u = [(a+b)/sqrt(2) for a,b in zip(basis[i],basis[j])]
        v = [(a+1j*b)/sqrt(2) for a,b in zip(basis[i],basis[j])]
        symmetric = 1-read(u, 1)-(result[i][i]+result[j][j])/2
        antisymmetric = 1-read(v, 1j)
        result[i][j], result[j][i] = symmetric+antisymmetric,symmetric-antisymmetric
    return result


def multiply(a,b):
    return [[sum(x*y for x,y in zip(row,col)) for col in zip(*b)] for row in a]


def rotation(x,y):
    # Two independent axes, to exercise all symmetric and antisymmetric probes.
    rx = [[1,0,0],[0,cos(x),-sin(x)],[0,sin(x),cos(x)]]
    ry = [[cos(y),0,sin(y)],[0,1,0],[-sin(y),0,cos(y)]]
    return multiply(rx,ry)


def main():
    for x,y in ((0,0),(.4,-1.7),(1.2,0),(.8,2.1)):
        matrix = rotation(x,y)
        measured = reconstruct(lambda v,ref: read_width(matrix,v,ref))
        assert max(abs(a-b) for u,v in zip(matrix,measured) for a,b in zip(u,v)) < 1e-14
    print("Nine normalized differential settings reconstruct each signed 3 by 3 rotation.")


if __name__ == "__main__":
    main()
sugawa.py
"""Replay the forward-to-reverse split on Sugawa et al. (2021), Figs. 2a and 3a,b.

Run with Python 3.8+ and no dependencies. Data and limitations are in sugawa.md.
"""
import math


# Rows and columns run I, X, Y, Z. The printed, unparenthesized estimates
# are in hundredths. The parenthesized theoretical entries are never used.
FORWARD_REAL = (
    (39, -1, -1, 1),
    (-1, 29, 1, -29),
    (-1, 1, 0, -1),
    (1, -29, -1, 31),
)
FORWARD_IMAG = (
    (0, 32, 1, -35),
    (-32, 0, 0, -1),
    (-1, 0, 0, 0),
    (35, 1, 0, 0),
)
REVERSE_REAL = (
    (33, 0, 1, 1),
    (0, 29, 1, -32),
    (1, 1, 3, -2),
    (1, -32, -2, 36),
)
REVERSE_IMAG = (
    (0, -30, -2, 34),
    (30, 0, -1, 1),
    (2, 1, 0, 0),
    (-34, -1, 0, 0),
)
REVERSE_BLOCH = (-0.68, 0.59, 0.40)
REVERSE_SPREAD = (0.01, 0.05, 0.05)


def dot(a, b):
    return sum(x * y for x, y in zip(a, b))


def normalize(a):
    length = math.hypot(*a)
    return tuple(x / length for x in a)


def process(real, imaginary):
    chi = tuple(tuple(complex(a, b) / 100 for a, b in zip(rr, ii))
                for rr, ii in zip(real, imaginary))
    if any(chi[i][j] != chi[j][i].conjugate() for i in range(4) for j in range(4)):
        raise ValueError("Printed process matrix fails Hermiticity")
    return chi


def fit_rotation(chi):
    # The pure-process amplitudes are (w, -i*x, -i*y, -i*z) for real unit q.
    phases = (1, -1j, -1j, -1j)
    h = [[(phases[i].conjugate() * chi[i][j] * phases[j]).real
          for j in range(4)] for i in range(4)]
    q = (1., 0., 0., 0.)
    for _ in range(100):
        q = normalize([dot(row, q) for row in h])
    hq = [dot(row, q) for row in h]
    value = dot(q, hq)
    residual = math.hypot(*(v - value * u for v, u in zip(hq, q)))
    # An eigenvalue lies within 'residual' of 'value'. Bound the absolute
    # value of every other eigenvalue by the remaining Frobenius norm.
    lower = value - residual
    frob_sq = sum(dot(row, row) for row in h)
    others = math.sqrt(max(0., frob_sq - lower ** 2))
    gap_lower = lower - others
    if residual > 1e-12 or gap_lower <= 0.02:
        raise ArithmeticError("Insufficient convergence or eigenvalue separation")
    rounding_angle = 2 * math.degrees(math.asin(0.02 / (gap_lower - 0.02)))
    return q, value, rounding_angle


def rotate_z(q, reverse=False):
    w, x, y, z = q
    if reverse:
        x, y, z = -x, -y, -z
    return (2 * (x * z + w * y), 2 * (y * z - w * x), 1 - 2 * (x*x + y*y))


def line_angle(a, b):
    cosine = abs(dot(normalize(a), normalize(b)))
    return math.degrees(math.acos(min(1., cosine)))


def process_distance(forward, reverse, adjoint):
    return math.sqrt(sum(
        abs((cell.conjugate() if adjoint else cell) - reverse[i][j])**2
        for i, row in enumerate(forward) for j, cell in enumerate(row)
    ))


def main():
    forward = process(FORWARD_REAL, FORWARD_IMAG)
    q, overlap, rounding = fit_rotation(forward)
    reverse_prediction = rotate_z(q, reverse=True)
    unchanged_prediction = rotate_z(q)

    # Prediction above has no access to the reverse matrix or reverse vector.
    reverse = process(REVERSE_REAL, REVERSE_IMAG)
    residual = tuple(y - p for y, p in zip(REVERSE_BLOCH, reverse_prediction))
    for label, vec in (("unit quaternion", q),
                       ("predicted reverse +z", reverse_prediction),
                       ("reported reverse +z", REVERSE_BLOCH),
                       ("reported component spreads", REVERSE_SPREAD),
                       ("observed minus predicted", residual)):
        print(f"{label:29s}", " ".join(f"{v:+.6f}" for v in vec))
    print(f"forward pure-process overlap    {overlap:.6f}")
    print(f"reverse vector residual norm    {math.hypot(*residual):.6f}")
    print(f"reverse line error (degrees)    {line_angle(reverse_prediction, REVERSE_BLOCH):.6f}")
    print(f"unchanged line error (degrees)  {line_angle(unchanged_prediction, REVERSE_BLOCH):.6f}")
    print(f"forward print bound (degrees)   {rounding:.6f}")
    print(f"reverse process residual        {process_distance(forward, reverse, True):.6f}")
    print(f"unchanged process residual      {process_distance(forward, reverse, False):.6f}")


if __name__ == "__main__":
    main()
gp_b.py
"""An orbit-based leading geodetic drift and the published joint GP-B comparison."""
from math import cos, pi, radians, sin, sqrt


def dot(a,b):
    return sum(x*y for x,y in zip(a,b))


def cross(a,b):
    return (a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0])


def main():
    mu,c=3.986004418e14,299792458.
    a,e=7027.4e3,.0014
    i,node=radians(90.007),radians(163.26)
    ra,dec=radians(343.2594),radians(16.8412)
    s=(cos(dec)*cos(ra),cos(dec)*sin(ra),sin(dec))
    north=(-sin(dec)*cos(ra),-sin(dec)*sin(ra),cos(dec))
    normal=(sin(i)*sin(node),-sin(i)*cos(node),cos(i))
    projection=dot(north,cross(normal,s))
    assert abs(projection-sin(i)*cos(ra-node))<2e-15
    mean_motion=sqrt(mu/a**3)
    mas_per_rad=(180/pi)*3600*1000
    seconds_per_year=365.25*86400
    rate=1.5*mu/(c*c*a)*mean_motion*projection*mas_per_rad*seconds_per_year
    angle_per_rev=3*pi*mu/(c*c*a)
    revolutions=seconds_per_year*mean_motion/(2*pi)
    assert abs(rate-angle_per_rev*revolutions*projection*mas_per_rad)<1e-10
    ellipse=rate/(1-e*e)
    assert abs(rate+6603.87627)<.0001 and abs(ellipse+6603.88922)<.0001
    measured,error,mission=-6601.8,18.3,-6606.1
    diff=measured-mission
    assert abs(diff-4.3)<1e-10 and .2349<diff/error<.2351
    print(f"North projection {projection:.11f}; circular orbit {rate:.3f} mas/yr; Kepler ellipse {ellipse:.3f}.")
    print(f"One orbit {angle_per_rev*mas_per_rad:.6f} mas; Kepler period {2*pi/mean_motion/60:.5f} min.")
    print(f"Published joint N–S minus mission GR {diff:+.1f} ± {error:.1f} mas/yr ({diff/error:.3f} sigma).")


if __name__=="__main__":
    main()
replay.py
"""Replay the detector-port and measured-geometry study using standard Python and a pinned Tally runtime."""
import argparse
import hashlib
from pathlib import Path
import shutil
import subprocess
import sys
import tempfile
from zipfile import ZipFile

ROOT = Path(__file__).resolve().parent
RUNTIME_SHA = "2313affcea8d1d350b825dd8c654ee5ff1985a396e7cc3c572407d347beff574"
ATOM_SHA = "4c08a122480cb2d6c1efb48b9e868b5b45432d78dc40b339dbe9db7ebdacf02d"


def checked(path, expected):
    data = path.read_bytes()
    if hashlib.sha256(data).hexdigest() != expected:
        raise ValueError(f"SHA-256 mismatch for {path.name}")
    return data


def main():
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument("runtime", type=Path, help="published Tally 0.3.0 runtime ZIP")
    args = parser.parse_args()
    checked(args.runtime, RUNTIME_SHA)
    lib = ROOT / "lib/atom.tly"
    if not lib.is_file():
        lib = ROOT.parent / "walk-clock-recoil/tally/lib/atom.tly"
    atom = checked(lib, ATOM_SHA)
    python = [sys.executable, "-E", "-s", "-B", "-X", "utf8"]
    for script in ("port", "echo", "front", "fan", "tomography", "sugawa", "gp_b"):
        subprocess.run([*python, str(ROOT / (script + ".py"))], check=True)

    with tempfile.TemporaryDirectory() as work_path:
        work = Path(work_path)
        with ZipFile(args.runtime) as runtime:
            runtime.extractall(work)
        tally = work / "Tally-0.3.0"
        (tally / "lib/atom.tly").write_bytes(atom)
        shutil.copyfile(ROOT / "geometry.tly", work / "geometry.tly")
        result = subprocess.run([*python, str(tally / "tally.py"), "geometry.tly"], cwd=work,
                                stdout=subprocess.PIPE, check=True)
        actual = result.stdout.decode("utf-8").splitlines()
        expected = (ROOT / "geometry.out").read_text(encoding="utf-8").splitlines()
        if actual != expected or sum(line.startswith("✓") for line in actual) != 18:
            raise ValueError("Tally output differs from the 18 published checks")
    print("All seven offline checks and the complete 18-assertion Tally transcript passed.")


if __name__ == "__main__":
    main()
Back to contents ↑

Independent research by Anthony Michael Collado.
Position, spin and measured geometry · 1 December 2026

Reachable sites and packet speeds → · Study sources (ZIP) ↓