Lean Kernel Arena (Preview) / bugs/str-lit-utf8

Test "bugs/str-lit-utf8"

Expected: 👍 accept · Size: 557.0 KB · Lines: 10.3 k · lean4export: 3.2.0 · Lean: 4.38.0-nightly-2026-12-03 · 📄 Declaration · 🔗 Source

Non-ASCII UTF-8 string literal reduction.

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 ⏱️ 🧠
gruszka 👍 7.01 ms 138.0 MB
nano-lean 👍 4.80 ms 78.3 MB
pestka 👍 14.8 ms 28.9 MB
con-leche 👍 65.9 ms 37.4 MB
con-ron 👍 82.8 ms 61.7 MB
nucleus 🚫 134 ms 17.6 MB
official 👍 90.7 ms 115.4 MB