Zulip Chat Archive
Stream: Is there code for X?
Topic: Multiindex notation
Moritz Doll (Jan 21 2022 at 09:49):
Is there multiindex notation in lean? I.e., for and the definitions and .
Patrick Massot (Jan 21 2022 at 09:49):
I don't think so
Patrick Massot (Jan 21 2022 at 09:50):
We have very little support for partial derivatives. We always use the full derivative, as a (continuous) linear map.
Eric Wieser (Jan 21 2022 at 10:02):
I think the former might be (a • to_add x).to_mul
, but I doubt you actually want to do that
Moritz Doll (Jan 21 2022 at 10:05):
Is there any reason to avoid partial derivatives for the definition of the Schwartz spaces?
Sebastien Gouezel (Jan 21 2022 at 10:10):
The question would rather be, is there any reason to use them? The condition would just be that, for any n
, the norm of the n
-th derivative decays faster than any polynomial at infinity, no need of partial derivatives to state this.
Sebastien Gouezel (Jan 21 2022 at 10:32):
Note that, in a general finite-dimensional real vector space, there is no preferred coordinate basis, so using partial derivatives would mean choosing an arbitrary basis first, which is not very natural.
Moritz Doll (Jan 25 2022 at 19:23):
you need partial derivatives at the latest if you want to calculate the Fourier transform of a polynomial. Also, polynomials in general vector spaces are probably awkward to handle (I haven't found any code for that); you could just take powers of the norm, but that makes the seminorms really messy.
Heather Macbeth (Jan 25 2022 at 20:58):
@Moritz Doll For polynomials in general vector spaces, we could use the symmetric algebra, or we could do a finitely-supported analogue of docs#formal_multilinear_series .
Heather Macbeth (Jan 25 2022 at 20:58):
(Not necessarily advocating this -- co-ordinates are convenient -- just thinking about how it would go to continue to eschew them!)
Heather Macbeth (Jan 25 2022 at 21:00):
So something like
def abstract_mv_polynomial
(𝕜 : Type*) [nondiscrete_normed_field 𝕜]
(E : Type*) [normed_group E] [normed_space 𝕜 E]
(F : Type*) [normed_group F] [normed_space 𝕜 F] :=
Π₀ (n : ℕ), (E [×n]→L[𝕜] F)
where the Π₀
, which you might not have seen before, is notation for docs#dfinsupp
Heather Macbeth (Jan 25 2022 at 21:01):
I would be curious if @Yourong Zang would comment here too. He encountered some fairly hairy issues last summer trying to do do multiple-derivatives in our Fréchet derivative framework.
Heather Macbeth (Jan 25 2022 at 21:02):
This was for arguments such as the one in the PDF linked in this message.
Heather Macbeth (Jan 25 2022 at 21:03):
At the time, I meant to go through his draft code and try to extract some #mwe for discussion explaining why it was so painful, but I didn't get around to it.
Last updated: Dec 20 2023 at 11:08 UTC