Zulip Chat Archive

Stream: lean4

Topic: intro hyp; rw [hyp] at foo


Martin Dvořák (Aug 10 2023 at 12:10):

Let's say x ≠ y is my goal.
I typically want to start my proof as follows:

intro hyp
rw [hyp] at foo

Is there a single tactic that performs these two lines?

Kevin Buzzard (Aug 10 2023 at 12:17):

rintro rfl if you're lucky

Martin Dvořák (Aug 10 2023 at 12:20):

Is rintro rfl equivalent to the following?

intro hyp
rw [hyp] at *
clear hyp

Scott Morrison (Aug 10 2023 at 12:23):

No, it is more like

intro hyp
subst hyp

Scott Morrison (Aug 10 2023 at 12:24):

In particular it is only going to work if one side of hyp is a free variable.

Damiano Testa (Aug 10 2023 at 12:27):

Maybe by_contra should try subst as well.


Last updated: Dec 20 2023 at 11:08 UTC