Lean Kernel Arena / evmlean

Checker "evmlean"

Language: Solidity Solidity · Version: 0.5.0 · 📄 Declaration · 🔗 Source

A Lean 4 kernel implemented in Solidity and executed on the Ethereum Virtual Machine. Accepting a proof is a metered EVM execution; the same call can be replayed on any EVM chain (61.6KB deployed — over today's EIP-170 limit, sized for the 64KiB raise on the Glamsterdam track, so it needs a devnet/L2 with a raised code-size limit to deploy for real).

Checks inductive families including multi-type mutual groups and nested inductives, projections, quotients, Nat and String literals. Gets all twelve of the Arena's static tests right: the ten adversarial ones are rejected at the offending declaration, and the two that are actually valid (level-index-out-of-order, sparse-name-index) are accepted. Declines unsafe/partial declarations and any export beyond its resource budget; resource exhaustion is reported as a decline rather than as a wrong verdict or a checker fault.

Soundness (rightfully rejected tests)

86 ✅ 0 ❌ 11 🚫

Completeness (rightfully accepted tests)

106 ✅ 0 ❌ 44 🚫

Corner cases (no outcome prescribed)

28 ✅ 2 🚫

Test Expected Result ⏱️ 🧠
cedar 👍 🚫 0 ms 0 B
con-leche 👍 🚫 307 ms 104.0 MB
cslib 👍 🚫 0 ms 0 B
init 👍 🚫 0 ms 0 B
init-prelude 👍 🚫 0 ms 0 B
mathlib 👍 🚫 0 ms 0 B
navier-stokes-euler 👍 🚫 307 ms 104.7 MB
reachability 👍 🚫 305 ms 106.5 MB
std 👍 🚫 0 ms 0 B
37 14.8 min 751.8 MB
closure-level-subst ✋ ✋ 1.09 s 273.8 MB
const-level-arity ✋ ✋ 1.02 s 246.2 MB
constlevels ✋ ✋ 2.28 s 275.4 MB
ctor-num-fields ✋ ✋ 3.06 s 280.0 MB
eta-ctor-alias ✋ ✋ 1.59 s 273.7 MB
inductive-forged-all ✋ ✋ 1.03 s 273.7 MB
k-rec-conv ✋ ✋ 2.44 s 274.6 MB
large-elim-param ✋ ✋ 1.16 s 274.0 MB
large-elim-prop-bool ✋ ✋ 3.38 s 253.9 MB
level-imax-leq ✋ ✋ 1.20 s 273.8 MB
level-imax-normalization ✋ ✋ 1.20 s 273.8 MB
loose-bvar-value ✋ ✋ 1.01 s 246.7 MB
nat-log2-not-native 👍 👍 8.91 s 296.5 MB
nat-log2-not-native-bad ✋ ✋ 8.98 s 296.4 MB
nat-rec-k-lie ✋ ✋ 1.13 s 273.4 MB
nat-rec-rules ✋ ✋ 1.38 s 274.9 MB
nat-shift-huge 👍 🚫 6.30 min 751.8 MB
nested-name-capture ✋ ✋ 3.36 s 275.5 MB
nested-rec-hijack ✋ ✋ 1.67 s 253.6 MB
nested-rec-rule-nfields ✋ ✋ 5.58 s 279.9 MB
nested-unused-param ✋ ✋ 12.5 s 321.6 MB
open-term-cache-context ✋ ✋ 1.06 s 273.0 MB
orphan-rec ✋ ✋ 1.00 s 267.4 MB
pi-closure-context ✋ ✋ 1.04 s 252.9 MB
proj-non-structure ✋ ✋ 1.19 s 274.2 MB
proj-of-imax-prop ✋ ✋ 2.09 s 275.8 MB
proj-of-param-prop ✋ ✋ 1.65 s 274.4 MB
proj-of-stuck-prop ✋ ✋ 98.8 s 503.8 MB
proj-of-subst-prop ✋ ✋ 96.6 s 482.9 MB
quot-bad-type ✋ ✋ 1.40 s 274.3 MB
rec-k-lie ✋ ✋ 1.09 s 251.7 MB
rec-missing-ih ✋ ✋ 2.20 min 501.1 MB
rec-of-subst-prop ✋ ✋ 95.1 s 496.1 MB
rec-rule-proof-irrel ✋ ✋ 3.77 s 275.4 MB
rec-rule-proof-irrel-nested ✋ ✋ 4.15 s 254.3 MB
rec-rule-wrong-arg ✋ ✋ 3.17 s 276.3 MB
rec-type-proof-irrel ✋ ✋ 3.73 s 254.2 MB
str-lit-utf8 👍 🚫 307 ms 104.5 MB
str-lit-utf8-bad ✋ 🚫 306 ms 107.4 MB
unit-rec-rule ✋ ✋ 1.10 s 273.6 MB
1 3.43 min 417.6 MB
alg-conv-trans-acc 🤷 ✋ 25.9 s 323.3 MB
alg-conv-trans-acc-left 🤷 👍 21.6 s 321.7 MB
alg-conv-trans-acc-right 🤷 👍 39.1 s 417.6 MB
alg-conv-trans-quot 🤷 ✋ 3.74 s 285.9 MB
alg-conv-trans-quot-left 🤷 ✋ 3.78 s 264.3 MB
alg-conv-trans-quot-left-def 🤷 👍 3.53 s 275.1 MB
alg-conv-trans-quot-right 🤷 👍 3.05 s 275.0 MB
eta-ctor 🤷 ✋ 1.73 s 275.2 MB
eta-rec-struct 🤷 ✋ 2.24 s 274.4 MB
eta-rule-k 🤷 ✋ 1.76 s 253.2 MB
eta-struct-major-and 🤷 ✋ 3.35 s 275.3 MB
eta-struct-major-and-no-whnf 🤷 ⌛ — —
eta-struct-major-no-whnf 🤷 ⌛ — —
eta-unit-like-nested 🤷 ✋ 2.39 s 275.3 MB
eta-unit-like-pi 🤷 ✋ 1.60 s 253.0 MB
eta-unit-like-proof-field 🤷 ✋ 1.59 s 274.9 MB
eta-unit-like-struct 🤷 ✋ 1.59 s 274.5 MB
imax-nested-absorption 🤷 👍 1.05 s 273.4 MB
imax-right-successor 🤷 👍 1.02 s 273.3 MB
large-elim-maybe-prop 🤷 ✋ 1.08 s 252.4 MB
let-value-type-mismatch 🤷 ✋ 1.00 s 246.7 MB
nested-nonuniform-param 🤷 👍 1.87 s 274.6 MB
nested-redex-aux 🤷 👍 12.8 s 323.6 MB
positivity-whnf 🤷 ✋ 1.11 s 273.9 MB
proj-maybe-prop 🤷 👍 1.64 s 252.5 MB
proj-maybe-prop-past 🤷 👍 1.64 s 274.9 MB
proof-param-ok 👍 👍 1.31 s 274.3 MB
proof-param-swap 🤷 ✋ 1.04 s 251.8 MB
subject-reduction-redex 🤷 👍 36.6 s 394.1 MB
subject-reduction-reduct 🤷 ✋ 25.3 s 320.3 MB
vanishing-occurrence 🤷 👍 1.40 s 253.3 MB
10 25.3 s 277.3 MB
extra-rec ✋ ✋ 1.00 s 267.4 MB
inductive-undeclared-universe ✋ ✋ 1.01 s 267.5 MB
level-index-out-of-order 👍 👍 980 ms 267.0 MB
nat-lit-add 👍 👍 4.56 s 277.0 MB
nat-lit-add-bad ✋ ✋ 4.66 s 277.3 MB
nat-lit-ble 👍 👍 4.82 s 255.9 MB
nat-lit-sub 👍 👍 5.10 s 255.3 MB
orphan-ctor ✋ ✋ 1.00 s 266.6 MB
proj-of-prop ✋ ✋ 1.15 s 274.7 MB
sparse-name-index 👍 👍 982 ms 266.7 MB
5 8.15 min (×251) 583.2 MB
app-lam 👍 🚫 305 ms 104.0 MB
args-before-unfold 👍 🚫 2.16 s 284.1 MB
beta-ladder 👍 🚫 7.70 s 392.4 MB
church-numerals 👍 🚫 39.5 s 583.2 MB
discarded-argument 👍 🚫 1.83 s 275.5 MB
discarded-argument-match 👍 🚫 4.29 s 275.9 MB
folded-constant-first 👍 🚫 2.80 s 284.5 MB
folded-constant-last 👍 🚫 2.82 s 284.1 MB
fueled-chain 👍 🚫 306 ms 104.3 MB
gf3-matrix-product 👍 🚫 305 ms 105.2 MB
grind-field-kernel-cancel 👍 🚫 306 ms 105.4 MB
grind-ring-5 👍 🚫 305 ms 106.6 MB
identical-nesting 👍 👍 1.66 s (×51) 274.0 MB (×3.0)
irrelevance-before-evaluation 👍 🚫 1.90 s 275.9 MB
irrelevance-refutes 👍 ⌛ — —
ite-taken-branch 👍 🚫 305 ms 106.6 MB
ite-taken-branch-bad ✋ 🚫 305 ms 105.8 MB
let-fold 👍 ⌛ — —
let-ladder 👍 🚫 8.71 s 403.2 MB
loop-unfolded-once 👍 🚫 307 ms 104.9 MB
loop-unfolded-once-bad ✋ 🚫 306 ms 104.0 MB
magma-list-deep-n21 👍 🚫 305 ms 104.2 MB
magma-list-deep-n36 👍 🚫 306 ms 104.4 MB
magma-list-pair-n21 👍 🚫 305 ms 106.2 MB
magma-list-pair-n7 👍 🚫 306 ms 105.1 MB
magma-string-n4 👍 🚫 307 ms 104.4 MB
magma-string-pair-n9 👍 🚫 306 ms 104.2 MB
proj-app-lazy-delta 👍 ⌛ — —
proj-applied-struct 👍 🚫 67.8 s 434.7 MB
proj-applied-struct-arg-bad ✋ 🚫 67.7 s 429.2 MB
proj-applied-struct-bad ✋ 🚫 67.3 s 431.6 MB
proj-cheap-struct 👍 ⌛ — —
proj-lazy-struct 👍 👍 10.2 s (×286) 280.8 MB (×3.0)
proj-stuck-struct 👍 👍 21.7 s (×603) 325.7 MB (×3.5)
prop-struct-projections 👍 🚫 23.4 s 388.9 MB
refute-cheap-first ✋ 🚫 2.40 s 275.8 MB
refute-cheap-last ✋ 🚫 2.41 s 275.4 MB
repeated-subproblem 👍 👍 4.03 s (×123) 275.8 MB (×3.0)
shared-subterm 👍 🚫 2.54 s 283.9 MB
shift-cascade 👍 👍 9.49 s (×187) 300.0 MB (×3.2)
short-circuit-and 👍 🚫 306 ms 105.9 MB
short-circuit-and-bad ✋ 🚫 306 ms 106.4 MB
unfold-before-literal 👍 🚫 43.1 s 379.9 MB
unfold-before-literal-bad ✋ 🚫 43.0 s 342.7 MB
unfold-before-literal-fallback 👍 🚫 43.1 s 352.7 MB
unroll-versus-evaluate 👍 🚫 2.16 s 282.6 MB
139 4.32 min 462.4 MB
001_basicDef 👍 👍 976 ms 267.0 MB
002_badDef ✋ ✋ 992 ms 245.8 MB
003_arrowType 👍 👍 998 ms 246.3 MB
004_dependentType 👍 👍 988 ms 267.2 MB
005_constType 👍 👍 999 ms 268.0 MB
006_betaReduction 👍 👍 1.02 s 274.1 MB
007_betaReduction2 👍 👍 1.03 s 273.4 MB
008_forallSortWhnf 👍 👍 1.02 s 274.0 MB
009_forallSortBad ✋ ✋ 1.02 s 273.1 MB
010_nonTypeType ✋ ✋ 1.01 s 267.4 MB
011_nonTypeAxiom ✋ ✋ 1.01 s 245.8 MB
012_nonPropThm ✋ ✋ 983 ms 245.1 MB
013_thmProof 👍 👍 1.02 s 273.7 MB
014_selfProof ✋ ✋ 982 ms 244.5 MB
015_levelComp1 👍 👍 990 ms 267.7 MB
016_levelComp2 👍 👍 991 ms 267.4 MB
017_levelComp3 👍 👍 996 ms 267.8 MB
018_levelParams 👍 👍 1.03 s 273.0 MB
019_tut06_bad01 ✋ ✋ 978 ms 266.3 MB
020_levelComp4 👍 👍 989 ms 267.9 MB
021_levelComp5 👍 👍 992 ms 246.5 MB
022_imax1 👍 👍 1.00 s 267.5 MB
023_imax2 👍 👍 1.02 s 271.3 MB
024_levelMaxComm 👍 👍 1.00 s 267.9 MB
025_levelMaxAssoc 👍 👍 1.01 s 268.2 MB
026_levelMaxIdem 👍 👍 993 ms 268.0 MB
027_levelMaxAbsorb 👍 👍 1.00 s 267.0 MB
028_inferVar 👍 👍 996 ms 267.1 MB
029_defEqLambda 👍 👍 1.04 s 273.6 MB
030_peano1 👍 👍 1.16 s 274.5 MB
031_peano2 👍 👍 1.48 s 273.5 MB
032_peano3 👍 👍 1.74 s 274.1 MB
033_letType 👍 👍 990 ms 266.9 MB
034_letTypeDep 👍 👍 1.02 s 268.4 MB
035_letRed 👍 👍 999 ms 245.8 MB
036_empty 👍 👍 1.02 s 251.7 MB
037_boolType 👍 👍 1.09 s 252.9 MB
038_twoBool 👍 👍 1.19 s 273.7 MB
039_andType 👍 👍 1.19 s 274.8 MB
040_prodType 👍 👍 1.53 s 274.7 MB
041_pprodType 👍 👍 1.57 s 274.2 MB
042_pUnitType 👍 👍 1.06 s 273.2 MB
043_eqType 👍 👍 1.39 s 274.6 MB
044_natDef 👍 👍 1.15 s 274.9 MB
045_rbTreeDef 👍 👍 6.30 s 275.4 MB
046_inductBadNonSort ✋ ✋ 1.01 s 266.9 MB
047_inductBadNonSort2 ✋ ✋ 989 ms 267.5 MB
048_inductLevelParam ✋ ✋ 985 ms 268.5 MB
049_inductTooFewParams ✋ ✋ 991 ms 267.4 MB
050_inductWrongCtorParams ✋ ✋ 1.01 s 267.6 MB
051_inductWrongCtorResParams ✋ ✋ 1.02 s 250.2 MB
052_inductWrongCtorResLevel ✋ ✋ 1.02 s 272.9 MB
053_inductInIndex ✋ ✋ 1.01 s 267.3 MB
054_indNeg ✋ ✋ 999 ms 267.5 MB
055_reduceCtorParam.mk 👍 👍 1.34 s 273.5 MB
056_reduceCtorType.mk ✋ ✋ 1.02 s 249.0 MB
057_indNegReducible ✋ ✋ 1.03 s 273.4 MB
058_predWithTypeField 👍 👍 1.06 s 274.2 MB
059_typeWithTypeField 👍 👍 1.07 s 252.0 MB
060_typeWithTypeFieldPoly 👍 👍 1.08 s 250.9 MB
061_typeWithTooHighTypeField.mk ✋ ✋ 1.00 s 267.4 MB
062_emptyRec 👍 👍 1.04 s 274.2 MB
063_boolRec 👍 👍 1.17 s 274.3 MB
064_twoBoolRec 👍 👍 1.24 s 275.1 MB
065_andRec 👍 👍 1.27 s 274.9 MB
066_prodRec 👍 👍 1.78 s 274.3 MB
067_pprodRec 👍 👍 1.78 s 274.7 MB
068_punitRec 👍 👍 1.09 s 272.9 MB
069_eqRec 👍 👍 1.64 s 274.3 MB
070_nRec 👍 👍 1.19 s 252.8 MB
071_rbTreeRef 👍 👍 8.69 s 255.2 MB
072_boolPropRec 👍 👍 1.08 s 273.7 MB
073_BogusRecursor ✋ ✋ 1.03 s 252.6 MB
074_existsRec 👍 👍 1.25 s 253.2 MB
075_typeSingletonRecReduction 👍 👍 1.65 s 273.4 MB
076_sortElimPropRec 👍 👍 1.70 s 274.2 MB
077_sortElimProp2Rec 👍 👍 1.63 s 252.9 MB
078_boolRecEqns 👍 👍 2.51 s 274.4 MB
079_prodRecEqns 👍 👍 4.41 s 264.5 MB
080_nRecReduction 👍 👍 3.83 s 275.3 MB
081_listRecReduction 👍 👍 8.90 s 287.6 MB
082_RBTree.id_spec 👍 👍 37.7 s 462.4 MB
083_And.right 👍 👍 1.24 s 274.1 MB
084_Prod.snd 👍 👍 1.66 s 274.3 MB
085_PProd.snd 👍 👍 1.65 s 252.7 MB
086_PSigma.snd 👍 👍 1.91 s 252.9 MB
087_projOutOfRange ✋ ✋ 1.22 s 273.8 MB
088_projNotStruct ✋ ✋ 1.16 s 275.1 MB
089_projProp1 👍 👍 1.68 s 274.0 MB
090_projProp2 ✋ ✋ 1.68 s 274.7 MB
091_projProp3 👍 👍 1.69 s 275.2 MB
092_projProp4 ✋ ✋ 1.69 s 274.6 MB
093_projProp5 ✋ ✋ 1.69 s 274.6 MB
094_projProp6 ✋ ✋ 1.68 s 274.4 MB
095_projDataIndexRec 👍 👍 1.34 s 274.2 MB
096_projIndexData ✋ ✋ 1.94 s 275.6 MB
097_projIndexData2 ✋ ✋ 1.95 s 253.3 MB
098_projRed 👍 👍 2.18 s 273.9 MB
099_ruleK 👍 👍 1.62 s 274.6 MB
100_ruleKbad ✋ ✋ 1.67 s 274.7 MB
101_ruleKAcc ✋ ✋ 3.11 s 274.9 MB
102_aNatLit 👍 👍 1.15 s 252.8 MB
103_natLitEq 👍 👍 1.57 s 274.5 MB
104_proofIrrelevance 👍 👍 1.47 s 274.3 MB
105_proofIrrelevanceBad ✋ ✋ 1.49 s 253.4 MB
106_proofIrrelevanceWhnf 👍 👍 1.59 s 274.2 MB
107_proofIrrelevanceUnderBinder 👍 👍 1.06 s 273.4 MB
108_unitEta1 👍 👍 1.53 s 274.9 MB
109_unitEta2 👍 👍 1.52 s 274.9 MB
110_unitEta3 👍 👍 1.52 s 274.8 MB
111_indexedUnitEta ✋ ✋ 1.64 s 274.0 MB
112_structEta 👍 👍 2.94 s 274.9 MB
113_indexedStructEta ✋ ✋ 1.72 s 253.6 MB
114_funEta 👍 👍 1.53 s 273.6 MB
115_funEtaDep 👍 👍 1.57 s 273.9 MB
116_funEtaBad ✋ ✋ 1.62 s 274.5 MB
117_reflOccLeft ✋ ✋ 1.16 s 275.3 MB
118_reflOccInIndex ✋ ✋ 1.17 s 275.2 MB
119_reduceCtorParamRefl.mk 👍 👍 1.45 s 275.5 MB
120_reduceCtorParamRefl2.mk 👍 👍 1.43 s 274.9 MB
121_rTreeRec 👍 👍 1.41 s 274.9 MB
122_rtreeRecReduction 👍 👍 2.09 s 274.5 MB
123_accRecType 👍 👍 3.07 s 274.6 MB
124_accRecReduction 👍 👍 6.40 s 285.8 MB
125_accRecNoEta ✋ ✋ 3.10 s 275.3 MB
126_quotMkType 👍 👍 1.87 s 253.1 MB
127_quotIndType 👍 👍 1.91 s 275.0 MB
128_quotLiftType 👍 👍 2.17 s 274.1 MB
129_quotSoundType 👍 👍 1.97 s 274.9 MB
130_quotLiftReduction 👍 👍 3.02 s 274.9 MB
131_quotIndReduction 👍 👍 2.86 s 275.5 MB
132_dup_defs ✋ ✋ 981 ms 245.2 MB
133_dup_ind_def ✋ ✋ 998 ms 267.3 MB
134_dup_ctor_def ✋ ✋ 1.00 s 267.0 MB
135_dup_rec_def ✋ ✋ 1.01 s 246.5 MB
136_misnamed_rec_user ✋ ✋ 1.00 s 268.0 MB
137_dup_rec_def2 ✋ ✋ 1.01 s 267.7 MB
138_dup_ctor_rec ✋ ✋ 1.00 s 246.3 MB
139_DupConCon ✋ ✋ 1.01 s 267.4 MB
140_falseFromUnsafe ✋ 🚫 1.02 s 270.4 MB
141_falseFromPartial ✋ 🚫 1.02 s 270.3 MB