Zulip Chat Archive

Stream: lean4

Topic: Delaborator priority


Jon Eugster (Mar 28 2025 at 09:37):

Is there a way to specify delaborator priority?

Say I wanted to overwrite an existing delaborator in my project, I would try to do something like this:

@[delab app.Finset.sum]
-- or `@[app_delab Finset.sum]` but I think that's irrelevant
def delabFinsetSum' : Delab :=
  whenPPOption getPPNotation <| withOverApp 5 <| do
    _ -- modified delaborator

But it seems the original delaborator takes priority by default.


Last updated: May 02 2025 at 03:31 UTC