Zulip Chat Archive

Stream: general

Topic: Chain of compositions


Antoine Labelle (Jul 30 2022 at 18:42):

Let's say I have a goal of the form f1 ≫ f2 ≫ ... ≫ h = g1 ≫ g2 ≫ ... ≫ h with some long chain of compositions on both sides. What is the simplest way to remove the h and replace it by f1 ≫ f2 ≫ ... = g1 ≫ g2 ≫ ... ?

Adam Topaz (Jul 30 2022 at 18:48):

simp only [\l category.assoc], congr' 1, simp only [category.assoc] should work

Adam Topaz (Jul 30 2022 at 18:50):

Or you could do

suffices : f1   f2   ...   = g1   g2   ..., by rw reassoc_of this,

Adam Topaz (Jul 30 2022 at 18:50):

assuming f1 ≫ f2 ≫ ... = g1 ≫ g2 ≫ ... can be written down reasonably.

Antoine Labelle (Jul 30 2022 at 18:56):

Yeah, the thing is that f1, etc. all stand for long expressions, so I don't want to write them down. I'll try the first solution.

Eric Wieser (Jul 30 2022 at 19:30):

I assume apply assoc_of doesn't work?


Last updated: Dec 20 2023 at 11:08 UTC