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

Theorem cphpyth 25114
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 25105 . . . 4 (𝜑 → ((𝐴 + 𝐵) , (𝐴 + 𝐵)) = (((𝐴 , 𝐴) + (𝐵 , 𝐵)) + ((𝐴 , 𝐵) + (𝐵 , 𝐴))))
87adantr 480 . . 3 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → ((𝐴 + 𝐵) , (𝐴 + 𝐵)) = (((𝐴 , 𝐴) + (𝐵 , 𝐵)) + ((𝐴 , 𝐵) + (𝐵 , 𝐴))))
9 simpr 484 . . . . . 6 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → (𝐴 , 𝐵) = 0)
101, 2cphorthcom 25099 . . . . . . . 8 ((𝑊 ∈ ℂPreHil ∧ 𝐴𝑉𝐵𝑉) → ((𝐴 , 𝐵) = 0 ↔ (𝐵 , 𝐴) = 0))
114, 5, 6, 10syl3anc 1373 . . . . . . 7 (𝜑 → ((𝐴 , 𝐵) = 0 ↔ (𝐵 , 𝐴) = 0))
1211biimpa 476 . . . . . 6 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → (𝐵 , 𝐴) = 0)
139, 12oveq12d 7367 . . . . 5 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → ((𝐴 , 𝐵) + (𝐵 , 𝐴)) = (0 + 0))
14 00id 11291 . . . . 5 (0 + 0) = 0
1513, 14eqtrdi 2780 . . . 4 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → ((𝐴 , 𝐵) + (𝐵 , 𝐴)) = 0)
1615oveq2d 7365 . . 3 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → (((𝐴 , 𝐴) + (𝐵 , 𝐵)) + ((𝐴 , 𝐵) + (𝐵 , 𝐴))) = (((𝐴 , 𝐴) + (𝐵 , 𝐵)) + 0))
172, 1cphipcl 25089 . . . . . . 7 ((𝑊 ∈ ℂPreHil ∧ 𝐴𝑉𝐴𝑉) → (𝐴 , 𝐴) ∈ ℂ)
184, 5, 5, 17syl3anc 1373 . . . . . 6 (𝜑 → (𝐴 , 𝐴) ∈ ℂ)
192, 1cphipcl 25089 . . . . . . 7 ((𝑊 ∈ ℂPreHil ∧ 𝐵𝑉𝐵𝑉) → (𝐵 , 𝐵) ∈ ℂ)
204, 6, 6, 19syl3anc 1373 . . . . . 6 (𝜑 → (𝐵 , 𝐵) ∈ ℂ)
2118, 20addcld 11134 . . . . 5 (𝜑 → ((𝐴 , 𝐴) + (𝐵 , 𝐵)) ∈ ℂ)
2221addridd 11316 . . . 4 (𝜑 → (((𝐴 , 𝐴) + (𝐵 , 𝐵)) + 0) = ((𝐴 , 𝐴) + (𝐵 , 𝐵)))
2322adantr 480 . . 3 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → (((𝐴 , 𝐴) + (𝐵 , 𝐵)) + 0) = ((𝐴 , 𝐴) + (𝐵 , 𝐵)))
248, 16, 233eqtrd 2768 . 2 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → ((𝐴 + 𝐵) , (𝐴 + 𝐵)) = ((𝐴 , 𝐴) + (𝐵 , 𝐵)))
25 cphngp 25071 . . . . . 6 (𝑊 ∈ ℂPreHil → 𝑊 ∈ NrmGrp)
26 ngpgrp 24485 . . . . . 6 (𝑊 ∈ NrmGrp → 𝑊 ∈ Grp)
274, 25, 263syl 18 . . . . 5 (𝜑𝑊 ∈ Grp)
282, 3, 27, 5, 6grpcld 18826 . . . 4 (𝜑 → (𝐴 + 𝐵) ∈ 𝑉)
29 cphpyth.n . . . . 5 𝑁 = (norm‘𝑊)
302, 1, 29nmsq 25092 . . . 4 ((𝑊 ∈ ℂPreHil ∧ (𝐴 + 𝐵) ∈ 𝑉) → ((𝑁‘(𝐴 + 𝐵))↑2) = ((𝐴 + 𝐵) , (𝐴 + 𝐵)))
314, 28, 30syl2anc 584 . . 3 (𝜑 → ((𝑁‘(𝐴 + 𝐵))↑2) = ((𝐴 + 𝐵) , (𝐴 + 𝐵)))
3231adantr 480 . 2 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → ((𝑁‘(𝐴 + 𝐵))↑2) = ((𝐴 + 𝐵) , (𝐴 + 𝐵)))
332, 1, 29nmsq 25092 . . . . 5 ((𝑊 ∈ ℂPreHil ∧ 𝐴𝑉) → ((𝑁𝐴)↑2) = (𝐴 , 𝐴))
344, 5, 33syl2anc 584 . . . 4 (𝜑 → ((𝑁𝐴)↑2) = (𝐴 , 𝐴))
352, 1, 29nmsq 25092 . . . . 5 ((𝑊 ∈ ℂPreHil ∧ 𝐵𝑉) → ((𝑁𝐵)↑2) = (𝐵 , 𝐵))
364, 6, 35syl2anc 584 . . . 4 (𝜑 → ((𝑁𝐵)↑2) = (𝐵 , 𝐵))
3734, 36oveq12d 7367 . . 3 (𝜑 → (((𝑁𝐴)↑2) + ((𝑁𝐵)↑2)) = ((𝐴 , 𝐴) + (𝐵 , 𝐵)))
3837adantr 480 . 2 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → (((𝑁𝐴)↑2) + ((𝑁𝐵)↑2)) = ((𝐴 , 𝐴) + (𝐵 , 𝐵)))
3924, 32, 383eqtr4d 2774 1 ((𝜑 ∧ (𝐴 , 𝐵) = 0) → ((𝑁‘(𝐴 + 𝐵))↑2) = (((𝑁𝐴)↑2) + ((𝑁𝐵)↑2)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 206  wa 395   = wceq 1540  wcel 2109  cfv 6482  (class class class)co 7349  cc 11007  0cc0 11009   + caddc 11012  2c2 12183  cexp 13968  Basecbs 17120  +gcplusg 17161  ·𝑖cip 17166  Grpcgrp 18812  normcnm 24462  NrmGrpcngp 24463  ℂPreHilccph 25064
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1967  ax-7 2008  ax-8 2111  ax-9 2119  ax-10 2142  ax-11 2158  ax-12 2178  ax-ext 2701  ax-rep 5218  ax-sep 5235  ax-nul 5245  ax-pow 5304  ax-pr 5371  ax-un 7671  ax-cnex 11065  ax-resscn 11066  ax-1cn 11067  ax-icn 11068  ax-addcl 11069  ax-addrcl 11070  ax-mulcl 11071  ax-mulrcl 11072  ax-mulcom 11073  ax-addass 11074  ax-mulass 11075  ax-distr 11076  ax-i2m1 11077  ax-1ne0 11078  ax-1rid 11079  ax-rnegex 11080  ax-rrecex 11081  ax-cnre 11082  ax-pre-lttri 11083  ax-pre-lttrn 11084  ax-pre-ltadd 11085  ax-pre-mulgt0 11086  ax-pre-sup 11087  ax-addf 11088  ax-mulf 11089
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2533  df-eu 2562  df-clab 2708  df-cleq 2721  df-clel 2803  df-nfc 2878  df-ne 2926  df-nel 3030  df-ral 3045  df-rex 3054  df-rmo 3343  df-reu 3344  df-rab 3395  df-v 3438  df-sbc 3743  df-csb 3852  df-dif 3906  df-un 3908  df-in 3910  df-ss 3920  df-pss 3923  df-nul 4285  df-if 4477  df-pw 4553  df-sn 4578  df-pr 4580  df-tp 4582  df-op 4584  df-uni 4859  df-iun 4943  df-br 5093  df-opab 5155  df-mpt 5174  df-tr 5200  df-id 5514  df-eprel 5519  df-po 5527  df-so 5528  df-fr 5572  df-we 5574  df-xp 5625  df-rel 5626  df-cnv 5627  df-co 5628  df-dm 5629  df-rn 5630  df-res 5631  df-ima 5632  df-pred 6249  df-ord 6310  df-on 6311  df-lim 6312  df-suc 6313  df-iota 6438  df-fun 6484  df-fn 6485  df-f 6486  df-f1 6487  df-fo 6488  df-f1o 6489  df-fv 6490  df-riota 7306  df-ov 7352  df-oprab 7353  df-mpo 7354  df-om 7800  df-1st 7924  df-2nd 7925  df-tpos 8159  df-frecs 8214  df-wrecs 8245  df-recs 8294  df-rdg 8332  df-1o 8388  df-er 8625  df-map 8755  df-en 8873  df-dom 8874  df-sdom 8875  df-fin 8876  df-sup 9332  df-pnf 11151  df-mnf 11152  df-xr 11153  df-ltxr 11154  df-le 11155  df-sub 11349  df-neg 11350  df-div 11778  df-nn 12129  df-2 12191  df-3 12192  df-4 12193  df-5 12194  df-6 12195  df-7 12196  df-8 12197  df-9 12198  df-n0 12385  df-z 12472  df-dec 12592  df-uz 12736  df-rp 12894  df-fz 13411  df-seq 13909  df-exp 13969  df-cj 15006  df-re 15007  df-im 15008  df-sqrt 15142  df-abs 15143  df-struct 17058  df-sets 17075  df-slot 17093  df-ndx 17105  df-base 17121  df-ress 17142  df-plusg 17174  df-mulr 17175  df-starv 17176  df-sca 17177  df-vsca 17178  df-ip 17179  df-tset 17180  df-ple 17181  df-ds 17183  df-unif 17184  df-0g 17345  df-mgm 18514  df-sgrp 18593  df-mnd 18609  df-mhm 18657  df-grp 18815  df-minusg 18816  df-subg 19002  df-ghm 19092  df-cmn 19661  df-abl 19662  df-mgp 20026  df-rng 20038  df-ur 20067  df-ring 20120  df-cring 20121  df-oppr 20222  df-dvdsr 20242  df-unit 20243  df-rhm 20357  df-subrg 20455  df-drng 20616  df-staf 20724  df-srng 20725  df-lmod 20765  df-lmhm 20926  df-lvec 21007  df-sra 21077  df-rgmod 21078  df-cnfld 21262  df-phl 21533  df-ngp 24469  df-nlm 24472  df-clm 24961  df-cph 25066
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator