Zulip Chat Archive

Stream: lean4

Topic: Infix Delaborator Bug?


Mac (May 15 2021 at 17:29):

I was trying out a new way to specify mixfix notation and I encounter the following oddity:

notation "(+)" => HAdd.hAdd
infixl:65 (priority := default + default) " + " => (+)
#check 2 + 2
/-
  (+) : Nat
-/

That is, 2 + 2 doesn't delab properly (the operands get completely wiped out). Is this a bug? Or is it an expected pitfall of my approach? If it is, in fact, a bug, I'll go create an issue for it on GitHub.

Sebastian Ullrich (May 15 2021 at 17:34):

Yes, this does look like a bug

Mac (May 15 2021 at 17:37):

k, I will go make a proper issue


Last updated: Dec 20 2023 at 11:08 UTC