Metamath Proof Explorer


Theorem funray

Description: Show that the Ray relationship is a function. (Contributed by Scott Fenton, 21-Oct-2013) (Revised by Mario Carneiro, 19-Apr-2014)

Ref Expression
Assertion funray FunRay

Proof

Step Hyp Ref Expression
1 reeanv nmp𝔼na𝔼npar=x𝔼n|pOutsideOfaxp𝔼ma𝔼mpas=x𝔼m|pOutsideOfaxnp𝔼na𝔼npar=x𝔼n|pOutsideOfaxmp𝔼ma𝔼mpas=x𝔼m|pOutsideOfax
2 simp1 p𝔼na𝔼npap𝔼n
3 simp1 p𝔼ma𝔼mpap𝔼m
4 axdimuniq np𝔼nmp𝔼mn=m
5 fveq2 n=m𝔼n=𝔼m
6 rabeq 𝔼n=𝔼mx𝔼n|pOutsideOfax=x𝔼m|pOutsideOfax
7 5 6 syl n=mx𝔼n|pOutsideOfax=x𝔼m|pOutsideOfax
8 7 eqeq2d n=mr=x𝔼n|pOutsideOfaxr=x𝔼m|pOutsideOfax
9 8 anbi1d n=mr=x𝔼n|pOutsideOfaxs=x𝔼m|pOutsideOfaxr=x𝔼m|pOutsideOfaxs=x𝔼m|pOutsideOfax
10 eqtr3 r=x𝔼m|pOutsideOfaxs=x𝔼m|pOutsideOfaxr=s
11 9 10 syl6bi n=mr=x𝔼n|pOutsideOfaxs=x𝔼m|pOutsideOfaxr=s
12 4 11 syl np𝔼nmp𝔼mr=x𝔼n|pOutsideOfaxs=x𝔼m|pOutsideOfaxr=s
13 12 an4s nmp𝔼np𝔼mr=x𝔼n|pOutsideOfaxs=x𝔼m|pOutsideOfaxr=s
14 13 ex nmp𝔼np𝔼mr=x𝔼n|pOutsideOfaxs=x𝔼m|pOutsideOfaxr=s
15 14 com3l p𝔼np𝔼mr=x𝔼n|pOutsideOfaxs=x𝔼m|pOutsideOfaxnmr=s
16 2 3 15 syl2an p𝔼na𝔼npap𝔼ma𝔼mpar=x𝔼n|pOutsideOfaxs=x𝔼m|pOutsideOfaxnmr=s
17 16 imp p𝔼na𝔼npap𝔼ma𝔼mpar=x𝔼n|pOutsideOfaxs=x𝔼m|pOutsideOfaxnmr=s
18 17 an4s p𝔼na𝔼npar=x𝔼n|pOutsideOfaxp𝔼ma𝔼mpas=x𝔼m|pOutsideOfaxnmr=s
19 18 com12 nmp𝔼na𝔼npar=x𝔼n|pOutsideOfaxp𝔼ma𝔼mpas=x𝔼m|pOutsideOfaxr=s
20 19 rexlimivv nmp𝔼na𝔼npar=x𝔼n|pOutsideOfaxp𝔼ma𝔼mpas=x𝔼m|pOutsideOfaxr=s
21 1 20 sylbir np𝔼na𝔼npar=x𝔼n|pOutsideOfaxmp𝔼ma𝔼mpas=x𝔼m|pOutsideOfaxr=s
22 21 gen2 rsnp𝔼na𝔼npar=x𝔼n|pOutsideOfaxmp𝔼ma𝔼mpas=x𝔼m|pOutsideOfaxr=s
23 eqeq1 r=sr=x𝔼n|pOutsideOfaxs=x𝔼n|pOutsideOfax
24 23 anbi2d r=sp𝔼na𝔼npar=x𝔼n|pOutsideOfaxp𝔼na𝔼npas=x𝔼n|pOutsideOfax
25 24 rexbidv r=snp𝔼na𝔼npar=x𝔼n|pOutsideOfaxnp𝔼na𝔼npas=x𝔼n|pOutsideOfax
26 5 eleq2d n=mp𝔼np𝔼m
27 5 eleq2d n=ma𝔼na𝔼m
28 26 27 3anbi12d n=mp𝔼na𝔼npap𝔼ma𝔼mpa
29 7 eqeq2d n=ms=x𝔼n|pOutsideOfaxs=x𝔼m|pOutsideOfax
30 28 29 anbi12d n=mp𝔼na𝔼npas=x𝔼n|pOutsideOfaxp𝔼ma𝔼mpas=x𝔼m|pOutsideOfax
31 30 cbvrexvw np𝔼na𝔼npas=x𝔼n|pOutsideOfaxmp𝔼ma𝔼mpas=x𝔼m|pOutsideOfax
32 25 31 bitrdi r=snp𝔼na𝔼npar=x𝔼n|pOutsideOfaxmp𝔼ma𝔼mpas=x𝔼m|pOutsideOfax
33 32 mo4 *rnp𝔼na𝔼npar=x𝔼n|pOutsideOfaxrsnp𝔼na𝔼npar=x𝔼n|pOutsideOfaxmp𝔼ma𝔼mpas=x𝔼m|pOutsideOfaxr=s
34 22 33 mpbir *rnp𝔼na𝔼npar=x𝔼n|pOutsideOfax
35 34 funoprab Funpar|np𝔼na𝔼npar=x𝔼n|pOutsideOfax
36 df-ray Ray=par|np𝔼na𝔼npar=x𝔼n|pOutsideOfax
37 36 funeqi FunRayFunpar|np𝔼na𝔼npar=x𝔼n|pOutsideOfax
38 35 37 mpbir FunRay