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

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

Expected: 馃憤 accept 路 Size: 556.2鈥疜B 路 Lines: 10.3鈥痥 路 lean4export: 3.2.0 路 Lean: 4.38.0-nightly-2026-12-03 路 馃搫 Declaration 路 馃敆 Source

s : "\ud83d\ude00" = "馃榾" := rfl, where the left side writes U+1F600 as a surrogate pair of JSON escapes and the right side as UTF-8 bytes (F0 9F 98 80).

A JSON string can spell the same string in several ways: a character can be written as itself or as a \u escape (with hexadecimal digits in either case), and a character above U+FFFF as an escaped surrogate pair. All spellings denote the same String.

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

Checker Result 鈴憋笍 馃
gruszka 馃憤 6.99鈥痬s 138.0鈥疢B
nano-lean 馃憤 4.83鈥痬s 84.2鈥疢B
pestka 馃憤 14.6鈥痬s 28.9鈥疢B
con-leche 馃憤 65.8鈥痬s 37.4鈥疢B
con-ron 馃憤 82.8鈥痬s 61.8鈥疢B
nucleus 馃毇 136鈥痬s 17.5鈥疢B
official 馃憤 90.7鈥痬s 115.6鈥疢B