Zulip Chat Archive

Stream: general

Topic: attribute [pp_dot]


Martin Dvořák (Nov 08 2025 at 10:00):

What is the Lean 4.18's equivalent of Lean 4.2's attribute [pp_dot] please?

Yaël Dillies (Nov 08 2025 at 10:08):

No attribute. pp_dot is now the default

Martin Dvořák (Nov 08 2025 at 10:15):

example (l : List α) (f : α  α) : l.map f = l.map f := by
  rfl

Infoview shows:

List.map f l = List.map f l

How can I make it display what I wrote please?

Aaron Liu (Nov 08 2025 at 11:22):

pretty printer uses dot notation if the first explicit argument has the correct type matching the namespace of the function

Martin Dvořák (Nov 08 2025 at 11:26):

Oh, I forgot. So, custom delaborator is the only option here?

Martin Dvořák (Nov 09 2025 at 11:17):

For future visitors:
https://github.com/madvorak/chomsky/commit/11b9fa414e7e1b8f08155a4a83072a5bd6b6f882


Last updated: Dec 20 2025 at 21:32 UTC