Zulip Chat Archive

Stream: new members

Topic: Evaluating Integral at Infinity


Claus Clausen (Oct 24 2023 at 15:08):

Hey, I am trying to prove the exponential density integrates to 1 but am currently stuck as I can not work around the Infinity in the Interval.
So what I want to show is the following:

import Mathlib.Probability.Notation
import Mathlib.Probability.Density

example {rate :  } (ratePos : 0 < rate) : rate *  (a : ) in Set.Ici 0, Real.exp (-(rate * a)) = 1 := sorry

--I thought I might be able to show it by proving that the Intervals [0,n] tend to Set.Ici 0 but I am not sure how to use this information correctly.

example: Filter.Tendsto (fun n :   =>  (a : ) in (Set.Icc (0 : ) n), Real.exp (-(rate * a))) Filter.atTop (nhds ( a in  (n : ), (Set.Icc (0 : ) n), Real.exp (-(rate * a)))) := sorry

any help how to use the additional information or another direction would be helpful

Patrick Massot (Oct 24 2023 at 15:13):

You should take a look at https://leanprover-community.github.io/mathlib4_docs/Mathlib/Analysis/SpecialFunctions/ImproperIntegrals.html.


Last updated: Dec 20 2023 at 11:08 UTC