Lean Kernel Arena / other/level-index-out-of-order

Test "other/level-index-out-of-order"

Expected: 馃憤 accept 路 Size: 328鈥疊 路 Lines: 6 路 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 the kernel doesn't require internaliation-table references to be presented in ascending order. If the level referenes 2 and 1 were swapped, this would be the expected encoding of axiom foo : Sort 2. This encoding should be equivalent.

Checker Result 鈴憋笍 馃
nano-lean 馃憤 0.444鈥痬s 10.3鈥疢B
gruszka 馃憤 1.90鈥痬s 36.0鈥疢B
mathgraph 馃憤 0.618鈥痬s 25.8鈥疢B
sokonanoda 馃憤 0.621鈥痬s 25.6鈥疢B
pestka 馃憤 2.12鈥痬s 36.0鈥疢B
kefir 馃憤 0.398鈥痬s 5.6鈥疢B
kefir-wasm 馃憤 94.9鈥痬s 81.2鈥疢B
con-ron 馃毇 28.9鈥痬s 43.6鈥疢B
con-ron-stream 馃毇 29.4鈥痬s 47.1鈥疢B
con-agua 馃毇 20.1鈥痬s 12.0鈥疢B
nanobruijn 馃憤 0.401鈥痬s 3.3鈥疢B
nanoda 馃毇 0.388鈥痬s 2.9鈥疢B
con-leche 馃毇 3.92鈥痬s 22.8鈥疢B
pestka-wasm 馃憤 504鈥痬s 311.6鈥疢B
official-nightly 馃憤 33.0鈥痬s 107.2鈥疢B
eink0rn 馃憤 1.22鈥痬s 11.0鈥疢B
official 馃憤 31.8鈥痬s 101.1鈥疢B
ind-models 馃憤 99.7鈥痬s 103.0鈥疢B
kiota 馃憤 0.540鈥痬s 11.1鈥疢B
tenet 馃憤 94.9鈥痬s 43.8鈥疢B
tenet-hs 馃憤 1.02鈥痬s 7.3鈥疢B
logos-kernel 馃憤 0.397鈥痬s 4.5鈥疢B
evmlean 馃憤 980鈥痬s 267.0鈥疢B
mini 馃憤 33.8鈥痬s 74.6鈥疢B
overfull 馃憤 878鈥痬s 45.6鈥疢B
lean4lean 馃憤 29.4鈥痬s 88.6鈥疢B
lean4cobol 馃憤 1.25鈥痬s 13.5鈥疢B
tenet-jvm 馃憤 91.7鈥痬s 71.9鈥疢B
nanoclo 馃憤 0.569鈥痬s 19.4鈥疢B
vow-lean-kernel 馃憤 112鈥痬s 14.4鈥疢B
canonical-min 馃憤 390鈥痬s 1.1鈥疓B
lazylean 馃憤 1.05鈥痬s 21.2鈥疢B
rpylean 馃憤 0.827鈥痬s 8.4鈥疢B
metalean-slow 馃憤 29.5鈥痬s 70.6鈥疢B
metalean-fast 馃憤 29.5鈥痬s 71.7鈥疢B
nanoclo-fortran 馃憤 0.587鈥痬s 4.2鈥疢B