Contract analysis
Velmère Research Lab
Research Lab is the back room of Velmère. We measure the audit engine, study mistakes in how contracts use cryptography and build risk models. It also holds M3, our closed project on prime numbers.
as of 25 November 2026
research lines
Contract analysis
Cryptography in code
Market and risk models
M3 · prime numbers
M3 · prime numbers
M3 is our own way of counting how many primes there are up to x. The result is exact, not an approximation.
The idea is simple. First we strike out the multiples of the small primes, those up to the cube root of x. What remains is the number one, the larger primes and the products of exactly two larger primes. We count those products separately and subtract them.
A second path, RM, is built on this counter. It measures how far the actual distribution of primes is from an analytic approximation, and how that difference behaves at larger and larger scales.
π(x) = A(x) − P₂(x)
calculator
Enter x. The page computes A and P₂ straight from their definitions, and a separate counter checks the result by trial division.
Browser demonstration for 0 ≤ x ≤ 10,000. It is a small, separate implementation of the definitions; it does not run the Python generator or the Lean proofs.
scope
The ranges come from the project documentation of 13 November 2026. They concern finite intervals and separate implementations; this page does not run those tests again.
states and events · 60 million comparisons
150 million A, P₂ and π comparisons · no discrepancies reported
all real x from 2657 to 100 million
every n from 2 to 1,048,575
The range to 100 million concerns π and the RM certificate. Separate A and P₂ checks have their own R48 and R50 scopes. Formal equivalence between fast Python and Lean remains a separate task.
error energy
For every scale X = 2ʲ we compute the energy D(X), the averaged square of the difference between the counter and the approximation. The chart shows the recorded values for X from 2 to 524,288.
A finite chart does not prove that the energy stays bounded at every further scale. That is the question we did not settle.
closing the stage
We took M3 to the point where the next step needs review by specialists rather than more computation. So we are closing this stage and keeping the results here in full.
Basis: M3 reports R14 and R16 (18 November 2026); D. R. Johnston, “On the average value of π(t) − li(t)” (2022). This is an explanatory summary and does not replace peer review.
archive
Polish originals, available for download.
Brent, Platt and Trudgian give a mean-square error estimate assuming the Riemann hypothesis. The Clay Mathematics Institute still lists it as unsolved.