**Description:** Define the preimage set mapping operator. In probability theory, the
notation P ( X = A ) denotes the probability that a random variable
X takes the value A . We introduce here an operator which
enables to write this in Metamath as ( P( X oRVC*I A ) )** , and
keep a similar notation. Because with this notation ( X oRVC *I A )
is a set, we can also apply it to conditional probabilities, like in
( P( X oRVC*I A ) | ( Y oRVC *I B ) ) ) .

The oRVC operator transforms a relation R into an operation taking a random variable X and a constant C , and returning the preimage through X of the equivalence class of C .

The most commonly used relations are: - equality: { X = A } as
( X oRVC*I A )** cf. ideq - elementhood: { X e. A } as
( X oRVC *E A ) cf. epel - less-than: { X <_ A } as
( X oRVC <_ A )

Even though it is primarily designed to be used within probability theory and with random variables, this operator is defined on generic functions, and could be used in other fields, e.g., for continuous functions. (Contributed by Thierry Arnoux, 15-Jan-2017)

Ref | Expression | ||
---|---|---|---|

Assertion | df-orvc | ⊢ ∘_{RV/𝑐} 𝑅 = ( 𝑥 ∈ { 𝑥 ∣ Fun 𝑥 } , 𝑎 ∈ V ↦ ( ^{◡} 𝑥 “ { 𝑦 ∣ 𝑦 𝑅 𝑎 } ) ) |

Step | Hyp | Ref | Expression |
---|---|---|---|

0 | cR | ⊢ 𝑅 | |

1 | 0 | corvc | ⊢ ∘_{RV/𝑐} 𝑅 |

2 | vx | ⊢ 𝑥 | |

3 | 2 | cv | ⊢ 𝑥 |

4 | 3 | wfun | ⊢ Fun 𝑥 |

5 | 4 2 | cab | ⊢ { 𝑥 ∣ Fun 𝑥 } |

6 | va | ⊢ 𝑎 | |

7 | cvv | ⊢ V | |

8 | 3 | ccnv | ⊢ ^{◡} 𝑥 |

9 | vy | ⊢ 𝑦 | |

10 | 9 | cv | ⊢ 𝑦 |

11 | 6 | cv | ⊢ 𝑎 |

12 | 10 11 0 | wbr | ⊢ 𝑦 𝑅 𝑎 |

13 | 12 9 | cab | ⊢ { 𝑦 ∣ 𝑦 𝑅 𝑎 } |

14 | 8 13 | cima | ⊢ ( ^{◡} 𝑥 “ { 𝑦 ∣ 𝑦 𝑅 𝑎 } ) |

15 | 2 6 5 7 14 | cmpo | ⊢ ( 𝑥 ∈ { 𝑥 ∣ Fun 𝑥 } , 𝑎 ∈ V ↦ ( ^{◡} 𝑥 “ { 𝑦 ∣ 𝑦 𝑅 𝑎 } ) ) |

16 | 1 15 | wceq | ⊢ ∘_{RV/𝑐} 𝑅 = ( 𝑥 ∈ { 𝑥 ∣ Fun 𝑥 } , 𝑎 ∈ V ↦ ( ^{◡} 𝑥 “ { 𝑦 ∣ 𝑦 𝑅 𝑎 } ) ) |