Zulip Chat Archive

Stream: maths

Topic: Evaluating multivariable functions


Hyunsang Hwang (Nov 02 2022 at 01:04):

Is there a way to evaluate functions in Lean? I am trying to find a way to express
$$Q{\big (}e_{1}(X_{1},\ldots ,X_{n}),\ldots ,e_{n}(X_{1},\ldots ,X_{n}){\big )}}$$
using the package data.mv_polynomial.

Eric Rodriguez (Nov 02 2022 at 01:05):

Q(e1(X1,,Xn),,en(X1,,Xn))Q{\big(e_{1}(X_{1},\ldots ,X_{n}),\ldots ,e_{n}(X_{1},\ldots ,X_{n}){\big)}} (you had a typo and Zulip needs double $$s)

Eric Rodriguez (Nov 02 2022 at 01:06):

what are the eie_i?

Hyunsang Hwang (Nov 02 2022 at 01:08):

Eric Rodriguez said:

what are the eie_i?

Thank you for clearing that out. The eie_i are supposed to be
def esymm (n : ℕ) : mv_polynomial σ R :=∑ t in powerset_len n univ, ∏ i in t, X i
included in data.mv_polynomial.

Eric Rodriguez (Nov 02 2022 at 01:10):

docs#mv_polynomial.esymm

Adam Topaz (Nov 02 2022 at 01:11):

You can consider the subfield of the fraction field of Q[X1,,Xn]\mathbb{Q}[X_1,\ldots,X_n] generated over Q\mathbb{Q} by the symmetric polynomials.

Adam Topaz (Nov 02 2022 at 01:11):

All the ingredients are there.

Adam Topaz (Nov 02 2022 at 01:11):

But that doesn't match the title of this thread.... what do you mean by "Evaluating multivariable functions" in relation to this?

Hyunsang Hwang (Nov 02 2022 at 01:12):

Adam Topaz said:

All the ingredients are there.

The Q is not supposed to be mathbb{Q}. I meant to write Q as a function and not as the field of rational numbers.

Adam Topaz (Nov 02 2022 at 01:13):

This seems like a #xy issue

Adam Topaz (Nov 02 2022 at 01:14):

I don't know whether mathlib knows that the symmetric polys are algebraically independent.

Adam Topaz (Nov 02 2022 at 01:15):

what are you trying to do?

Hyunsang Hwang (Nov 02 2022 at 01:16):

Adam Topaz said:

I don't know whether mathlib knows that the symmetric polys are algebraically independent.

I'm actually trying to prove this. I'm trying to prove the fundamental theorem of symmetric polynomials.

Adam Topaz (Nov 02 2022 at 01:16):

Ah okay.

Eric Rodriguez (Nov 02 2022 at 01:18):

(sorry about messing up your Q!)

Adam Topaz (Nov 02 2022 at 01:18):

What's the informal proof that you're trying to formalize?

Adam Topaz (Nov 02 2022 at 01:18):

There are various options

Eric Rodriguez (Nov 02 2022 at 01:19):

there's a lot of options for evaluating polynomials, including docs#mv_polynomial.aeval

Hyunsang Hwang (Nov 02 2022 at 01:20):

Adam Topaz said:

There are various options

I'm trying to use the double induction suggested here https://en.wikipedia.org/wiki/Elementary_symmetric_polynomial

Hyunsang Hwang (Nov 02 2022 at 01:21):

Eric Rodriguez said:

there's a lot of options for evaluating polynomials, including docs#mv_polynomial.aeval

Thank you. I'll try this.

Adam Topaz (Nov 02 2022 at 01:21):

(deleted)

Adam Topaz (Nov 02 2022 at 01:21):

Sorry, yeah Eric gave the right link :)


Last updated: Dec 20 2023 at 11:08 UTC