Zulip Chat Archive
Stream: general
Topic: Relationship between `let` and `match`
nrs (Oct 15 2024 at 06:59):
Do we have, in all cases, that fun (A : Type) => let a := A; _
and fun (A : Type) => match A with | a => _
result in a := A
? Is this true even if A : something
where something
is not Type
?
Mario Carneiro (Oct 18 2024 at 13:41):
no, match A with | a => _
is like have a := A; _
not let
Mario Carneiro (Oct 18 2024 at 13:41):
the difference is that inside the body of the _
you will not be able to know that a := A
nrs (Oct 18 2024 at 14:13):
Mario Carneiro said:
no,
match A with | a => _
is likehave a := A; _
notlet
I see, thanks a lot for the help!!
Last updated: May 02 2025 at 03:31 UTC