Zulip Chat Archive
Stream: Is there code for X?
Topic: Collecting terms
Eric Wieser (Jun 29 2021 at 13:47):
I've found myself with goals along the lines of x • A - y • B + z • A = p • B - q • B + r • A
, and I'd like a tactic that splits this into two goals x + z = r
and -y = p - q
by matching coefficients of A
and B
respectively. Do we have anything like this?
Eric Wieser (Jun 29 2021 at 13:48):
Essentially, I guess this breaks down into some tactic to work out the collected goal state, and an abel
tactic that knows about smul
by non-integers
Adam Topaz (Jun 29 2021 at 13:52):
I'm not aware of such a tactic. You can pull it off with a good suffices : ...
and abel
/smul
to close the goal it creates.
Eric Wieser (Jun 29 2021 at 13:52):
I really don't want to do that, as in my real situation I have A B C D
, and each appears on each side 4 times with a 3-term coefficient
Eric Wieser (Jun 29 2021 at 13:53):
So the resulting suffices is huge
Eric Wieser (Jun 29 2021 at 13:54):
My real goal is
Last updated: Dec 20 2023 at 11:08 UTC