Hacker News new | ask | show | jobs
by ImprobableTruth 358 days ago
Caveat: Coercions exist in Lean, so subtypes actually can be used like the supertype, similar to other languages. This is done via essentially adding an implicit casting operation when such a usage is encountered.