Zulip Chat Archive

Stream: mathlib4

Topic: Polynomial.eval dot-notation delaborator


Johan Commelin (Dec 04 2024 at 07:37):

Do I understand correctly that it is now possible to make Polynomial.eval x f pretty-print as f.eval x in the infoview. What is the code snippet that will enable this?
cc @Kyle Miller

Junyan Xu (Dec 04 2024 at 10:44):

When you say "now possible", do you mean it's due to the recent enablement of dot notation for bundled functions? But docs#Polynomial.eval has always been a plain function. I'd like to see dot notation used for docs#Polynomial.aeval though.

Johan Commelin (Dec 04 2024 at 11:05):

Aah, you are right. I forgot it was a plain function :man_facepalming:

Edward van de Meent (Dec 04 2024 at 11:06):

actually, lean4#6178 says that although the syntax is now allowed, the pp doesn't show it yet.

Edward van de Meent (Dec 04 2024 at 11:06):

(give the issue a thumbs up if you think this is important)


Last updated: May 02 2025 at 03:31 UTC