Metamath Proof Explorer


Theorem mbfi1fseq

Description: A characterization of measurability in terms of simple functions (this is an if and only if for nonnegative functions, although we don't prove it). Any nonnegative measurable function is the limit of an increasing sequence of nonnegative simple functions. This proof is an example of a poor de Bruijn factor - the formalized proof is much longer than an average hand proof, which usually just describes the function G and "leaves the details as an exercise to the reader". (Contributed by Mario Carneiro, 16-Aug-2014) (Revised by Mario Carneiro, 23-Aug-2014)

Ref Expression
Hypotheses mbfi1fseq.1 φ F MblFn
mbfi1fseq.2 φ F : 0 +∞
Assertion mbfi1fseq φ g g : dom 1 n 0 𝑝 f g n g n f g n + 1 x n g n x F x

Proof

Step Hyp Ref Expression
1 mbfi1fseq.1 φ F MblFn
2 mbfi1fseq.2 φ F : 0 +∞
3 oveq2 j = k 2 j = 2 k
4 3 oveq2d j = k F z 2 j = F z 2 k
5 4 fveq2d j = k F z 2 j = F z 2 k
6 5 3 oveq12d j = k F z 2 j 2 j = F z 2 k 2 k
7 fveq2 z = y F z = F y
8 7 fvoveq1d z = y F z 2 k = F y 2 k
9 8 oveq1d z = y F z 2 k 2 k = F y 2 k 2 k
10 6 9 cbvmpov j , z F z 2 j 2 j = k , y F y 2 k 2 k
11 eleq1w y = x y m m x m m
12 oveq2 y = x m j , z F z 2 j 2 j y = m j , z F z 2 j 2 j x
13 12 breq1d y = x m j , z F z 2 j 2 j y m m j , z F z 2 j 2 j x m
14 13 12 ifbieq1d y = x if m j , z F z 2 j 2 j y m m j , z F z 2 j 2 j y m = if m j , z F z 2 j 2 j x m m j , z F z 2 j 2 j x m
15 11 14 ifbieq1d y = x if y m m if m j , z F z 2 j 2 j y m m j , z F z 2 j 2 j y m 0 = if x m m if m j , z F z 2 j 2 j x m m j , z F z 2 j 2 j x m 0
16 15 cbvmptv y if y m m if m j , z F z 2 j 2 j y m m j , z F z 2 j 2 j y m 0 = x if x m m if m j , z F z 2 j 2 j x m m j , z F z 2 j 2 j x m 0
17 negeq m = k m = k
18 id m = k m = k
19 17 18 oveq12d m = k m m = k k
20 19 eleq2d m = k x m m x k k
21 oveq1 m = k m j , z F z 2 j 2 j x = k j , z F z 2 j 2 j x
22 21 18 breq12d m = k m j , z F z 2 j 2 j x m k j , z F z 2 j 2 j x k
23 22 21 18 ifbieq12d m = k if m j , z F z 2 j 2 j x m m j , z F z 2 j 2 j x m = if k j , z F z 2 j 2 j x k k j , z F z 2 j 2 j x k
24 20 23 ifbieq1d m = k if x m m if m j , z F z 2 j 2 j x m m j , z F z 2 j 2 j x m 0 = if x k k if k j , z F z 2 j 2 j x k k j , z F z 2 j 2 j x k 0
25 24 mpteq2dv m = k x if x m m if m j , z F z 2 j 2 j x m m j , z F z 2 j 2 j x m 0 = x if x k k if k j , z F z 2 j 2 j x k k j , z F z 2 j 2 j x k 0
26 16 25 syl5eq m = k y if y m m if m j , z F z 2 j 2 j y m m j , z F z 2 j 2 j y m 0 = x if x k k if k j , z F z 2 j 2 j x k k j , z F z 2 j 2 j x k 0
27 26 cbvmptv m y if y m m if m j , z F z 2 j 2 j y m m j , z F z 2 j 2 j y m 0 = k x if x k k if k j , z F z 2 j 2 j x k k j , z F z 2 j 2 j x k 0
28 1 2 10 27 mbfi1fseqlem6 φ g g : dom 1 n 0 𝑝 f g n g n f g n + 1 x n g n x F x