Metamath Proof Explorer


Theorem normpar

Description: Parallelogram law for norms. Remark 3.4(B) of Beran p. 98. (Contributed by NM, 15-Apr-2007) (New usage is discouraged.)

Ref Expression
Assertion normpar A B norm A - B 2 + norm A + B 2 = 2 norm A 2 + 2 norm B 2

Proof

Step Hyp Ref Expression
1 fvoveq1 A = if A A 0 norm A - B = norm if A A 0 - B
2 1 oveq1d A = if A A 0 norm A - B 2 = norm if A A 0 - B 2
3 fvoveq1 A = if A A 0 norm A + B = norm if A A 0 + B
4 3 oveq1d A = if A A 0 norm A + B 2 = norm if A A 0 + B 2
5 2 4 oveq12d A = if A A 0 norm A - B 2 + norm A + B 2 = norm if A A 0 - B 2 + norm if A A 0 + B 2
6 fveq2 A = if A A 0 norm A = norm if A A 0
7 6 oveq1d A = if A A 0 norm A 2 = norm if A A 0 2
8 7 oveq2d A = if A A 0 2 norm A 2 = 2 norm if A A 0 2
9 8 oveq1d A = if A A 0 2 norm A 2 + 2 norm B 2 = 2 norm if A A 0 2 + 2 norm B 2
10 5 9 eqeq12d A = if A A 0 norm A - B 2 + norm A + B 2 = 2 norm A 2 + 2 norm B 2 norm if A A 0 - B 2 + norm if A A 0 + B 2 = 2 norm if A A 0 2 + 2 norm B 2
11 oveq2 B = if B B 0 if A A 0 - B = if A A 0 - if B B 0
12 11 fveq2d B = if B B 0 norm if A A 0 - B = norm if A A 0 - if B B 0
13 12 oveq1d B = if B B 0 norm if A A 0 - B 2 = norm if A A 0 - if B B 0 2
14 oveq2 B = if B B 0 if A A 0 + B = if A A 0 + if B B 0
15 14 fveq2d B = if B B 0 norm if A A 0 + B = norm if A A 0 + if B B 0
16 15 oveq1d B = if B B 0 norm if A A 0 + B 2 = norm if A A 0 + if B B 0 2
17 13 16 oveq12d B = if B B 0 norm if A A 0 - B 2 + norm if A A 0 + B 2 = norm if A A 0 - if B B 0 2 + norm if A A 0 + if B B 0 2
18 fveq2 B = if B B 0 norm B = norm if B B 0
19 18 oveq1d B = if B B 0 norm B 2 = norm if B B 0 2
20 19 oveq2d B = if B B 0 2 norm B 2 = 2 norm if B B 0 2
21 20 oveq2d B = if B B 0 2 norm if A A 0 2 + 2 norm B 2 = 2 norm if A A 0 2 + 2 norm if B B 0 2
22 17 21 eqeq12d B = if B B 0 norm if A A 0 - B 2 + norm if A A 0 + B 2 = 2 norm if A A 0 2 + 2 norm B 2 norm if A A 0 - if B B 0 2 + norm if A A 0 + if B B 0 2 = 2 norm if A A 0 2 + 2 norm if B B 0 2
23 ifhvhv0 if A A 0
24 ifhvhv0 if B B 0
25 23 24 normpari norm if A A 0 - if B B 0 2 + norm if A A 0 + if B B 0 2 = 2 norm if A A 0 2 + 2 norm if B B 0 2
26 10 22 25 dedth2h A B norm A - B 2 + norm A + B 2 = 2 norm A 2 + 2 norm B 2