Routines written once in pseudo and checked at every level, so programs can use them by name instead of rewriting and re-verifying them: - stats: Mean, Variance (two-pass) - numerics: KahanSum, LinearInterp, Trapezoid - align: LinearGapPenalty, AffineGapPenalty, MatchScore, NeedlemanWunschScore - md: LennardJones, LennardJonesForce, MinimumImage, PairDistance - seq: GCContent, HammingDistance - special: ErfApprox (Abramowitz and Stegun 7.1.26) Each has contracts, cases, reference implementations in Python, Mojo and (for the numerical ones) C at more than one level, and nine have a Dafny proof over exact numbers. status.json and STATUS.md are written by pplus-core's library-check: every check passes or is open/unverified as listed there. The Mojo references still need the pinned compiler's answers (library-verify-mojo, network). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FgvbRdoEheAHqsRmr2WuKZ
15 KiB
15 KiB
Library status
Each routine, at each level. pass: checked and agrees; open: the prover could not finish every obligation (nothing is wrong, nothing is proved); skipped: the tool is not available here, or it declines the construct; unverified: no stored answer for this exact text yet.
Sequence alignment (align)
| Routine | Cases | Prover | Fuzz | Generated Mojo | References | Proof |
|---|---|---|---|---|---|---|
align.AffineGapPenalty |
pass | pass | pass | pass | python/plain: cpython pass mojo/plain: interpreter pass, godbolt unverified |
dafny pass |
align.LinearGapPenalty |
pass | pass | pass | pass | python/plain: cpython pass mojo/plain: interpreter pass, godbolt unverified |
dafny pass |
align.MatchScore |
pass | pass | pass | pass | python/plain: cpython pass mojo/plain: interpreter pass, godbolt unverified |
dafny pass |
align.NeedlemanWunschScore |
pass | pass | pass | pass | python/plain: cpython pass python/two-rows: cpython pass mojo/plain: interpreter pass, godbolt unverified |
· |
Molecular simulation (md)
| Routine | Cases | Prover | Fuzz | Generated Mojo | References | Proof |
|---|---|---|---|---|---|---|
md.LennardJones |
pass | pass | pass | pass | python/multiply: cpython pass python/powers: cpython pass c/multiply: cc -O0 pass, cc -O2 pass mojo/multiply: interpreter pass, godbolt unverified |
dafny pass |
md.LennardJonesForce |
pass | pass | pass | pass | python/multiply: cpython pass mojo/multiply: interpreter pass, godbolt unverified |
· |
md.MinimumImage |
pass | pass | pass | pass | python/plain: cpython pass c/plain: cc -O0 pass, cc -O2 pass mojo/plain: interpreter pass, godbolt unverified |
dafny pass |
md.PairDistance |
pass | pass | pass | skipped | python/plain: cpython pass mojo/plain: interpreter pass, godbolt unverified |
· |
Numerics (numerics)
| Routine | Cases | Prover | Fuzz | Generated Mojo | References | Proof |
|---|---|---|---|---|---|---|
numerics.KahanSum |
pass | pass | pass | pass | python/plain: cpython pass c/plain: cc -O0 pass, cc -O2 pass mojo/plain: interpreter pass, godbolt unverified |
dafny pass |
numerics.LinearInterp |
pass | pass | pass | pass | python/plain: cpython pass mojo/plain: interpreter pass, godbolt unverified |
· |
numerics.Trapezoid |
pass | pass | pass | pass | python/plain: cpython pass mojo/plain: interpreter pass, godbolt unverified |
· |
Sequences (seq)
| Routine | Cases | Prover | Fuzz | Generated Mojo | References | Proof |
|---|---|---|---|---|---|---|
seq.GCContent |
pass | pass | pass | pass | python/plain: cpython pass mojo/plain: interpreter pass, godbolt unverified |
dafny pass |
seq.HammingDistance |
pass | pass | pass | pass | python/plain: cpython pass mojo/plain: interpreter pass, godbolt unverified |
dafny pass |
Special functions (special)
| Routine | Cases | Prover | Fuzz | Generated Mojo | References | Proof |
|---|---|---|---|---|---|---|
special.ErfApprox |
pass | open | pass | skipped | python/plain: cpython pass python/libm: cpython pass mojo/plain: interpreter skipped, godbolt unverified |
· |
Statistics (stats)
| Routine | Cases | Prover | Fuzz | Generated Mojo | References | Proof |
|---|---|---|---|---|---|---|
stats.Mean |
pass | pass | pass | pass | python/plain: cpython pass python/fsum: cpython pass c/plain: cc -O0 pass, cc -O2 pass mojo/plain: interpreter pass, godbolt unverified mojo/unrolled: interpreter pass, godbolt unverified |
dafny pass |
stats.Variance |
pass | pass | pass | pass | python/plain: cpython pass python/statistics: cpython pass mojo/plain: interpreter pass, godbolt unverified |
· |
Details
align.AffineGapPenalty
- structure: pass. defines FUNCTION AffineGapPenalty
- pseudo: pass. 3 case(s) run
- prover: pass. all 1 obligation(s) proved
- fuzz: pass. no failure in 201 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/plain, cpython: pass. agrees with the pseudo on 3 case(s) (exactly)
- mojo/plain, interpreter: pass. agrees with the pseudo on 3 case(s) in core's interpreter (exactly)
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
- proof: pass. Dafny 4.11.0: 3 verified, 0 errors
align.LinearGapPenalty
- structure: pass. defines FUNCTION LinearGapPenalty
- pseudo: pass. 3 case(s) run
- prover: pass. all 1 obligation(s) proved
- fuzz: pass. no failure in 123 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/plain, cpython: pass. agrees with the pseudo on 3 case(s) (exactly)
- mojo/plain, interpreter: pass. agrees with the pseudo on 3 case(s) in core's interpreter (exactly)
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
- proof: pass. Dafny 4.11.0: 2 verified, 0 errors
align.MatchScore
- structure: pass. defines FUNCTION MatchScore
- pseudo: pass. 3 case(s) run
- prover: pass. all 2 obligation(s) proved
- fuzz: pass. no failure in 285 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/plain, cpython: pass. agrees with the pseudo on 3 case(s) (exactly)
- mojo/plain, interpreter: pass. agrees with the pseudo on 3 case(s) in core's interpreter (exactly)
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
- proof: pass. Dafny 4.11.0: 1 verified, 0 errors
align.NeedlemanWunschScore
- structure: pass. defines FUNCTION NeedlemanWunschScore, using align.MatchScore, align.LinearGapPenalty
- pseudo: pass. 4 case(s) run
- prover: pass. all 11 obligation(s) proved
- fuzz: pass. no failure in 300 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/plain, cpython: pass. agrees with the pseudo on 4 case(s) (exactly)
- python/two-rows, cpython: pass. agrees with the pseudo on 4 case(s) (exactly)
- mojo/plain, interpreter: pass. agrees with the pseudo on 4 case(s) in core's interpreter (exactly)
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
md.LennardJones
- structure: pass. defines FUNCTION LennardJones
- pseudo: pass. 4 case(s) run
- prover: pass. all 2 obligation(s) proved
- fuzz: pass. no failure in 252 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/multiply, cpython: pass. agrees with the pseudo on 4 case(s) (exactly)
- python/powers, cpython: pass. agrees with the pseudo on 4 case(s) (within rel 1e-12, abs 0)
- c/multiply, cc -O0: pass. agrees with the pseudo on 4 case(s) (exactly)
- c/multiply, cc -O2: pass. agrees with the pseudo on 4 case(s) (exactly)
- mojo/multiply, interpreter: pass. agrees with the pseudo on 4 case(s) in core's interpreter (exactly)
- mojo/multiply, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
- proof: pass. Dafny 4.11.0: 14 verified, 0 errors
md.LennardJonesForce
- structure: pass. defines FUNCTION LennardJonesForce
- pseudo: pass. 3 case(s) run
- prover: pass. all 3 obligation(s) proved
- fuzz: pass. no failure in 252 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/multiply, cpython: pass. agrees with the pseudo on 3 case(s) (exactly)
- mojo/multiply, interpreter: pass. agrees with the pseudo on 3 case(s) in core's interpreter (exactly)
- mojo/multiply, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
md.MinimumImage
- structure: pass. defines FUNCTION MinimumImage
- pseudo: pass. 5 case(s) run
- prover: pass. all 1 obligation(s) proved
- fuzz: pass. no failure in 241 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/plain, cpython: pass. agrees with the pseudo on 5 case(s) (exactly)
- c/plain, cc -O0: pass. agrees with the pseudo on 5 case(s) (exactly)
- c/plain, cc -O2: pass. agrees with the pseudo on 5 case(s) (exactly)
- mojo/plain, interpreter: pass. agrees with the pseudo on 5 case(s) in core's interpreter (exactly)
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
- proof: pass. Dafny 4.11.0: 4 verified, 0 errors
md.PairDistance
- structure: pass. defines FUNCTION PairDistance, using md.MinimumImage
- pseudo: pass. 3 case(s) run
- prover: pass. all 9 obligation(s) proved
- fuzz: pass. no failure in 4 generated input(s)
- mojo: skipped. core's Mojo interpreter declines hypot(...) as written here; the compiler's answer is needed
- python/plain, cpython: pass. agrees with the pseudo on 3 case(s) (within rel 1e-15, abs 0)
- mojo/plain, interpreter: pass. agrees with the pseudo on 3 case(s) in core's interpreter (within rel 1e-15, abs 0)
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
numerics.KahanSum
- structure: pass. defines FUNCTION KahanSum
- pseudo: pass. 4 case(s) run
- prover: pass. all 1 obligation(s) proved
- fuzz: pass. no failure in 263 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/plain, cpython: pass. agrees with the pseudo on 4 case(s) (exactly)
- c/plain, cc -O0: pass. agrees with the pseudo on 4 case(s) (exactly)
- c/plain, cc -O2: pass. agrees with the pseudo on 4 case(s) (exactly)
- mojo/plain, interpreter: pass. agrees with the pseudo on 4 case(s) in core's interpreter (exactly)
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
- proof: pass. Dafny 4.11.0: 2 verified, 0 errors
numerics.LinearInterp
- structure: pass. defines FUNCTION LinearInterp
- pseudo: pass. 3 case(s) run
- prover: pass. all 1 obligation(s) proved
- fuzz: pass. no failure in 300 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/plain, cpython: pass. agrees with the pseudo on 3 case(s) (exactly)
- mojo/plain, interpreter: pass. agrees with the pseudo on 3 case(s) in core's interpreter (exactly)
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
numerics.Trapezoid
- structure: pass. defines FUNCTION Trapezoid
- pseudo: pass. 3 case(s) run
- prover: pass. all 4 obligation(s) proved
- fuzz: pass. no failure in 227 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/plain, cpython: pass. agrees with the pseudo on 3 case(s) (exactly)
- mojo/plain, interpreter: pass. agrees with the pseudo on 3 case(s) in core's interpreter (exactly)
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
seq.GCContent
- structure: pass. defines FUNCTION GCContent
- pseudo: pass. 3 case(s) run
- prover: pass. all 3 obligation(s) proved
- fuzz: pass. no failure in 469 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/plain, cpython: pass. agrees with the pseudo on 3 case(s) (exactly)
- mojo/plain, interpreter: pass. agrees with the pseudo on 3 case(s) in core's interpreter (exactly)
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
- proof: pass. Dafny 4.11.0: 5 verified, 0 errors
seq.HammingDistance
- structure: pass. defines FUNCTION HammingDistance
- pseudo: pass. 3 case(s) run
- prover: pass. all 5 obligation(s) proved
- fuzz: pass. no failure in 291 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/plain, cpython: pass. agrees with the pseudo on 3 case(s) (exactly)
- mojo/plain, interpreter: pass. agrees with the pseudo on 3 case(s) in core's interpreter (exactly)
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
- proof: pass. Dafny 4.11.0: 5 verified, 0 errors
special.ErfApprox
- structure: pass. defines FUNCTION ErfApprox
- pseudo: pass. 5 case(s) run
- prover: open. 0 of 1 obligation(s) proved; open: divide@12 (1.0 + 0.3275911 * A is not 0)
- fuzz: pass. no failure in 269 generated input(s)
- mojo: skipped. core's Mojo interpreter declines exp(...) as written here; the compiler's answer is needed
- python/plain, cpython: pass. agrees with the pseudo on 5 case(s) (exactly)
- python/libm, cpython: pass. agrees with the pseudo on 5 case(s) (within rel 0, abs 1.5e-7)
- mojo/plain, interpreter: skipped. core's Mojo interpreter declines exp(...) as written here
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
stats.Mean
- structure: pass. defines FUNCTION Mean
- pseudo: pass. 5 case(s) run
- prover: pass. all 2 obligation(s) proved
- fuzz: pass. no failure in 262 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/plain, cpython: pass. agrees with the pseudo on 5 case(s) (exactly)
- python/fsum, cpython: pass. agrees with the pseudo on 5 case(s) (within rel 1e-15, abs 0)
- c/plain, cc -O0: pass. agrees with the pseudo on 5 case(s) (exactly)
- c/plain, cc -O2: pass. agrees with the pseudo on 5 case(s) (exactly)
- mojo/plain, interpreter: pass. agrees with the pseudo on 5 case(s) in core's interpreter (exactly)
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
- mojo/unrolled, interpreter: pass. agrees with the pseudo on 5 case(s) in core's interpreter (within rel 1e-15, abs 0)
- mojo/unrolled, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo
- proof: pass. Dafny 4.11.0: 9 verified, 0 errors
stats.Variance
- structure: pass. defines FUNCTION Variance, using stats.Mean
- pseudo: pass. 3 case(s) run
- prover: pass. all 4 obligation(s) proved
- fuzz: pass. no failure in 221 generated input(s)
- mojo: pass. the generated Mojo prints what the pseudo prints on every case, in core's interpreter
- python/plain, cpython: pass. agrees with the pseudo on 3 case(s) (exactly)
- python/statistics, cpython: pass. agrees with the pseudo on 3 case(s) (within rel 1e-12, abs 0)
- mojo/plain, interpreter: pass. agrees with the pseudo on 3 case(s) in core's interpreter (exactly)
- mojo/plain, godbolt: unverified. no stored answer from mojo_1_1_0 for this program: pixi run library-verify-mojo