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

Theorem ltbtwnnq 11121
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 11069 . . . . 5 <Q ⊆ (Q × Q)
21brel 5731 . . . 4 (𝐴 <Q 𝐵 → (𝐴 ∈ Q ∧ 𝐵 ∈ Q))
32simprd 501 . . 3 (𝐴 <Q 𝐵 → 𝐵 ∈ Q)
4 ltexnq 11118 . . . 4 (𝐵 ∈ Q → (𝐴 <Q 𝐵 ↔ ∃𝑦(𝐴 +Q 𝑦) = 𝐵))
5 eleq1 2863 . . . . . . . . . 10 ((𝐴 +Q 𝑦) = 𝐵 → ((𝐴 +Q 𝑦) ∈ Q ↔ 𝐵 ∈ Q))
65biimparc 485 . . . . . . . . 9 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) → (𝐴 +Q 𝑦) ∈ Q)
7 addnqf 11091 . . . . . . . . . . 11 +Q :(Q × Q)⟶Q
87fdmi 6769 . . . . . . . . . 10 dom +Q = (Q × Q)
9 0nnq 11067 . . . . . . . . . 10 ¬ ∅ ∈ Q
108, 9ndmovrcl 7658 . . . . . . . . 9 ((𝐴 +Q 𝑦) ∈ Q → (𝐴 ∈ Q ∧ 𝑦 ∈ Q))
116, 10syl 18 . . . . . . . 8 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) → (𝐴 ∈ Q ∧ 𝑦 ∈ Q))
1211simprd 501 . . . . . . 7 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) → 𝑦 ∈ Q)
13 nsmallnq 11120 . . . . . . . 8 (𝑦 ∈ Q → ∃𝑧 𝑧 <Q 𝑦)
1411simpld 500 . . . . . . . . . . . 12 ((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) → 𝐴 ∈ Q)
151brel 5731 . . . . . . . . . . . . 13 (𝑧 <Q 𝑦 → (𝑧 ∈ Q ∧ 𝑦 ∈ Q))
1615simpld 500 . . . . . . . . . . . 12 (𝑧 <Q 𝑦 → 𝑧 ∈ Q)
17 ltaddnq 11117 . . . . . . . . . . . 12 ((𝐴 ∈ Q ∧ 𝑧 ∈ Q) → 𝐴 <Q (𝐴 +Q 𝑧))
1814, 16, 17syl2an 608 . . . . . . . . . . 11 (((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) ∧ 𝑧 <Q 𝑦) → 𝐴 <Q (𝐴 +Q 𝑧))
19 ltanq 11114 . . . . . . . . . . . . . 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 5145 . . . . . . . . . . 11 (((𝐵 ∈ Q ∧ (𝐴 +Q 𝑦) = 𝐵) ∧ 𝑧 <Q 𝑦) → (𝐴 +Q 𝑧) <Q 𝐵)
24 ovex 7503 . . . . . . . . . . . 12 (𝐴 +Q 𝑧) ∈ V
25 breq2 5120 . . . . . . . . . . . . 13 (𝑥 = (𝐴 +Q 𝑧) → (𝐴 <Q 𝑥 ↔ 𝐴 <Q (𝐴 +Q 𝑧)))
26 breq1 5119 . . . . . . . . . . . . 13 (𝑥 = (𝐴 +Q 𝑧) → (𝑥 <Q 𝐵 ↔ (𝐴 +Q 𝑧) <Q 𝐵))
2725, 26anbi12d 644 . . . . . . . . . . . 12 (𝑥 = (𝐴 +Q 𝑧) → ((𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵) ↔ (𝐴 <Q (𝐴 +Q 𝑧) ∧ (𝐴 +Q 𝑧) <Q 𝐵)))
2824, 27spcev 3571 . . . . . . . . . . 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 1975 . . . . . . . 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 1975 . . . 4 (𝐵 ∈ Q → (∃𝑦(𝐴 +Q 𝑦) = 𝐵 → ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵)))
364, 35sylbid 243 . . 3 (𝐵 ∈ Q → (𝐴 <Q 𝐵 → ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵)))
373, 36mpcom 39 . 2 (𝐴 <Q 𝐵 → ∃𝑥(𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵))
38 ltsonq 11112 . . . 4 <Q Or Q
3938, 1sotri 6148 . . 3 ((𝐴 <Q 𝑥 ∧ 𝑥 <Q 𝐵) → 𝐴 <Q 𝐵)
4039exlimiv 1972 . 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 1572  ∃wex 1818   ∈ wcel 2156   class class class wbr 5116   × cxp 5664  (class class class)co 7470  Qcnq 10995   +Q cplq 10998   <Q cltq 11001
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-sep 5263  ax-nul 5274  ax-pr 5406  ax-un 7802
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-ral 3092  df-rex 3102  df-rmo 3376  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-pss 4024  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-int 4921  df-iun 4966  df-br 5117  df-opab 5182  df-mpt 5201  df-tr 5227  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-pred 6343  df-ord 6404  df-on 6405  df-lim 6406  df-suc 6407  df-iota 6533  df-fun 6581  df-fn 6582  df-f 6583  df-f1 6584  df-fo 6585  df-f1o 6586  df-fv 6587  df-ov 7473  df-oprab 7474  df-mpo 7475  df-om 7931  df-1st 8054  df-2nd 8055  df-frecs 8356  df-wrecs 8387  df-recs 8436  df-rdg 8475  df-1o 8533  df-oadd 8537  df-omul 8538  df-er 8774  df-ni 11015  df-pli 11016  df-mi 11017  df-lti 11018  df-plpq 11051  df-mpq 11052  df-ltpq 11053  df-enq 11054  df-nq 11055  df-erq 11056  df-plq 11057  df-mq 11058  df-1nq 11059  df-rq 11060  df-ltnq 11061
This theorem is used by:  nqpr  11157  reclem2pr  11191
  Copyright terms: Public domain W3C validator