Zulip Chat Archive

Stream: new members

Topic: Handling ite


Guilherme Espada (Mar 11 2021 at 13:03):

I have a goal of the form:

some_cons (ite (t = x) s (t_var t))

What is the best way to turn this into two goals?
I tried

by_cases t=x,
{
      rw h,
      simp,
}

Which works in the positive case. However, I don't know how to simplify the negative case.

Thanks

Anne Baanen (Mar 11 2021 at 13:08):

tactic#split_ifs? Or you can rw if_neg (h : ¬ t = x)

Anne Baanen (Mar 11 2021 at 13:09):

(docs#if_pos and docs#if_neg)

Guilherme Espada (Mar 11 2021 at 13:25):

Split_ifs is exactly what I was looking for, thanks!


Last updated: Dec 20 2023 at 11:08 UTC