Zulip Chat Archive
Stream: general
Topic: stupid question: `Nat = String`?
Jz Pan (Nov 14 2024 at 12:58):
Can Nat = String
be proved or disproved in Lean? The only possible case I can think of is that, if two Type
s have different cardinality, then they cannot be equal. But these two are all countable.
Or in general types cannot be compared, as this does not make sense?
Riccardo Brasca (Nov 14 2024 at 12:59):
You are right, in general the only way to disprove that two types are equal is using a cardinality argument.
Riccardo Brasca (Nov 14 2024 at 13:00):
In particular, the equality Nat = String
is almost surely undecidable.
Shreyas Srinivas (Nov 14 2024 at 21:18):
What does it mean for the equality of two specific types to be undecidable? Undecidability as a concept applies to decision functions (or their corresponding sets)
Ruben Van de Velde (Nov 14 2024 at 21:28):
It's independent of the axioms lean is based on
Kyle Miller (Nov 14 2024 at 21:36):
Yeah, computability theory doesn't have a monopoly on the term. "Undecidable" also means "independent of the axioms". See https://en.wikipedia.org/wiki/Independence_(mathematical_logic)
Riccardo Brasca (Nov 14 2024 at 21:37):
See https://en.wikipedia.org/wiki/Independence_(mathematical_logic)
Shreyas Srinivas (Nov 14 2024 at 22:01):
Ah right. Now I remember that I have seen this term in model theory.
Shreyas Srinivas (Nov 14 2024 at 22:02):
Thanks
Last updated: May 02 2025 at 03:31 UTC