Lean Kernel Arena / vow-lean-kernel

Checker "vow-lean-kernel"

Language: Vow Vow · Version: da68038 · 📄 Declaration · 🔗 Source

A Lean 4 kernel (proof checker) written in Vow, a young systems language. Reads lean4export NDJSON and verifies each declaration is well-typed.

It accepts the full Arena tutorial suite and all of Lean core Init (54,475 declarations). Nat arithmetic uses a base-2^32 bignum backend, so reductions past 2^64 are exact. Declarations beyond the currently supported fragment are declined (exit 2) rather than falsely rejected — the checker is sound-by-construction on what it accepts and conservative elsewhere.

Vow is a language developed by Paulo Matos (github.com/pmatos) for agentic use — one of several such languages currently emerging, alongside MoonBit, Vera-lang, and Zerolang. This kernel, the first large program written in Vow, was undertaken as a challenge: to have an agent develop a complete Lean kernel entirely in the new language, and it doubles as a proving ground for it. The work was 100% agentic, carried out with Claude Code.

Soundness (rightfully rejected tests)

84 ✅ 2 ❌ 11 🚫

Completeness (rightfully accepted tests)

116 ✅ 1 ❌ 33 🚫

Corner cases (no outcome prescribed)

30 ✅ 0 🚫

Test Expected Result ⏱️ 🧠
cedar 👍 ⌛ — —
con-leche 👍 ⌛ — —
cslib 👍 ⌛ — —
init 👍 ⌛ — —
init-prelude 👍 👍 18.8 s (×49) 38.7 MB (÷2.6)
mathlib 👍 ⌛ — —
navier-stokes-euler 👍 ⌛ — —
reachability 👍 ⌛ — —
std 👍 ⌛ — —
33 15.5 s 18.4 MB
closure-level-subst ✋ ✋ 140 ms 14.4 MB
const-level-arity ✋ 🚫 117 ms 14.5 MB
constlevels ✋ ✋ 202 ms 14.4 MB
ctor-num-fields ✋ ✋ 240 ms 14.8 MB
eta-ctor-alias ✋ ✋ 161 ms 14.4 MB
inductive-forged-all ✋ ✋ 121 ms 14.6 MB
k-rec-conv ✋ ✋ 183 ms 14.6 MB
large-elim-param ✋ ✋ 146 ms 14.4 MB
large-elim-prop-bool ✋ ✋ 201 ms 14.6 MB
level-imax-leq ✋ ✋ 150 ms 14.2 MB
level-imax-normalization ✋ ✋ 150 ms 14.4 MB
loose-bvar-value ✋ ✋ 110 ms 14.5 MB
nat-log2-not-native 👍 👍 339 ms 14.6 MB
nat-log2-not-native-bad ✋ 🚫 340 ms 14.5 MB
nat-rec-k-lie ✋ ✋ 155 ms 14.4 MB
nat-rec-rules ✋ ✋ 166 ms 14.2 MB
nat-shift-huge 👍 ⌛ — —
nested-name-capture ✋ ✋ 275 ms 14.4 MB
nested-rec-hijack ✋ ✋ 183 ms 14.4 MB
nested-rec-rule-nfields ✋ ✋ 283 ms 14.7 MB
nested-unused-param ✋ ✋ 449 ms 14.8 MB
open-term-cache-context ✋ 🚫 113 ms 14.3 MB
orphan-rec ✋ ✋ 109 ms 14.3 MB
pi-closure-context ✋ ✋ 121 ms 14.4 MB
proj-non-structure ✋ 🚫 154 ms 14.4 MB
proj-of-imax-prop ✋ ✋ 180 ms 14.5 MB
proj-of-param-prop ✋ ✋ 182 ms 14.2 MB
proj-of-stuck-prop ✋ ✋ 1.07 s 16.2 MB
proj-of-subst-prop ✋ ✋ 1.02 s 16.0 MB
quot-bad-type ✋ ✋ 132 ms 14.3 MB
rec-k-lie ✋ ✋ 154 ms 14.4 MB
rec-missing-ih ✋ ✋ 1.10 s 16.1 MB
rec-of-subst-prop ✋ ✋ 1.04 s 16.4 MB
rec-rule-proof-irrel ✋ ✋ 250 ms 14.7 MB
rec-rule-proof-irrel-nested ✋ 👍 291 ms 14.6 MB
rec-rule-wrong-arg ✋ ✋ 216 ms 14.7 MB
rec-type-proof-irrel ✋ ✋ 246 ms 14.7 MB
str-lit-utf8 👍 ✋ 2.46 s 18.4 MB
str-lit-utf8-bad ✋ ✋ 2.45 s 18.4 MB
unit-rec-rule ✋ ✋ 119 ms 14.4 MB
1 8.28 s 15.1 MB
alg-conv-trans-acc 🤷 ✋ 462 ms 15.1 MB
alg-conv-trans-acc-left 🤷 ✋ 468 ms 14.9 MB
alg-conv-trans-acc-right 🤷 👍 472 ms 15.1 MB
alg-conv-trans-quot 🤷 ✋ 147 ms 14.4 MB
alg-conv-trans-quot-left 🤷 ✋ 147 ms 14.5 MB
alg-conv-trans-quot-left-def 🤷 ✋ 157 ms 14.5 MB
alg-conv-trans-quot-right 🤷 👍 155 ms 14.4 MB
eta-ctor 🤷 ✋ 175 ms 14.3 MB
eta-rec-struct 🤷 ✋ 159 ms 14.5 MB
eta-rule-k 🤷 ✋ 143 ms 14.4 MB
eta-struct-major-and 🤷 👍 155 ms 14.5 MB
eta-struct-major-and-no-whnf 🤷 👍 1.09 s 14.5 MB
eta-struct-major-no-whnf 🤷 👍 1.12 s 14.6 MB
eta-unit-like-nested 🤷 ✋ 224 ms 14.5 MB
eta-unit-like-pi 🤷 ✋ 143 ms 14.4 MB
eta-unit-like-proof-field 🤷 ✋ 152 ms 14.5 MB
eta-unit-like-struct 🤷 ✋ 156 ms 14.3 MB
imax-nested-absorption 🤷 👍 116 ms 14.5 MB
imax-right-successor 🤷 👍 116 ms 14.4 MB
large-elim-maybe-prop 🤷 ✋ 119 ms 14.4 MB
let-value-type-mismatch 🤷 👍 112 ms 14.4 MB
nested-nonuniform-param 🤷 👍 175 ms 14.7 MB
nested-redex-aux 🤷 👍 306 ms 14.8 MB
positivity-whnf 🤷 ✋ 141 ms 14.3 MB
proj-maybe-prop 🤷 👍 170 ms 14.7 MB
proj-maybe-prop-past 🤷 👍 170 ms 14.5 MB
proof-param-ok 👍 👍 123 ms 14.4 MB
proof-param-swap 🤷 ✋ 119 ms 14.4 MB
subject-reduction-redex 🤷 ✋ 463 ms 14.9 MB
subject-reduction-reduct 🤷 ✋ 457 ms 14.8 MB
vanishing-occurrence 🤷 👍 165 ms 14.4 MB
8 1.76 s 14.7 MB
extra-rec ✋ ✋ 109 ms 14.0 MB
inductive-undeclared-universe ✋ 👍 139 ms 14.4 MB
level-index-out-of-order 👍 👍 112 ms 14.4 MB
nat-lit-add 👍 👍 248 ms 14.7 MB
nat-lit-add-bad ✋ ✋ 239 ms 14.6 MB
nat-lit-ble 👍 👍 267 ms 14.6 MB
nat-lit-sub 👍 👍 267 ms 14.6 MB
orphan-ctor ✋ ✋ 117 ms 14.4 MB
proj-of-prop ✋ 🚫 149 ms 14.4 MB
sparse-name-index 👍 👍 112 ms 14.6 MB
16 4.88 min (+57%) 533.9 MB
app-lam 👍 👍 1.41 s (÷3.4) 36.4 MB (÷40)
args-before-unfold 👍 ⌛ — —
beta-ladder 👍 ⌛ — —
church-numerals 👍 🚫 161 ms 17.2 MB
discarded-argument 👍 👍 11.0 s (×65) 15.2 MB (÷6.0)
discarded-argument-match 👍 ⌛ — —
folded-constant-first 👍 🚫 249 ms 18.8 MB
folded-constant-last 👍 🚫 249 ms 18.9 MB
fueled-chain 👍 🚫 53.3 s 45.6 MB
gf3-matrix-product 👍 ⌛ — —
grind-field-kernel-cancel 👍 ⌛ — —
grind-ring-5 👍 ⌛ — —
identical-nesting 👍 👍 170 ms (×5.2) 14.2 MB (÷6.5)
irrelevance-before-evaluation 👍 👍 192 ms (×5.8) 18.7 MB (÷4.9)
irrelevance-refutes 👍 ⌛ — —
ite-taken-branch 👍 👍 26.4 s (+36%) 111.3 MB (÷15)
ite-taken-branch-bad ✋ 🚫 18.8 s 101.2 MB
let-fold 👍 ⌛ — —
let-ladder 👍 👍 33.5 s (×33) 533.9 MB (+62%)
loop-unfolded-once 👍 🚫 65.8 s 54.4 MB
loop-unfolded-once-bad ✋ ✋ 13.9 s (-2%) 41.2 MB (÷2.5)
magma-list-deep-n21 👍 ⌛ — —
magma-list-deep-n36 👍 ⌛ — —
magma-list-pair-n21 👍 ⌛ — —
magma-list-pair-n7 👍 ⌛ — —
magma-string-n4 👍 ⌛ — —
magma-string-pair-n9 👍 ⌛ — —
proj-app-lazy-delta 👍 👍 18.2 s (×8.7) 80.2 MB (÷7.6)
proj-applied-struct 👍 👍 681 ms (÷21) 18.1 MB (÷80)
proj-applied-struct-arg-bad ✋ 🚫 684 ms 18.2 MB
proj-applied-struct-bad ✋ 🚫 606 ms 18.2 MB
proj-cheap-struct 👍 👍 550 ms (×14) 15.0 MB (÷6.1)
proj-lazy-struct 👍 ⌛ — —
proj-stuck-struct 👍 ⌛ — —
prop-struct-projections 👍 ⌛ — —
refute-cheap-first ✋ ✋ 10.9 s (×265) 15.4 MB (÷6.1)
refute-cheap-last ✋ 🚫 215 ms 18.7 MB
repeated-subproblem 👍 👍 174 ms (×5.3) 14.2 MB (÷6.5)
shared-subterm 👍 🚫 272 ms 19.6 MB
shift-cascade 👍 👍 7.58 s (×149) 147.4 MB (+56%)
short-circuit-and 👍 👍 13.0 s (-26%) 39.6 MB (÷39)
short-circuit-and-bad ✋ 🚫 13.0 s 42.2 MB
unfold-before-literal 👍 👍 529 ms (÷27) 17.8 MB (÷82)
unfold-before-literal-bad ✋ 🚫 455 ms 17.8 MB
unfold-before-literal-fallback 👍 🚫 567 ms 19.1 MB
unroll-versus-evaluate 👍 👍 196 ms (×5.5) 15.3 MB (÷6.0)
141 18.8 s 15.4 MB
001_basicDef 👍 👍 112 ms 14.2 MB
002_badDef ✋ ✋ 108 ms 14.5 MB
003_arrowType 👍 👍 112 ms 14.1 MB
004_dependentType 👍 👍 112 ms 14.5 MB
005_constType 👍 👍 112 ms 14.4 MB
006_betaReduction 👍 👍 117 ms 14.5 MB
007_betaReduction2 👍 👍 117 ms 14.3 MB
008_forallSortWhnf 👍 👍 117 ms 14.4 MB
009_forallSortBad ✋ ✋ 113 ms 14.4 MB
010_nonTypeType ✋ ✋ 112 ms 14.4 MB
011_nonTypeAxiom ✋ ✋ 112 ms 14.4 MB
012_nonPropThm ✋ ✋ 108 ms 14.5 MB
013_thmProof 👍 👍 117 ms 14.3 MB
014_selfProof ✋ ✋ 108 ms 14.2 MB
015_levelComp1 👍 👍 112 ms 14.2 MB
016_levelComp2 👍 👍 112 ms 14.3 MB
017_levelComp3 👍 👍 112 ms 14.5 MB
018_levelParams 👍 👍 117 ms 14.4 MB
019_tut06_bad01 ✋ ✋ 108 ms 14.4 MB
020_levelComp4 👍 👍 112 ms 14.4 MB
021_levelComp5 👍 👍 112 ms 14.3 MB
022_imax1 👍 👍 112 ms 14.3 MB
023_imax2 👍 👍 112 ms 14.3 MB
024_levelMaxComm 👍 👍 112 ms 14.3 MB
025_levelMaxAssoc 👍 👍 112 ms 14.5 MB
026_levelMaxIdem 👍 👍 112 ms 14.3 MB
027_levelMaxAbsorb 👍 👍 112 ms 14.5 MB
028_inferVar 👍 👍 112 ms 14.4 MB
029_defEqLambda 👍 👍 113 ms 14.4 MB
030_peano1 👍 👍 140 ms 14.4 MB
031_peano2 👍 👍 145 ms 14.5 MB
032_peano3 👍 👍 154 ms 14.5 MB
033_letType 👍 👍 112 ms 14.2 MB
034_letTypeDep 👍 👍 121 ms 14.4 MB
035_letRed 👍 👍 116 ms 14.4 MB
036_empty 👍 👍 121 ms 14.2 MB
037_boolType 👍 👍 130 ms 14.4 MB
038_twoBool 👍 👍 145 ms 14.7 MB
039_andType 👍 👍 127 ms 14.5 MB
040_prodType 👍 👍 128 ms 14.2 MB
041_pprodType 👍 👍 128 ms 14.2 MB
042_pUnitType 👍 👍 126 ms 14.5 MB
043_eqType 👍 👍 127 ms 14.5 MB
044_natDef 👍 👍 131 ms 14.2 MB
045_rbTreeDef 👍 👍 185 ms 14.7 MB
046_inductBadNonSort ✋ ✋ 113 ms 14.3 MB
047_inductBadNonSort2 ✋ ✋ 112 ms 14.5 MB
048_inductLevelParam ✋ ✋ 108 ms 14.4 MB
049_inductTooFewParams ✋ ✋ 108 ms 14.6 MB
050_inductWrongCtorParams ✋ ✋ 121 ms 14.3 MB
051_inductWrongCtorResParams ✋ ✋ 117 ms 14.4 MB
052_inductWrongCtorResLevel ✋ ✋ 117 ms 14.3 MB
053_inductInIndex ✋ ✋ 121 ms 14.2 MB
054_indNeg ✋ ✋ 117 ms 14.5 MB
055_reduceCtorParam.mk 👍 👍 132 ms 14.6 MB
056_reduceCtorType.mk ✋ ✋ 121 ms 14.4 MB
057_indNegReducible ✋ ✋ 126 ms 14.4 MB
058_predWithTypeField 👍 👍 126 ms 14.5 MB
059_typeWithTypeField 👍 👍 126 ms 14.3 MB
060_typeWithTypeFieldPoly 👍 👍 126 ms 14.5 MB
061_typeWithTooHighTypeField.mk ✋ ✋ 117 ms 14.4 MB
062_emptyRec 👍 👍 121 ms 14.3 MB
063_boolRec 👍 👍 131 ms 14.4 MB
064_twoBoolRec 👍 👍 145 ms 14.4 MB
065_andRec 👍 👍 128 ms 14.4 MB
066_prodRec 👍 👍 128 ms 14.4 MB
067_pprodRec 👍 👍 128 ms 14.4 MB
068_punitRec 👍 👍 126 ms 14.2 MB
069_eqRec 👍 👍 127 ms 14.5 MB
070_nRec 👍 👍 131 ms 14.5 MB
071_rbTreeRef 👍 👍 186 ms 14.6 MB
072_boolPropRec 👍 👍 130 ms 14.4 MB
073_BogusRecursor ✋ ✋ 126 ms 14.5 MB
074_existsRec 👍 👍 128 ms 14.5 MB
075_typeSingletonRecReduction 👍 👍 165 ms 14.2 MB
076_sortElimPropRec 👍 👍 147 ms 14.5 MB
077_sortElimProp2Rec 👍 👍 152 ms 14.4 MB
078_boolRecEqns 👍 👍 164 ms 14.3 MB
079_prodRecEqns 👍 👍 147 ms 14.7 MB
080_nRecReduction 👍 👍 175 ms 14.5 MB
081_listRecReduction 👍 👍 186 ms 14.3 MB
082_RBTree.id_spec 👍 👍 255 ms 15.4 MB
083_And.right 👍 👍 133 ms 14.5 MB
084_Prod.snd 👍 👍 133 ms 14.3 MB
085_PProd.snd 👍 👍 133 ms 14.5 MB
086_PSigma.snd 👍 👍 134 ms 14.3 MB
087_projOutOfRange ✋ ✋ 124 ms 14.3 MB
088_projNotStruct ✋ ✋ 128 ms 14.2 MB
089_projProp1 👍 👍 158 ms 14.5 MB
090_projProp2 ✋ ✋ 154 ms 14.5 MB
091_projProp3 👍 👍 158 ms 14.6 MB
092_projProp4 ✋ ✋ 154 ms 14.4 MB
093_projProp5 ✋ ✋ 154 ms 14.5 MB
094_projProp6 ✋ ✋ 154 ms 14.3 MB
095_projDataIndexRec 👍 👍 160 ms 14.4 MB
096_projIndexData ✋ ✋ 201 ms 14.6 MB
097_projIndexData2 ✋ ✋ 201 ms 14.5 MB
098_projRed 👍 👍 172 ms 14.5 MB
099_ruleK 👍 👍 147 ms 14.4 MB
100_ruleKbad ✋ ✋ 143 ms 14.6 MB
101_ruleKAcc ✋ ✋ 164 ms 14.5 MB
102_aNatLit 👍 👍 131 ms 14.4 MB
103_natLitEq 👍 👍 147 ms 14.4 MB
104_proofIrrelevance 👍 👍 133 ms 14.6 MB
105_proofIrrelevanceBad ✋ ✋ 129 ms 14.5 MB
106_proofIrrelevanceWhnf 👍 👍 138 ms 14.5 MB
107_proofIrrelevanceUnderBinder 👍 👍 138 ms 14.3 MB
108_unitEta1 👍 👍 151 ms 14.6 MB
109_unitEta2 👍 👍 147 ms 14.6 MB
110_unitEta3 👍 👍 147 ms 14.4 MB
111_indexedUnitEta ✋ ✋ 157 ms 14.4 MB
112_structEta 👍 👍 175 ms 14.4 MB
113_indexedStructEta ✋ ✋ 170 ms 14.5 MB
114_funEta 👍 👍 133 ms 14.4 MB
115_funEtaDep 👍 👍 134 ms 14.3 MB
116_funEtaBad ✋ ✋ 125 ms 14.4 MB
117_reflOccLeft ✋ ✋ 136 ms 14.4 MB
118_reflOccInIndex ✋ ✋ 137 ms 14.5 MB
119_reduceCtorParamRefl.mk 👍 👍 133 ms 14.4 MB
120_reduceCtorParamRefl2.mk 👍 👍 133 ms 14.3 MB
121_rTreeRec 👍 👍 150 ms 14.4 MB
122_rtreeRecReduction 👍 👍 177 ms 14.2 MB
123_accRecType 👍 👍 133 ms 14.4 MB
124_accRecReduction 👍 👍 169 ms 14.4 MB
125_accRecNoEta ✋ ✋ 164 ms 14.4 MB
126_quotMkType 👍 👍 147 ms 14.3 MB
127_quotIndType 👍 👍 147 ms 14.4 MB
128_quotLiftType 👍 👍 147 ms 14.2 MB
129_quotSoundType 👍 👍 152 ms 14.5 MB
130_quotLiftReduction 👍 👍 149 ms 14.6 MB
131_quotIndReduction 👍 👍 149 ms 14.6 MB
132_dup_defs ✋ ✋ 108 ms 14.4 MB
133_dup_ind_def ✋ ✋ 109 ms 14.4 MB
134_dup_ctor_def ✋ ✋ 109 ms 14.2 MB
135_dup_rec_def ✋ ✋ 109 ms 14.2 MB
136_misnamed_rec_user ✋ ✋ 109 ms 14.3 MB
137_dup_rec_def2 ✋ ✋ 109 ms 14.3 MB
138_dup_ctor_rec ✋ ✋ 109 ms 14.1 MB
139_DupConCon ✋ ✋ 110 ms 14.0 MB
140_falseFromUnsafe ✋ ✋ 117 ms 14.3 MB
141_falseFromPartial ✋ ✋ 117 ms 14.4 MB