MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  ang180 Structured version   Unicode version

Theorem ang180 20646
Description: The sum of angles  m A B C  +  m B C A  +  m C A B in a triangle adds up to either  pi or  -u pi, i.e. 180 degrees. (The sign is due to the two possible orientations of vertex arrangement and our signed notion of angle). (Contributed by Mario Carneiro, 23-Sep-2014.)
Hypothesis
Ref Expression
ang.1  |-  F  =  ( x  e.  ( CC  \  { 0 } ) ,  y  e.  ( CC  \  { 0 } ) 
|->  ( Im `  ( log `  ( y  /  x ) ) ) )
Assertion
Ref Expression
ang180  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  (
( ( ( C  -  B ) F ( A  -  B
) )  +  ( ( A  -  C
) F ( B  -  C ) ) )  +  ( ( B  -  A ) F ( C  -  A ) ) )  e.  { -u pi ,  pi } )
Distinct variable groups:    x, y, A    x, B, y    x, C, y
Allowed substitution hints:    F( x, y)

Proof of Theorem ang180
StepHypRef Expression
1 simpl3 962 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  C  e.  CC )
2 simpl2 961 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  B  e.  CC )
31, 2subcld 9401 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( C  -  B )  e.  CC )
4 simpr2 964 . . . . . . . 8  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  B  =/=  C )
54necomd 2681 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  C  =/=  B )
61, 2, 5subne0d 9410 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( C  -  B )  =/=  0 )
7 simpl1 960 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  A  e.  CC )
87, 2subcld 9401 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( A  -  B )  e.  CC )
9 simpr1 963 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  A  =/=  B )
107, 2, 9subne0d 9410 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( A  -  B )  =/=  0 )
11 ang.1 . . . . . . 7  |-  F  =  ( x  e.  ( CC  \  { 0 } ) ,  y  e.  ( CC  \  { 0 } ) 
|->  ( Im `  ( log `  ( y  /  x ) ) ) )
1211angneg 20635 . . . . . 6  |-  ( ( ( ( C  -  B )  e.  CC  /\  ( C  -  B
)  =/=  0 )  /\  ( ( A  -  B )  e.  CC  /\  ( A  -  B )  =/=  0 ) )  -> 
( -u ( C  -  B ) F -u ( A  -  B
) )  =  ( ( C  -  B
) F ( A  -  B ) ) )
133, 6, 8, 10, 12syl22anc 1185 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( -u ( C  -  B
) F -u ( A  -  B )
)  =  ( ( C  -  B ) F ( A  -  B ) ) )
141, 2negsubdi2d 9417 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  -u ( C  -  B )  =  ( B  -  C ) )
152, 1, 7nnncan2d 9436 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  (
( B  -  A
)  -  ( C  -  A ) )  =  ( B  -  C ) )
1614, 15eqtr4d 2470 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  -u ( C  -  B )  =  ( ( B  -  A )  -  ( C  -  A
) ) )
177, 2negsubdi2d 9417 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  -u ( A  -  B )  =  ( B  -  A ) )
1816, 17oveq12d 6091 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( -u ( C  -  B
) F -u ( A  -  B )
)  =  ( ( ( B  -  A
)  -  ( C  -  A ) ) F ( B  -  A ) ) )
1913, 18eqtr3d 2469 . . . 4  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  (
( C  -  B
) F ( A  -  B ) )  =  ( ( ( B  -  A )  -  ( C  -  A ) ) F ( B  -  A
) ) )
207, 1subcld 9401 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( A  -  C )  e.  CC )
21 simpr3 965 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  A  =/=  C )
227, 1, 21subne0d 9410 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( A  -  C )  =/=  0 )
232, 1subcld 9401 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( B  -  C )  e.  CC )
242, 1, 4subne0d 9410 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( B  -  C )  =/=  0 )
2511angneg 20635 . . . . . 6  |-  ( ( ( ( A  -  C )  e.  CC  /\  ( A  -  C
)  =/=  0 )  /\  ( ( B  -  C )  e.  CC  /\  ( B  -  C )  =/=  0 ) )  -> 
( -u ( A  -  C ) F -u ( B  -  C
) )  =  ( ( A  -  C
) F ( B  -  C ) ) )
2620, 22, 23, 24, 25syl22anc 1185 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( -u ( A  -  C
) F -u ( B  -  C )
)  =  ( ( A  -  C ) F ( B  -  C ) ) )
277, 1negsubdi2d 9417 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  -u ( A  -  C )  =  ( C  -  A ) )
282, 1negsubdi2d 9417 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  -u ( B  -  C )  =  ( C  -  B ) )
291, 2, 7nnncan2d 9436 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  (
( C  -  A
)  -  ( B  -  A ) )  =  ( C  -  B ) )
3028, 29eqtr4d 2470 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  -u ( B  -  C )  =  ( ( C  -  A )  -  ( B  -  A
) ) )
3127, 30oveq12d 6091 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( -u ( A  -  C
) F -u ( B  -  C )
)  =  ( ( C  -  A ) F ( ( C  -  A )  -  ( B  -  A
) ) ) )
3226, 31eqtr3d 2469 . . . 4  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  (
( A  -  C
) F ( B  -  C ) )  =  ( ( C  -  A ) F ( ( C  -  A )  -  ( B  -  A )
) ) )
3319, 32oveq12d 6091 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  (
( ( C  -  B ) F ( A  -  B ) )  +  ( ( A  -  C ) F ( B  -  C ) ) )  =  ( ( ( ( B  -  A
)  -  ( C  -  A ) ) F ( B  -  A ) )  +  ( ( C  -  A ) F ( ( C  -  A
)  -  ( B  -  A ) ) ) ) )
3433oveq1d 6088 . 2  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  (
( ( ( C  -  B ) F ( A  -  B
) )  +  ( ( A  -  C
) F ( B  -  C ) ) )  +  ( ( B  -  A ) F ( C  -  A ) ) )  =  ( ( ( ( ( B  -  A )  -  ( C  -  A )
) F ( B  -  A ) )  +  ( ( C  -  A ) F ( ( C  -  A )  -  ( B  -  A )
) ) )  +  ( ( B  -  A ) F ( C  -  A ) ) ) )
352, 7subcld 9401 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( B  -  A )  e.  CC )
369necomd 2681 . . . 4  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  B  =/=  A )
372, 7, 36subne0d 9410 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( B  -  A )  =/=  0 )
381, 7subcld 9401 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( C  -  A )  e.  CC )
3921necomd 2681 . . . 4  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  C  =/=  A )
401, 7, 39subne0d 9410 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( C  -  A )  =/=  0 )
412, 1, 7, 4subneintr2d 9447 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  ( B  -  A )  =/=  ( C  -  A
) )
4211ang180lem5 20645 . . 3  |-  ( ( ( ( B  -  A )  e.  CC  /\  ( B  -  A
)  =/=  0 )  /\  ( ( C  -  A )  e.  CC  /\  ( C  -  A )  =/=  0 )  /\  ( B  -  A )  =/=  ( C  -  A
) )  ->  (
( ( ( ( B  -  A )  -  ( C  -  A ) ) F ( B  -  A
) )  +  ( ( C  -  A
) F ( ( C  -  A )  -  ( B  -  A ) ) ) )  +  ( ( B  -  A ) F ( C  -  A ) ) )  e.  { -u pi ,  pi } )
4335, 37, 38, 40, 41, 42syl221anc 1195 . 2  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  (
( ( ( ( B  -  A )  -  ( C  -  A ) ) F ( B  -  A
) )  +  ( ( C  -  A
) F ( ( C  -  A )  -  ( B  -  A ) ) ) )  +  ( ( B  -  A ) F ( C  -  A ) ) )  e.  { -u pi ,  pi } )
4434, 43eqeltrd 2509 1  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( A  =/=  B  /\  B  =/=  C  /\  A  =/=  C
) )  ->  (
( ( ( C  -  B ) F ( A  -  B
) )  +  ( ( A  -  C
) F ( B  -  C ) ) )  +  ( ( B  -  A ) F ( C  -  A ) ) )  e.  { -u pi ,  pi } )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    /\ w3a 936    = wceq 1652    e. wcel 1725    =/= wne 2598    \ cdif 3309   {csn 3806   {cpr 3807   ` cfv 5446  (class class class)co 6073    e. cmpt2 6075   CCcc 8978   0cc0 8980    + caddc 8983    - cmin 9281   -ucneg 9282    / cdiv 9667   Imcim 11893   picpi 12659   logclog 20442
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-13 1727  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2416  ax-rep 4312  ax-sep 4322  ax-nul 4330  ax-pow 4369  ax-pr 4395  ax-un 4693  ax-inf2 7586  ax-cnex 9036  ax-resscn 9037  ax-1cn 9038  ax-icn 9039  ax-addcl 9040  ax-addrcl 9041  ax-mulcl 9042  ax-mulrcl 9043  ax-mulcom 9044  ax-addass 9045  ax-mulass 9046  ax-distr 9047  ax-i2m1 9048  ax-1ne0 9049  ax-1rid 9050  ax-rnegex 9051  ax-rrecex 9052  ax-cnre 9053  ax-pre-lttri 9054  ax-pre-lttrn 9055  ax-pre-ltadd 9056  ax-pre-mulgt0 9057  ax-pre-sup 9058  ax-addf 9059  ax-mulf 9060
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-eu 2284  df-mo 2285  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-ne 2600  df-nel 2601  df-ral 2702  df-rex 2703  df-reu 2704  df-rmo 2705  df-rab 2706  df-v 2950  df-sbc 3154  df-csb 3244  df-dif 3315  df-un 3317  df-in 3319  df-ss 3326  df-pss 3328  df-nul 3621  df-if 3732  df-pw 3793  df-sn 3812  df-pr 3813  df-tp 3814  df-op 3815  df-uni 4008  df-int 4043  df-iun 4087  df-iin 4088  df-br 4205  df-opab 4259  df-mpt 4260  df-tr 4295  df-eprel 4486  df-id 4490  df-po 4495  df-so 4496  df-fr 4533  df-se 4534  df-we 4535  df-ord 4576  df-on 4577  df-lim 4578  df-suc 4579  df-om 4838  df-xp 4876  df-rel 4877  df-cnv 4878  df-co 4879  df-dm 4880  df-rn 4881  df-res 4882  df-ima 4883  df-iota 5410  df-fun 5448  df-fn 5449  df-f 5450  df-f1 5451  df-fo 5452  df-f1o 5453  df-fv 5454  df-isom 5455  df-ov 6076  df-oprab 6077  df-mpt2 6078  df-of 6297  df-1st 6341  df-2nd 6342  df-riota 6541  df-recs 6625  df-rdg 6660  df-1o 6716  df-2o 6717  df-oadd 6720  df-er 6897  df-map 7012  df-pm 7013  df-ixp 7056  df-en 7102  df-dom 7103  df-sdom 7104  df-fin 7105  df-fi 7408  df-sup 7438  df-oi 7469  df-card 7816  df-cda 8038  df-pnf 9112  df-mnf 9113  df-xr 9114  df-ltxr 9115  df-le 9116  df-sub 9283  df-neg 9284  df-div 9668  df-nn 9991  df-2 10048  df-3 10049  df-4 10050  df-5 10051  df-6 10052  df-7 10053  df-8 10054  df-9 10055  df-10 10056  df-n0 10212  df-z 10273  df-dec 10373  df-uz 10479  df-q 10565  df-rp 10603  df-xneg 10700  df-xadd 10701  df-xmul 10702  df-ioo 10910  df-ioc 10911  df-ico 10912  df-icc 10913  df-fz 11034  df-fzo 11126  df-fl 11192  df-mod 11241  df-seq 11314  df-exp 11373  df-fac 11557  df-bc 11584  df-hash 11609  df-shft 11872  df-cj 11894  df-re 11895  df-im 11896  df-sqr 12030  df-abs 12031  df-limsup 12255  df-clim 12272  df-rlim 12273  df-sum 12470  df-ef 12660  df-sin 12662  df-cos 12663  df-pi 12665  df-struct 13461  df-ndx 13462  df-slot 13463  df-base 13464  df-sets 13465  df-ress 13466  df-plusg 13532  df-mulr 13533  df-starv 13534  df-sca 13535  df-vsca 13536  df-tset 13538  df-ple 13539  df-ds 13541  df-unif 13542  df-hom 13543  df-cco 13544  df-rest 13640  df-topn 13641  df-topgen 13657  df-pt 13658  df-prds 13661  df-xrs 13716  df-0g 13717  df-gsum 13718  df-qtop 13723  df-imas 13724  df-xps 13726  df-mre 13801  df-mrc 13802  df-acs 13804  df-mnd 14680  df-submnd 14729  df-mulg 14805  df-cntz 15106  df-cmn 15404  df-psmet 16684  df-xmet 16685  df-met 16686  df-bl 16687  df-mopn 16688  df-fbas 16689  df-fg 16690  df-cnfld 16694  df-top 16953  df-bases 16955  df-topon 16956  df-topsp 16957  df-cld 17073  df-ntr 17074  df-cls 17075  df-nei 17152  df-lp 17190  df-perf 17191  df-cn 17281  df-cnp 17282  df-haus 17369  df-tx 17584  df-hmeo 17777  df-fil 17868  df-fm 17960  df-flim 17961  df-flf 17962  df-xms 18340  df-ms 18341  df-tms 18342  df-cncf 18898  df-limc 19743  df-dv 19744  df-log 20444
  Copyright terms: Public domain W3C validator