Lean Kernel Arena / bugs/str-lit-utf8

Test "bugs/str-lit-utf8"

Expected: 👍 accept · Size: 579.0 KB · Lines: 10.7 k · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 Declaration · 🔗 Source

Non-ASCII UTF-8 string literal reduction.

In Lean's kernel, a string literal reduces to String.ofList of Char.ofNat applied to each Unicode scalar value, not each raw UTF-8 byte. This test checks "é€😀" = String.ofList [Char.ofNat 0xE9, Char.ofNat 0x20AC, Char.ofNat 0x1F600] by reflexivity, covering 2-, 3-, and 4-byte UTF-8 sequences.

rpylean rejected this test because W_LitStr.build_str_expr iterated raw UTF-8 bytes instead of decoding UTF-8 codepoints.

Checker Result ⏱️ 🧠
nano-lean 👍 5.02 ms 87.6 MB
gruszka 👍 7.18 ms 138.0 MB
sokonanoda 👍 7.53 ms 103.6 MB
rpylean 👍 5.86 ms 21.7 MB
pestka 👍 13.9 ms 30.2 MB
kefir 👍 24.7 ms 9.7 MB
palladium 👍 11.1 ms 19.7 MB
con-ron 👍 84.6 ms 61.4 MB
kefir-wasm 👍 424 ms 107.6 MB
con-agua 👍 88.3 ms 40.1 MB
nanobruijn 👍 36.3 ms 26.9 MB
nanoda 👍 23.8 ms 4.3 MB
con-leche 👍 66.7 ms 32.3 MB
pestka-wasm 👍 209 ms 172.9 MB
tenet-jvm 👍 580 ms 124.5 MB
official-nightly 👍 83.5 ms 102.7 MB
eink0rn 👍 41.9 ms 70.9 MB
official 👍 88.2 ms 96.1 MB
ind-models 👍 210 ms 117.5 MB
tenet 👍 221 ms 62.2 MB
tenet-hs 👍 41.4 ms 73.7 MB
kiota 👍 35.7 ms 19.2 MB
ocaml4lean 👍 47.4 ms 32.7 MB
logos-kernel 👍 5.77 ms 7.4 MB
evmlean 🚫 307 ms 104.5 MB
mini 🚫 38.0 ms 74.6 MB
overfull ⌛ — —
lean4lean 👍 97.9 ms 93.8 MB
lean4cobol ✋ 417 ms 14.9 MB
canonical-min ✋ 422 ms 1.0 GB
nanoclo 👍 15.3 ms 69.3 MB
vow-lean-kernel ✋ 2.46 s 18.4 MB
metalean-slow 🚫 75.1 ms 78.0 MB
lazylean 👍 19.8 ms 22.9 MB
metalean-fast 👍 142 ms 87.0 MB
nanoclo-fortran 👍 37.8 ms 7.8 MB
mathgraph 👍 8.02 ms 103.5 MB