Test "bugs/str-lit-utf8-bad"
Expected: ✋ reject · Size: 578.7 KB · Lines: 10.7 k · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 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 | ⏱️ | 🧠 | |||
|---|---|---|---|---|---|---|
| nano-lean | ✋ | 5.33 ms | 91.6 MB | |||
| gruszka | ✋ | 7.58 ms | 134.1 MB | |||
| sokonanoda | ✋ | 8.12 ms | 102.0 MB | |||
| rpylean | ✋ | 6.89 ms | 22.2 MB | |||
| pestka | ✋ | 16.2 ms | 30.1 MB | |||
| kefir | ✋ | 28.1 ms | 11.7 MB | |||
| palladium | ✋ | 12.2 ms | 19.9 MB | |||
| con-ron | ✋ | 86.6 ms | 63.5 MB | |||
| kefir-wasm | ✋ | 437 ms | 109.9 MB | |||
| con-agua | ✋ | 91.2 ms | 41.0 MB | |||
| nanobruijn | ✋ | 38.5 ms | 26.8 MB | |||
| nanoda | ✋ | 26.4 ms | 4.7 MB | |||
| con-leche | ✋ | 70.0 ms | 32.2 MB | |||
| pestka-wasm | ✋ | 222 ms | 181.6 MB | |||
| tenet-jvm | ✋ | 680 ms | 130.0 MB | |||
| official-nightly | ✋ | 95.5 ms | 104.2 MB | |||
| eink0rn | ✋ | 90.5 ms | 125.4 MB | |||
| official | ✋ | 102 ms | 97.5 MB | |||
| ind-models | ✋ | 169 ms | 114.2 MB | |||
| tenet | ✋ | 270 ms | 71.9 MB | |||
| tenet-hs | ✋ | 64.3 ms | 73.5 MB | |||
| kiota | ✋ | 37.2 ms | 21.3 MB | |||
| ocaml4lean | ✋ | 59.0 ms | 33.4 MB | |||
| logos-kernel | ✋ | 6.51 ms | 7.5 MB | |||
| evmlean | 🚫 | 306 ms | 107.4 MB | |||
| mini | 🚫 | 38.0 ms | 73.9 MB | |||
| overfull | ⌛ | — | — | |||
| lean4lean | ✋ | 185 ms | 100.5 MB | |||
| lean4cobol | ✋ | 416 ms | 15.1 MB | |||
| canonical-min | ✋ | 427 ms | 1.0 GB | |||
| nanoclo | ✋ | 17.3 ms | 67.5 MB | |||
| vow-lean-kernel | ✋ | 2.45 s | 18.4 MB | |||
| metalean-slow | 🚫 | 75.1 ms | 77.6 MB | |||
| lazylean | ✋ | 21.8 ms | 23.6 MB | |||
| metalean-fast | ✋ | 151 ms | 88.4 MB | |||
| nanoclo-fortran | ✋ | 42.2 ms | 9.1 MB | |||
| mathgraph | ✋ | 9.07 ms | 91.5 MB |