Lean Kernel Arena / other/sparse-name-index

Test "other/sparse-name-index"

Expected: 馃憤 accept 路 Size: 292鈥疊 路 Lines: 4 路 lean4export: 0.1.0 路 Lean: 4.29.1 路 馃搫 Declaration

Lean4export will create internalization-table references contiguously in order: in references for names, il references for levels, and ie references for expressions all work this way.

However, the spec merely requires that these are integers. It's reasonable for an implementation to assume these are approximately dense (and to treat them as array indices instead of hashtable entries), but a kernel should handle skipped indices or out-of-order indices.

This test checks that a kernel doesn't require internalization-table references to be assigned sequentially starting from 1. If the "2" and "4" were replaced by "1" and "0", respectively, this would be the expected encoding of axiom foo : Prop. This encoding should be equivalent.

Checker Result 鈴憋笍 馃
nano-lean 馃憤 0.443鈥痬s 10.6鈥疢B
gruszka 馃憤 1.75鈥痬s 43.8鈥疢B
mathgraph 馃憤 0.618鈥痬s 25.8鈥疢B
sokonanoda 馃憤 0.621鈥痬s 25.5鈥疢B
pestka 馃憤 1.97鈥痬s 13.7鈥疢B
kefir 馃憤 0.397鈥痬s 5.4鈥疢B
kefir-wasm 馃憤 94.8鈥痬s 81.5鈥疢B
con-ron 馃毇 28.9鈥痬s 45.5鈥疢B
con-ron-stream 馃毇 29.4鈥痬s 45.4鈥疢B
con-agua 馃毇 20.1鈥痬s 11.5鈥疢B
nanobruijn 馃憤 0.401鈥痬s 3.3鈥疢B
nanoda 馃毇 0.387鈥痬s 3.0鈥疢B
con-leche 馃毇 3.91鈥痬s 23.0鈥疢B
pestka-wasm 馃憤 505鈥痬s 311.2鈥疢B
official-nightly 馃憤 33.0鈥痬s 107.2鈥疢B
eink0rn 馃憤 1.21鈥痬s 11.1鈥疢B
official 馃憤 31.8鈥痬s 101.1鈥疢B
ind-models 馃憤 99.7鈥痬s 102.6鈥疢B
kiota 馃憤 0.539鈥痬s 11.1鈥疢B
tenet 馃憤 94.9鈥痬s 44.0鈥疢B
tenet-hs 馃憤 1.02鈥痬s 7.3鈥疢B
logos-kernel 馃憤 0.397鈥痬s 4.4鈥疢B
evmlean 馃憤 982鈥痬s 266.7鈥疢B
mini 馃憤 33.8鈥痬s 74.3鈥疢B
overfull 馃憤 824鈥痬s 45.5鈥疢B
lean4lean 馃憤 29.4鈥痬s 88.4鈥疢B
lean4cobol 馃憤 1.24鈥痬s 13.3鈥疢B
tenet-jvm 馃憤 85.8鈥痬s 71.9鈥疢B
nanoclo 馃憤 0.569鈥痬s 29.4鈥疢B
vow-lean-kernel 馃憤 112鈥痬s 14.6鈥疢B
canonical-min 馃憤 387鈥痬s 1.1鈥疓B
lazylean 馃憤 1.05鈥痬s 21.4鈥疢B
rpylean 馃憤 0.827鈥痬s 8.3鈥疢B
metalean-slow 馃憤 29.5鈥痬s 69.5鈥疢B
metalean-fast 馃憤 29.5鈥痬s 71.4鈥疢B
nanoclo-fortran 馃憤 0.586鈥痬s 4.2鈥疢B