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

Theorem dirtr 18235
Description: A direction is transitive. (Contributed by Jeff Hankins, 25-Nov-2009.) (Revised by Mario Carneiro, 22-Nov-2013.)
Assertion
Ref Expression
dirtr (((𝑅 ∈ DirRel ∧ 𝐶𝑉) ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → 𝐴𝑅𝐶)

Proof of Theorem dirtr
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 reldir 18232 . . . . 5 (𝑅 ∈ DirRel → Rel 𝑅)
2 brrelex1 5631 . . . . . . 7 ((Rel 𝑅𝐴𝑅𝐵) → 𝐴 ∈ V)
32ex 412 . . . . . 6 (Rel 𝑅 → (𝐴𝑅𝐵𝐴 ∈ V))
4 brrelex1 5631 . . . . . . 7 ((Rel 𝑅𝐵𝑅𝐶) → 𝐵 ∈ V)
54ex 412 . . . . . 6 (Rel 𝑅 → (𝐵𝑅𝐶𝐵 ∈ V))
63, 5anim12d 608 . . . . 5 (Rel 𝑅 → ((𝐴𝑅𝐵𝐵𝑅𝐶) → (𝐴 ∈ V ∧ 𝐵 ∈ V)))
71, 6syl 17 . . . 4 (𝑅 ∈ DirRel → ((𝐴𝑅𝐵𝐵𝑅𝐶) → (𝐴 ∈ V ∧ 𝐵 ∈ V)))
8 eqid 2738 . . . . . . . . . . 11 𝑅 = 𝑅
98isdir 18231 . . . . . . . . . 10 (𝑅 ∈ DirRel → (𝑅 ∈ DirRel ↔ ((Rel 𝑅 ∧ ( I ↾ 𝑅) ⊆ 𝑅) ∧ ((𝑅𝑅) ⊆ 𝑅 ∧ ( 𝑅 × 𝑅) ⊆ (𝑅𝑅)))))
109ibi 266 . . . . . . . . 9 (𝑅 ∈ DirRel → ((Rel 𝑅 ∧ ( I ↾ 𝑅) ⊆ 𝑅) ∧ ((𝑅𝑅) ⊆ 𝑅 ∧ ( 𝑅 × 𝑅) ⊆ (𝑅𝑅))))
1110simprld 768 . . . . . . . 8 (𝑅 ∈ DirRel → (𝑅𝑅) ⊆ 𝑅)
12 cotr 6006 . . . . . . . 8 ((𝑅𝑅) ⊆ 𝑅 ↔ ∀𝑥𝑦𝑧((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧))
1311, 12sylib 217 . . . . . . 7 (𝑅 ∈ DirRel → ∀𝑥𝑦𝑧((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧))
14 breq12 5075 . . . . . . . . . . 11 ((𝑥 = 𝐴𝑦 = 𝐵) → (𝑥𝑅𝑦𝐴𝑅𝐵))
15143adant3 1130 . . . . . . . . . 10 ((𝑥 = 𝐴𝑦 = 𝐵𝑧 = 𝐶) → (𝑥𝑅𝑦𝐴𝑅𝐵))
16 breq12 5075 . . . . . . . . . . 11 ((𝑦 = 𝐵𝑧 = 𝐶) → (𝑦𝑅𝑧𝐵𝑅𝐶))
17163adant1 1128 . . . . . . . . . 10 ((𝑥 = 𝐴𝑦 = 𝐵𝑧 = 𝐶) → (𝑦𝑅𝑧𝐵𝑅𝐶))
1815, 17anbi12d 630 . . . . . . . . 9 ((𝑥 = 𝐴𝑦 = 𝐵𝑧 = 𝐶) → ((𝑥𝑅𝑦𝑦𝑅𝑧) ↔ (𝐴𝑅𝐵𝐵𝑅𝐶)))
19 breq12 5075 . . . . . . . . . 10 ((𝑥 = 𝐴𝑧 = 𝐶) → (𝑥𝑅𝑧𝐴𝑅𝐶))
20193adant2 1129 . . . . . . . . 9 ((𝑥 = 𝐴𝑦 = 𝐵𝑧 = 𝐶) → (𝑥𝑅𝑧𝐴𝑅𝐶))
2118, 20imbi12d 344 . . . . . . . 8 ((𝑥 = 𝐴𝑦 = 𝐵𝑧 = 𝐶) → (((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧) ↔ ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐶)))
2221spc3gv 3533 . . . . . . 7 ((𝐴 ∈ V ∧ 𝐵 ∈ V ∧ 𝐶𝑉) → (∀𝑥𝑦𝑧((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧) → ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐶)))
2313, 22syl5 34 . . . . . 6 ((𝐴 ∈ V ∧ 𝐵 ∈ V ∧ 𝐶𝑉) → (𝑅 ∈ DirRel → ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐶)))
24233expia 1119 . . . . 5 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → (𝐶𝑉 → (𝑅 ∈ DirRel → ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐶))))
2524com4t 93 . . . 4 (𝑅 ∈ DirRel → ((𝐴𝑅𝐵𝐵𝑅𝐶) → ((𝐴 ∈ V ∧ 𝐵 ∈ V) → (𝐶𝑉𝐴𝑅𝐶))))
267, 25mpdd 43 . . 3 (𝑅 ∈ DirRel → ((𝐴𝑅𝐵𝐵𝑅𝐶) → (𝐶𝑉𝐴𝑅𝐶)))
2726imp31 417 . 2 (((𝑅 ∈ DirRel ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) ∧ 𝐶𝑉) → 𝐴𝑅𝐶)
2827an32s 648 1 (((𝑅 ∈ DirRel ∧ 𝐶𝑉) ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → 𝐴𝑅𝐶)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085  wal 1537   = wceq 1539  wcel 2108  Vcvv 3422  wss 3883   cuni 4836   class class class wbr 5070   I cid 5479   × cxp 5578  ccnv 5579  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-11 2156  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-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-res 5592  df-dir 18229
This theorem is referenced by:  tailfb  34493
  Copyright terms: Public domain W3C validator