Zulip Chat Archive

Stream: general

Topic: substitute a term


Siyuan Yan (Nov 03 2022 at 17:21):

hi, learner of lean here. How do I use the equality gg in g?

 1 goal
a b c : 
g : c * b * a = c * (b * a)
gg : b * a = a * b
 c * b * a = b * (a * c)

Mario Carneiro (Nov 03 2022 at 17:22):

It doesn't directly apply since the term is associated wrong actually it does apply

Mario Carneiro (Nov 03 2022 at 17:22):

you can do rw [gg] at g

Siyuan Yan (Nov 03 2022 at 17:24):

Mario Carneiro said:

you can do rw [gg] at g

thanks! I did rw gg at g and it worked too. Why was the brackets?

Mario Carneiro (Nov 03 2022 at 17:24):

the brackets are optional when there is only one thing


Last updated: Dec 20 2023 at 11:08 UTC