Zulip Chat Archive
Stream: mathlib4
Topic: IsPrime typeclass?
Kenny Lau (Jun 20 2025 at 09:56):
https://loogle.lean-lang.org/?q=Ideal.IsPrime
Why does IsPrime sometimes show up as () (explicit argument) and sometimes as [] (auto typeclass)?
Damiano Testa (Jun 20 2025 at 10:58):
On superficial inspection, it seems to reflect whether the argument is explicit, even if it is a class.
Andrew Yang (Jun 20 2025 at 11:18):
Because they are sometimes declared as type class arguments and sometimes as explicit arguments
Jovan Gerbscheid (Jun 20 2025 at 19:14):
I guess which one is more convenient depends on the specific use case. They can both be used with dot-notation.
Last updated: Dec 20 2025 at 21:32 UTC