Counting esum - #2063
Counting esum#2063lyonel2017 wants to merge 3 commits into
Conversation
4e89861 to
9db0b40
Compare
|
PR #2062 merged -> need rebasing |
9db0b40 to
09ac8fd
Compare
I made a rebase. |
|
Thanks for the rebase! |
09ac8fd to
e6ed93e
Compare
|
Note that this PR has clamp but does not actually use it, it can be removed since moreover it is the target of another PR. |
e6ed93e to
6e97a98
Compare
This PR is now rebase on top of master. |
|
@lyonel2017 where do you use (I took the liberty to adapt naming to the rest of the library, trying to preserve consistency as much as possible still taking your proposals into account, do not hesitate to share concerns if any.) |
I made a small experiment in the context of #2116 to check that the definition of expectation of #2064 and from |
| Arguments bigcup_setD1 {T I} x. | ||
| Arguments bigcap_setD1 {T I} x. | ||
|
|
||
| Lemma bigcup_idset1 {T : Type} (P : set T) : \bigcup_(i in P) [set i] = P. |
There was a problem hiding this comment.
is this lemma truly necessary? looks like a special case of bigcup_imset1
| (**md**************************************************************************) | ||
| (* # *) | ||
| (* *) | ||
| (* ``` *) | ||
| (* discrete_measurable_space == alias for the type of discrete measurable *) | ||
| (* types *) | ||
| (* ``` *) | ||
| (******************************************************************************) |
There was a problem hiding this comment.
the header could benefit from a bit of description text
| Qed. | ||
|
|
||
| Lemma discrete_integral_sum g (A : set T) : finite_set A -> | ||
| (forall x, 0 <= g x) -> |
There was a problem hiding this comment.
this assumption should not be needed
There was a problem hiding this comment.
plus, you could actually prove integral_counting_esum first and use integral_mkcond/esum_mkcond to derive this version
| Lemma integral_counting_esum (f : T -> \bar R) : (forall x, 0 <= f x) -> | ||
| \int[@counting U R]_x f x = \esum_(x in [set: T]) f x. |
There was a problem hiding this comment.
again like the lemma above, the lemma should hold for any function, not just non-negative ones.
| Lemma nonempty_esumy {R : realType} {T : choiceType} (A : set T) : A !=set0 -> | ||
| \esum_(_ in A) +oo%E = +oo%E :> \bar R. |
There was a problem hiding this comment.
would this be more generally applicable:
| Lemma nonempty_esumy {R : realType} {T : choiceType} (A : set T) : A !=set0 -> | |
| \esum_(_ in A) +oo%E = +oo%E :> \bar R. | |
| Lemma nonempty_esumy {R : realType} {T : choiceType} (A : set T) : | |
| A !=set0 -> \esum_(x in A) cst +oo%E x = +oo%E :> \bar R. |
There was a problem hiding this comment.
(maybe it's an unnecessary complication)
| Lemma infinite_esum_cst {R : realType} {T : choiceType} (c : \bar R) (A : set T) : | ||
| (0 < c)%E -> infinite_set A -> \esum_(_ in A) c = +oo%E. |
There was a problem hiding this comment.
similarly to the above, you could generalize it to:
| Lemma infinite_esum_cst {R : realType} {T : choiceType} (c : \bar R) (A : set T) : | |
| (0 < c)%E -> infinite_set A -> \esum_(_ in A) c = +oo%E. | |
| Lemma infinite_esum_pos {R : realType} {T : choiceType} (c : \bar R) (f : T -> \bar R) (A : set T) : | |
| (0 < c)%E -> (forall x, c <= f x)%E -> infinite_set A -> \esum_(x in A) f x = +oo%E. |
| theories/showcase/summability.v | ||
| theories/showcase/pnt.v | ||
|
|
||
|
|
| - in `classical_sets.v` | ||
| + lemma `bigcup_idset1` | ||
|
|
||
| - in `esumv.v`: |
Motivation for this change
Provide a connection between
esumandlesbegue_integrale(extracted from #2049).Depends on #2062.
Checklist
CHANGELOG_UNRELEASED.mdReminder to reviewers