Mode of #cas
inverseLaplace
A function whose Laplace transform is a given proper rational function, with a theorem about the integral.
#cas [inverseLaplace s t] FWhen you solve a differential equation with Laplace transforms, you often end up holding a rational function of , and inverseLaplace takes you back to the function of . The theorem is the one that laplace proves: the integral of over Set.Ioi 0, the half-line , converges and equals F as written.
The function comes from the partial fractions of F, with one group of terms for each factor of the denominator. Those terms are exact when the roots of the factor are rational or roots of a quadratic, and otherwise they are built over enclosures that the kernel checks. There is one limit to what the theorem says. Mathlib has no uniqueness theorem for the Laplace transform, so the report gives an inverse transform, and the theorem does not say it is the only one.
Examples (20)#
Basic Examples (2)
A sine, with the theorem for every :
#cas [inverseLaplace s t] (1 / (s ^ 2 + 4))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
1/2*sin(2*t)- Domain
s > 0- Input (proper rational function of s)
(1 / (s ^ 2 + 4))
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), 0 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 2 * Real.sin (2 * t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 2 * Real.sin (2 * t)) = 1 / (s ^ 2 + 4)
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), 0 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 2 * Real.sin (2 * t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 2 * Real.sin (2 * t)) = 1 / (s ^ 2 + 4)
Two simple poles give two exponentials:
#cas [inverseLaplace s t] (1 / ((s - 1) * (s + 2)))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
1/3*exp(t) - 1/3*exp(-2*t)- Domain
s > 1- Input (proper rational function of s)
(1 / ((s - 1) * (s + 2)))
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), 1 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 3 * Real.exp t - 1 / 3 * Real.exp (-2 * t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 3 * Real.exp t - 1 / 3 * Real.exp (-2 * t)) = 1 / ((s - 1) * (s + 2))
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), 1 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 3 * Real.exp t - 1 / 3 * Real.exp (-2 * t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 3 * Real.exp t - 1 / 3 * Real.exp (-2 * t)) = 1 / ((s - 1) * (s + 2))
Scope (8)
A simple pole, and a pole of order 3:
#cas [inverseLaplace s t] (1 / (s - 2))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
exp(2*t)- Domain
s > 2- Input (proper rational function of s)
(1 / (s - 2))
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), 2 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * Real.exp (2 * t)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * Real.exp (2 * t) = 1 / (s - 2)
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), 2 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * Real.exp (2 * t)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * Real.exp (2 * t) = 1 / (s - 2)
#cas [inverseLaplace s t] (1 / (s - 1) ^ 3)
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
1/2*t^2*exp(t)- Domain
s > 1- Input (proper rational function of s)
(1 / (s - 1) ^ 3)
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), 1 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 2 * (t ^ 2 * Real.exp t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 2 * (t ^ 2 * Real.exp t)) = 1 / (s - 1) ^ 3
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), 1 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 2 * (t ^ 2 * Real.exp t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 2 * (t ^ 2 * Real.exp t)) = 1 / (s - 1) ^ 3
Irrational real poles give a hyperbolic sine, with the bound , and irrational frequencies give a sine:
#cas [inverseLaplace s t] (1 / (s ^ 2 - 2))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
sinh(sqrt(2)*t)/sqrt(2)- Domain
s > √2- Input (proper rational function of s)
(1 / (s ^ 2 - 2))
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), √2 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (Real.sinh (√2 * t) / √2)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (Real.sinh (√2 * t) / √2) = 1 / (s ^ 2 - 2)
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), √2 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (Real.sinh (√2 * t) / √2)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (Real.sinh (√2 * t) / √2) = 1 / (s ^ 2 - 2)
#cas [inverseLaplace s t] (1 / (s ^ 2 + 2))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
sin(sqrt(2)*t)/sqrt(2)- Domain
s > 0- Input (proper rational function of s)
(1 / (s ^ 2 + 2))
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), 0 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (Real.sin (√2 * t) / √2)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (Real.sin (√2 * t) / √2) = 1 / (s ^ 2 + 2)
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), 0 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (Real.sin (√2 * t) / √2)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (Real.sin (√2 * t) / √2) = 1 / (s ^ 2 + 2)
A real pole and a pair of complex poles:
#cas [inverseLaplace s t] ((2 * s + 3) / ((s + 1) * (s ^ 2 + 2 * s + 5)))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
1/4*exp(-t) - 1/4*exp(-t)*cos(2*t) + exp(-t)*sin(2*t)- Domain
s > -1- Input (proper rational function of s)
((2 * s + 3) / ((s + 1) * (s ^ 2 + 2 * s + 5)))
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), -1 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 4 * Real.exp (-t) - 1 / 4 * (Real.exp (-t) * Real.cos (2 * t)) + Real.exp (-t) * Real.sin (2 * t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 4 * Real.exp (-t) - 1 / 4 * (Real.exp (-t) * Real.cos (2 * t)) + Real.exp (-t) * Real.sin (2 * t)) = (2 * s + 3) / ((s + 1) * (s ^ 2 + 2 * s + 5))
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), -1 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 4 * Real.exp (-t) - 1 / 4 * (Real.exp (-t) * Real.cos (2 * t)) + Real.exp (-t) * Real.sin (2 * t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 4 * Real.exp (-t) - 1 / 4 * (Real.exp (-t) * Real.cos (2 * t)) + Real.exp (-t) * Real.sin (2 * t)) = (2 * s + 3) / ((s + 1) * (s ^ 2 + 2 * s + 5))
A repeated pair of complex poles gives a term :
#cas [inverseLaplace s t] (1 / (s ^ 2 + 1) ^ 2)
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
1/2*sin(t) - 1/2*t*cos(t)- Domain
s > 0- Input (proper rational function of s)
(1 / (s ^ 2 + 1) ^ 2)
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), 0 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 2 * Real.sin t - 1 / 2 * (t * Real.cos t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 2 * Real.sin t - 1 / 2 * (t * Real.cos t)) = 1 / (s ^ 2 + 1) ^ 2
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), 0 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 2 * Real.sin t - 1 / 2 * (t * Real.cos t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 2 * Real.sin t - 1 / 2 * (t * Real.cos t)) = 1 / (s ^ 2 + 1) ^ 2
Decimal coefficients are read as exact rationals:
#cas [inverseLaplace s t] (0.5 / (s - 0.25))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
1/2*exp(1/4*t)- Domain
s > 1/4- Input (proper rational function of s)
(0.5 / (s - 0.25))
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), 1 / 4 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 2 * Real.exp (1 / 4 * t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 2 * Real.exp (1 / 4 * t)) = 0.5 / (s - 0.25)
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), 1 / 4 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 2 * Real.exp (1 / 4 * t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 2 * Real.exp (1 / 4 * t)) = 0.5 / (s - 0.25)
A cubic with the rational root . The quadratic that remains gives the other roots, so every term is exact:
#cas [inverseLaplace s t] (1 / (s ^ 3 + 1))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
1/3*exp(-t) - 1/3*exp(1/2*t)*cos(sqrt(3/4)*t) + 1/2*exp(1/2*t)*sin(sqrt(3/4)*t)/sqrt(3/4)- Domain
s > 1/2- Input (proper rational function of s)
(1 / (s ^ 3 + 1))
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), 1 / 2 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 3 * Real.exp (-t) - 1 / 3 * (Real.exp (1 / 2 * t) * Real.cos (√(3 / 4) * t)) + 1 / 2 * (Real.exp (1 / 2 * t) * (Real.sin (√(3 / 4) * t) / √(3 / 4))))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 3 * Real.exp (-t) - 1 / 3 * (Real.exp (1 / 2 * t) * Real.cos (√(3 / 4) * t)) + 1 / 2 * (Real.exp (1 / 2 * t) * (Real.sin (√(3 / 4) * t) / √(3 / 4)))) = 1 / (s ^ 3 + 1)
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), 1 / 2 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 3 * Real.exp (-t) - 1 / 3 * (Real.exp (1 / 2 * t) * Real.cos (√(3 / 4) * t)) + 1 / 2 * (Real.exp (1 / 2 * t) * (Real.sin (√(3 / 4) * t) / √(3 / 4))))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 3 * Real.exp (-t) - 1 / 3 * (Real.exp (1 / 2 * t) * Real.cos (√(3 / 4) * t)) + 1 / 2 * (Real.exp (1 / 2 * t) * (Real.sin (√(3 / 4) * t) / √(3 / 4)))) = 1 / (s ^ 3 + 1)
A cubic without rational roots. Its roots are known by enclosures that the kernel checks, and the bound is the upper end of the enclosure of the real root :
#cas [inverseLaplace s t] (1 / (s ^ 3 - 2))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed), with the roots of s^3 - 2 = 0: r₁ ∈ (1.25992104, 1.25992106), z₁ = α ± iβ, α ∈ [-0.62996054, -0.62996050], β ∈ [1.09112362, 1.09112366]
1/6*r₁*exp(r₁*t) + re(1/3*z₁)*exp(re(z₁)*t)*cos(im(z₁)*t) - im(1/3*z₁)*exp(re(z₁)*t)*sin(im(z₁)*t)- Domain
s > 1.25992106- Input (proper rational function of s)
(1 / (s ^ 3 - 2))
Checked by Lean’s kernel: Inverse Laplace transform
let r₁ := CAS.AlgRoot.real [-2, 0, 0, 1] 1.25992104 1.25992106; let z₁ := CAS.AlgRoot.complex [-2, 0, 0, 1] (-0.62996052) 1.09112364 2e-8; ∀ (s : ℝ), 62996053 / 50000000 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 6 * r₁ * Real.exp (r₁ * t) + (1 / 3 * z₁).re * (Real.exp (z₁.re * t) * Real.cos (z₁.im * t)) - (1 / 3 * z₁).im * (Real.exp (z₁.re * t) * Real.sin (z₁.im * t)))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 6 * r₁ * Real.exp (r₁ * t) + (1 / 3 * z₁).re * (Real.exp (z₁.re * t) * Real.cos (z₁.im * t)) - (1 / 3 * z₁).im * (Real.exp (z₁.re * t) * Real.sin (z₁.im * t))) = 1 / (s ^ 3 - 2)
The certificate: 1 checked step
Inverse Laplace transform
let r₁ := CAS.AlgRoot.real [-2, 0, 0, 1] 1.25992104 1.25992106; let z₁ := CAS.AlgRoot.complex [-2, 0, 0, 1] (-0.62996052) 1.09112364 2e-8; ∀ (s : ℝ), 62996053 / 50000000 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 / 6 * r₁ * Real.exp (r₁ * t) + (1 / 3 * z₁).re * (Real.exp (z₁.re * t) * Real.cos (z₁.im * t)) - (1 / 3 * z₁).im * (Real.exp (z₁.re * t) * Real.sin (z₁.im * t)))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 / 6 * r₁ * Real.exp (r₁ * t) + (1 / 3 * z₁).re * (Real.exp (z₁.re * t) * Real.cos (z₁.im * t)) - (1 / 3 * z₁).im * (Real.exp (z₁.re * t) * Real.sin (z₁.im * t))) = 1 / (s ^ 3 - 2)
stays whole, and its two pairs of complex roots are enclosed:
#cas [inverseLaplace s t] (1 / (s ^ 4 + 4))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed), with the roots of s^4 + 4 = 0: z₁ = α ± iβ, α ∈ [-1.00000002, -0.99999998], β ∈ [0.99999998, 1.00000002], z₂ = α ± iβ, α ∈ [0.99999998, 1.00000002], β ∈ [0.99999998, 1.00000002]
re(-(1/8*z₁))*exp(re(z₁)*t)*cos(im(z₁)*t) - im(-(1/8*z₁))*exp(re(z₁)*t)*sin(im(z₁)*t) + re(-(1/8*z₂))*exp(re(z₂)*t)*cos(im(z₂)*t) - im(-(1/8*z₂))*exp(re(z₂)*t)*sin(im(z₂)*t)- Domain
s > 1.00000002- Input (proper rational function of s)
(1 / (s ^ 4 + 4))
Checked by Lean’s kernel: Inverse Laplace transform
let z₁ := CAS.AlgRoot.complex [4, 0, 0, 0, 1] (-1) 1 2e-8; let z₂ := CAS.AlgRoot.complex [4, 0, 0, 0, 1] 1 1 2e-8; ∀ (s : ℝ), 50000001 / 50000000 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * ((-(1 / 8 * z₁)).re * (Real.exp (z₁.re * t) * Real.cos (z₁.im * t)) - (-(1 / 8 * z₁)).im * (Real.exp (z₁.re * t) * Real.sin (z₁.im * t)) + (-(1 / 8 * z₂)).re * (Real.exp (z₂.re * t) * Real.cos (z₂.im * t)) - (-(1 / 8 * z₂)).im * (Real.exp (z₂.re * t) * Real.sin (z₂.im * t)))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * ((-(1 / 8 * z₁)).re * (Real.exp (z₁.re * t) * Real.cos (z₁.im * t)) - (-(1 / 8 * z₁)).im * (Real.exp (z₁.re * t) * Real.sin (z₁.im * t)) + (-(1 / 8 * z₂)).re * (Real.exp (z₂.re * t) * Real.cos (z₂.im * t)) - (-(1 / 8 * z₂)).im * (Real.exp (z₂.re * t) * Real.sin (z₂.im * t))) = 1 / (s ^ 4 + 4)
The certificate: 1 checked step
Inverse Laplace transform
let z₁ := CAS.AlgRoot.complex [4, 0, 0, 0, 1] (-1) 1 2e-8; let z₂ := CAS.AlgRoot.complex [4, 0, 0, 0, 1] 1 1 2e-8; ∀ (s : ℝ), 50000001 / 50000000 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * ((-(1 / 8 * z₁)).re * (Real.exp (z₁.re * t) * Real.cos (z₁.im * t)) - (-(1 / 8 * z₁)).im * (Real.exp (z₁.re * t) * Real.sin (z₁.im * t)) + (-(1 / 8 * z₂)).re * (Real.exp (z₂.re * t) * Real.cos (z₂.im * t)) - (-(1 / 8 * z₂)).im * (Real.exp (z₂.re * t) * Real.sin (z₂.im * t)))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * ((-(1 / 8 * z₁)).re * (Real.exp (z₁.re * t) * Real.cos (z₁.im * t)) - (-(1 / 8 * z₁)).im * (Real.exp (z₁.re * t) * Real.sin (z₁.im * t)) + (-(1 / 8 * z₂)).re * (Real.exp (z₂.re * t) * Real.cos (z₂.im * t)) - (-(1 / 8 * z₂)).im * (Real.exp (z₂.re * t) * Real.sin (z₂.im * t))) = 1 / (s ^ 4 + 4)
Applications (2)
Solving an initial-value problem by transforms. For y'' + 4 * y = 0 with y 0 = 1 and y' 0 = 0, the transform satisfies , so , and the solution is :
#cas [inverseLaplace s t] (s / (s ^ 2 + 4))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
cos(2*t)- Domain
s > 0- Input (proper rational function of s)
(s / (s ^ 2 + 4))
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), 0 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * Real.cos (2 * t)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * Real.cos (2 * t) = s / (s ^ 2 + 4)
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), 0 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * Real.cos (2 * t)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * Real.cos (2 * t) = s / (s ^ 2 + 4)
The integral equation of the printed theorem as a hypothesis in a proof, specialized at . Only the three standard axioms are used:
theorem inverseLaplace_at_one (h : ∀ s : ℝ, 0 < s → ∫ t in Set.Ioi (0 : ℝ), Real.exp (-(s * t)) * (1 / 2 * Real.sin (2 * t)) = 1 / (s ^ 2 + 4)) : ∫ t in Set.Ioi (0 : ℝ), Real.exp (-(1 * t)) * (1 / 2 * Real.sin (2 * t)) = 1 / 5 := by rw [h 1 one_pos] norm_num #print axioms inverseLaplace_at_one
inverseLaplace_at_one depends on the axioms propext, Classical.choice, Quot.sound.
Properties and Relations (2)
Dividing by integrates: is the transform of . Here :
#cas [inverseLaplace s t] (1 / (s * (s ^ 2 + 1)))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
1 - cos(t)- Domain
s > 0- Input (proper rational function of s)
(1 / (s * (s ^ 2 + 1)))
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), 0 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 - Real.cos t)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 - Real.cos t) = 1 / (s * (s ^ 2 + 1))
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), 0 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (1 - Real.cos t)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (1 - Real.cos t) = 1 / (s * (s ^ 2 + 1))
Replacing by multiplies the function by . The terms of a divisor may come in any order:
#cas [inverseLaplace s t] ((s + 3) / (s ^ 2 + 5 + 2 * s))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
exp(-t)*cos(2*t) + exp(-t)*sin(2*t)- Domain
s > -1- Input (proper rational function of s)
((s + 3) / (s ^ 2 + 5 + 2 * s))
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), -1 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (Real.exp (-t) * Real.cos (2 * t) + Real.exp (-t) * Real.sin (2 * t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (Real.exp (-t) * Real.cos (2 * t) + Real.exp (-t) * Real.sin (2 * t)) = (s + 3) / (s ^ 2 + 5 + 2 * s)
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), -1 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * (Real.exp (-t) * Real.cos (2 * t) + Real.exp (-t) * Real.sin (2 * t))) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * (Real.exp (-t) * Real.cos (2 * t) + Real.exp (-t) * Real.sin (2 * t)) = (s + 3) / (s ^ 2 + 5 + 2 * s)
Possible Issues (6)
The theorem is about F as written, and Lean’s division by zero gives 0. So the bound is , above the zero of a written divisor, although the transform of exists for :
#cas [inverseLaplace s t] ((s - 2) / ((s - 2) * (s + 1)))
an inverse Laplace transform (its transform is F for s > σ; uniqueness is not claimed)
exp(-t)- Domain
s > 2- Input (proper rational function of s)
((s - 2) / ((s - 2) * (s + 1)))
Checked by Lean’s kernel: Inverse Laplace transform
∀ (s : ℝ), 2 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * Real.exp (-t)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * Real.exp (-t) = (s - 2) / ((s - 2) * (s + 1))
The certificate: 1 checked step
Inverse Laplace transform
∀ (s : ℝ), 2 < s → MeasureTheory.IntegrableOn (fun t ↦ Real.exp (-(s * t)) * Real.exp (-t)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, Real.exp (-(s * t)) * Real.exp (-t) = (s - 2) / ((s - 2) * (s + 1))
An improper F has a polynomial part, the transform of Dirac deltas and their derivatives, and is refused. Subtract the polynomial part, here , and invert the proper rest :
#cas [inverseLaplace s t] (s ^ 2 / (s + 1))
Error
inverseLaplace: F is not proper; its polynomial part (Dirac deltas and their derivatives) is not supported
A factor shifts the inverse transform by , and is refused. Invert and shift the result by hand:
#cas [inverseLaplace s t] (exp (-s) / s)
Error
inverseLaplace: expected a proper rational function of s with rational coefficients (parameters are not supported)
Parameters are refused:
#cas [inverseLaplace s t] (1 / (s - a))
Error
inverseLaplace: expected a proper rational function of s with rational coefficients (parameters are not supported)
A repeated factor whose roots are known only by enclosures is refused:
#cas [inverseLaplace s t] (1 / (s ^ 3 - 2) ^ 2)
Error
inverseLaplace: the factor s^3 - 2 is repeated and its roots are known only by enclosures, which is not supported
The divisors must be polynomials. Write this one as (s - 1) / (s ^ 2 - 1):
#cas [inverseLaplace s t] (1 / ((s ^ 2 - 1) / (s - 1)))
Error
inverseLaplace: a divisor is itself a quotient; write F with polynomial divisors
