Zulip Chat Archive
Stream: lean4
Topic: Unexpected type in elaboration
Jovan Gerbscheid (Nov 09 2024 at 13:16):
Quiz question: What is the type of this function in Lean?
def test (_ : Int) (_ : Float) :=
(fun x =>
let m := _
match x with
| (a) => (a : m)) 5
#check test
Answer
Edward van de Meent (Nov 09 2024 at 13:45):
that's whack... but the example seems contrived too...
Edward van de Meent (Nov 09 2024 at 13:46):
bad code does weird things... what else is new.
Last updated: May 02 2025 at 03:31 UTC