How can I prove the following goal (which I believe to be true) using mathcomp.analysis?
From mathcomp Require Import all_ssreflect all_algebra.
From mathcomp.analysis Require Import reals distr.
Open Scope ring_scope.
Parameter R : realType.
Goal forall d:{distr R / R}, \E_[d] (fun r => r) <= \E_[d] (fun r => r + 1).
intro. apply le_exp. (* stuck *)
It compares the expected value of two expressions, r and r+1, in any distribution of real numbers. That lemma le_exp
of mathcomp.analysis is informally:
has_esp μ f1 → has_esp μ f2 → (∀ x, f1 x ≤ f2 x) → \E_[μ] f1 ≤ \E_[μ] f2
After applying le_exp
, I have trouble proving has_esp
, which needs proving the two functions summable
.
Can it be proved? How?
Page of mathcomp.analysis: https://github.com/math-comp/analysis