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

Test "bugs/str-lit-utf8-bad"

Expected: ✋ reject · Size: 556.7 KB · Lines: 10.3 k · lean4export: 3.2.0 · Lean: 4.38.0-nightly-2026-12-03 · 📄 Declaration · 🔗 Source

Ill-typed equality equating "é" with its raw UTF-8 bytes.

Soundness counterpart to bugs/str-lit-utf8: injects strLitUtf8Bad : "é" = String.ofList [Char.ofNat 0xC3, Char.ofNat 0xA9] with proof Eq.refl "é". A checker that expands string literals byte-by-byte instead of by Unicode scalar values equates both sides and accepts this false theorem.

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

Checker Result ⏱️ 🧠
gruszka ✋ 7.28 ms 140.1 MB
nano-lean ✋ 4.93 ms 86.3 MB
pestka ✋ 15.9 ms 29.2 MB
con-leche ✋ 68.4 ms 37.1 MB
con-ron ✋ 84.2 ms 61.8 MB
nucleus 🚫 133 ms 16.0 MB
official ✋ 103 ms 117.4 MB