Exact arithmetic · three signed volumes · one tiny remainder

Three Mountains Leave Forty-Two

Choose an integer and test the modulo 9 obstruction to writing it as three integer cubes. For 33 and 42, exact BigInt arithmetic expands the published triples and watches three huge signed cubes cancel to the target. Then replay Booker's divisor and perfect-square search certificate, or run the same bounded search idea yourself, with every limit and uncertainty left visible.

The small answer is not estimated from the large terms. Every digit survives. Pick the target first.

Layer one · exact cancellation

One integer enters. Residues and signed cubes come out.

Waiting for live arithmetic.

The three cube terms, width scaled against the largest absolute term

Waiting for exact BigInt terms.
coordinateintegersigned cube

Source status will appear after computation.

Verifying a supplied triple is bookkeeping. Finding it is the deeper problem. Booker starts by ordering the coordinates so that |x| ≥ |y| ≥ |z|, then sets d = |x + y|. Since x³ + y³ = (x + y)(x² - xy + y²), the candidate d must divide |k - z³|. One exact square test can then reconstruct the two missing coordinates.

That test is the whole of layer two, so here it is in the open. For the true triple, write d = |x + y| and q = (4|k - z³| - d³) / (3d). Then q = (x - y)². So the row below labelled exact integer sqrt q is not a diagnostic: it is |x - y| itself, and together with d = |x + y| it pins the two missing coordinates exactly. If q is not a perfect square, no triple exists for that (z, d) and the search moves on. Watch the panel: for 42 the exact square root comes out 160974496957893489, which is precisely the difference of the two seventeen-digit coordinates.

Replay a published search certificate

The page derives every row from the selected triple.

Waiting for the live certificate.

Run a bounded search

A Web Worker tests integer pairs (z,d) without freezing the page.

No bounded search has run yet.

Results will appear here with the exact limits and tested pair count.

A no-hit result is not a nonexistence proof. It means only that this simple browser search found no reconstruction among the displayed (z,d) bounds. The published algorithms add powerful congruence filters and vastly larger distributed computations.

The check · rebuilt in this browser

This panel is filled by the same live arithmetic that drives the instruments. Published values are marked as published. Derived values are recomputed after the page loads.

Current exact triple

coordinateinteger mod 9cube mod 9

All 27 sums of cube residues

Direct enumeration of base residues 0, 1, and 8 fills this table live. A red result is one of the two unreachable target classes.

Waiting for the finite residue check.

Current search certificate

Machine-checked, over every integer

The obstruction above is enumerated here over all 729 residue triples, which is a statement about residues. The stronger statement, quantified over every integer, is proved by Lean's kernel in research/three-mountains-leave-forty-two/lean/ThreeCubes.lean: cubing commutes with reduction modulo 9, so every integer cube is 0, 1 or 8 mod 9, so no sum of three of them is 4 or 5 mod 9. The file imports nothing, no Mathlib and no Batteries, so the only trusted component is the type checker itself. Its axiom footprint is printed on every typecheck and reads [propext, Quot.sound], with no sorryAx and no Classical.choice. The same file kernel-checks both seventeen-digit identities in exact integer arithmetic, and those two depend on no axioms at all. Reproduce with bash research/three-mountains-leave-forty-two/lean/verify.sh.

Uncertainties, approximations, conventions, and free choices

Sources and what they support

Offline differential verifier: node research/three-mountains-leave-forty-two/verify-three-mountains-leave-forty-two.mjs. It extracts the shipped arithmetic engine from this HTML, sweeps it against an independently written reference implementation, checks the published triples and certificates, and proves that a deliberate mutation is detected.