Refactor monogramRefactor

Mathematics / Heat grids · Numerical error

Where did the 0.49 percentage points go?

At wall distance 1,024, the pulse model misses the measured shortfall by 0.49 percentage points. Recover the largest share from one thermometer tick, then prove how fast the discrepancy shrinks as the walls recede.

Begin with: Weighted averages and logarithms. The doubling-rate article develops the crossing calculation, and the printable proof gives the lattice and wall estimates.

Move the walls on a line from 1,024 steps away to 2,048. Following the same heat-pulse amplitudes on both grids predicts a shortfall of 10.17%. Propagating the actual weights gives 10.66%. Of the missing 0.49 percentage points, about 0.36 come from the scale of the thermometer itself. Put back the time to a wall, the checkerboard’s decay, and its width, and the model comes within about 0.01 percentage point of the grid.

Where the 0.49 points went

The walls absorb heat. At wall distance d, each cell keeps the fraction h = 1/d of its old value and takes the rest from its two neighbors. The thermometer reads the center minus the mean of those neighbors. After subtracting the linear part of its worst-case error, doubling d adds an amount that approaches a limit Q. The percentages here measure how far that increment falls short of Q. The preceding calculation predicts the increment by asking, for each height in the smooth pulse, when it can first overturn a fading checkerboard sign on each grid.

Shortfall for the line doubling from 1,024 to 2,048. Each model row keeps the preceding changes. The last row uses the discrete grid.
CalculationShortfallChange in points
Original crossings10.16987%—
Thermometer scale10.52897%+0.35911
Time to a wall10.59957%+0.07060
Checkerboard decay10.67826%+0.07868
Distinct pulse widths10.66588%−0.01238
Discrete weights10.65618%−0.00969

The four changes together take the prediction 0.00969 points past the grid. That last difference combines the remaining errors from approximating the profiles and sampling them on the lattice. The discrete calculation has numerical uncertainty at most 0.0015 points here. The table assigns each change in the order shown.

Read the thermometer from one tick

Why does its scale account for nearly three quarters of the gap? Start with a unit pulse e₀ at the center. Write B for the neighbor average, c = 1 − h for the fraction that moves, and A = hI + cB for a full tick. The thermometer has final weights (I − B)e₀. Subtract the updated pulse from the old one and the holding fraction appears immediately.

(I − A)e₀ = c(I − B)e₀,

(I − B)e₀ = (e₀ − Ae₀)/c.

Move both pulses back t ticks. The exact thermometer weight is their one-tick difference divided by c. For the smooth Gaussian pulse this becomes its negative time derivative divided by c. The original crossing model used the limiting value c = 1. Restoring 1/c changes both the mass of each smooth layer and the time when it becomes strong enough to reverse the sign. Those changes give the first 0.35911 points.

The same tick supplies the other three rows. Its variance is c, so diffusing a distance d takes time of order d²/c. The checkerboard is multiplied in magnitude by r = 1 − 2h each tick, giving exact decay rt in place of the leading exponential exp(−2ht). Finally, the two pulses spread at different rates. At lag t their Gaussian variances are ct for the smooth pulse and ct/r for the checkerboard. Keeping that wider checkerboard lowers the predicted shortfall by 0.01238 points. The same amplitude is followed through all four substitutions.

Subtract the corrections on the two grids

Let C(d,1/d) be the sharp all-run thermometer error per unit of per-cell, per-tick error. Its free checkerboard contribution sums to d. Write R(d) = C(d,1/d) − d and D(d) = R(2d) − R(d). On a line the smooth layers have total normalized mass α = √(2/(πe)), and the limiting increment is Q = α log 2. Let G(d) be the grid’s relative shortfall 1 − D(d)/Q minus the shortfall predicted by the original unexpanded crossings. Thus G(1,024) is about 0.00486 as a fraction, or 0.486 percentage points.

Write M(d) for the residual predicted by the original smooth model, including the finite contribution from the absorbing walls. An amplitude begins contributing around time (d/2) log d and continues on the wall time scale d². Layers earn mass at the rate dt/t. Their accumulated residual therefore has size

M(d) = α(log d − log log d) + O(1).

The multiplier 1/c = 1 + 1/d + O(1/d²) acts on that whole residual. To leading order it adds M(d)/d on the smaller grid and M(2d)/(2d) on the larger. Both residuals have leading size α log d. The smaller grid receives the larger correction, so the increment on doubling is smaller than the crossing model predicts. Subtracting the two corrections leaves about α log d/(2d). Dividing by Q gives the signed rate, with natural logarithms and d tending to infinity through integers.

G(d) ∼ log d / (2d log 2).

The earlier 1/log d law measures the grid’s shortfall from its limiting doubling cost. G(d) measures the smaller discrepancy left after following the crossings. Its leading term at d = 1,024 gives 0.48828 percentage points. The measured gaps for starting distances 256, 512, 1,024 and 2,048 are about 1.605, 0.887, 0.486 and 0.265 points. The roundoff allowance reaches 0.012 points for the last doubling. At large d, another doubling retains slightly more than half the preceding gap to leading order.

What makes the rate a proof?

To resolve a discrepancy this small, the estimates must distinguish a change in magnitude from a change of sign. On the free line, a weight whose sign disagrees with the checkerboard contributes twice its magnitude to the excess. Condition on how many ticks the walk holds still. Consecutive hold counts have opposite checkerboard signs. For t ≤ (d − 1)/2 the contribution with an even number of holds dominates the following odd one at every cell. Pairing them proves that the early free weights have exactly zero disagreement.

Near the crossing, keep the next terms of the smooth and checkerboard Fourier profiles. A change in the checkerboard approximation matters to the count only on cells where the smooth term is large enough to overturn its sign. Sum over those cells first.

The finite table keeps the two widths ct and ct/r. For the rate proof we may give both pulses the smooth width ct. Changing the checkerboard width affects the disagreement count only where the smooth pulse can overturn the sign. Summed over those cells and crossing times, the change costs O(1/(d log d)) on one grid, within the error already allowed in the rate formula.

Then integrate the even and odd lattice sites separately. On each parity, the Gaussian contribution is a quadratic with its negative part clipped away, times a Gaussian density. Controlling the slope where that quadratic crosses zero bounds the spatial summation error. At later lags the reflected smooth pulse supplies the absorbing-wall correction.

These estimates give a one-grid identity strong enough to subtract. The term 2α/d comes from keeping the exact checkerboard decay rate and the wall time scale in the logarithm. The proof bounds the error after those terms by O(1/(d log d)).

R(d) = M(d) + [M(d) + 2α]/d + O(1/(d log d)).

In particular the gap is positive for all sufficiently large d. More precisely, put L = log d. Scale the walls to −1 and 1 and let the variance grow by one per unit time. Integrating the absolute rate of change of this absorbed pulse, after subtracting the free-space α/s term through scaled time s = 1, gives a finite constant B₁ ≈ 0.16010. The refined result is

2d (log 2) G(d)

= L − log L + 2 + B₁/α + O((log L)/L).

The five-page proof gives the early sign pairing, the two parity estimates, the wall integral, and the calculations behind the opening table. Download Where did the 0.49 percentage points go? (PDF).

The last 0.00969 percentage point in the opening table can be split by sampling the same Gaussian pulses on the actual cells and ticks. How much of the last hundredth comes from sampling? carries out that test and checks the remaining discrepancy against the next term from one tick.