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

Theorem ordpipq 10352
Description: Ordering of positive fractions in terms of positive integers. (Contributed by Mario Carneiro, 8-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
ordpipq (⟨𝐴, 𝐵⟩ <pQ𝐶, 𝐷⟩ ↔ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))

Proof of Theorem ordpipq
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 opex 5347 . . 3 𝐴, 𝐵⟩ ∈ V
2 opex 5347 . . 3 𝐶, 𝐷⟩ ∈ V
3 eleq1 2897 . . . . . 6 (𝑥 = ⟨𝐴, 𝐵⟩ → (𝑥 ∈ (N × N) ↔ ⟨𝐴, 𝐵⟩ ∈ (N × N)))
43anbi1d 629 . . . . 5 (𝑥 = ⟨𝐴, 𝐵⟩ → ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ↔ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))))
54anbi1d 629 . . . 4 (𝑥 = ⟨𝐴, 𝐵⟩ → (((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ ((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥))) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ ((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥)))))
6 fveq2 6663 . . . . . . . 8 (𝑥 = ⟨𝐴, 𝐵⟩ → (1st𝑥) = (1st ‘⟨𝐴, 𝐵⟩))
7 opelxp 5584 . . . . . . . . . 10 (⟨𝐴, 𝐵⟩ ∈ (N × N) ↔ (𝐴N𝐵N))
8 op1stg 7690 . . . . . . . . . 10 ((𝐴N𝐵N) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
97, 8sylbi 218 . . . . . . . . 9 (⟨𝐴, 𝐵⟩ ∈ (N × N) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
109adantr 481 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
116, 10sylan9eq 2873 . . . . . . 7 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → (1st𝑥) = 𝐴)
1211oveq1d 7160 . . . . . 6 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → ((1st𝑥) ·N (2nd𝑦)) = (𝐴 ·N (2nd𝑦)))
13 fveq2 6663 . . . . . . . 8 (𝑥 = ⟨𝐴, 𝐵⟩ → (2nd𝑥) = (2nd ‘⟨𝐴, 𝐵⟩))
14 op2ndg 7691 . . . . . . . . . 10 ((𝐴N𝐵N) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
157, 14sylbi 218 . . . . . . . . 9 (⟨𝐴, 𝐵⟩ ∈ (N × N) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
1615adantr 481 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
1713, 16sylan9eq 2873 . . . . . . 7 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → (2nd𝑥) = 𝐵)
1817oveq2d 7161 . . . . . 6 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → ((1st𝑦) ·N (2nd𝑥)) = ((1st𝑦) ·N 𝐵))
1912, 18breq12d 5070 . . . . 5 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → (((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥)) ↔ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵)))
2019pm5.32da 579 . . . 4 (𝑥 = ⟨𝐴, 𝐵⟩ → (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ ((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥))) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵))))
215, 20bitrd 280 . . 3 (𝑥 = ⟨𝐴, 𝐵⟩ → (((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ ((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥))) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵))))
22 eleq1 2897 . . . . . 6 (𝑦 = ⟨𝐶, 𝐷⟩ → (𝑦 ∈ (N × N) ↔ ⟨𝐶, 𝐷⟩ ∈ (N × N)))
2322anbi2d 628 . . . . 5 (𝑦 = ⟨𝐶, 𝐷⟩ → ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ↔ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))))
2423anbi1d 629 . . . 4 (𝑦 = ⟨𝐶, 𝐷⟩ → (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵)) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵))))
25 fveq2 6663 . . . . . . . 8 (𝑦 = ⟨𝐶, 𝐷⟩ → (2nd𝑦) = (2nd ‘⟨𝐶, 𝐷⟩))
26 opelxp 5584 . . . . . . . . . 10 (⟨𝐶, 𝐷⟩ ∈ (N × N) ↔ (𝐶N𝐷N))
27 op2ndg 7691 . . . . . . . . . 10 ((𝐶N𝐷N) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
2826, 27sylbi 218 . . . . . . . . 9 (⟨𝐶, 𝐷⟩ ∈ (N × N) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
2928adantl 482 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
3025, 29sylan9eq 2873 . . . . . . 7 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → (2nd𝑦) = 𝐷)
3130oveq2d 7161 . . . . . 6 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → (𝐴 ·N (2nd𝑦)) = (𝐴 ·N 𝐷))
32 fveq2 6663 . . . . . . . 8 (𝑦 = ⟨𝐶, 𝐷⟩ → (1st𝑦) = (1st ‘⟨𝐶, 𝐷⟩))
33 op1stg 7690 . . . . . . . . . 10 ((𝐶N𝐷N) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
3426, 33sylbi 218 . . . . . . . . 9 (⟨𝐶, 𝐷⟩ ∈ (N × N) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
3534adantl 482 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
3632, 35sylan9eq 2873 . . . . . . 7 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → (1st𝑦) = 𝐶)
3736oveq1d 7160 . . . . . 6 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → ((1st𝑦) ·N 𝐵) = (𝐶 ·N 𝐵))
3831, 37breq12d 5070 . . . . 5 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → ((𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵) ↔ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)))
3938pm5.32da 579 . . . 4 (𝑦 = ⟨𝐶, 𝐷⟩ → (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵)) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))))
4024, 39bitrd 280 . . 3 (𝑦 = ⟨𝐶, 𝐷⟩ → (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵)) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))))
41 df-ltpq 10320 . . 3 <pQ = {⟨𝑥, 𝑦⟩ ∣ ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ ((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥)))}
421, 2, 21, 40, 41brab 5421 . 2 (⟨𝐴, 𝐵⟩ <pQ𝐶, 𝐷⟩ ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)))
43 simpr 485 . . 3 (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)) → (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))
44 ltrelpi 10299 . . . . . 6 <N ⊆ (N × N)
4544brel 5610 . . . . 5 ((𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵) → ((𝐴 ·N 𝐷) ∈ N ∧ (𝐶 ·N 𝐵) ∈ N))
46 dmmulpi 10301 . . . . . . 7 dom ·N = (N × N)
47 0npi 10292 . . . . . . 7 ¬ ∅ ∈ N
4846, 47ndmovrcl 7323 . . . . . 6 ((𝐴 ·N 𝐷) ∈ N → (𝐴N𝐷N))
4946, 47ndmovrcl 7323 . . . . . 6 ((𝐶 ·N 𝐵) ∈ N → (𝐶N𝐵N))
5048, 49anim12i 612 . . . . 5 (((𝐴 ·N 𝐷) ∈ N ∧ (𝐶 ·N 𝐵) ∈ N) → ((𝐴N𝐷N) ∧ (𝐶N𝐵N)))
51 opelxpi 5585 . . . . . . 7 ((𝐴N𝐵N) → ⟨𝐴, 𝐵⟩ ∈ (N × N))
5251ad2ant2rl 745 . . . . . 6 (((𝐴N𝐷N) ∧ (𝐶N𝐵N)) → ⟨𝐴, 𝐵⟩ ∈ (N × N))
53 simprl 767 . . . . . . 7 (((𝐴N𝐷N) ∧ (𝐶N𝐵N)) → 𝐶N)
54 simplr 765 . . . . . . 7 (((𝐴N𝐷N) ∧ (𝐶N𝐵N)) → 𝐷N)
5553, 54opelxpd 5586 . . . . . 6 (((𝐴N𝐷N) ∧ (𝐶N𝐵N)) → ⟨𝐶, 𝐷⟩ ∈ (N × N))
5652, 55jca 512 . . . . 5 (((𝐴N𝐷N) ∧ (𝐶N𝐵N)) → (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)))
5745, 50, 563syl 18 . . . 4 ((𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵) → (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)))
5857ancri 550 . . 3 ((𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵) → ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)))
5943, 58impbii 210 . 2 (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)) ↔ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))
6042, 59bitri 276 1 (⟨𝐴, 𝐵⟩ <pQ𝐶, 𝐷⟩ ↔ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wb 207  wa 396   = wceq 1528  wcel 2105  cop 4563   class class class wbr 5057   × cxp 5546  cfv 6348  (class class class)co 7145  1st c1st 7676  2nd c2nd 7677  Ncnpi 10254   ·N cmi 10256   <N clti 10257   <pQ cltpq 10260
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790  ax-sep 5194  ax-nul 5201  ax-pow 5257  ax-pr 5320  ax-un 7450
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-3or 1080  df-3an 1081  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-mo 2615  df-eu 2647  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-ne 3014  df-ral 3140  df-rex 3141  df-rab 3144  df-v 3494  df-sbc 3770  df-csb 3881  df-dif 3936  df-un 3938  df-in 3940  df-ss 3949  df-pss 3951  df-nul 4289  df-if 4464  df-sn 4558  df-pr 4560  df-tp 4562  df-op 4564  df-uni 4831  df-iun 4912  df-br 5058  df-opab 5120  df-mpt 5138  df-tr 5164  df-id 5453  df-eprel 5458  df-po 5467  df-so 5468  df-fr 5507  df-we 5509  df-xp 5554  df-rel 5555  df-cnv 5556  df-co 5557  df-dm 5558  df-rn 5559  df-res 5560  df-ima 5561  df-ord 6187  df-on 6188  df-lim 6189  df-suc 6190  df-iota 6307  df-fun 6350  df-fn 6351  df-f 6352  df-fv 6356  df-ov 7148  df-oprab 7149  df-mpo 7150  df-om 7570  df-1st 7678  df-2nd 7679  df-omul 8096  df-ni 10282  df-mi 10284  df-lti 10285  df-ltpq 10320
This theorem is referenced by:  ordpinq  10353  lterpq  10380  ltanq  10381  ltmnq  10382  1lt2nq  10383
  Copyright terms: Public domain W3C validator