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

Theorem ordpipq 10629
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 5373 . . 3 𝐴, 𝐵⟩ ∈ V
2 opex 5373 . . 3 𝐶, 𝐷⟩ ∈ V
3 eleq1 2826 . . . . . 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 6756 . . . . . . . 8 (𝑥 = ⟨𝐴, 𝐵⟩ → (1st𝑥) = (1st ‘⟨𝐴, 𝐵⟩))
7 opelxp 5616 . . . . . . . . . 10 (⟨𝐴, 𝐵⟩ ∈ (N × N) ↔ (𝐴N𝐵N))
8 op1stg 7816 . . . . . . . . . 10 ((𝐴N𝐵N) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
97, 8sylbi 216 . . . . . . . . 9 (⟨𝐴, 𝐵⟩ ∈ (N × N) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
109adantr 480 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
116, 10sylan9eq 2799 . . . . . . 7 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → (1st𝑥) = 𝐴)
1211oveq1d 7270 . . . . . 6 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → ((1st𝑥) ·N (2nd𝑦)) = (𝐴 ·N (2nd𝑦)))
13 fveq2 6756 . . . . . . . 8 (𝑥 = ⟨𝐴, 𝐵⟩ → (2nd𝑥) = (2nd ‘⟨𝐴, 𝐵⟩))
14 op2ndg 7817 . . . . . . . . . 10 ((𝐴N𝐵N) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
157, 14sylbi 216 . . . . . . . . 9 (⟨𝐴, 𝐵⟩ ∈ (N × N) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
1615adantr 480 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
1713, 16sylan9eq 2799 . . . . . . 7 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → (2nd𝑥) = 𝐵)
1817oveq2d 7271 . . . . . 6 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → ((1st𝑦) ·N (2nd𝑥)) = ((1st𝑦) ·N 𝐵))
1912, 18breq12d 5083 . . . . 5 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → (((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥)) ↔ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵)))
2019pm5.32da 578 . . . 4 (𝑥 = ⟨𝐴, 𝐵⟩ → (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ ((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥))) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵))))
215, 20bitrd 278 . . 3 (𝑥 = ⟨𝐴, 𝐵⟩ → (((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ ((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥))) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵))))
22 eleq1 2826 . . . . . 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 6756 . . . . . . . 8 (𝑦 = ⟨𝐶, 𝐷⟩ → (2nd𝑦) = (2nd ‘⟨𝐶, 𝐷⟩))
26 opelxp 5616 . . . . . . . . . 10 (⟨𝐶, 𝐷⟩ ∈ (N × N) ↔ (𝐶N𝐷N))
27 op2ndg 7817 . . . . . . . . . 10 ((𝐶N𝐷N) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
2826, 27sylbi 216 . . . . . . . . 9 (⟨𝐶, 𝐷⟩ ∈ (N × N) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
2928adantl 481 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
3025, 29sylan9eq 2799 . . . . . . 7 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → (2nd𝑦) = 𝐷)
3130oveq2d 7271 . . . . . 6 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → (𝐴 ·N (2nd𝑦)) = (𝐴 ·N 𝐷))
32 fveq2 6756 . . . . . . . 8 (𝑦 = ⟨𝐶, 𝐷⟩ → (1st𝑦) = (1st ‘⟨𝐶, 𝐷⟩))
33 op1stg 7816 . . . . . . . . . 10 ((𝐶N𝐷N) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
3426, 33sylbi 216 . . . . . . . . 9 (⟨𝐶, 𝐷⟩ ∈ (N × N) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
3534adantl 481 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
3632, 35sylan9eq 2799 . . . . . . 7 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → (1st𝑦) = 𝐶)
3736oveq1d 7270 . . . . . 6 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → ((1st𝑦) ·N 𝐵) = (𝐶 ·N 𝐵))
3831, 37breq12d 5083 . . . . 5 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → ((𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵) ↔ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)))
3938pm5.32da 578 . . . 4 (𝑦 = ⟨𝐶, 𝐷⟩ → (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵)) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))))
4024, 39bitrd 278 . . 3 (𝑦 = ⟨𝐶, 𝐷⟩ → (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ (𝐴 ·N (2nd𝑦)) <N ((1st𝑦) ·N 𝐵)) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))))
41 df-ltpq 10597 . . 3 <pQ = {⟨𝑥, 𝑦⟩ ∣ ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ ((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥)))}
421, 2, 21, 40, 41brab 5449 . 2 (⟨𝐴, 𝐵⟩ <pQ𝐶, 𝐷⟩ ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)))
43 simpr 484 . . 3 (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)) → (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))
44 ltrelpi 10576 . . . . . 6 <N ⊆ (N × N)
4544brel 5643 . . . . 5 ((𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵) → ((𝐴 ·N 𝐷) ∈ N ∧ (𝐶 ·N 𝐵) ∈ N))
46 dmmulpi 10578 . . . . . . 7 dom ·N = (N × N)
47 0npi 10569 . . . . . . 7 ¬ ∅ ∈ N
4846, 47ndmovrcl 7436 . . . . . 6 ((𝐴 ·N 𝐷) ∈ N → (𝐴N𝐷N))
4946, 47ndmovrcl 7436 . . . . . 6 ((𝐶 ·N 𝐵) ∈ N → (𝐶N𝐵N))
5048, 49anim12i 612 . . . . 5 (((𝐴 ·N 𝐷) ∈ N ∧ (𝐶 ·N 𝐵) ∈ N) → ((𝐴N𝐷N) ∧ (𝐶N𝐵N)))
51 opelxpi 5617 . . . . . . 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 5618 . . . . . 6 (((𝐴N𝐷N) ∧ (𝐶N𝐵N)) → ⟨𝐶, 𝐷⟩ ∈ (N × N))
5652, 55jca 511 . . . . 5 (((𝐴N𝐷N) ∧ (𝐶N𝐵N)) → (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)))
5745, 50, 563syl 18 . . . 4 ((𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵) → (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)))
5857ancri 549 . . 3 ((𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵) → ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)))
5943, 58impbii 208 . 2 (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)) ↔ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))
6042, 59bitri 274 1 (⟨𝐴, 𝐵⟩ <pQ𝐶, 𝐷⟩ ↔ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 395   = wceq 1539  wcel 2108  cop 4564   class class class wbr 5070   × cxp 5578  cfv 6418  (class class class)co 7255  1st c1st 7802  2nd c2nd 7803  Ncnpi 10531   ·N cmi 10533   <N clti 10534   <pQ cltpq 10537
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-omul 8272  df-ni 10559  df-mi 10561  df-lti 10562  df-ltpq 10597
This theorem is referenced by:  ordpinq  10630  lterpq  10657  ltanq  10658  ltmnq  10659  1lt2nq  10660
  Copyright terms: Public domain W3C validator