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

Theorem ordpipq 10353
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 5321 . . 3 𝐴, 𝐵⟩ ∈ V
2 opex 5321 . . 3 𝐶, 𝐷⟩ ∈ V
3 eleq1 2877 . . . . . 6 (𝑥 = ⟨𝐴, 𝐵⟩ → (𝑥 ∈ (N × N) ↔ ⟨𝐴, 𝐵⟩ ∈ (N × N)))
43anbi1d 632 . . . . 5 (𝑥 = ⟨𝐴, 𝐵⟩ → ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ↔ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))))
54anbi1d 632 . . . 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 6645 . . . . . . . 8 (𝑥 = ⟨𝐴, 𝐵⟩ → (1st𝑥) = (1st ‘⟨𝐴, 𝐵⟩))
7 opelxp 5555 . . . . . . . . . 10 (⟨𝐴, 𝐵⟩ ∈ (N × N) ↔ (𝐴N𝐵N))
8 op1stg 7683 . . . . . . . . . 10 ((𝐴N𝐵N) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
97, 8sylbi 220 . . . . . . . . 9 (⟨𝐴, 𝐵⟩ ∈ (N × N) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
109adantr 484 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
116, 10sylan9eq 2853 . . . . . . 7 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → (1st𝑥) = 𝐴)
1211oveq1d 7150 . . . . . 6 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → ((1st𝑥) ·N (2nd𝑦)) = (𝐴 ·N (2nd𝑦)))
13 fveq2 6645 . . . . . . . 8 (𝑥 = ⟨𝐴, 𝐵⟩ → (2nd𝑥) = (2nd ‘⟨𝐴, 𝐵⟩))
14 op2ndg 7684 . . . . . . . . . 10 ((𝐴N𝐵N) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
157, 14sylbi 220 . . . . . . . . 9 (⟨𝐴, 𝐵⟩ ∈ (N × N) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
1615adantr 484 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
1713, 16sylan9eq 2853 . . . . . . 7 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → (2nd𝑥) = 𝐵)
1817oveq2d 7151 . . . . . 6 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → ((1st𝑦) ·N (2nd𝑥)) = ((1st𝑦) ·N 𝐵))
1912, 18breq12d 5043 . . . . 5 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → (((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥)) ↔ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵)))
2019pm5.32da 582 . . . 4 (𝑥 = ⟨𝐴, 𝐵⟩ → (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ ((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥))) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵))))
215, 20bitrd 282 . . 3 (𝑥 = ⟨𝐴, 𝐵⟩ → (((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ ((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥))) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵))))
22 eleq1 2877 . . . . . 6 (𝑦 = ⟨𝐶, 𝐷⟩ → (𝑦 ∈ (N × N) ↔ ⟨𝐶, 𝐷⟩ ∈ (N × N)))
2322anbi2d 631 . . . . 5 (𝑦 = ⟨𝐶, 𝐷⟩ → ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ↔ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))))
2423anbi1d 632 . . . 4 (𝑦 = ⟨𝐶, 𝐷⟩ → (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵)) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵))))
25 fveq2 6645 . . . . . . . 8 (𝑦 = ⟨𝐶, 𝐷⟩ → (2nd𝑦) = (2nd ‘⟨𝐶, 𝐷⟩))
26 opelxp 5555 . . . . . . . . . 10 (⟨𝐶, 𝐷⟩ ∈ (N × N) ↔ (𝐶N𝐷N))
27 op2ndg 7684 . . . . . . . . . 10 ((𝐶N𝐷N) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
2826, 27sylbi 220 . . . . . . . . 9 (⟨𝐶, 𝐷⟩ ∈ (N × N) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
2928adantl 485 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
3025, 29sylan9eq 2853 . . . . . . 7 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → (2nd𝑦) = 𝐷)
3130oveq2d 7151 . . . . . 6 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → (𝐴 ·N (2nd𝑦)) = (𝐴 ·N 𝐷))
32 fveq2 6645 . . . . . . . 8 (𝑦 = ⟨𝐶, 𝐷⟩ → (1st𝑦) = (1st ‘⟨𝐶, 𝐷⟩))
33 op1stg 7683 . . . . . . . . . 10 ((𝐶N𝐷N) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
3426, 33sylbi 220 . . . . . . . . 9 (⟨𝐶, 𝐷⟩ ∈ (N × N) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
3534adantl 485 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
3632, 35sylan9eq 2853 . . . . . . 7 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → (1st𝑦) = 𝐶)
3736oveq1d 7150 . . . . . 6 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → ((1st𝑦) ·N 𝐵) = (𝐶 ·N 𝐵))
3831, 37breq12d 5043 . . . . 5 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → ((𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵) ↔ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)))
3938pm5.32da 582 . . . 4 (𝑦 = ⟨𝐶, 𝐷⟩ → (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵)) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))))
4024, 39bitrd 282 . . 3 (𝑦 = ⟨𝐶, 𝐷⟩ → (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵)) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))))
41 df-ltpq 10321 . . 3 <pQ = {⟨𝑥, 𝑦⟩ ∣ ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ ((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥)))}
421, 2, 21, 40, 41brab 5395 . 2 (⟨𝐴, 𝐵⟩ <pQ𝐶, 𝐷⟩ ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)))
43 simpr 488 . . 3 (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)) → (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))
44 ltrelpi 10300 . . . . . 6 <N ⊆ (N × N)
4544brel 5581 . . . . 5 ((𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵) → ((𝐴 ·N 𝐷) ∈ N ∧ (𝐶 ·N 𝐵) ∈ N))
46 dmmulpi 10302 . . . . . . 7 dom ·N = (N × N)
47 0npi 10293 . . . . . . 7 ¬ ∅ ∈ N
4846, 47ndmovrcl 7314 . . . . . 6 ((𝐴 ·N 𝐷) ∈ N → (𝐴N𝐷N))
4946, 47ndmovrcl 7314 . . . . . 6 ((𝐶 ·N 𝐵) ∈ N → (𝐶N𝐵N))
5048, 49anim12i 615 . . . . 5 (((𝐴 ·N 𝐷) ∈ N ∧ (𝐶 ·N 𝐵) ∈ N) → ((𝐴N𝐷N) ∧ (𝐶N𝐵N)))
51 opelxpi 5556 . . . . . . 7 ((𝐴N𝐵N) → ⟨𝐴, 𝐵⟩ ∈ (N × N))
5251ad2ant2rl 748 . . . . . 6 (((𝐴N𝐷N) ∧ (𝐶N𝐵N)) → ⟨𝐴, 𝐵⟩ ∈ (N × N))
53 simprl 770 . . . . . . 7 (((𝐴N𝐷N) ∧ (𝐶N𝐵N)) → 𝐶N)
54 simplr 768 . . . . . . 7 (((𝐴N𝐷N) ∧ (𝐶N𝐵N)) → 𝐷N)
5553, 54opelxpd 5557 . . . . . 6 (((𝐴N𝐷N) ∧ (𝐶N𝐵N)) → ⟨𝐶, 𝐷⟩ ∈ (N × N))
5652, 55jca 515 . . . . 5 (((𝐴N𝐷N) ∧ (𝐶N𝐵N)) → (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)))
5745, 50, 563syl 18 . . . 4 ((𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵) → (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)))
5857ancri 553 . . 3 ((𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵) → ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)))
5943, 58impbii 212 . 2 (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)) ↔ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))
6042, 59bitri 278 1 (⟨𝐴, 𝐵⟩ <pQ𝐶, 𝐷⟩ ↔ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wb 209  wa 399   = wceq 1538  wcel 2111  cop 4531   class class class wbr 5030   × cxp 5517  cfv 6324  (class class class)co 7135  1st c1st 7669  2nd c2nd 7670  Ncnpi 10255   ·N cmi 10257   <N clti 10258   <pQ cltpq 10261
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-fv 6332  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7561  df-1st 7671  df-2nd 7672  df-omul 8090  df-ni 10283  df-mi 10285  df-lti 10286  df-ltpq 10321
This theorem is referenced by:  ordpinq  10354  lterpq  10381  ltanq  10382  ltmnq  10383  1lt2nq  10384
  Copyright terms: Public domain W3C validator