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

Theorem dirge 18236
Description: For any two elements of a directed set, there exists a third element greater than or equal to both. Note that this does not say that the two elements have a least upper bound. (Contributed by Jeff Hankins, 25-Nov-2009.) (Revised by Mario Carneiro, 22-Nov-2013.)
Hypothesis
Ref Expression
dirge.1 𝑋 = dom 𝑅
Assertion
Ref Expression
dirge ((𝑅 ∈ DirRel ∧ 𝐴𝑋𝐵𝑋) → ∃𝑥𝑋 (𝐴𝑅𝑥𝐵𝑅𝑥))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝑅   𝑥,𝑋

Proof of Theorem dirge
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 dirge.1 . . . . . . 7 𝑋 = dom 𝑅
2 dirdm 18233 . . . . . . 7 (𝑅 ∈ DirRel → dom 𝑅 = 𝑅)
31, 2eqtrid 2790 . . . . . 6 (𝑅 ∈ DirRel → 𝑋 = 𝑅)
43eleq2d 2824 . . . . 5 (𝑅 ∈ DirRel → (𝐴𝑋𝐴 𝑅))
53eleq2d 2824 . . . . 5 (𝑅 ∈ DirRel → (𝐵𝑋𝐵 𝑅))
64, 5anbi12d 630 . . . 4 (𝑅 ∈ DirRel → ((𝐴𝑋𝐵𝑋) ↔ (𝐴 𝑅𝐵 𝑅)))
7 eqid 2738 . . . . . . . . 9 𝑅 = 𝑅
87isdir 18231 . . . . . . . 8 (𝑅 ∈ DirRel → (𝑅 ∈ DirRel ↔ ((Rel 𝑅 ∧ ( I ↾ 𝑅) ⊆ 𝑅) ∧ ((𝑅𝑅) ⊆ 𝑅 ∧ ( 𝑅 × 𝑅) ⊆ (𝑅𝑅)))))
98ibi 266 . . . . . . 7 (𝑅 ∈ DirRel → ((Rel 𝑅 ∧ ( I ↾ 𝑅) ⊆ 𝑅) ∧ ((𝑅𝑅) ⊆ 𝑅 ∧ ( 𝑅 × 𝑅) ⊆ (𝑅𝑅))))
109simprrd 770 . . . . . 6 (𝑅 ∈ DirRel → ( 𝑅 × 𝑅) ⊆ (𝑅𝑅))
11 codir 6014 . . . . . 6 (( 𝑅 × 𝑅) ⊆ (𝑅𝑅) ↔ ∀𝑦 𝑅𝑧 𝑅𝑥(𝑦𝑅𝑥𝑧𝑅𝑥))
1210, 11sylib 217 . . . . 5 (𝑅 ∈ DirRel → ∀𝑦 𝑅𝑧 𝑅𝑥(𝑦𝑅𝑥𝑧𝑅𝑥))
13 breq1 5073 . . . . . . . 8 (𝑦 = 𝐴 → (𝑦𝑅𝑥𝐴𝑅𝑥))
1413anbi1d 629 . . . . . . 7 (𝑦 = 𝐴 → ((𝑦𝑅𝑥𝑧𝑅𝑥) ↔ (𝐴𝑅𝑥𝑧𝑅𝑥)))
1514exbidv 1925 . . . . . 6 (𝑦 = 𝐴 → (∃𝑥(𝑦𝑅𝑥𝑧𝑅𝑥) ↔ ∃𝑥(𝐴𝑅𝑥𝑧𝑅𝑥)))
16 breq1 5073 . . . . . . . 8 (𝑧 = 𝐵 → (𝑧𝑅𝑥𝐵𝑅𝑥))
1716anbi2d 628 . . . . . . 7 (𝑧 = 𝐵 → ((𝐴𝑅𝑥𝑧𝑅𝑥) ↔ (𝐴𝑅𝑥𝐵𝑅𝑥)))
1817exbidv 1925 . . . . . 6 (𝑧 = 𝐵 → (∃𝑥(𝐴𝑅𝑥𝑧𝑅𝑥) ↔ ∃𝑥(𝐴𝑅𝑥𝐵𝑅𝑥)))
1915, 18rspc2v 3562 . . . . 5 ((𝐴 𝑅𝐵 𝑅) → (∀𝑦 𝑅𝑧 𝑅𝑥(𝑦𝑅𝑥𝑧𝑅𝑥) → ∃𝑥(𝐴𝑅𝑥𝐵𝑅𝑥)))
2012, 19syl5com 31 . . . 4 (𝑅 ∈ DirRel → ((𝐴 𝑅𝐵 𝑅) → ∃𝑥(𝐴𝑅𝑥𝐵𝑅𝑥)))
216, 20sylbid 239 . . 3 (𝑅 ∈ DirRel → ((𝐴𝑋𝐵𝑋) → ∃𝑥(𝐴𝑅𝑥𝐵𝑅𝑥)))
22 reldir 18232 . . . . . . . . . 10 (𝑅 ∈ DirRel → Rel 𝑅)
23 relelrn 5843 . . . . . . . . . 10 ((Rel 𝑅𝐴𝑅𝑥) → 𝑥 ∈ ran 𝑅)
2422, 23sylan 579 . . . . . . . . 9 ((𝑅 ∈ DirRel ∧ 𝐴𝑅𝑥) → 𝑥 ∈ ran 𝑅)
2524ex 412 . . . . . . . 8 (𝑅 ∈ DirRel → (𝐴𝑅𝑥𝑥 ∈ ran 𝑅))
26 ssun2 4103 . . . . . . . . . . 11 ran 𝑅 ⊆ (dom 𝑅 ∪ ran 𝑅)
27 dmrnssfld 5868 . . . . . . . . . . 11 (dom 𝑅 ∪ ran 𝑅) ⊆ 𝑅
2826, 27sstri 3926 . . . . . . . . . 10 ran 𝑅 𝑅
2928, 3sseqtrrid 3970 . . . . . . . . 9 (𝑅 ∈ DirRel → ran 𝑅𝑋)
3029sseld 3916 . . . . . . . 8 (𝑅 ∈ DirRel → (𝑥 ∈ ran 𝑅𝑥𝑋))
3125, 30syld 47 . . . . . . 7 (𝑅 ∈ DirRel → (𝐴𝑅𝑥𝑥𝑋))
3231adantrd 491 . . . . . 6 (𝑅 ∈ DirRel → ((𝐴𝑅𝑥𝐵𝑅𝑥) → 𝑥𝑋))
3332ancrd 551 . . . . 5 (𝑅 ∈ DirRel → ((𝐴𝑅𝑥𝐵𝑅𝑥) → (𝑥𝑋 ∧ (𝐴𝑅𝑥𝐵𝑅𝑥))))
3433eximdv 1921 . . . 4 (𝑅 ∈ DirRel → (∃𝑥(𝐴𝑅𝑥𝐵𝑅𝑥) → ∃𝑥(𝑥𝑋 ∧ (𝐴𝑅𝑥𝐵𝑅𝑥))))
35 df-rex 3069 . . . 4 (∃𝑥𝑋 (𝐴𝑅𝑥𝐵𝑅𝑥) ↔ ∃𝑥(𝑥𝑋 ∧ (𝐴𝑅𝑥𝐵𝑅𝑥)))
3634, 35syl6ibr 251 . . 3 (𝑅 ∈ DirRel → (∃𝑥(𝐴𝑅𝑥𝐵𝑅𝑥) → ∃𝑥𝑋 (𝐴𝑅𝑥𝐵𝑅𝑥)))
3721, 36syld 47 . 2 (𝑅 ∈ DirRel → ((𝐴𝑋𝐵𝑋) → ∃𝑥𝑋 (𝐴𝑅𝑥𝐵𝑅𝑥)))
38373impib 1114 1 ((𝑅 ∈ DirRel ∧ 𝐴𝑋𝐵𝑋) → ∃𝑥𝑋 (𝐴𝑅𝑥𝐵𝑅𝑥))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  w3a 1085   = wceq 1539  wex 1783  wcel 2108  wral 3063  wrex 3064  cun 3881  wss 3883   cuni 4836   class class class wbr 5070   I cid 5479   × cxp 5578  ccnv 5579  dom cdm 5580  ran crn 5581  cres 5582  ccom 5584  Rel wrel 5585  DirRelcdir 18227
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-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
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-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  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-br 5071  df-opab 5133  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-dir 18229
This theorem is referenced by:  tailfb  34493
  Copyright terms: Public domain W3C validator