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

Theorem ltsonq 10656
Description: 'Less than' is a strict ordering on positive fractions. (Contributed by NM, 19-Feb-1996.) (Revised by Mario Carneiro, 4-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
ltsonq <Q Or Q

Proof of Theorem ltsonq
Dummy variables 𝑠 𝑟 𝑡 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elpqn 10612 . . . . . . 7 (𝑥Q𝑥 ∈ (N × N))
21adantr 480 . . . . . 6 ((𝑥Q𝑦Q) → 𝑥 ∈ (N × N))
3 xp1st 7836 . . . . . 6 (𝑥 ∈ (N × N) → (1st𝑥) ∈ N)
42, 3syl 17 . . . . 5 ((𝑥Q𝑦Q) → (1st𝑥) ∈ N)
5 elpqn 10612 . . . . . . 7 (𝑦Q𝑦 ∈ (N × N))
65adantl 481 . . . . . 6 ((𝑥Q𝑦Q) → 𝑦 ∈ (N × N))
7 xp2nd 7837 . . . . . 6 (𝑦 ∈ (N × N) → (2nd𝑦) ∈ N)
86, 7syl 17 . . . . 5 ((𝑥Q𝑦Q) → (2nd𝑦) ∈ N)
9 mulclpi 10580 . . . . 5 (((1st𝑥) ∈ N ∧ (2nd𝑦) ∈ N) → ((1st𝑥) ·N (2nd𝑦)) ∈ N)
104, 8, 9syl2anc 583 . . . 4 ((𝑥Q𝑦Q) → ((1st𝑥) ·N (2nd𝑦)) ∈ N)
11 xp1st 7836 . . . . . 6 (𝑦 ∈ (N × N) → (1st𝑦) ∈ N)
126, 11syl 17 . . . . 5 ((𝑥Q𝑦Q) → (1st𝑦) ∈ N)
13 xp2nd 7837 . . . . . 6 (𝑥 ∈ (N × N) → (2nd𝑥) ∈ N)
142, 13syl 17 . . . . 5 ((𝑥Q𝑦Q) → (2nd𝑥) ∈ N)
15 mulclpi 10580 . . . . 5 (((1st𝑦) ∈ N ∧ (2nd𝑥) ∈ N) → ((1st𝑦) ·N (2nd𝑥)) ∈ N)
1612, 14, 15syl2anc 583 . . . 4 ((𝑥Q𝑦Q) → ((1st𝑦) ·N (2nd𝑥)) ∈ N)
17 ltsopi 10575 . . . . 5 <N Or N
18 sotric 5522 . . . . 5 (( <N Or N ∧ (((1st𝑥) ·N (2nd𝑦)) ∈ N ∧ ((1st𝑦) ·N (2nd𝑥)) ∈ N)) → (((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥)) ↔ ¬ (((1st𝑥) ·N (2nd𝑦)) = ((1st𝑦) ·N (2nd𝑥)) ∨ ((1st𝑦) ·N (2nd𝑥)) <N ((1st𝑥) ·N (2nd𝑦)))))
1917, 18mpan 686 . . . 4 ((((1st𝑥) ·N (2nd𝑦)) ∈ N ∧ ((1st𝑦) ·N (2nd𝑥)) ∈ N) → (((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥)) ↔ ¬ (((1st𝑥) ·N (2nd𝑦)) = ((1st𝑦) ·N (2nd𝑥)) ∨ ((1st𝑦) ·N (2nd𝑥)) <N ((1st𝑥) ·N (2nd𝑦)))))
2010, 16, 19syl2anc 583 . . 3 ((𝑥Q𝑦Q) → (((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥)) ↔ ¬ (((1st𝑥) ·N (2nd𝑦)) = ((1st𝑦) ·N (2nd𝑥)) ∨ ((1st𝑦) ·N (2nd𝑥)) <N ((1st𝑥) ·N (2nd𝑦)))))
21 ordpinq 10630 . . 3 ((𝑥Q𝑦Q) → (𝑥 <Q 𝑦 ↔ ((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥))))
22 fveq2 6756 . . . . . . 7 (𝑥 = 𝑦 → (1st𝑥) = (1st𝑦))
23 fveq2 6756 . . . . . . . 8 (𝑥 = 𝑦 → (2nd𝑥) = (2nd𝑦))
2423eqcomd 2744 . . . . . . 7 (𝑥 = 𝑦 → (2nd𝑦) = (2nd𝑥))
2522, 24oveq12d 7273 . . . . . 6 (𝑥 = 𝑦 → ((1st𝑥) ·N (2nd𝑦)) = ((1st𝑦) ·N (2nd𝑥)))
26 enqbreq2 10607 . . . . . . . 8 ((𝑥 ∈ (N × N) ∧ 𝑦 ∈ (N × N)) → (𝑥 ~Q 𝑦 ↔ ((1st𝑥) ·N (2nd𝑦)) = ((1st𝑦) ·N (2nd𝑥))))
271, 5, 26syl2an 595 . . . . . . 7 ((𝑥Q𝑦Q) → (𝑥 ~Q 𝑦 ↔ ((1st𝑥) ·N (2nd𝑦)) = ((1st𝑦) ·N (2nd𝑥))))
28 enqeq 10621 . . . . . . . 8 ((𝑥Q𝑦Q𝑥 ~Q 𝑦) → 𝑥 = 𝑦)
29283expia 1119 . . . . . . 7 ((𝑥Q𝑦Q) → (𝑥 ~Q 𝑦𝑥 = 𝑦))
3027, 29sylbird 259 . . . . . 6 ((𝑥Q𝑦Q) → (((1st𝑥) ·N (2nd𝑦)) = ((1st𝑦) ·N (2nd𝑥)) → 𝑥 = 𝑦))
3125, 30impbid2 225 . . . . 5 ((𝑥Q𝑦Q) → (𝑥 = 𝑦 ↔ ((1st𝑥) ·N (2nd𝑦)) = ((1st𝑦) ·N (2nd𝑥))))
32 ordpinq 10630 . . . . . 6 ((𝑦Q𝑥Q) → (𝑦 <Q 𝑥 ↔ ((1st𝑦) ·N (2nd𝑥)) <N ((1st𝑥) ·N (2nd𝑦))))
3332ancoms 458 . . . . 5 ((𝑥Q𝑦Q) → (𝑦 <Q 𝑥 ↔ ((1st𝑦) ·N (2nd𝑥)) <N ((1st𝑥) ·N (2nd𝑦))))
3431, 33orbi12d 915 . . . 4 ((𝑥Q𝑦Q) → ((𝑥 = 𝑦𝑦 <Q 𝑥) ↔ (((1st𝑥) ·N (2nd𝑦)) = ((1st𝑦) ·N (2nd𝑥)) ∨ ((1st𝑦) ·N (2nd𝑥)) <N ((1st𝑥) ·N (2nd𝑦)))))
3534notbid 317 . . 3 ((𝑥Q𝑦Q) → (¬ (𝑥 = 𝑦𝑦 <Q 𝑥) ↔ ¬ (((1st𝑥) ·N (2nd𝑦)) = ((1st𝑦) ·N (2nd𝑥)) ∨ ((1st𝑦) ·N (2nd𝑥)) <N ((1st𝑥) ·N (2nd𝑦)))))
3620, 21, 353bitr4d 310 . 2 ((𝑥Q𝑦Q) → (𝑥 <Q 𝑦 ↔ ¬ (𝑥 = 𝑦𝑦 <Q 𝑥)))
37213adant3 1130 . . . . . 6 ((𝑥Q𝑦Q𝑧Q) → (𝑥 <Q 𝑦 ↔ ((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥))))
38 elpqn 10612 . . . . . . . 8 (𝑧Q𝑧 ∈ (N × N))
39383ad2ant3 1133 . . . . . . 7 ((𝑥Q𝑦Q𝑧Q) → 𝑧 ∈ (N × N))
40 xp2nd 7837 . . . . . . 7 (𝑧 ∈ (N × N) → (2nd𝑧) ∈ N)
41 ltmpi 10591 . . . . . . 7 ((2nd𝑧) ∈ N → (((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥)) ↔ ((2nd𝑧) ·N ((1st𝑥) ·N (2nd𝑦))) <N ((2nd𝑧) ·N ((1st𝑦) ·N (2nd𝑥)))))
4239, 40, 413syl 18 . . . . . 6 ((𝑥Q𝑦Q𝑧Q) → (((1st𝑥) ·N (2nd𝑦)) <N ((1st𝑦) ·N (2nd𝑥)) ↔ ((2nd𝑧) ·N ((1st𝑥) ·N (2nd𝑦))) <N ((2nd𝑧) ·N ((1st𝑦) ·N (2nd𝑥)))))
4337, 42bitrd 278 . . . . 5 ((𝑥Q𝑦Q𝑧Q) → (𝑥 <Q 𝑦 ↔ ((2nd𝑧) ·N ((1st𝑥) ·N (2nd𝑦))) <N ((2nd𝑧) ·N ((1st𝑦) ·N (2nd𝑥)))))
44 ordpinq 10630 . . . . . . 7 ((𝑦Q𝑧Q) → (𝑦 <Q 𝑧 ↔ ((1st𝑦) ·N (2nd𝑧)) <N ((1st𝑧) ·N (2nd𝑦))))
45443adant1 1128 . . . . . 6 ((𝑥Q𝑦Q𝑧Q) → (𝑦 <Q 𝑧 ↔ ((1st𝑦) ·N (2nd𝑧)) <N ((1st𝑧) ·N (2nd𝑦))))
4613ad2ant1 1131 . . . . . . 7 ((𝑥Q𝑦Q𝑧Q) → 𝑥 ∈ (N × N))
47 ltmpi 10591 . . . . . . 7 ((2nd𝑥) ∈ N → (((1st𝑦) ·N (2nd𝑧)) <N ((1st𝑧) ·N (2nd𝑦)) ↔ ((2nd𝑥) ·N ((1st𝑦) ·N (2nd𝑧))) <N ((2nd𝑥) ·N ((1st𝑧) ·N (2nd𝑦)))))
4846, 13, 473syl 18 . . . . . 6 ((𝑥Q𝑦Q𝑧Q) → (((1st𝑦) ·N (2nd𝑧)) <N ((1st𝑧) ·N (2nd𝑦)) ↔ ((2nd𝑥) ·N ((1st𝑦) ·N (2nd𝑧))) <N ((2nd𝑥) ·N ((1st𝑧) ·N (2nd𝑦)))))
4945, 48bitrd 278 . . . . 5 ((𝑥Q𝑦Q𝑧Q) → (𝑦 <Q 𝑧 ↔ ((2nd𝑥) ·N ((1st𝑦) ·N (2nd𝑧))) <N ((2nd𝑥) ·N ((1st𝑧) ·N (2nd𝑦)))))
5043, 49anbi12d 630 . . . 4 ((𝑥Q𝑦Q𝑧Q) → ((𝑥 <Q 𝑦𝑦 <Q 𝑧) ↔ (((2nd𝑧) ·N ((1st𝑥) ·N (2nd𝑦))) <N ((2nd𝑧) ·N ((1st𝑦) ·N (2nd𝑥))) ∧ ((2nd𝑥) ·N ((1st𝑦) ·N (2nd𝑧))) <N ((2nd𝑥) ·N ((1st𝑧) ·N (2nd𝑦))))))
51 fvex 6769 . . . . . . 7 (2nd𝑥) ∈ V
52 fvex 6769 . . . . . . 7 (1st𝑦) ∈ V
53 fvex 6769 . . . . . . 7 (2nd𝑧) ∈ V
54 mulcompi 10583 . . . . . . 7 (𝑟 ·N 𝑠) = (𝑠 ·N 𝑟)
55 mulasspi 10584 . . . . . . 7 ((𝑟 ·N 𝑠) ·N 𝑡) = (𝑟 ·N (𝑠 ·N 𝑡))
5651, 52, 53, 54, 55caov13 7480 . . . . . 6 ((2nd𝑥) ·N ((1st𝑦) ·N (2nd𝑧))) = ((2nd𝑧) ·N ((1st𝑦) ·N (2nd𝑥)))
57 fvex 6769 . . . . . . 7 (1st𝑧) ∈ V
58 fvex 6769 . . . . . . 7 (2nd𝑦) ∈ V
5951, 57, 58, 54, 55caov13 7480 . . . . . 6 ((2nd𝑥) ·N ((1st𝑧) ·N (2nd𝑦))) = ((2nd𝑦) ·N ((1st𝑧) ·N (2nd𝑥)))
6056, 59breq12i 5079 . . . . 5 (((2nd𝑥) ·N ((1st𝑦) ·N (2nd𝑧))) <N ((2nd𝑥) ·N ((1st𝑧) ·N (2nd𝑦))) ↔ ((2nd𝑧) ·N ((1st𝑦) ·N (2nd𝑥))) <N ((2nd𝑦) ·N ((1st𝑧) ·N (2nd𝑥))))
61 fvex 6769 . . . . . . 7 (1st𝑥) ∈ V
6253, 61, 58, 54, 55caov13 7480 . . . . . 6 ((2nd𝑧) ·N ((1st𝑥) ·N (2nd𝑦))) = ((2nd𝑦) ·N ((1st𝑥) ·N (2nd𝑧)))
63 ltrelpi 10576 . . . . . . 7 <N ⊆ (N × N)
6417, 63sotri 6021 . . . . . 6 ((((2nd𝑧) ·N ((1st𝑥) ·N (2nd𝑦))) <N ((2nd𝑧) ·N ((1st𝑦) ·N (2nd𝑥))) ∧ ((2nd𝑧) ·N ((1st𝑦) ·N (2nd𝑥))) <N ((2nd𝑦) ·N ((1st𝑧) ·N (2nd𝑥)))) → ((2nd𝑧) ·N ((1st𝑥) ·N (2nd𝑦))) <N ((2nd𝑦) ·N ((1st𝑧) ·N (2nd𝑥))))
6562, 64eqbrtrrid 5106 . . . . 5 ((((2nd𝑧) ·N ((1st𝑥) ·N (2nd𝑦))) <N ((2nd𝑧) ·N ((1st𝑦) ·N (2nd𝑥))) ∧ ((2nd𝑧) ·N ((1st𝑦) ·N (2nd𝑥))) <N ((2nd𝑦) ·N ((1st𝑧) ·N (2nd𝑥)))) → ((2nd𝑦) ·N ((1st𝑥) ·N (2nd𝑧))) <N ((2nd𝑦) ·N ((1st𝑧) ·N (2nd𝑥))))
6660, 65sylan2b 593 . . . 4 ((((2nd𝑧) ·N ((1st𝑥) ·N (2nd𝑦))) <N ((2nd𝑧) ·N ((1st𝑦) ·N (2nd𝑥))) ∧ ((2nd𝑥) ·N ((1st𝑦) ·N (2nd𝑧))) <N ((2nd𝑥) ·N ((1st𝑧) ·N (2nd𝑦)))) → ((2nd𝑦) ·N ((1st𝑥) ·N (2nd𝑧))) <N ((2nd𝑦) ·N ((1st𝑧) ·N (2nd𝑥))))
6750, 66syl6bi 252 . . 3 ((𝑥Q𝑦Q𝑧Q) → ((𝑥 <Q 𝑦𝑦 <Q 𝑧) → ((2nd𝑦) ·N ((1st𝑥) ·N (2nd𝑧))) <N ((2nd𝑦) ·N ((1st𝑧) ·N (2nd𝑥)))))
68 ordpinq 10630 . . . . 5 ((𝑥Q𝑧Q) → (𝑥 <Q 𝑧 ↔ ((1st𝑥) ·N (2nd𝑧)) <N ((1st𝑧) ·N (2nd𝑥))))
69683adant2 1129 . . . 4 ((𝑥Q𝑦Q𝑧Q) → (𝑥 <Q 𝑧 ↔ ((1st𝑥) ·N (2nd𝑧)) <N ((1st𝑧) ·N (2nd𝑥))))
7053ad2ant2 1132 . . . . 5 ((𝑥Q𝑦Q𝑧Q) → 𝑦 ∈ (N × N))
71 ltmpi 10591 . . . . 5 ((2nd𝑦) ∈ N → (((1st𝑥) ·N (2nd𝑧)) <N ((1st𝑧) ·N (2nd𝑥)) ↔ ((2nd𝑦) ·N ((1st𝑥) ·N (2nd𝑧))) <N ((2nd𝑦) ·N ((1st𝑧) ·N (2nd𝑥)))))
7270, 7, 713syl 18 . . . 4 ((𝑥Q𝑦Q𝑧Q) → (((1st𝑥) ·N (2nd𝑧)) <N ((1st𝑧) ·N (2nd𝑥)) ↔ ((2nd𝑦) ·N ((1st𝑥) ·N (2nd𝑧))) <N ((2nd𝑦) ·N ((1st𝑧) ·N (2nd𝑥)))))
7369, 72bitrd 278 . . 3 ((𝑥Q𝑦Q𝑧Q) → (𝑥 <Q 𝑧 ↔ ((2nd𝑦) ·N ((1st𝑥) ·N (2nd𝑧))) <N ((2nd𝑦) ·N ((1st𝑧) ·N (2nd𝑥)))))
7467, 73sylibrd 258 . 2 ((𝑥Q𝑦Q𝑧Q) → ((𝑥 <Q 𝑦𝑦 <Q 𝑧) → 𝑥 <Q 𝑧))
7536, 74isso2i 5529 1 <Q Or Q
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wb 205  wa 395  wo 843  w3a 1085   = wceq 1539  wcel 2108   class class class wbr 5070   Or wor 5493   × cxp 5578  cfv 6418  (class class class)co 7255  1st c1st 7802  2nd c2nd 7803  Ncnpi 10531   ·N cmi 10533   <N clti 10534   ~Q ceq 10538  Qcnq 10539   <Q cltq 10545
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-3or 1086  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-reu 3070  df-rmo 3071  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-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  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-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-oadd 8271  df-omul 8272  df-er 8456  df-ni 10559  df-mi 10561  df-lti 10562  df-ltpq 10597  df-enq 10598  df-nq 10599  df-ltnq 10605
This theorem is referenced by:  ltbtwnnq  10665  prub  10681  npomex  10683  genpnnp  10692  nqpr  10701  distrlem4pr  10713  prlem934  10720  ltexprlem4  10726  reclem2pr  10735  reclem4pr  10737
  Copyright terms: Public domain W3C validator