Test "other/str-nul"
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 : "a\u0000b" = "a" := rfl. The character U+0000 is a valid Char, so
the left side is a string of three characters, and the theorem is false. A
checker that ends a string at its first NUL character, as C strings do,
takes the two literals to be equal and accepts this.
Generated by invalid-utf8/gen.py from an export of invalid-utf8/Lit.lean.
See Lean issue #16877.