Zulip Chat Archive

Stream: Is there code for X?

Topic: Un-getting an Option


hatzka (Aug 26 2025 at 23:02):

Newbie question: My goal is of the form¬opt.get _ = val, and I can prove ¬opt = some val. How do I bridge the gap?

Weiyi Wang (Aug 26 2025 at 23:09):

contrapose! then prove the other direction by rw + simp?

hatzka (Aug 26 2025 at 23:11):

Oh, sorry, I actually found a simpler way right after posting. Isn't that always the way. Anyway, for anyone else reading this, rw [← Option.some_inj, Option.some_get]


Last updated: Dec 20 2025 at 21:32 UTC