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

Theorem dirtr 18320
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 18317 . . . . 5 (𝑅 ∈ DirRel → Rel 𝑅)
2 brrelex1 5640 . . . . . . 7 ((Rel 𝑅𝐴𝑅𝐵) → 𝐴 ∈ V)
32ex 413 . . . . . 6 (Rel 𝑅 → (𝐴𝑅𝐵𝐴 ∈ V))
4 brrelex1 5640 . . . . . . 7 ((Rel 𝑅𝐵𝑅𝐶) → 𝐵 ∈ V)
54ex 413 . . . . . 6 (Rel 𝑅 → (𝐵𝑅𝐶𝐵 ∈ V))
63, 5anim12d 609 . . . . 5 (Rel 𝑅 → ((𝐴𝑅𝐵𝐵𝑅𝐶) → (𝐴 ∈ V ∧ 𝐵 ∈ V)))
71, 6syl 17 . . . 4 (𝑅 ∈ DirRel → ((𝐴𝑅𝐵𝐵𝑅𝐶) → (𝐴 ∈ V ∧ 𝐵 ∈ V)))
8 eqid 2738 . . . . . . . . . . 11 𝑅 = 𝑅
98isdir 18316 . . . . . . . . . 10 (𝑅 ∈ DirRel → (𝑅 ∈ DirRel ↔ ((Rel 𝑅 ∧ ( I ↾ 𝑅) ⊆ 𝑅) ∧ ((𝑅𝑅) ⊆ 𝑅 ∧ ( 𝑅 × 𝑅) ⊆ (𝑅𝑅)))))
109ibi 266 . . . . . . . . 9 (𝑅 ∈ DirRel → ((Rel 𝑅 ∧ ( I ↾ 𝑅) ⊆ 𝑅) ∧ ((𝑅𝑅) ⊆ 𝑅 ∧ ( 𝑅 × 𝑅) ⊆ (𝑅𝑅))))
1110simprld 769 . . . . . . . 8 (𝑅 ∈ DirRel → (𝑅𝑅) ⊆ 𝑅)
12 cotr 6017 . . . . . . . 8 ((𝑅𝑅) ⊆ 𝑅 ↔ ∀𝑥𝑦𝑧((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧))
1311, 12sylib 217 . . . . . . 7 (𝑅 ∈ DirRel → ∀𝑥𝑦𝑧((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧))
14 breq12 5079 . . . . . . . . . . 11 ((𝑥 = 𝐴𝑦 = 𝐵) → (𝑥𝑅𝑦𝐴𝑅𝐵))
15143adant3 1131 . . . . . . . . . 10 ((𝑥 = 𝐴𝑦 = 𝐵𝑧 = 𝐶) → (𝑥𝑅𝑦𝐴𝑅𝐵))
16 breq12 5079 . . . . . . . . . . 11 ((𝑦 = 𝐵𝑧 = 𝐶) → (𝑦𝑅𝑧𝐵𝑅𝐶))
17163adant1 1129 . . . . . . . . . 10 ((𝑥 = 𝐴𝑦 = 𝐵𝑧 = 𝐶) → (𝑦𝑅𝑧𝐵𝑅𝐶))
1815, 17anbi12d 631 . . . . . . . . 9 ((𝑥 = 𝐴𝑦 = 𝐵𝑧 = 𝐶) → ((𝑥𝑅𝑦𝑦𝑅𝑧) ↔ (𝐴𝑅𝐵𝐵𝑅𝐶)))
19 breq12 5079 . . . . . . . . . 10 ((𝑥 = 𝐴𝑧 = 𝐶) → (𝑥𝑅𝑧𝐴𝑅𝐶))
20193adant2 1130 . . . . . . . . 9 ((𝑥 = 𝐴𝑦 = 𝐵𝑧 = 𝐶) → (𝑥𝑅𝑧𝐴𝑅𝐶))
2118, 20imbi12d 345 . . . . . . . 8 ((𝑥 = 𝐴𝑦 = 𝐵𝑧 = 𝐶) → (((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧) ↔ ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐶)))
2221spc3gv 3543 . . . . . . 7 ((𝐴 ∈ V ∧ 𝐵 ∈ V ∧ 𝐶𝑉) → (∀𝑥𝑦𝑧((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧) → ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐶)))
2313, 22syl5 34 . . . . . 6 ((𝐴 ∈ V ∧ 𝐵 ∈ V ∧ 𝐶𝑉) → (𝑅 ∈ DirRel → ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐶)))
24233expia 1120 . . . . 5 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → (𝐶𝑉 → (𝑅 ∈ DirRel → ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐶))))
2524com4t 93 . . . 4 (𝑅 ∈ DirRel → ((𝐴𝑅𝐵𝐵𝑅𝐶) → ((𝐴 ∈ V ∧ 𝐵 ∈ V) → (𝐶𝑉𝐴𝑅𝐶))))
267, 25mpdd 43 . . 3 (𝑅 ∈ DirRel → ((𝐴𝑅𝐵𝐵𝑅𝐶) → (𝐶𝑉𝐴𝑅𝐶)))
2726imp31 418 . 2 (((𝑅 ∈ DirRel ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) ∧ 𝐶𝑉) → 𝐴𝑅𝐶)
2827an32s 649 1 (((𝑅 ∈ DirRel ∧ 𝐶𝑉) ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → 𝐴𝑅𝐶)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086  wal 1537   = wceq 1539  wcel 2106  Vcvv 3432  wss 3887   cuni 4839   class class class wbr 5074   I cid 5488   × cxp 5587  ccnv 5588  cres 5591  ccom 5593  Rel wrel 5594  DirRelcdir 18312
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-11 2154  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-res 5601  df-dir 18314
This theorem is referenced by:  tailfb  34566
  Copyright terms: Public domain W3C validator