Zulip Chat Archive

Stream: lean4

Topic: What is the easiest way to prove Char.utf8Size c > 0?


l1mey (Sep 06 2025 at 06:54):

I've been having a hard time so far, I don't really know how to get around the if statement in there nicely.

image.png

Robin Arnez (Sep 06 2025 at 07:02):

We have docs#Char.utf8Size_pos​..?

l1mey (Sep 06 2025 at 07:07):

Whoops.

Robin Arnez (Sep 06 2025 at 07:47):

But it should be enough to simply simp [h1, h2] in your example to solve the goal

Kim Morrison (Sep 06 2025 at 09:07):

Don't forget to run try? if you're stuck! (For now there's also hint in Mathlib, which I'm intending to roll into try? soon.)


Last updated: Dec 20 2025 at 21:32 UTC