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

Theorem ltbtwnnq 11102
Description: There exists a number between any two positive fractions. Proposition 9-2.6(i) of [Gleason] p. 120. (Contributed by NM, 17-Mar-1996.) (Revised by Mario Carneiro, 10-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
ltbtwnnq (𝐴 <Q 𝐵 ↔ ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵

Proof of Theorem ltbtwnnq
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ltrelnq 11050 . . . . 5 <Q ⊆ (Q × Q)
21brel 5723 . . . 4 (𝐴 <Q 𝐵 → (𝐴 ∈ Q ∧ 𝐵 ∈ Q))
32simprd 501 . . 3 (𝐴 <Q 𝐵 → 𝐵 ∈ Q)
4 ltexnq 11099 . . . 4 (𝐵 ∈ Q → (𝐴 <Q 𝐵 ↔ ∃𝑦(𝐴 +Q 𝑦) = 𝐵))
5 eleq1 2852 . . . . . . . . . 10 ((𝐴 +Q 𝑦) = 𝐵 → ((𝐴 +Q 𝑦) ∈ Q ↔ 𝐵 ∈ Q))
65biimparc 485 . . . . . . . . 9 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) → (𝐴 +Q 𝑦) ∈ Q)
7 addnqf 11072 . . . . . . . . . . 11 +Q :(Q × Q)⟶Q
87fdmi 6751 . . . . . . . . . 10 dom +Q = (Q × Q)
9 0nnq 11048 . . . . . . . . . 10 ¬ ∅ ∈ Q
108, 9ndmovrcl 7639 . . . . . . . . 9 ((𝐴 +Q 𝑦) ∈ Q → (𝐴 ∈ Q ∧ 𝑦 ∈ Q))
116, 10syl 18 . . . . . . . 8 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) → (𝐴 ∈ Q ∧ 𝑦 ∈ Q))
1211simprd 501 . . . . . . 7 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) → 𝑦 ∈ Q)
13 nsmallnq 11101 . . . . . . . 8 (𝑦 ∈ Q → ∃𝑧 𝑧 <Q 𝑦)
1411simpld 500 . . . . . . . . . . . 12 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) → 𝐴 ∈ Q)
151brel 5723 . . . . . . . . . . . . 13 (𝑧 <Q 𝑦 → (𝑧 ∈ Q ∧ 𝑦 ∈ Q))
1615simpld 500 . . . . . . . . . . . 12 (𝑧 <Q 𝑦 → 𝑧 ∈ Q)
17 ltaddnq 11098 . . . . . . . . . . . 12 ((𝐴 ∈ Q ∧ 𝑧 ∈ Q) → 𝐴 <Q (𝐴 +Q 𝑧))
1814, 16, 17syl2an 608 . . . . . . . . . . 11 (((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) ∧ 𝑧 <Q 𝑦) → 𝐴 <Q (𝐴 +Q 𝑧))
19 ltanq 11095 . . . . . . . . . . . . . 14 (𝐴 ∈ Q → (𝑧 <Q 𝑦 ↔ (𝐴 +Q 𝑧) <Q (𝐴 +Q 𝑦)))
2019biimpa 482 . . . . . . . . . . . . 13 ((𝐴 ∈ Q ∧ 𝑧 <Q 𝑦) → (𝐴 +Q 𝑧) <Q (𝐴 +Q 𝑦))
2114, 20sylan 592 . . . . . . . . . . . 12 (((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) ∧ 𝑧 <Q 𝑦) → (𝐴 +Q 𝑧) <Q (𝐴 +Q 𝑦))
22 simplr 781 . . . . . . . . . . . 12 (((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) ∧ 𝑧 <Q 𝑦) → (𝐴 +Q 𝑦) = 𝐵)
2321, 22breqtrd 5137 . . . . . . . . . . 11 (((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) ∧ 𝑧 <Q 𝑦) → (𝐴 +Q 𝑧) <Q 𝐵)
24 ovex 7484 . . . . . . . . . . . 12 (𝐴 +Q 𝑧) ∈ V
25 breq2 5112 . . . . . . . . . . . . 13 (𝑥 = (𝐴 +Q 𝑧) → (𝐴 <Q 𝑥 ↔ 𝐴 <Q (𝐴 +Q 𝑧)))
26 breq1 5111 . . . . . . . . . . . . 13 (𝑥 = (𝐴 +Q 𝑧) → (𝑥 <Q 𝐵 ↔ (𝐴 +Q 𝑧) <Q 𝐵))
2725, 26anbi12d 644 . . . . . . . . . . . 12 (𝑥 = (𝐴 +Q 𝑧) → ((𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵) ↔ (𝐴 <Q (𝐴 +Q 𝑧) ∧ (𝐴 +Q 𝑧) <Q 𝐵)))
2824, 27spcev 3564 . . . . . . . . . . 11 ((𝐴 <Q (𝐴 +Q 𝑧) ∧ (𝐴 +Q 𝑧) <Q 𝐵) → ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵))
2918, 23, 28syl2anc 596 . . . . . . . . . 10 (((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) ∧ 𝑧 <Q 𝑦) → ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵))
3029ex 418 . . . . . . . . 9 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) → (𝑧 <Q 𝑦 → ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵)))
3130exlimdv 1968 . . . . . . . 8 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) → (∃𝑧 𝑧 <Q 𝑦 → ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵)))
3213, 31syl5 35 . . . . . . 7 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) → (𝑦 ∈ Q → ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵)))
3312, 32mpd 16 . . . . . 6 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) → ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵))
3433ex 418 . . . . 5 (𝐵 ∈ Q → ((𝐴 +Q 𝑦) = 𝐵 → ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵)))
3534exlimdv 1968 . . . 4 (𝐵 ∈ Q → (∃𝑦(𝐴 +Q 𝑦) = 𝐵 → ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵)))
364, 35sylbid 243 . . 3 (𝐵 ∈ Q → (𝐴 <Q 𝐵 → ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵)))
373, 36mpcom 39 . 2 (𝐴 <Q 𝐵 → ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵))
38 ltsonq 11093 . . . 4 <Q Or Q
3938, 1sotri 6139 . . 3 ((𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵) → 𝐴 <Q 𝐵)
4039exlimiv 1965 . 2 (∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵) → 𝐴 <Q 𝐵)
4137, 40impbii 212 1 (𝐴 <Q 𝐵 ↔ ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2147   class class class wbr 5108   × cxp 5656  (class class class)co 7451  Qcnq 10976   +Q cplq 10979   <Q cltq 10982
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5255  ax-nul 5266  ax-pr 5398  ax-un 7783
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-int 4913  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-tr 5219  df-id 5553  df-eprel 5558  df-po 5566  df-so 5567  df-fr 5611  df-we 5613  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-pred 6330  df-ord 6391  df-on 6392  df-lim 6393  df-suc 6394  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-ov 7454  df-oprab 7455  df-mpo 7456  df-om 7912  df-1st 8035  df-2nd 8036  df-frecs 8337  df-wrecs 8368  df-recs 8417  df-rdg 8456  df-1o 8514  df-oadd 8518  df-omul 8519  df-er 8755  df-ni 10996  df-pli 10997  df-mi 10998  df-lti 10999  df-plpq 11032  df-mpq 11033  df-ltpq 11034  df-enq 11035  df-nq 11036  df-erq 11037  df-plq 11038  df-mq 11039  df-1nq 11040  df-rq 11041  df-ltnq 11042
This theorem is used by:  nqpr  11138  reclem2pr  11172
  Copyright terms: Public domain W3C validator