Lean Kernel Arena (Preview) / other/str-cesu8-surrogate-pair

Test "other/str-cesu8-surrogate-pair"

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

s : x = "😀" := rfl, where x is the surrogate pair of U+1F600 encoded as UTF-8 bytes (ED A0 BD ED B8 80, as in CESU-8), which is not valid UTF-8; the right side is U+1F600 itself (F0 9F 98 80). A checker that combines the surrogates takes the two to be equal and accepts this.

A string literal denotes a String, a sequence of Unicode scalar values (code points below 0x110000 that are not surrogates), so an export with such a literal is malformed and must be rejected.

Generated by invalid-utf8/gen.py from an export of invalid-utf8/Lit.lean. See Lean issue #16877.

Checker Result ⏱️ 🧠
gruszka ✋ 3.22 ms 4.9 MB
nano-lean ✋ 1.49 ms 16.2 MB
pestka ✋ 3.23 ms 5.1 MB
con-leche ✋ 11.4 ms 36.3 MB
con-ron ✋ 5.02 ms 18.0 MB
nucleus ✋ 23.0 ms 15.6 MB
official ✋ 90.6 ms 117.0 MB