Users' Mathboxes Mathbox for BJ < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  bj-bary1 Structured version   Unicode version

Theorem bj-bary1 33771
Description: Barycentric coordinates in one dimension. (Contributed by BJ, 6-Jun-2019.)
Hypotheses
Ref Expression
bj-bary1.a  |-  ( ph  ->  A  e.  CC )
bj-bary1.b  |-  ( ph  ->  B  e.  CC )
bj-bary1.x  |-  ( ph  ->  X  e.  CC )
bj-bary1.neq  |-  ( ph  ->  A  =/=  B )
bj-bary1.s  |-  ( ph  ->  S  e.  CC )
bj-bary1.t  |-  ( ph  ->  T  e.  CC )
Assertion
Ref Expression
bj-bary1  |-  ( ph  ->  ( ( X  =  ( ( S  x.  A )  +  ( T  x.  B ) )  /\  ( S  +  T )  =  1 )  <->  ( S  =  ( ( B  -  X )  / 
( B  -  A
) )  /\  T  =  ( ( X  -  A )  / 
( B  -  A
) ) ) ) )

Proof of Theorem bj-bary1
StepHypRef Expression
1 bj-bary1.s . . . . . . . . 9  |-  ( ph  ->  S  e.  CC )
2 bj-bary1.a . . . . . . . . 9  |-  ( ph  ->  A  e.  CC )
31, 2mulcld 9616 . . . . . . . 8  |-  ( ph  ->  ( S  x.  A
)  e.  CC )
4 bj-bary1.t . . . . . . . . 9  |-  ( ph  ->  T  e.  CC )
5 bj-bary1.b . . . . . . . . 9  |-  ( ph  ->  B  e.  CC )
64, 5mulcld 9616 . . . . . . . 8  |-  ( ph  ->  ( T  x.  B
)  e.  CC )
73, 6addcomd 9781 . . . . . . 7  |-  ( ph  ->  ( ( S  x.  A )  +  ( T  x.  B ) )  =  ( ( T  x.  B )  +  ( S  x.  A ) ) )
87eqeq2d 2481 . . . . . 6  |-  ( ph  ->  ( X  =  ( ( S  x.  A
)  +  ( T  x.  B ) )  <-> 
X  =  ( ( T  x.  B )  +  ( S  x.  A ) ) ) )
98biimpd 207 . . . . 5  |-  ( ph  ->  ( X  =  ( ( S  x.  A
)  +  ( T  x.  B ) )  ->  X  =  ( ( T  x.  B
)  +  ( S  x.  A ) ) ) )
101, 4addcomd 9781 . . . . . . 7  |-  ( ph  ->  ( S  +  T
)  =  ( T  +  S ) )
1110eqeq1d 2469 . . . . . 6  |-  ( ph  ->  ( ( S  +  T )  =  1  <-> 
( T  +  S
)  =  1 ) )
1211biimpd 207 . . . . 5  |-  ( ph  ->  ( ( S  +  T )  =  1  ->  ( T  +  S )  =  1 ) )
13 bj-bary1.x . . . . . 6  |-  ( ph  ->  X  e.  CC )
14 bj-bary1.neq . . . . . . 7  |-  ( ph  ->  A  =/=  B )
1514necomd 2738 . . . . . 6  |-  ( ph  ->  B  =/=  A )
165, 2, 13, 15, 4, 1bj-bary1lem1 33770 . . . . 5  |-  ( ph  ->  ( ( X  =  ( ( T  x.  B )  +  ( S  x.  A ) )  /\  ( T  +  S )  =  1 )  ->  S  =  ( ( X  -  B )  / 
( A  -  B
) ) ) )
179, 12, 16syl2and 483 . . . 4  |-  ( ph  ->  ( ( X  =  ( ( S  x.  A )  +  ( T  x.  B ) )  /\  ( S  +  T )  =  1 )  ->  S  =  ( ( X  -  B )  / 
( A  -  B
) ) ) )
1813, 5, 2, 5, 14div2subd 10370 . . . . 5  |-  ( ph  ->  ( ( X  -  B )  /  ( A  -  B )
)  =  ( ( B  -  X )  /  ( B  -  A ) ) )
1918eqeq2d 2481 . . . 4  |-  ( ph  ->  ( S  =  ( ( X  -  B
)  /  ( A  -  B ) )  <-> 
S  =  ( ( B  -  X )  /  ( B  -  A ) ) ) )
2017, 19sylibd 214 . . 3  |-  ( ph  ->  ( ( X  =  ( ( S  x.  A )  +  ( T  x.  B ) )  /\  ( S  +  T )  =  1 )  ->  S  =  ( ( B  -  X )  / 
( B  -  A
) ) ) )
212, 5, 13, 14, 1, 4bj-bary1lem1 33770 . . 3  |-  ( ph  ->  ( ( X  =  ( ( S  x.  A )  +  ( T  x.  B ) )  /\  ( S  +  T )  =  1 )  ->  T  =  ( ( X  -  A )  / 
( B  -  A
) ) ) )
2220, 21jcad 533 . 2  |-  ( ph  ->  ( ( X  =  ( ( S  x.  A )  +  ( T  x.  B ) )  /\  ( S  +  T )  =  1 )  ->  ( S  =  ( ( B  -  X )  /  ( B  -  A ) )  /\  T  =  ( ( X  -  A )  /  ( B  -  A ) ) ) ) )
232, 5, 13, 14bj-bary1lem 33769 . . . 4  |-  ( ph  ->  X  =  ( ( ( ( B  -  X )  /  ( B  -  A )
)  x.  A )  +  ( ( ( X  -  A )  /  ( B  -  A ) )  x.  B ) ) )
24 oveq1 6291 . . . . . 6  |-  ( S  =  ( ( B  -  X )  / 
( B  -  A
) )  ->  ( S  x.  A )  =  ( ( ( B  -  X )  /  ( B  -  A ) )  x.  A ) )
25 oveq1 6291 . . . . . 6  |-  ( T  =  ( ( X  -  A )  / 
( B  -  A
) )  ->  ( T  x.  B )  =  ( ( ( X  -  A )  /  ( B  -  A ) )  x.  B ) )
2624, 25oveqan12d 6303 . . . . 5  |-  ( ( S  =  ( ( B  -  X )  /  ( B  -  A ) )  /\  T  =  ( ( X  -  A )  /  ( B  -  A ) ) )  ->  ( ( S  x.  A )  +  ( T  x.  B
) )  =  ( ( ( ( B  -  X )  / 
( B  -  A
) )  x.  A
)  +  ( ( ( X  -  A
)  /  ( B  -  A ) )  x.  B ) ) )
2726a1i 11 . . . 4  |-  ( ph  ->  ( ( S  =  ( ( B  -  X )  /  ( B  -  A )
)  /\  T  =  ( ( X  -  A )  /  ( B  -  A )
) )  ->  (
( S  x.  A
)  +  ( T  x.  B ) )  =  ( ( ( ( B  -  X
)  /  ( B  -  A ) )  x.  A )  +  ( ( ( X  -  A )  / 
( B  -  A
) )  x.  B
) ) ) )
28 eqtr3 2495 . . . 4  |-  ( ( X  =  ( ( ( ( B  -  X )  /  ( B  -  A )
)  x.  A )  +  ( ( ( X  -  A )  /  ( B  -  A ) )  x.  B ) )  /\  ( ( S  x.  A )  +  ( T  x.  B ) )  =  ( ( ( ( B  -  X )  /  ( B  -  A )
)  x.  A )  +  ( ( ( X  -  A )  /  ( B  -  A ) )  x.  B ) ) )  ->  X  =  ( ( S  x.  A
)  +  ( T  x.  B ) ) )
2923, 27, 28syl6an 545 . . 3  |-  ( ph  ->  ( ( S  =  ( ( B  -  X )  /  ( B  -  A )
)  /\  T  =  ( ( X  -  A )  /  ( B  -  A )
) )  ->  X  =  ( ( S  x.  A )  +  ( T  x.  B
) ) ) )
30 oveq12 6293 . . . 4  |-  ( ( S  =  ( ( B  -  X )  /  ( B  -  A ) )  /\  T  =  ( ( X  -  A )  /  ( B  -  A ) ) )  ->  ( S  +  T )  =  ( ( ( B  -  X )  /  ( B  -  A )
)  +  ( ( X  -  A )  /  ( B  -  A ) ) ) )
315, 13subcld 9930 . . . . . . 7  |-  ( ph  ->  ( B  -  X
)  e.  CC )
3213, 2subcld 9930 . . . . . . 7  |-  ( ph  ->  ( X  -  A
)  e.  CC )
335, 2subcld 9930 . . . . . . 7  |-  ( ph  ->  ( B  -  A
)  e.  CC )
345, 2, 15subne0d 9939 . . . . . . 7  |-  ( ph  ->  ( B  -  A
)  =/=  0 )
3531, 32, 33, 34divdird 10358 . . . . . 6  |-  ( ph  ->  ( ( ( B  -  X )  +  ( X  -  A
) )  /  ( B  -  A )
)  =  ( ( ( B  -  X
)  /  ( B  -  A ) )  +  ( ( X  -  A )  / 
( B  -  A
) ) ) )
365, 13, 2npncand 9954 . . . . . . 7  |-  ( ph  ->  ( ( B  -  X )  +  ( X  -  A ) )  =  ( B  -  A ) )
3733, 34, 36diveq1bd 10368 . . . . . 6  |-  ( ph  ->  ( ( ( B  -  X )  +  ( X  -  A
) )  /  ( B  -  A )
)  =  1 )
3835, 37eqtr3d 2510 . . . . 5  |-  ( ph  ->  ( ( ( B  -  X )  / 
( B  -  A
) )  +  ( ( X  -  A
)  /  ( B  -  A ) ) )  =  1 )
3938eqeq2d 2481 . . . 4  |-  ( ph  ->  ( ( S  +  T )  =  ( ( ( B  -  X )  /  ( B  -  A )
)  +  ( ( X  -  A )  /  ( B  -  A ) ) )  <-> 
( S  +  T
)  =  1 ) )
4030, 39syl5ib 219 . . 3  |-  ( ph  ->  ( ( S  =  ( ( B  -  X )  /  ( B  -  A )
)  /\  T  =  ( ( X  -  A )  /  ( B  -  A )
) )  ->  ( S  +  T )  =  1 ) )
4129, 40jcad 533 . 2  |-  ( ph  ->  ( ( S  =  ( ( B  -  X )  /  ( B  -  A )
)  /\  T  =  ( ( X  -  A )  /  ( B  -  A )
) )  ->  ( X  =  ( ( S  x.  A )  +  ( T  x.  B ) )  /\  ( S  +  T
)  =  1 ) ) )
4222, 41impbid 191 1  |-  ( ph  ->  ( ( X  =  ( ( S  x.  A )  +  ( T  x.  B ) )  /\  ( S  +  T )  =  1 )  <->  ( S  =  ( ( B  -  X )  / 
( B  -  A
) )  /\  T  =  ( ( X  -  A )  / 
( B  -  A
) ) ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    = wceq 1379    e. wcel 1767    =/= wne 2662  (class class class)co 6284   CCcc 9490   1c1 9493    + caddc 9495    x. cmul 9497    - cmin 9805    / cdiv 10206
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1601  ax-4 1612  ax-5 1680  ax-6 1719  ax-7 1739  ax-8 1769  ax-9 1771  ax-10 1786  ax-11 1791  ax-12 1803  ax-13 1968  ax-ext 2445  ax-sep 4568  ax-nul 4576  ax-pow 4625  ax-pr 4686  ax-un 6576  ax-resscn 9549  ax-1cn 9550  ax-icn 9551  ax-addcl 9552  ax-addrcl 9553  ax-mulcl 9554  ax-mulrcl 9555  ax-mulcom 9556  ax-addass 9557  ax-mulass 9558  ax-distr 9559  ax-i2m1 9560  ax-1ne0 9561  ax-1rid 9562  ax-rnegex 9563  ax-rrecex 9564  ax-cnre 9565  ax-pre-lttri 9566  ax-pre-lttrn 9567  ax-pre-ltadd 9568  ax-pre-mulgt0 9569
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 974  df-3an 975  df-tru 1382  df-ex 1597  df-nf 1600  df-sb 1712  df-eu 2279  df-mo 2280  df-clab 2453  df-cleq 2459  df-clel 2462  df-nfc 2617  df-ne 2664  df-nel 2665  df-ral 2819  df-rex 2820  df-reu 2821  df-rmo 2822  df-rab 2823  df-v 3115  df-sbc 3332  df-csb 3436  df-dif 3479  df-un 3481  df-in 3483  df-ss 3490  df-nul 3786  df-if 3940  df-pw 4012  df-sn 4028  df-pr 4030  df-op 4034  df-uni 4246  df-br 4448  df-opab 4506  df-mpt 4507  df-id 4795  df-po 4800  df-so 4801  df-xp 5005  df-rel 5006  df-cnv 5007  df-co 5008  df-dm 5009  df-rn 5010  df-res 5011  df-ima 5012  df-iota 5551  df-fun 5590  df-fn 5591  df-f 5592  df-f1 5593  df-fo 5594  df-f1o 5595  df-fv 5596  df-riota 6245  df-ov 6287  df-oprab 6288  df-mpt2 6289  df-er 7311  df-en 7517  df-dom 7518  df-sdom 7519  df-pnf 9630  df-mnf 9631  df-xr 9632  df-ltxr 9633  df-le 9634  df-sub 9807  df-neg 9808  df-div 10207
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator