Metamath Proof Explorer


Theorem ngpds3r

Description: Write the distance between two points in terms of distance from zero. (Contributed by Mario Carneiro, 2-Oct-2015)

Ref Expression
Hypotheses ngpds2.x 𝑋 = ( Base ‘ 𝐺 )
ngpds2.z 0 = ( 0g𝐺 )
ngpds2.m = ( -g𝐺 )
ngpds2.d 𝐷 = ( dist ‘ 𝐺 )
Assertion ngpds3r ( ( 𝐺 ∈ NrmGrp ∧ 𝐴𝑋𝐵𝑋 ) → ( 𝐴 𝐷 𝐵 ) = ( 0 𝐷 ( 𝐵 𝐴 ) ) )

Proof

Step Hyp Ref Expression
1 ngpds2.x 𝑋 = ( Base ‘ 𝐺 )
2 ngpds2.z 0 = ( 0g𝐺 )
3 ngpds2.m = ( -g𝐺 )
4 ngpds2.d 𝐷 = ( dist ‘ 𝐺 )
5 ngpxms ( 𝐺 ∈ NrmGrp → 𝐺 ∈ ∞MetSp )
6 1 4 xmssym ( ( 𝐺 ∈ ∞MetSp ∧ 𝐴𝑋𝐵𝑋 ) → ( 𝐴 𝐷 𝐵 ) = ( 𝐵 𝐷 𝐴 ) )
7 5 6 syl3an1 ( ( 𝐺 ∈ NrmGrp ∧ 𝐴𝑋𝐵𝑋 ) → ( 𝐴 𝐷 𝐵 ) = ( 𝐵 𝐷 𝐴 ) )
8 1 2 3 4 ngpds3 ( ( 𝐺 ∈ NrmGrp ∧ 𝐵𝑋𝐴𝑋 ) → ( 𝐵 𝐷 𝐴 ) = ( 0 𝐷 ( 𝐵 𝐴 ) ) )
9 8 3com23 ( ( 𝐺 ∈ NrmGrp ∧ 𝐴𝑋𝐵𝑋 ) → ( 𝐵 𝐷 𝐴 ) = ( 0 𝐷 ( 𝐵 𝐴 ) ) )
10 7 9 eqtrd ( ( 𝐺 ∈ NrmGrp ∧ 𝐴𝑋𝐵𝑋 ) → ( 𝐴 𝐷 𝐵 ) = ( 0 𝐷 ( 𝐵 𝐴 ) ) )