Metamath Proof Explorer


Theorem fvpr2g

Description: The value of a function with a domain of (at most) two elements. (Contributed by Alexander van der Vekens, 3-Dec-2017)

Ref Expression
Assertion fvpr2g B V D W A B A C B D B = D

Proof

Step Hyp Ref Expression
1 prcom A C B D = B D A C
2 df-pr B D A C = B D A C
3 1 2 eqtri A C B D = B D A C
4 3 fveq1i A C B D B = B D A C B
5 fvunsn A B B D A C B = B D B
6 4 5 eqtrid A B A C B D B = B D B
7 6 3ad2ant3 B V D W A B A C B D B = B D B
8 fvsng B V D W B D B = D
9 8 3adant3 B V D W A B B D B = D
10 7 9 eqtrd B V D W A B A C B D B = D