We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d5975c commit e15d800Copy full SHA for e15d800
1 file changed
Probability/Probability/Basic.lean
@@ -22,10 +22,15 @@ variable {n : ℕ} {P : Findist n} {B : FinRV n Bool}
22
theorem ge_zero : 0 ≤ ℙ[ B // P ] :=
23
by rw [Ex.prob_eq_exp_ind]
24
have h : (0 : FinRV n ℚ) ≤ 𝕀∘B := ind_nneg
25
- exact Ex.exp_monotone h
+ calc 0 = 𝔼[0 // P] := exp_const.symm
26
+ _ ≤ 𝔼[𝕀 ∘ B//P] := exp_monotone h
27
28
-theorem le_one : ℙ[B // P] ≤ 1 := sorry
29
+theorem le_one : ℙ[B // P] ≤ 1 :=
30
+ by rw [Ex.prob_eq_exp_ind]
31
+ have h : 𝕀∘B ≤ (1 : FinRV n ℚ) := ind_le_one
32
+ calc 𝔼[𝕀 ∘ B//P] ≤ 𝔼[1 // P] := exp_monotone h
33
+ _ = 1 := exp_const
34
35
theorem in_prob (P : Findist n) : Prob ℙ[B // P] := ⟨ge_zero, le_one⟩
36
0 commit comments