Zulip Chat Archive

Stream: mathlib4

Topic: Option.get


Kevin Buzzard (Nov 18 2022 at 21:24):

In Lean 4 (well, in Std) o is explicit: def Option.get {α : Type u} : (o : Option α) → isSome o → α and in Lean 3 it's implicit. Presumably this is beyond the capabilities of the autoporter?

Mario Carneiro (Nov 18 2022 at 21:25):

yes

Mario Carneiro (Nov 18 2022 at 21:25):

backporting is also an option, I think the lean 4 definition is better

Kevin Buzzard (Nov 18 2022 at 21:26):

yeah I'm live streaming porting on the Discord and Chris Hughes just agreed with you.

Yaël Dillies (Nov 18 2022 at 22:04):

Yeah, I had plans to make it explicit because I always got into the dumbest type ascriptions using it.


Last updated: Dec 20 2023 at 11:08 UTC