Zulip Chat Archive

Stream: mathlib4

Topic: Argument explicitness in `inner`


Jovan Gerbscheid (Apr 28 2025 at 12:22):

Are there documented guidelines on when arguments should be explicit and when implicit? I'm a bit confused about the choice of explicit variables in these:

inner : E β†’ E β†’ π•œ
innerβ‚›β‚—Β (π•œ) : E →ₗ⋆[π•œ] E β†’β‚—[π•œ] π•œ
innerβ‚— (F) : F β†’β‚—[ℝ] F β†’β‚—[ℝ] ℝ

Johan Commelin (Apr 28 2025 at 12:25):

It depends on whether you think this is a bundled object that will often be passed around in unapplied fashion.
E.g. if you want to use the bilinear form API, then you want something like innerβ‚— F, so that the F is determined without having to apply the form to some element of F.


Last updated: May 02 2025 at 03:31 UTC