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

Theorem ordpipq 11008
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 5432 . . 3 ⟨𝐴, 𝐵⟩ ∈ V
2 opex 5432 . . 3 ⟨𝐶, 𝐷⟩ ∈ V
3 eleq1 2849 . . . . . 6 (𝑥 = ⟨𝐴, 𝐵⟩ → (𝑥 ∈ (N × N) ↔ ⟨𝐴, 𝐵⟩ ∈ (N × N)))
43anbi1d 643 . . . . 5 (𝑥 = ⟨𝐴, 𝐵⟩ → ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ↔ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))))
54anbi1d 643 . . . 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 6877 . . . . . . . 8 (𝑥 = ⟨𝐴, 𝐵⟩ → (1st ‘𝑥) = (1st ‘⟨𝐴, 𝐵⟩))
7 opelxp 5687 . . . . . . . . . 10 (⟨𝐴, 𝐵⟩ ∈ (N × N) ↔ (𝐴 ∈ N ∧ 𝐵 ∈ N))
8 op1stg 8002 . . . . . . . . . 10 ((𝐴 ∈ N ∧ 𝐵 ∈ N) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
97, 8sylbi 220 . . . . . . . . 9 (⟨𝐴, 𝐵⟩ ∈ (N × N) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
109adantr 486 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (1st ‘⟨𝐴, 𝐵⟩) = 𝐴)
116, 10sylan9eq 2816 . . . . . . 7 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → (1st ‘𝑥) = 𝐴)
1211oveq1d 7427 . . . . . 6 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → ((1st ‘𝑥) ·N (2nd ‘𝑦)) = (𝐴 ·N (2nd ‘𝑦)))
13 fveq2 6877 . . . . . . . 8 (𝑥 = ⟨𝐴, 𝐵⟩ → (2nd ‘𝑥) = (2nd ‘⟨𝐴, 𝐵⟩))
14 op2ndg 8003 . . . . . . . . . 10 ((𝐴 ∈ N ∧ 𝐵 ∈ N) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
157, 14sylbi 220 . . . . . . . . 9 (⟨𝐴, 𝐵⟩ ∈ (N × N) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
1615adantr 486 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (2nd ‘⟨𝐴, 𝐵⟩) = 𝐵)
1713, 16sylan9eq 2816 . . . . . . 7 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → (2nd ‘𝑥) = 𝐵)
1817oveq2d 7428 . . . . . 6 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → ((1st ‘𝑦) ·N (2nd ‘𝑥)) = ((1st ‘𝑦) ·N 𝐵))
1912, 18breq12d 5116 . . . . 5 ((𝑥 = ⟨𝐴, 𝐵⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N))) → (((1st ‘𝑥) ·N (2nd ‘𝑦)) <N ((1st ‘𝑦) ·N (2nd ‘𝑥)) ↔ (𝐴 ·N (2nd ‘𝑦)) <N ((1st ‘𝑦) ·N 𝐵)))
2019pm5.32da 590 . . . 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 2849 . . . . . 6 (𝑦 = ⟨𝐶, 𝐷⟩ → (𝑦 ∈ (N × N) ↔ ⟨𝐶, 𝐷⟩ ∈ (N × N)))
2322anbi2d 642 . . . . 5 (𝑦 = ⟨𝐶, 𝐷⟩ → ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ↔ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))))
2423anbi1d 643 . . . 4 (𝑦 = ⟨𝐶, 𝐷⟩ → (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ (𝐴 ·N (2nd ‘𝑦)) <N ((1st ‘𝑦) ·N 𝐵)) ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N (2nd ‘𝑦)) <N ((1st ‘𝑦) ·N 𝐵))))
25 fveq2 6877 . . . . . . . 8 (𝑦 = ⟨𝐶, 𝐷⟩ → (2nd ‘𝑦) = (2nd ‘⟨𝐶, 𝐷⟩))
26 opelxp 5687 . . . . . . . . . 10 (⟨𝐶, 𝐷⟩ ∈ (N × N) ↔ (𝐶 ∈ N ∧ 𝐷 ∈ N))
27 op2ndg 8003 . . . . . . . . . 10 ((𝐶 ∈ N ∧ 𝐷 ∈ N) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
2826, 27sylbi 220 . . . . . . . . 9 (⟨𝐶, 𝐷⟩ ∈ (N × N) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
2928adantl 487 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
3025, 29sylan9eq 2816 . . . . . . 7 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → (2nd ‘𝑦) = 𝐷)
3130oveq2d 7428 . . . . . 6 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → (𝐴 ·N (2nd ‘𝑦)) = (𝐴 ·N 𝐷))
32 fveq2 6877 . . . . . . . 8 (𝑦 = ⟨𝐶, 𝐷⟩ → (1st ‘𝑦) = (1st ‘⟨𝐶, 𝐷⟩))
33 op1stg 8002 . . . . . . . . . 10 ((𝐶 ∈ N ∧ 𝐷 ∈ N) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
3426, 33sylbi 220 . . . . . . . . 9 (⟨𝐶, 𝐷⟩ ∈ (N × N) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
3534adantl 487 . . . . . . . 8 ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
3632, 35sylan9eq 2816 . . . . . . 7 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → (1st ‘𝑦) = 𝐶)
3736oveq1d 7427 . . . . . 6 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → ((1st ‘𝑦) ·N 𝐵) = (𝐶 ·N 𝐵))
3831, 37breq12d 5116 . . . . 5 ((𝑦 = ⟨𝐶, 𝐷⟩ ∧ (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N))) → ((𝐴 ·N (2nd ‘𝑦)) <N ((1st ‘𝑦) ·N 𝐵) ↔ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)))
3938pm5.32da 590 . . . 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 10976 . . 3 <pQ = {⟨𝑥, 𝑦⟩ ∣ ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) ∧ ((1st ‘𝑥) ·N (2nd ‘𝑦)) <N ((1st ‘𝑦) ·N (2nd ‘𝑥)))}
421, 2, 21, 40, 41brab 5518 . 2 (⟨𝐴, 𝐵⟩ <pQ ⟨𝐶, 𝐷⟩ ↔ ((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)))
43 simpr 490 . . 3 (((⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)) ∧ (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵)) → (𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵))
44 ltrelpi 10955 . . . . . 6 <N ⊆ (N × N)
4544brel 5716 . . . . 5 ((𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵) → ((𝐴 ·N 𝐷) ∈ N ∧ (𝐶 ·N 𝐵) ∈ N))
46 dmmulpi 10957 . . . . . . 7 dom ·N = (N × N)
47 0npi 10948 . . . . . . 7 ¬ ∅ ∈ N
4846, 47ndmovrcl 7599 . . . . . 6 ((𝐴 ·N 𝐷) ∈ N → (𝐴 ∈ N ∧ 𝐷 ∈ N))
4946, 47ndmovrcl 7599 . . . . . 6 ((𝐶 ·N 𝐵) ∈ N → (𝐶 ∈ N ∧ 𝐵 ∈ N))
5048, 49anim12i 625 . . . . 5 (((𝐴 ·N 𝐷) ∈ N ∧ (𝐶 ·N 𝐵) ∈ N) → ((𝐴 ∈ N ∧ 𝐷 ∈ N) ∧ (𝐶 ∈ N ∧ 𝐵 ∈ N)))
51 opelxpi 5688 . . . . . . 7 ((𝐴 ∈ N ∧ 𝐵 ∈ N) → ⟨𝐴, 𝐵⟩ ∈ (N × N))
5251ad2ant2rl 762 . . . . . 6 (((𝐴 ∈ N ∧ 𝐷 ∈ N) ∧ (𝐶 ∈ N ∧ 𝐵 ∈ N)) → ⟨𝐴, 𝐵⟩ ∈ (N × N))
53 simprl 783 . . . . . . 7 (((𝐴 ∈ N ∧ 𝐷 ∈ N) ∧ (𝐶 ∈ N ∧ 𝐵 ∈ N)) → 𝐶 ∈ N)
54 simplr 781 . . . . . . 7 (((𝐴 ∈ N ∧ 𝐷 ∈ N) ∧ (𝐶 ∈ N ∧ 𝐵 ∈ N)) → 𝐷 ∈ N)
5553, 54opelxpd 5690 . . . . . 6 (((𝐴 ∈ N ∧ 𝐷 ∈ N) ∧ (𝐶 ∈ N ∧ 𝐵 ∈ N)) → ⟨𝐶, 𝐷⟩ ∈ (N × N))
5652, 55jca 521 . . . . 5 (((𝐴 ∈ N ∧ 𝐷 ∈ N) ∧ (𝐶 ∈ N ∧ 𝐵 ∈ N)) → (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)))
5745, 50, 563syl 19 . . . 4 ((𝐴 ·N 𝐷) <N (𝐶 ·N 𝐵) → (⟨𝐴, 𝐵⟩ ∈ (N × N) ∧ ⟨𝐶, 𝐷⟩ ∈ (N × N)))
5857ancri 559 . . 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
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2145  ⟨cop 4590   class class class wbr 5103   × cxp 5649  ‘cfv 6531  (class class class)co 7412  1st c1st 7988  2nd c2nd 7989  Ncnpi 10910   ·N cmi 10912   <N clti 10913   <pQ cltpq 10916
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pr 5391  ax-un 7740
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-fv 6539  df-ov 7415  df-oprab 7416  df-mpo 7417  df-om 7867  df-1st 7990  df-2nd 7991  df-omul 8465  df-ni 10938  df-mi 10940  df-lti 10941  df-ltpq 10976
This theorem is used by:  ordpinq  11009  lterpq  11036  ltanq  11037  ltmnq  11038  1lt2nq  11039
  Copyright terms: Public domain W3C validator