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