Lean Kernel Arena / pestka-wasm

Checker "pestka-wasm"

Language: Aver Aver · Version: 9eb7bb9 · 📄 Declaration · 🔗 Source

pestka-wasm is the Pestka kernel as WebAssembly. The same Aver source as the pestka entry is compiled by Aver's own wasm-gc backend (not through Rust or LLVM) and runs on V8 under Node. Terms, maps and closures are objects of the engine's garbage collector, and the module is about 0.6 MB. It gives the same answers as pestka; the gap between the two entries is what a garbage-collected wasm target costs a Lean kernel, and Aver's backend keeps working on it.

As in pestka, the export is first converted to Susz by the native susz converter, which is not trusted. Declarations are then checked on one thread, grouped by namespace, with --low-memory: Pestka's caches stay bounded, which under the garbage collector costs no extra work. bin/run-wasm passes on Pestka's exit status only when its verdict line agrees with it, and exits with 3 otherwise, so a crash of V8 or of the host never reads as a verdict.

The build installs susz 0.1.2 and the Aver release pinned in .aver-version (0.35.0) from crates.io, and optimizes the module for speed with Binaryen's wasm-opt.

Soundness (rightfully rejected tests)

84 ✅ 0 ❌ 0 🚫

Completeness (rightfully accepted tests)

138 ✅ 0 ❌ 1 🚫

Corner cases (no outcome prescribed)

30 ✅ 0 🚫

Test Expected Result ⏱️ 🧠
cedar 👍 👍 88.9 s (-37%) 3.3 GB (×2.4)
con-leche 👍 👍 59.5 s (-46%) 2.4 GB (×2.8)
cslib 👍 👍 4.90 min (-43%) 8.6 GB (×2.5)
init 👍 👍 36.9 s (-44%) 2.4 GB (×4.1)
init-prelude 👍 👍 453 ms (+21%) 406.9 MB (×3.7)
mathlib 👍 👍 18.3 min (-42%) 9.6 GB (-3%)
navier-stokes-euler 👍 👍 5.02 min (÷2.2) 5.0 GB (×2.0)
reachability 👍 👍 12.2 s (-48%) 1.2 GB (-25%)
std 👍 👍 63.9 s (-43%) 2.7 GB (×2.9)
30 2.94 s 134.6 MB
closure-level-subst ✋ ✋ 85.7 ms 105.4 MB
constlevels ✋ ✋ 92.3 ms 106.0 MB
ctor-num-fields ✋ ✋ 89.9 ms 106.2 MB
eta-ctor-alias ✋ ✋ 89.2 ms 106.0 MB
k-rec-conv ✋ ✋ 91.5 ms 106.5 MB
large-elim-param ✋ ✋ 85.4 ms 104.9 MB
large-elim-prop-bool ✋ ✋ 89.5 ms 106.6 MB
level-imax-leq ✋ ✋ 83.1 ms 104.9 MB
level-imax-normalization ✋ ✋ 86.1 ms 105.3 MB
loose-bvar-value ✋ ✋ 84.2 ms 104.9 MB
nat-rec-k-lie ✋ ✋ 87.7 ms 105.0 MB
nat-rec-rules ✋ ✋ 85.8 ms 105.0 MB
nested-name-capture ✋ ✋ 103 ms 116.2 MB
nested-rec-rule-nfields ✋ ✋ 109 ms 117.2 MB
nested-unused-param ✋ ✋ 110 ms 117.1 MB
open-term-cache-context ✋ ✋ 83.4 ms 105.0 MB
orphan-rec ✋ ✋ 84.0 ms 105.1 MB
pi-closure-context ✋ ✋ 83.3 ms 105.0 MB
proj-non-structure ✋ ✋ 89.2 ms 105.2 MB
proj-of-imax-prop ✋ ✋ 89.8 ms 106.4 MB
proj-of-stuck-prop ✋ ✋ 146 ms 132.8 MB
proj-of-subst-prop ✋ ✋ 145 ms 132.1 MB
rec-k-lie ✋ ✋ 85.6 ms 104.9 MB
rec-missing-ih ✋ ✋ 146 ms 132.6 MB
rec-of-subst-prop ✋ ✋ 146 ms 134.6 MB
rec-rule-proof-irrel ✋ ✋ 90.9 ms 107.0 MB
rec-rule-proof-irrel-nested ✋ ✋ 109 ms 116.5 MB
rec-rule-wrong-arg ✋ ✋ 89.5 ms 106.3 MB
rec-type-proof-irrel ✋ ✋ 91.4 ms 107.0 MB
unit-rec-rule ✋ ✋ 87.0 ms 104.9 MB
1 2.87 s 121.2 MB
alg-conv-trans-acc 🤷 ✋ 115 ms 118.7 MB
alg-conv-trans-acc-left 🤷 👍 113 ms 118.7 MB
alg-conv-trans-acc-right 🤷 👍 114 ms 118.8 MB
alg-conv-trans-quot 🤷 ✋ 89.1 ms 105.8 MB
alg-conv-trans-quot-left 🤷 ✋ 89.7 ms 106.1 MB
alg-conv-trans-quot-left-def 🤷 👍 90.1 ms 105.7 MB
alg-conv-trans-quot-right 🤷 👍 89.4 ms 105.9 MB
eta-ctor 🤷 ✋ 88.6 ms 105.7 MB
eta-rec-struct 🤷 ✋ 90.0 ms 105.6 MB
eta-rule-k 🤷 ✋ 88.4 ms 105.4 MB
eta-struct-major-and 🤷 👍 90.4 ms 105.7 MB
eta-struct-major-and-no-whnf 🤷 👍 92.8 ms 107.2 MB
eta-struct-major-no-whnf 🤷 👍 93.5 ms 112.4 MB
eta-unit-like-nested 🤷 ✋ 90.2 ms 106.4 MB
eta-unit-like-pi 🤷 ✋ 88.3 ms 105.6 MB
eta-unit-like-proof-field 🤷 ✋ 89.1 ms 105.6 MB
eta-unit-like-struct 🤷 ✋ 89.5 ms 105.3 MB
imax-nested-absorption 🤷 ✋ 80.4 ms 104.3 MB
imax-right-successor 🤷 👍 81.4 ms 104.6 MB
large-elim-maybe-prop 🤷 ✋ 85.6 ms 105.0 MB
let-value-type-mismatch 🤷 ✋ 80.7 ms 104.6 MB
nested-nonuniform-param 🤷 ✋ 85.5 ms 105.4 MB
nested-redex-aux 🤷 👍 118 ms 121.2 MB
positivity-whnf 🤷 ✋ 85.4 ms 105.4 MB
proj-maybe-prop 🤷 👍 86.9 ms 105.4 MB
proj-maybe-prop-past 🤷 👍 88.5 ms 105.8 MB
proof-param-ok 👍 👍 86.2 ms 104.8 MB
proof-param-swap 🤷 ✋ 82.0 ms 104.7 MB
subject-reduction-redex 🤷 👍 113 ms 118.9 MB
subject-reduction-reduct 🤷 ✋ 113 ms 118.5 MB
vanishing-occurrence 🤷 👍 86.6 ms 105.2 MB
10 870 ms 112.1 MB
extra-rec ✋ ✋ 83.6 ms 104.7 MB
inductive-undeclared-universe ✋ ✋ 80.6 ms 104.6 MB
level-index-out-of-order 👍 👍 79.8 ms 104.3 MB
nat-lit-add 👍 👍 94.8 ms 111.5 MB
nat-lit-add-bad ✋ ✋ 93.2 ms 112.0 MB
nat-lit-ble 👍 👍 94.0 ms 112.0 MB
nat-lit-sub 👍 👍 93.6 ms 112.1 MB
orphan-ctor ✋ ✋ 83.5 ms 104.6 MB
proj-of-prop ✋ ✋ 87.8 ms 105.3 MB
sparse-name-index 👍 👍 79.4 ms 104.3 MB
31 33.0 s (÷2.5) 1.8 GB
app-lam 👍 👍 1.45 s (÷3.4) 691.7 MB (÷2.1)
args-before-unfold 👍 👍 120 ms (×3.0) 122.1 MB (+20%)
beta-ladder 👍 👍 369 ms (÷4.5) 408.7 MB (-24%)
church-numerals 👍 👍 182 ms (×3.5) 166.0 MB (+46%)
discarded-argument 👍 👍 90.3 ms (-47%) 106.4 MB (+5%)
discarded-argument-match 👍 👍 93.7 ms (-36%) 111.9 MB (+8%)
folded-constant-first 👍 👍 122 ms (×2.7) 123.3 MB (+18%)
folded-constant-last 👍 👍 123 ms (×2.7) 123.0 MB (+18%)
fueled-chain 👍 👍 243 ms (+83%) 186.9 MB (+68%)
gf3-matrix-product 👍 ⌛ 0 ms 0 B
grind-ring-5 👍 👍 2.03 s (-7%) 696.6 MB (×2.7)
identical-nesting 👍 👍 87.6 ms (×2.7) 105.9 MB (+5%)
irrelevance-before-evaluation 👍 👍 90.8 ms (×2.7) 106.8 MB (+6%)
irrelevance-refutes 👍 👍 92.0 ms (×2.8) 106.1 MB (+5%)
let-fold 👍 👍 156 ms (×2.5) 139.4 MB (+35%)
let-ladder 👍 👍 367 ms (÷2.8) 400.5 MB (+18%)
magma-list-deep-n21 👍 👍 455 ms (÷5.9) 428.6 MB (-39%)
magma-list-deep-n36 👍 👍 1.78 s (÷20) 629.3 MB (÷13)
magma-list-pair-n21 👍 👍 16.0 s (-14%) 1.8 GB (÷2.2)
magma-list-pair-n7 👍 👍 1.62 s (-4%) 672.0 MB (+46%)
magma-string-n4 👍 👍 2.33 s (-35%) 706.1 MB (×4.5)
magma-string-pair-n9 👍 👍 3.88 s (÷2.1) 837.4 MB (-18%)
proj-cheap-struct 👍 👍 113 ms (×2.9) 119.4 MB (+18%)
proj-lazy-struct 👍 👍 99.5 ms (×2.8) 113.8 MB (+12%)
proj-stuck-struct 👍 👍 102 ms (×2.8) 115.6 MB (+14%)
prop-struct-projections 👍 👍 241 ms (×2.3) 224.2 MB (×2.1)
refute-cheap-first ✋ ✋ 91.1 ms (×2.2) 106.6 MB (+4%)
refute-cheap-last ✋ ✋ 147 ms (-19%) 126.1 MB (+23%)
repeated-subproblem 👍 👍 91.0 ms (×2.8) 106.4 MB (+5%)
shared-subterm 👍 👍 205 ms (×3.3) 141.1 MB (+30%)
shift-cascade 👍 👍 154 ms (×3.0) 204.4 MB (+98%)
unroll-versus-evaluate 👍 👍 98.0 ms (×2.8) 114.0 MB (+12%)
141 11.6 s 115.4 MB
001_basicDef 👍 👍 80.1 ms 104.4 MB
002_badDef ✋ ✋ 80.9 ms 104.4 MB
003_arrowType 👍 👍 81.5 ms 104.6 MB
004_dependentType 👍 👍 81.1 ms 104.5 MB
005_constType 👍 👍 82.7 ms 104.9 MB
006_betaReduction 👍 👍 83.7 ms 104.8 MB
007_betaReduction2 👍 👍 82.3 ms 105.1 MB
008_forallSortWhnf 👍 👍 84.2 ms 104.7 MB
009_forallSortBad ✋ ✋ 82.3 ms 104.7 MB
010_nonTypeType ✋ ✋ 82.8 ms 104.8 MB
011_nonTypeAxiom ✋ ✋ 82.3 ms 104.6 MB
012_nonPropThm ✋ ✋ 80.8 ms 104.4 MB
013_thmProof 👍 👍 82.7 ms 104.8 MB
014_selfProof ✋ ✋ 80.0 ms 104.5 MB
015_levelComp1 👍 👍 79.6 ms 104.8 MB
016_levelComp2 👍 👍 80.3 ms 104.2 MB
017_levelComp3 👍 👍 81.3 ms 104.4 MB
018_levelParams 👍 👍 82.9 ms 104.9 MB
019_tut06_bad01 ✋ ✋ 78.8 ms 104.1 MB
020_levelComp4 👍 👍 79.9 ms 104.5 MB
021_levelComp5 👍 👍 80.2 ms 104.7 MB
022_imax1 👍 👍 81.4 ms 104.6 MB
023_imax2 👍 👍 82.4 ms 104.5 MB
024_levelMaxComm 👍 👍 81.0 ms 104.6 MB
025_levelMaxAssoc 👍 👍 81.9 ms 104.6 MB
026_levelMaxIdem 👍 👍 80.6 ms 104.2 MB
027_levelMaxAbsorb 👍 👍 82.3 ms 104.7 MB
028_inferVar 👍 👍 81.1 ms 104.5 MB
029_defEqLambda 👍 👍 82.6 ms 104.8 MB
030_peano1 👍 👍 85.2 ms 105.1 MB
031_peano2 👍 👍 86.8 ms 105.2 MB
032_peano3 👍 👍 86.8 ms 105.6 MB
033_letType 👍 👍 81.5 ms 104.5 MB
034_letTypeDep 👍 👍 83.2 ms 104.9 MB
035_letRed 👍 👍 84.2 ms 104.7 MB
036_empty 👍 👍 84.2 ms 104.6 MB
037_boolType 👍 👍 85.2 ms 105.0 MB
038_twoBool 👍 👍 85.8 ms 105.1 MB
039_andType 👍 👍 86.6 ms 105.2 MB
040_prodType 👍 👍 86.3 ms 105.4 MB
041_pprodType 👍 👍 86.2 ms 104.9 MB
042_pUnitType 👍 👍 86.7 ms 105.1 MB
043_eqType 👍 👍 85.9 ms 105.2 MB
044_natDef 👍 👍 85.6 ms 104.7 MB
045_rbTreeDef 👍 👍 88.3 ms 106.0 MB
046_inductBadNonSort ✋ ✋ 83.2 ms 104.6 MB
047_inductBadNonSort2 ✋ ✋ 80.6 ms 104.1 MB
048_inductLevelParam ✋ ✋ 79.6 ms 104.5 MB
049_inductTooFewParams ✋ ✋ 80.1 ms 104.7 MB
050_inductWrongCtorParams ✋ ✋ 82.5 ms 104.6 MB
051_inductWrongCtorResParams ✋ ✋ 80.8 ms 104.8 MB
052_inductWrongCtorResLevel ✋ ✋ 80.2 ms 104.6 MB
053_inductInIndex ✋ ✋ 82.4 ms 104.4 MB
054_indNeg ✋ ✋ 81.8 ms 104.4 MB
055_reduceCtorParam.mk 👍 👍 88.0 ms 105.5 MB
056_reduceCtorType.mk ✋ ✋ 83.3 ms 104.7 MB
057_indNegReducible ✋ ✋ 83.8 ms 105.1 MB
058_predWithTypeField 👍 👍 85.6 ms 105.0 MB
059_typeWithTypeField 👍 👍 86.5 ms 105.0 MB
060_typeWithTypeFieldPoly 👍 👍 85.8 ms 104.7 MB
061_typeWithTooHighTypeField.mk ✋ ✋ 81.4 ms 104.5 MB
062_emptyRec 👍 👍 84.1 ms 105.0 MB
063_boolRec 👍 👍 86.4 ms 105.0 MB
064_twoBoolRec 👍 👍 86.1 ms 105.3 MB
065_andRec 👍 👍 87.2 ms 105.1 MB
066_prodRec 👍 👍 86.2 ms 105.2 MB
067_pprodRec 👍 👍 86.9 ms 105.2 MB
068_punitRec 👍 👍 85.5 ms 105.4 MB
069_eqRec 👍 👍 85.8 ms 105.2 MB
070_nRec 👍 👍 86.0 ms 104.9 MB
071_rbTreeRef 👍 👍 89.6 ms 105.9 MB
072_boolPropRec 👍 👍 86.3 ms 105.1 MB
073_BogusRecursor ✋ ✋ 85.0 ms 105.2 MB
074_existsRec 👍 👍 85.8 ms 105.4 MB
075_typeSingletonRecReduction 👍 👍 88.4 ms 105.3 MB
076_sortElimPropRec 👍 👍 87.0 ms 105.6 MB
077_sortElimProp2Rec 👍 👍 88.5 ms 105.5 MB
078_boolRecEqns 👍 👍 89.1 ms 105.8 MB
079_prodRecEqns 👍 👍 90.0 ms 105.6 MB
080_nRecReduction 👍 👍 90.8 ms 106.3 MB
081_listRecReduction 👍 👍 91.7 ms 106.3 MB
082_RBTree.id_spec 👍 👍 105 ms 115.4 MB
083_And.right 👍 👍 89.0 ms 105.8 MB
084_Prod.snd 👍 👍 87.7 ms 105.2 MB
085_PProd.snd 👍 👍 87.7 ms 105.4 MB
086_PSigma.snd 👍 👍 88.1 ms 105.4 MB
087_projOutOfRange ✋ ✋ 87.5 ms 105.5 MB
088_projNotStruct ✋ ✋ 86.7 ms 105.1 MB
089_projProp1 👍 👍 87.6 ms 105.3 MB
090_projProp2 ✋ ✋ 87.0 ms 105.4 MB
091_projProp3 👍 👍 87.4 ms 105.5 MB
092_projProp4 ✋ ✋ 87.3 ms 105.5 MB
093_projProp5 ✋ ✋ 87.6 ms 105.9 MB
094_projProp6 ✋ ✋ 87.0 ms 105.2 MB
095_projDataIndexRec 👍 👍 86.5 ms 105.3 MB
096_projIndexData ✋ ✋ 87.8 ms 105.7 MB
097_projIndexData2 ✋ ✋ 88.9 ms 105.9 MB
098_projRed 👍 👍 88.8 ms 105.9 MB
099_ruleK 👍 👍 89.1 ms 105.8 MB
100_ruleKbad ✋ ✋ 89.5 ms 105.5 MB
101_ruleKAcc ✋ ✋ 90.0 ms 106.1 MB
102_aNatLit 👍 👍 87.3 ms 104.9 MB
103_natLitEq 👍 👍 88.8 ms 105.7 MB
104_proofIrrelevance 👍 👍 88.2 ms 105.4 MB
105_proofIrrelevanceBad ✋ ✋ 87.0 ms 105.5 MB
106_proofIrrelevanceWhnf 👍 👍 88.3 ms 105.3 MB
107_proofIrrelevanceUnderBinder 👍 👍 82.4 ms 104.8 MB
108_unitEta1 👍 👍 88.7 ms 105.7 MB
109_unitEta2 👍 👍 87.4 ms 105.1 MB
110_unitEta3 👍 👍 87.4 ms 105.5 MB
111_indexedUnitEta ✋ ✋ 88.0 ms 105.2 MB
112_structEta 👍 👍 89.8 ms 106.1 MB
113_indexedStructEta ✋ ✋ 88.6 ms 105.4 MB
114_funEta 👍 👍 89.3 ms 105.7 MB
115_funEtaDep 👍 👍 88.3 ms 104.9 MB
116_funEtaBad ✋ ✋ 89.0 ms 105.6 MB
117_reflOccLeft ✋ ✋ 86.0 ms 105.1 MB
118_reflOccInIndex ✋ ✋ 87.2 ms 105.4 MB
119_reduceCtorParamRefl.mk 👍 👍 88.1 ms 105.6 MB
120_reduceCtorParamRefl2.mk 👍 👍 87.8 ms 105.3 MB
121_rTreeRec 👍 👍 87.4 ms 105.5 MB
122_rtreeRecReduction 👍 👍 90.1 ms 105.9 MB
123_accRecType 👍 👍 86.9 ms 105.6 MB
124_accRecReduction 👍 👍 90.0 ms 106.1 MB
125_accRecNoEta ✋ ✋ 90.6 ms 105.9 MB
126_quotMkType 👍 👍 87.4 ms 105.4 MB
127_quotIndType 👍 👍 88.2 ms 105.3 MB
128_quotLiftType 👍 👍 87.1 ms 105.3 MB
129_quotSoundType 👍 👍 87.3 ms 105.5 MB
130_quotLiftReduction 👍 👍 89.0 ms 105.5 MB
131_quotIndReduction 👍 👍 88.8 ms 105.7 MB
132_dup_defs ✋ ✋ 1.57 ms 19.6 MB
133_dup_ind_def ✋ ✋ 1.51 ms 4.0 MB
134_dup_ctor_def ✋ ✋ 1.51 ms 3.8 MB
135_dup_rec_def ✋ ✋ 1.51 ms 4.1 MB
136_misnamed_rec_user ✋ ✋ 85.6 ms 104.8 MB
137_dup_rec_def2 ✋ ✋ 82.6 ms 104.4 MB
138_dup_ctor_rec ✋ ✋ 1.58 ms 19.9 MB
139_DupConCon ✋ ✋ 1.51 ms 4.2 MB
140_falseFromUnsafe ✋ ✋ 84.7 ms 104.8 MB
141_falseFromPartial ✋ ✋ 84.2 ms 105.2 MB