Zulip Chat Archive
Stream: new members
Topic: have and let
Joscha Mennicken (Nov 05 2021 at 18:03):
Hello, I'm wondering about the specifics of have
and let
in lean4 (not the tactics). Why is have
defined the way it is? And does it matter when handling variables of type Prop
, since their values are irrelevant anyways?
Joscha Mennicken (Nov 05 2021 at 18:04):
It seems to me like let
can be used everywhere have
can be used and I'd like to know what scenarios have
is meant for.
Kevin Buzzard (Nov 05 2021 at 18:09):
let
just clogs things up more. If I've proved h : A = B
after some long struggle then I want my local context to say h : A = B
and not h : A = B := <gigantic 20 line proof which makes my proof state much harder to read>
Joscha Mennicken (Nov 05 2021 at 18:13):
So have
is a way to explicitly throw away unnecessary information. Makes sense
Last updated: Dec 20 2023 at 11:08 UTC