ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  mulcomnq0 Unicode version

Theorem mulcomnq0 7292
Description: Multiplication of nonnegative fractions is commutative. (Contributed by Jim Kingdon, 27-Nov-2019.)
Assertion
Ref Expression
mulcomnq0  |-  ( ( A  e. Q0  /\  B  e. Q0 )  ->  ( A ·Q0  B )  =  ( B ·Q0 
A ) )

Proof of Theorem mulcomnq0
Dummy variables  x  y  z  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-nq0 7257 . 2  |- Q0  =  ( ( om 
X.  N. ) /. ~Q0  )
2 oveq1 5789 . . 3  |-  ( [
<. x ,  y >. ] ~Q0  =  A  ->  ( [ <. x ,  y >. ] ~Q0 ·Q0  [ <. z ,  w >. ] ~Q0  )  =  ( A ·Q0  [ <. z ,  w >. ] ~Q0  ) )
3 oveq2 5790 . . 3  |-  ( [
<. x ,  y >. ] ~Q0  =  A  ->  ( [ <. z ,  w >. ] ~Q0 ·Q0  [ <. x ,  y
>. ] ~Q0  )  =  ( [ <. z ,  w >. ] ~Q0 ·Q0 
A ) )
42, 3eqeq12d 2155 . 2  |-  ( [
<. x ,  y >. ] ~Q0  =  A  ->  ( ( [ <. x ,  y
>. ] ~Q0 ·Q0  [ <. z ,  w >. ] ~Q0  )  =  ( [
<. z ,  w >. ] ~Q0 ·Q0  [ <. x ,  y
>. ] ~Q0  ) 
<->  ( A ·Q0  [ <. z ,  w >. ] ~Q0  )  =  ( [ <. z ,  w >. ] ~Q0 ·Q0 
A ) ) )
5 oveq2 5790 . . 3  |-  ( [
<. z ,  w >. ] ~Q0  =  B  ->  ( A ·Q0  [ <. z ,  w >. ] ~Q0  )  =  ( A ·Q0  B ) )
6 oveq1 5789 . . 3  |-  ( [
<. z ,  w >. ] ~Q0  =  B  ->  ( [ <. z ,  w >. ] ~Q0 ·Q0  A )  =  ( B ·Q0 
A ) )
75, 6eqeq12d 2155 . 2  |-  ( [
<. z ,  w >. ] ~Q0  =  B  ->  ( ( A ·Q0  [ <. z ,  w >. ] ~Q0  )  =  ( [
<. z ,  w >. ] ~Q0 ·Q0 
A )  <->  ( A ·Q0  B )  =  ( B ·Q0 
A ) ) )
8 nnmcom 6393 . . . . 5  |-  ( ( x  e.  om  /\  z  e.  om )  ->  ( x  .o  z
)  =  ( z  .o  x ) )
98ad2ant2r 501 . . . 4  |-  ( ( ( x  e.  om  /\  y  e.  N. )  /\  ( z  e.  om  /\  w  e.  N. )
)  ->  ( x  .o  z )  =  ( z  .o  x ) )
10 pinn 7141 . . . . . 6  |-  ( y  e.  N.  ->  y  e.  om )
11 pinn 7141 . . . . . 6  |-  ( w  e.  N.  ->  w  e.  om )
12 nnmcom 6393 . . . . . 6  |-  ( ( y  e.  om  /\  w  e.  om )  ->  ( y  .o  w
)  =  ( w  .o  y ) )
1310, 11, 12syl2an 287 . . . . 5  |-  ( ( y  e.  N.  /\  w  e.  N. )  ->  ( y  .o  w
)  =  ( w  .o  y ) )
1413ad2ant2l 500 . . . 4  |-  ( ( ( x  e.  om  /\  y  e.  N. )  /\  ( z  e.  om  /\  w  e.  N. )
)  ->  ( y  .o  w )  =  ( w  .o  y ) )
15 opeq12 3715 . . . . 5  |-  ( ( ( x  .o  z
)  =  ( z  .o  x )  /\  ( y  .o  w
)  =  ( w  .o  y ) )  ->  <. ( x  .o  z ) ,  ( y  .o  w )
>.  =  <. ( z  .o  x ) ,  ( w  .o  y
) >. )
1615eceq1d 6473 . . . 4  |-  ( ( ( x  .o  z
)  =  ( z  .o  x )  /\  ( y  .o  w
)  =  ( w  .o  y ) )  ->  [ <. (
x  .o  z ) ,  ( y  .o  w ) >. ] ~Q0  =  [ <. (
z  .o  x ) ,  ( w  .o  y ) >. ] ~Q0  )
179, 14, 16syl2anc 409 . . 3  |-  ( ( ( x  e.  om  /\  y  e.  N. )  /\  ( z  e.  om  /\  w  e.  N. )
)  ->  [ <. (
x  .o  z ) ,  ( y  .o  w ) >. ] ~Q0  =  [ <. (
z  .o  x ) ,  ( w  .o  y ) >. ] ~Q0  )
18 mulnnnq0 7282 . . 3  |-  ( ( ( x  e.  om  /\  y  e.  N. )  /\  ( z  e.  om  /\  w  e.  N. )
)  ->  ( [ <. x ,  y >. ] ~Q0 ·Q0  [ <. z ,  w >. ] ~Q0  )  =  [ <. (
x  .o  z ) ,  ( y  .o  w ) >. ] ~Q0  )
19 mulnnnq0 7282 . . . 4  |-  ( ( ( z  e.  om  /\  w  e.  N. )  /\  ( x  e.  om  /\  y  e.  N. )
)  ->  ( [ <. z ,  w >. ] ~Q0 ·Q0  [ <. x ,  y
>. ] ~Q0  )  =  [ <. (
z  .o  x ) ,  ( w  .o  y ) >. ] ~Q0  )
2019ancoms 266 . . 3  |-  ( ( ( x  e.  om  /\  y  e.  N. )  /\  ( z  e.  om  /\  w  e.  N. )
)  ->  ( [ <. z ,  w >. ] ~Q0 ·Q0  [ <. x ,  y
>. ] ~Q0  )  =  [ <. (
z  .o  x ) ,  ( w  .o  y ) >. ] ~Q0  )
2117, 18, 203eqtr4d 2183 . 2  |-  ( ( ( x  e.  om  /\  y  e.  N. )  /\  ( z  e.  om  /\  w  e.  N. )
)  ->  ( [ <. x ,  y >. ] ~Q0 ·Q0  [ <. z ,  w >. ] ~Q0  )  =  ( [ <. z ,  w >. ] ~Q0 ·Q0  [ <. x ,  y
>. ] ~Q0  ) )
221, 4, 7, 212ecoptocl 6525 1  |-  ( ( A  e. Q0  /\  B  e. Q0 )  ->  ( A ·Q0  B )  =  ( B ·Q0 
A ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    = wceq 1332    e. wcel 1481   <.cop 3535   omcom 4512  (class class class)co 5782    .o comu 6319   [cec 6435   N.cnpi 7104   ~Q0 ceq0 7118  Q0cnq0 7119   ·Q0 cmq0 7122
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1424  ax-7 1425  ax-gen 1426  ax-ie1 1470  ax-ie2 1471  ax-8 1483  ax-10 1484  ax-11 1485  ax-i12 1486  ax-bndl 1487  ax-4 1488  ax-13 1492  ax-14 1493  ax-17 1507  ax-i9 1511  ax-ial 1515  ax-i5r 1516  ax-ext 2122  ax-coll 4051  ax-sep 4054  ax-nul 4062  ax-pow 4106  ax-pr 4139  ax-un 4363  ax-setind 4460  ax-iinf 4510
This theorem depends on definitions:  df-bi 116  df-dc 821  df-3or 964  df-3an 965  df-tru 1335  df-fal 1338  df-nf 1438  df-sb 1737  df-eu 2003  df-mo 2004  df-clab 2127  df-cleq 2133  df-clel 2136  df-nfc 2271  df-ne 2310  df-ral 2422  df-rex 2423  df-reu 2424  df-rab 2426  df-v 2691  df-sbc 2914  df-csb 3008  df-dif 3078  df-un 3080  df-in 3082  df-ss 3089  df-nul 3369  df-pw 3517  df-sn 3538  df-pr 3539  df-op 3541  df-uni 3745  df-int 3780  df-iun 3823  df-br 3938  df-opab 3998  df-mpt 3999  df-tr 4035  df-id 4223  df-iord 4296  df-on 4298  df-suc 4301  df-iom 4513  df-xp 4553  df-rel 4554  df-cnv 4555  df-co 4556  df-dm 4557  df-rn 4558  df-res 4559  df-ima 4560  df-iota 5096  df-fun 5133  df-fn 5134  df-f 5135  df-f1 5136  df-fo 5137  df-f1o 5138  df-fv 5139  df-ov 5785  df-oprab 5786  df-mpo 5787  df-1st 6046  df-2nd 6047  df-recs 6210  df-irdg 6275  df-oadd 6325  df-omul 6326  df-er 6437  df-ec 6439  df-qs 6443  df-ni 7136  df-mi 7138  df-enq0 7256  df-nq0 7257  df-mq0 7260
This theorem is referenced by:  distnq0r  7295
  Copyright terms: Public domain W3C validator