[Merged by Bors] - feat(Probability/Moments): add mgf_smul_left#19798
[Merged by Bors] - feat(Probability/Moments): add mgf_smul_left#19798Vilin97 wants to merge 2 commits into
mgf_smul_left#19798Conversation
PR summary 2e46ac1b16Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diff
You can run this locally as follows## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
|
mgf_smul_left.mgf_smul_left
| theorem cgf_neg : cgf (-X) μ t = cgf X μ (-t) := by simp_rw [cgf, mgf_neg] | ||
|
|
||
| theorem mgf_smul_left (α : ℝ) : mgf (α • X) μ t = mgf X μ (t * α) := by | ||
| simp_rw [mgf, Pi.smul_apply, smul_eq_mul, mul_assoc] |
There was a problem hiding this comment.
| simp_rw [mgf, Pi.smul_apply, smul_eq_mul, mul_assoc] | |
| simp_rw [mgf, Pi.smul_apply, smul_eq_mul, mul_assoc] |
There was a problem hiding this comment.
Is there a good reason for reordering the variables? We have alpha to the left of t on one side, and t to the left of alpha on the other side.
There was a problem hiding this comment.
The reordering is an illusion. After an application of mgf, the goal is ∫ (x : Ω), rexp (t * (α • X) x) ∂μ = ∫ (x : Ω), rexp (t * α * X x) ∂μ. Having said that, I have now switched the statement to α * t with an extra application of mul_comm
Ruben-VandeVelde
left a comment
There was a problem hiding this comment.
This seems fine.
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde. |
|
bors merge |
Add `mgf_smul_left`. While there is a lemma [IndepFun.mgf_add](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Probability/Moments.html#ProbabilityTheory.IndepFun.mgf_add) that describes the additive behavior of the moment generating function, there is currently no lemma describing the (scalar-)multiplicative behavior. This lemma is one of the ~4 supporting lemmas we have proved on our way to formalizing the central limit theorem. We will make PRs for other lemmas as well. Co-authored-by: Siyuan Ge <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
mgf_smul_leftmgf_smul_left
Add
mgf_smul_left.While there is a lemma IndepFun.mgf_add that describes the additive behavior of the moment generating function, there is currently no lemma describing the (scalar-)multiplicative behavior.
This lemma is one of the ~4 supporting lemmas we have proved on our way to formalizing the central limit theorem. We will make PRs for other lemmas as well.
Co-authored-by: Siyuan Ge [email protected]