Add lemma le0_expectation_cdf#1847
Open
Yosuke-Ito-345 wants to merge 1 commit intomath-comp:masterfrom
Open
Conversation
Contributor
Author
|
@affeldt-aist @t6s |
t6s
reviewed
Feb 17, 2026
Member
t6s
left a comment
There was a problem hiding this comment.
I quickly checked the changes and added a few comments. I will further look into the proofs of two main additions.
|
|
||
| HB.instance Definition _ f g := min_mfun_subproof f g. | ||
|
|
||
| Definition min_mfun f g : {mfun aT >-> _} := f \min g. |
Member
There was a problem hiding this comment.
min_mfun should be added to the header doc.
|
|
||
| Let mu : {measure set _ -> \bar R} := @lebesgue_measure R. | ||
|
|
||
| Lemma lebesgue_measure_oppr A (mA : measurable A) : |
Member
There was a problem hiding this comment.
I suggest renaming this to lebesgue_measureN.
| - by rewrite set_itv_ge ?wlength0// bnd_simp -leNgt. | ||
| Qed. | ||
|
|
||
| Lemma ge0_integral_oppr (f : R -> \bar R) |
Member
There was a problem hiding this comment.
I suggest ge0_integral_pushforwardN.
| by apply: eq_set => r; rewrite in_itv/= s_ge0. | ||
| Qed. | ||
|
|
||
| Lemma ge0_expectation_prob_ge (X : {RV P >-> R}) : (forall x, 0 <= X x)%R -> |
Member
There was a problem hiding this comment.
What about giving a name to this integrand?
It should be equal to the "closed version" of ccdf.
Definition ccdf P X r := distribution P X `]r, +oo[.
Definition this_integrand P X r := distribution P X `[r, +oo[.
(However I myself do not come up with a good name.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation for this change
Add lemma
le0_expectation_cdf, which is the counterpart of lemmage0_expectation_ccdf.Checklist
added corresponding entries in
CHANGELOG_UNRELEASED.mdN.B. I created
CHANGELOG_UNRELEASED_new.mdbecause the currentCHANGELOG_UNRELEASED.mdappeared to be old.added corresponding documentation in the headers
Reference: How to document
Merge policy
As a rule of thumb:
all compile are preferentially merged into master.
Reminder to reviewers