Zulip Chat Archive

Stream: new members

Topic: case splitting the wrong way


Lucas Allen (Dec 18 2019 at 02:46):

Hello, I have the hypothesis k < nat.succ n, and I want to split the goal into two goals, one where the hypothesis is k < n and another where the hypothesis is k = n. This is a bit like cases but going the wrong direction. Is there some way to do this?

Alex J. Best (Dec 18 2019 at 03:38):

rw nat.lt_succ_iff_lt_or_eq at h,
cases h,

or cases nat.lt_succ_iff_lt_or_eq.mp h,

Lucas Allen (Dec 18 2019 at 06:54):

Ahh... Thanks.


Last updated: Dec 20 2023 at 11:08 UTC