MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  cphpyth Structured version   Visualization version   GIF version

Theorem cphpyth 25170
Description: The pythagorean theorem for a subcomplex pre-Hilbert space. The square of the norm of the sum of two orthogonal vectors (i.e., whose inner product is 0) is the sum of the squares of their norms. Problem 2 in [Kreyszig] p. 135. This is Metamath 100 proof #4. (Contributed by NM, 17-Apr-2008.) (Revised by SN, 22-Sep-2024.)
Hypotheses
Ref Expression
cphpyth.v 𝑉 = (Base‘𝑊)
cphpyth.h , = (·𝑖𝑊)
cphpyth.p + = (+g𝑊)
cphpyth.n 𝑁 = (norm‘𝑊)
cphpyth.w (𝜑𝑊 ∈ ℂPreHil)
cphpyth.a (𝜑𝐴𝑉)
cphpyth.b (𝜑𝐵𝑉)
Assertion
Ref Expression
cphpyth ((𝜑 ∧ (𝐴 , 𝐵) = 0) → ((𝑁‘(𝐴 + 𝐵))↑2) = (((𝑁𝐴)↑2) + ((𝑁𝐵)↑2)))

Proof of Theorem cphpyth
StepHypRef Expression
1 cphpyth.h . . . . 5 , = (·𝑖𝑊)
2 cphpyth.v . . . . 5 𝑉 = (Base‘𝑊)
3 cphpyth.p . . . . 5 + = (+g𝑊)
4 cphpyth.w . . . . 5 (𝜑𝑊 ∈ ℂPreHil)
5 cphpyth.a . . . . 5 (𝜑𝐴𝑉)
6 cphpyth.b . . . . 5 (𝜑𝐵𝑉)
71, 2, 3, 4, 5, 6, 5, 6cph2di 25161 . . . 4 (𝜑 → ((𝐴 + 𝐵) , (𝐴 + 𝐵)) = (((𝐴 , 𝐴) + (𝐵 , 𝐵)) + ((𝐴 , 𝐵) + (𝐵 , 𝐴))))
87adantr 480 . . 3 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → ((𝐴 + 𝐵) , (𝐴 + 𝐵)) = (((𝐴 , 𝐴) + (𝐵 , 𝐵)) + ((𝐴 , 𝐵) + (𝐵 , 𝐴))))
9 simpr 484 . . . . . 6 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → (𝐴 , 𝐵) = 0)
101, 2cphorthcom 25155 . . . . . . . 8 ((𝑊 ∈ ℂPreHil ∧ 𝐴𝑉𝐵𝑉) → ((𝐴 , 𝐵) = 0 ↔ (𝐵 , 𝐴) = 0))
114, 5, 6, 10syl3anc 1373 . . . . . . 7 (𝜑 → ((𝐴 , 𝐵) = 0 ↔ (𝐵 , 𝐴) = 0))
1211biimpa 476 . . . . . 6 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → (𝐵 , 𝐴) = 0)
139, 12oveq12d 7374 . . . . 5 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → ((𝐴 , 𝐵) + (𝐵 , 𝐴)) = (0 + 0))
14 00id 11306 . . . . 5 (0 + 0) = 0
1513, 14eqtrdi 2785 . . . 4 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → ((𝐴 , 𝐵) + (𝐵 , 𝐴)) = 0)
1615oveq2d 7372 . . 3 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → (((𝐴 , 𝐴) + (𝐵 , 𝐵)) + ((𝐴 , 𝐵) + (𝐵 , 𝐴))) = (((𝐴 , 𝐴) + (𝐵 , 𝐵)) + 0))
172, 1cphipcl 25145 . . . . . . 7 ((𝑊 ∈ ℂPreHil ∧ 𝐴𝑉𝐴𝑉) → (𝐴 , 𝐴) ∈ ℂ)
184, 5, 5, 17syl3anc 1373 . . . . . 6 (𝜑 → (𝐴 , 𝐴) ∈ ℂ)
192, 1cphipcl 25145 . . . . . . 7 ((𝑊 ∈ ℂPreHil ∧ 𝐵𝑉𝐵𝑉) → (𝐵 , 𝐵) ∈ ℂ)
204, 6, 6, 19syl3anc 1373 . . . . . 6 (𝜑 → (𝐵 , 𝐵) ∈ ℂ)
2118, 20addcld 11149 . . . . 5 (𝜑 → ((𝐴 , 𝐴) + (𝐵 , 𝐵)) ∈ ℂ)
2221addridd 11331 . . . 4 (𝜑 → (((𝐴 , 𝐴) + (𝐵 , 𝐵)) + 0) = ((𝐴 , 𝐴) + (𝐵 , 𝐵)))
2322adantr 480 . . 3 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → (((𝐴 , 𝐴) + (𝐵 , 𝐵)) + 0) = ((𝐴 , 𝐴) + (𝐵 , 𝐵)))
248, 16, 233eqtrd 2773 . 2 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → ((𝐴 + 𝐵) , (𝐴 + 𝐵)) = ((𝐴 , 𝐴) + (𝐵 , 𝐵)))
25 cphngp 25127 . . . . . 6 (𝑊 ∈ ℂPreHil → 𝑊 ∈ NrmGrp)
26 ngpgrp 24541 . . . . . 6 (𝑊 ∈ NrmGrp → 𝑊 ∈ Grp)
274, 25, 263syl 18 . . . . 5 (𝜑𝑊 ∈ Grp)
282, 3, 27, 5, 6grpcld 18875 . . . 4 (𝜑 → (𝐴 + 𝐵) ∈ 𝑉)
29 cphpyth.n . . . . 5 𝑁 = (norm‘𝑊)
302, 1, 29nmsq 25148 . . . 4 ((𝑊 ∈ ℂPreHil ∧ (𝐴 + 𝐵) ∈ 𝑉) → ((𝑁‘(𝐴 + 𝐵))↑2) = ((𝐴 + 𝐵) , (𝐴 + 𝐵)))
314, 28, 30syl2anc 584 . . 3 (𝜑 → ((𝑁‘(𝐴 + 𝐵))↑2) = ((𝐴 + 𝐵) , (𝐴 + 𝐵)))
3231adantr 480 . 2 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → ((𝑁‘(𝐴 + 𝐵))↑2) = ((𝐴 + 𝐵) , (𝐴 + 𝐵)))
332, 1, 29nmsq 25148 . . . . 5 ((𝑊 ∈ ℂPreHil ∧ 𝐴𝑉) → ((𝑁𝐴)↑2) = (𝐴 , 𝐴))
344, 5, 33syl2anc 584 . . . 4 (𝜑 → ((𝑁𝐴)↑2) = (𝐴 , 𝐴))
352, 1, 29nmsq 25148 . . . . 5 ((𝑊 ∈ ℂPreHil ∧ 𝐵𝑉) → ((𝑁𝐵)↑2) = (𝐵 , 𝐵))
364, 6, 35syl2anc 584 . . . 4 (𝜑 → ((𝑁𝐵)↑2) = (𝐵 , 𝐵))
3734, 36oveq12d 7374 . . 3 (𝜑 → (((𝑁𝐴)↑2) + ((𝑁𝐵)↑2)) = ((𝐴 , 𝐴) + (𝐵 , 𝐵)))
3837adantr 480 . 2 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → (((𝑁𝐴)↑2) + ((𝑁𝐵)↑2)) = ((𝐴 , 𝐴) + (𝐵 , 𝐵)))
3924, 32, 383eqtr4d 2779 1 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → ((𝑁‘(𝐴 + 𝐵))↑2) = (((𝑁𝐴)↑2) + ((𝑁𝐵)↑2)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 206  wa 395   = wceq 1541  wcel 2113  cfv 6490  (class class class)co 7356  cc 11022  0cc0 11024   + caddc 11027  2c2 12198  cexp 13982  Basecbs 17134  +gcplusg 17175  ·𝑖cip 17180  Grpcgrp 18861  normcnm 24518  NrmGrpcngp 24519  ℂPreHilccph 25120
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1968  ax-7 2009  ax-8 2115  ax-9 2123  ax-10 2146  ax-11 2162  ax-12 2182  ax-ext 2706  ax-rep 5222  ax-sep 5239  ax-nul 5249  ax-pow 5308  ax-pr 5375  ax-un 7678  ax-cnex 11080  ax-resscn 11081  ax-1cn 11082  ax-icn 11083  ax-addcl 11084  ax-addrcl 11085  ax-mulcl 11086  ax-mulrcl 11087  ax-mulcom 11088  ax-addass 11089  ax-mulass 11090  ax-distr 11091  ax-i2m1 11092  ax-1ne0 11093  ax-1rid 11094  ax-rnegex 11095  ax-rrecex 11096  ax-cnre 11097  ax-pre-lttri 11098  ax-pre-lttrn 11099  ax-pre-ltadd 11100  ax-pre-mulgt0 11101  ax-pre-sup 11102  ax-addf 11103  ax-mulf 11104
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1544  df-fal 1554  df-ex 1781  df-nf 1785  df-sb 2068  df-mo 2537  df-eu 2567  df-clab 2713  df-cleq 2726  df-clel 2809  df-nfc 2883  df-ne 2931  df-nel 3035  df-ral 3050  df-rex 3059  df-rmo 3348  df-reu 3349  df-rab 3398  df-v 3440  df-sbc 3739  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4284  df-if 4478  df-pw 4554  df-sn 4579  df-pr 4581  df-tp 4583  df-op 4585  df-uni 4862  df-iun 4946  df-br 5097  df-opab 5159  df-mpt 5178  df-tr 5204  df-id 5517  df-eprel 5522  df-po 5530  df-so 5531  df-fr 5575  df-we 5577  df-xp 5628  df-rel 5629  df-cnv 5630  df-co 5631  df-dm 5632  df-rn 5633  df-res 5634  df-ima 5635  df-pred 6257  df-ord 6318  df-on 6319  df-lim 6320  df-suc 6321  df-iota 6446  df-fun 6492  df-fn 6493  df-f 6494  df-f1 6495  df-fo 6496  df-f1o 6497  df-fv 6498  df-riota 7313  df-ov 7359  df-oprab 7360  df-mpo 7361  df-om 7807  df-1st 7931  df-2nd 7932  df-tpos 8166  df-frecs 8221  df-wrecs 8252  df-recs 8301  df-rdg 8339  df-1o 8395  df-er 8633  df-map 8763  df-en 8882  df-dom 8883  df-sdom 8884  df-fin 8885  df-sup 9343  df-pnf 11166  df-mnf 11167  df-xr 11168  df-ltxr 11169  df-le 11170  df-sub 11364  df-neg 11365  df-div 11793  df-nn 12144  df-2 12206  df-3 12207  df-4 12208  df-5 12209  df-6 12210  df-7 12211  df-8 12212  df-9 12213  df-n0 12400  df-z 12487  df-dec 12606  df-uz 12750  df-rp 12904  df-fz 13422  df-seq 13923  df-exp 13983  df-cj 15020  df-re 15021  df-im 15022  df-sqrt 15156  df-abs 15157  df-struct 17072  df-sets 17089  df-slot 17107  df-ndx 17119  df-base 17135  df-ress 17156  df-plusg 17188  df-mulr 17189  df-starv 17190  df-sca 17191  df-vsca 17192  df-ip 17193  df-tset 17194  df-ple 17195  df-ds 17197  df-unif 17198  df-0g 17359  df-mgm 18563  df-sgrp 18642  df-mnd 18658  df-mhm 18706  df-grp 18864  df-minusg 18865  df-subg 19051  df-ghm 19140  df-cmn 19709  df-abl 19710  df-mgp 20074  df-rng 20086  df-ur 20115  df-ring 20168  df-cring 20169  df-oppr 20271  df-dvdsr 20291  df-unit 20292  df-rhm 20406  df-subrg 20501  df-drng 20662  df-staf 20770  df-srng 20771  df-lmod 20811  df-lmhm 20972  df-lvec 21053  df-sra 21123  df-rgmod 21124  df-cnfld 21308  df-phl 21579  df-ngp 24525  df-nlm 24528  df-clm 25017  df-cph 25122
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator