Zulip Chat Archive
Stream: new members
Topic: not able to identify the issue
Sham S (Dec 24 2023 at 16:56):
def f (x : ℕ) :=
x + 3
#check f
on defining the above function getting this
failed to synthesize instance
HAdd ℕ Nat (?m.9 x)
what is the issue?
Kyle Miller (Dec 24 2023 at 17:35):
The fact that the error shows both ℕ
and Nat
hints that you aren't importing anything that provides ℕ
notation.
Last updated: May 02 2025 at 03:31 UTC