Commit 2025-01-07 07:29 1327df05
View on Github →chore: smile more often (#20436)
This replaces : _)
with the shorter and otherwise almost identical :)
. The former is a Lean 3 ism; or at least, the latter is new syntax in Lean 4.
More precisely (thanks @kmill):
(e : _)
elaboratese
without an expected type, and then it inserts a coercion if the type ofe
does not match the expected type.(e :)
elaboratese
without an expected type to completion, and then it inserts a coercion if the type ofe
does not match the expected type. A few places break when switched to:)
; in many of these cases, the: _)
/:)
can just be dropped entirely. The remainder are left as is.