Lattice Anneal

Proof statements arrive as a batch. An energy pulls them onto a lattice: related statements close together, every conclusion above its premises.

1 · The energy

Statements occupy distinct sites of a grid, y growing upward. For each edge premise p → conclusion c, let Δx = xc − xp and Δy = yc − yp:

Eedge = a · ( Δx² + (Δy − 1)² ) + λ · max(0, 1 − Δy)²
affinity: a conclusion wants to sit directly above its premiseorder: strictly above, λ = 8

The total is E = Σedges Eedge, and an edge is violated when Δy < 1. Order is written as a potential, not a rule, so one sampler handles both: nothing is forbidden, a violation is just expensive.

2 · Watch it settle

Metropolis relocates a statement to a random site (swapping if occupied) and accepts with probability min(1, e−ΔE/T). Annealing cools one replica geometrically from Thigh to Tlow. Parallel tempering runs six replicas at fixed temperatures and swaps neighbours with probability min(1, e(1/Ti − 1/Tj)(Ei − Ej)); the board shows the best state seen.

◎ axiom (no premises)● derived statement▬ violated ordery rows labelled at left
sweep0
temperature–
energy–
violations–

3 · Energy over time

Best-so-far energy per sweep on a log axis: annealing begins hot and disordered, and the descent is the schedule doing its work. The dashed line is the lowest energy this run has reached.

4 · Which sampler, at equal compute?

Fifty seeds each on the derivation selected above. Both methods make the same number of Metropolis proposals: tempering spends budget ÷ 6 sweeps on each of its six replicas. A run is ok if it ends with zero order violations.

methodruns okmedian Emin E
press the button

Is tempering just badly set up? Open the tuning lab →

The tempering ladder (0.15 to 6) is not tuned: this compares these two settings, not the two ideas.

Provenance
run scripts/provenance.sh to generate provenance.js