Zulip Chat Archive

Stream: new members

Topic: Is there a way to complicate things with simp?


Abhimanyu Pallavi Sudhir (Nov 25 2018 at 11:21):

I.e. is there a way to write simp [←lemma, lemma, lemma]?

Kenny Lau (Nov 25 2018 at 11:22):

simp [(lemma).symm, lemma, lemma]

Abhimanyu Pallavi Sudhir (Nov 25 2018 at 11:24):

That doesn't always work, though. For instance, I'm trying to do simp [(polynomial.sum_C_mul_X_eq p).symm, finsupp.sum, polynomial.derivative_sum], -- rewrites work, but simp doesn't.

Kevin Buzzard (Nov 25 2018 at 13:12):

simp might be taking a wrong turn before it tries the rewrites you want. Switch logging on if you want to investigate further -- see the simp docs in mathlib for an explanation of how to do this.


Last updated: Dec 20 2023 at 11:08 UTC