Re:Lean 4.0.0, first official lean4 release
by ykonstant on Friday September 08, 2023 @10:40AM
(#37434103)
Lean will not create a custom type to infer for each function; it will either infer an existing type or report failure; it will also not automatically coerce to String. What you see above is a proof in tactic mode of your specification as a theorem. If you want to guarantee the outputs of a function, you need to specify a custom type. For instance:
[ Parent
| on HN ]
There are no comments on this comment yet.