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

Theorem ordpinq 8812
Description: Ordering of positive fractions in terms of positive integers. (Contributed by NM, 13-Feb-1996.) (Revised by Mario Carneiro, 28-Apr-2013.) (New usage is discouraged.)
Assertion
Ref Expression
ordpinq  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( A  <Q  B  <->  ( ( 1st `  A )  .N  ( 2nd `  B
) )  <N  (
( 1st `  B
)  .N  ( 2nd `  A ) ) ) )

Proof of Theorem ordpinq
StepHypRef Expression
1 brinxp 4932 . . 3  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( A  <pQ  B  <->  A (  <pQ  i^i  ( Q.  X.  Q. ) ) B ) )
2 df-ltnq 8787 . . . 4  |-  <Q  =  (  <pQ  i^i  ( Q.  X.  Q. ) )
32breqi 4210 . . 3  |-  ( A 
<Q  B  <->  A (  <pQ  i^i  ( Q.  X.  Q. ) ) B )
41, 3syl6bbr 255 . 2  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( A  <pQ  B  <->  A  <Q  B ) )
5 relxp 4975 . . . . 5  |-  Rel  ( N.  X.  N. )
6 elpqn 8794 . . . . 5  |-  ( A  e.  Q.  ->  A  e.  ( N.  X.  N. ) )
7 1st2nd 6385 . . . . 5  |-  ( ( Rel  ( N.  X.  N. )  /\  A  e.  ( N.  X.  N. ) )  ->  A  =  <. ( 1st `  A
) ,  ( 2nd `  A ) >. )
85, 6, 7sylancr 645 . . . 4  |-  ( A  e.  Q.  ->  A  =  <. ( 1st `  A
) ,  ( 2nd `  A ) >. )
9 elpqn 8794 . . . . 5  |-  ( B  e.  Q.  ->  B  e.  ( N.  X.  N. ) )
10 1st2nd 6385 . . . . 5  |-  ( ( Rel  ( N.  X.  N. )  /\  B  e.  ( N.  X.  N. ) )  ->  B  =  <. ( 1st `  B
) ,  ( 2nd `  B ) >. )
115, 9, 10sylancr 645 . . . 4  |-  ( B  e.  Q.  ->  B  =  <. ( 1st `  B
) ,  ( 2nd `  B ) >. )
128, 11breqan12d 4219 . . 3  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( A  <pQ  B  <->  <. ( 1st `  A ) ,  ( 2nd `  A )
>.  <pQ  <. ( 1st `  B
) ,  ( 2nd `  B ) >. )
)
13 ordpipq 8811 . . 3  |-  ( <.
( 1st `  A
) ,  ( 2nd `  A ) >.  <pQ  <. ( 1st `  B ) ,  ( 2nd `  B
) >. 
<->  ( ( 1st `  A
)  .N  ( 2nd `  B ) )  <N 
( ( 1st `  B
)  .N  ( 2nd `  A ) ) )
1412, 13syl6bb 253 . 2  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( A  <pQ  B  <->  ( ( 1st `  A )  .N  ( 2nd `  B
) )  <N  (
( 1st `  B
)  .N  ( 2nd `  A ) ) ) )
154, 14bitr3d 247 1  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( A  <Q  B  <->  ( ( 1st `  A )  .N  ( 2nd `  B
) )  <N  (
( 1st `  B
)  .N  ( 2nd `  A ) ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 177    /\ wa 359    = wceq 1652    e. wcel 1725    i^i cin 3311   <.cop 3809   class class class wbr 4204    X. cxp 4868   Rel wrel 4875   ` cfv 5446  (class class class)co 6073   1stc1st 6339   2ndc2nd 6340   N.cnpi 8711    .N cmi 8713    <N clti 8714    <pQ cltpq 8717   Q.cnq 8719    <Q cltq 8725
This theorem is referenced by:  ltsonq  8838  lterpq  8839  ltanq  8840  ltmnq  8841  ltexnq  8844  archnq  8849
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-sep 4322  ax-nul 4330  ax-pow 4369  ax-pr 4395  ax-un 4693
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-ral 2702  df-rex 2703  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-sn 3812  df-pr 3813  df-tp 3814  df-op 3815  df-uni 4008  df-iun 4087  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-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-fv 5454  df-ov 6076  df-oprab 6077  df-mpt2 6078  df-1st 6341  df-2nd 6342  df-omul 6721  df-ni 8741  df-mi 8743  df-lti 8744  df-ltpq 8779  df-nq 8781  df-ltnq 8787
  Copyright terms: Public domain W3C validator