Function of #cas
HermiteH
The physicists’ Hermite polynomial in monomials, proved at every real , and its exact values at rational points.
#cas (HermiteH n x)#cas (HermiteH n q)#cas [N d] (HermiteH n q)There are two families of Hermite polynomials in common use, and HermiteH gives the physicists’ ones, , with the convention of Mathematica’s HermiteH. Mathlib defines only the probabilists’ polynomials , as Polynomial.hermite n, so the theorem cannot name directly. It states through them, as , and you will see those factors of in every statement. HermiteHe gives itself.
Examples (9)#
Basic Examples (1)
in monomials, with the theorem at every real :
#cas (HermiteH 4 x)
polynomial with integer coefficients
16*x^4 - 48*x^2 + 12- Domain
√2 ^ 4 Polynomial.hermite 4 (√2 x) (physicists'), x ∈ ℝ- Input (polynomial in x)
HermiteH 4 x
Checked by Lean’s kernel: Monomial expansion of HermiteH 4
∀ (x : ℝ), √2 ^ 4 * (Polynomial.aeval (√2 * x)) (Polynomial.hermite 4) = 16 * x ^ 4 - 48 * x ^ 2 + 12
The certificate: 1 checked step
Monomial expansion of HermiteH 4
∀ (x : ℝ), √2 ^ 4 * (Polynomial.aeval (√2 * x)) (Polynomial.hermite 4) = 16 * x ^ 4 - 48 * x ^ 2 + 12
Scope (4)
Degree 1 gives :
#cas (HermiteH 1 x)
polynomial with integer coefficients
2*x- Domain
√2 ^ 1 Polynomial.hermite 1 (√2 x) (physicists'), x ∈ ℝ- Input (polynomial in x)
HermiteH 1 x
Checked by Lean’s kernel: Monomial expansion of HermiteH 1
∀ (x : ℝ), √2 ^ 1 * (Polynomial.aeval (√2 * x)) (Polynomial.hermite 1) = 2 * x
The certificate: 1 checked step
Monomial expansion of HermiteH 1
∀ (x : ℝ), √2 ^ 1 * (Polynomial.aeval (√2 * x)) (Polynomial.hermite 1) = 2 * x
#cas [expand] prints the same polynomial as #cas alone, here :
#cas [expand] (HermiteH 5 x)
polynomial with integer coefficients
32*x^5 - 160*x^3 + 120*x- Domain
√2 ^ 5 Polynomial.hermite 5 (√2 x) (physicists'), x ∈ ℝ- Input (polynomial in x)
HermiteH 5 x
Checked by Lean’s kernel: Monomial expansion of HermiteH 5
∀ (x : ℝ), √2 ^ 5 * (Polynomial.aeval (√2 * x)) (Polynomial.hermite 5) = 32 * x ^ 5 - 160 * x ^ 3 + 120 * x
The certificate: 1 checked step
Monomial expansion of HermiteH 5
∀ (x : ℝ), √2 ^ 5 * (Polynomial.aeval (√2 * x)) (Polynomial.hermite 5) = 32 * x ^ 5 - 160 * x ^ 3 + 120 * x
At a rational point the call gives the exact value, and [N d] adds its first digits. Here they are exact:
#cas [N 10] (HermiteH 3 (1/2))
exact rational value and its first 10 significant digits, truncated
-5 = -5.000000000- Domain
HermiteH polynomial at a rational point
Checked by Lean’s kernel: Exact value and digits of HermiteH 3
√2 ^ 3 * (Polynomial.aeval (√2 * (1 / 2))) (Polynomial.hermite 3) = -5 ∧ -(5000000000 + 1) / 10 ^ 9 < √2 ^ 3 * (Polynomial.aeval (√2 * (1 / 2))) (Polynomial.hermite 3) ∧ √2 ^ 3 * (Polynomial.aeval (√2 * (1 / 2))) (Polynomial.hermite 3) ≤ -5000000000 / 10 ^ 9
The certificate: 1 checked step
Exact value and digits of HermiteH 3
√2 ^ 3 * (Polynomial.aeval (√2 * (1 / 2))) (Polynomial.hermite 3) = -5 ∧ -(5000000000 + 1) / 10 ^ 9 < √2 ^ 3 * (Polynomial.aeval (√2 * (1 / 2))) (Polynomial.hermite 3) ∧ √2 ^ 3 * (Polynomial.aeval (√2 * (1 / 2))) (Polynomial.hermite 3) ≤ -5000000000 / 10 ^ 9
With fewer digits than the value has, the report prints ≈, and the theorem bounds the value between and :
#cas [N 2] (HermiteH 6 2)
exact rational value and its first 2 significant digits, truncated
-824 ≈ -8.2 × 10^2- Domain
HermiteH polynomial at a rational point
Checked by Lean’s kernel: Exact value and digits of HermiteH 6
√2 ^ 6 * (Polynomial.aeval (√2 * 2)) (Polynomial.hermite 6) = -824 ∧ -(82 + 1) * 10 ^ 1 < √2 ^ 6 * (Polynomial.aeval (√2 * 2)) (Polynomial.hermite 6) ∧ √2 ^ 6 * (Polynomial.aeval (√2 * 2)) (Polynomial.hermite 6) ≤ -82 * 10 ^ 1
The certificate: 1 checked step
Exact value and digits of HermiteH 6
√2 ^ 6 * (Polynomial.aeval (√2 * 2)) (Polynomial.hermite 6) = -824 ∧ -(82 + 1) * 10 ^ 1 < √2 ^ 6 * (Polynomial.aeval (√2 * 2)) (Polynomial.hermite 6) ∧ √2 ^ 6 * (Polynomial.aeval (√2 * 2)) (Polynomial.hermite 6) ≤ -82 * 10 ^ 1
Applications (1)
A proof can take the printed theorem as a hypothesis and specialize it, here at . Only the three standard axioms are used:
theorem hermiteH_four_at_zero (h : ∀ x : ℝ, √2 ^ 4 * Polynomial.aeval (√2 * x) (Polynomial.hermite 4) = 16 * x ^ 4 - 48 * x ^ 2 + 12) : √2 ^ 4 * Polynomial.aeval (√2 * 0) (Polynomial.hermite 4) = 12 := by rw [h 0] norm_num #print axioms hermiteH_four_at_zero
hermiteH_four_at_zero depends on the axioms propext, Classical.choice, Quot.sound.
Properties and Relations (1)
HermiteHe gives . With it gives above:
#cas (HermiteHe 4 x)
polynomial with integer coefficients
x^4 - 6*x^2 + 3- Domain
Polynomial.hermite 4 (probabilists'), ℤ[X]- Input (polynomial in x)
HermiteHe 4 x
Checked by Lean’s kernel: Monomial expansion of HermiteHe 4
Polynomial.hermite 4 = Polynomial.X ^ 4 - 6 * Polynomial.X ^ 2 + 3
The certificate: 1 checked step
Monomial expansion of HermiteHe 4
Polynomial.hermite 4 = Polynomial.X ^ 4 - 6 * Polynomial.X ^ 2 + 3
Possible Issues (2)
The degree is at most 60. #cas (HermiteHe n x) accepts degrees up to 80, and relates the two:
#cas (HermiteH 61 x)
Error
HermiteH accepts degrees up to 60
The call takes two arguments, the degree and then the variable or the point:
#cas (HermiteH 3)
Error
HermiteH takes 2 arguments, as in `HermiteH n x`; the call has 1
See Also
HermiteHe · ChebyshevT · LegendreP · expand · N
