Zulip Chat Archive
Stream: Is there code for X?
Topic: (p, q).snd
Winston Yin (Oct 24 2022 at 20:25):
Silly question: is there a rw
lemma for (p, q).snd = q
?
Kevin Buzzard (Oct 24 2022 at 20:36):
This is rfl
and sometimes the lemma doesn't exist in this situation.
Kevin Buzzard (Oct 24 2022 at 20:36):
You can always use change
instead of rewriting (or dsimp only
)
Winston Yin (Oct 24 2022 at 20:37):
Hmm I'm writing a proof with a lot of (...., (......, ........).snd).snd
, and a simple rw would be quite nice
Yaël Dillies (Oct 24 2022 at 20:37):
Why not just dsimp
?
Winston Yin (Oct 24 2022 at 20:38):
Isn't non terminal dsimp frowned upon
Winston Yin (Oct 24 2022 at 20:39):
And what if I only want to dsimp a particular expression, not the whole goal?
Yaël Dillies (Oct 24 2022 at 20:39):
No! simp
and dsimp
are two very different things
Yaël Dillies (Oct 24 2022 at 20:40):
It's rare that you would want to do that, but if you do you can rw (by dsimp : something= something_else)
Kevin Buzzard (Oct 24 2022 at 20:40):
I would say that non-terminal dsimp
is frowned upon, but I suggested dsimp only
which is fine (as is simp only [foo, bar, baz]
)
Yaël Dillies (Oct 24 2022 at 20:42):
How so? There are many less opportunities for a dsimp
call to break and whatever happens you're guaranteed than where it breaks the goal is definitionally equal to what you had before.
Yaël Dillies (Oct 24 2022 at 20:42):
Also note that squeeze_dsimp
is botched so your dsimp only
suggestion isn't viable.
Winston Yin (Oct 24 2022 at 20:43):
dsimp only
thankfully simplified exact the expression I need to simplify
Last updated: Dec 20 2023 at 11:08 UTC