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

Theorem ertr 8471
Description: An equivalence relation is transitive. (Contributed by NM, 4-Jun-1995.) (Revised by Mario Carneiro, 12-Aug-2015.)
Hypothesis
Ref Expression
ersymb.1 (𝜑𝑅 Er 𝑋)
Assertion
Ref Expression
ertr (𝜑 → ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐶))

Proof of Theorem ertr
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 ersymb.1 . . . . . . 7 (𝜑𝑅 Er 𝑋)
2 errel 8465 . . . . . . 7 (𝑅 Er 𝑋 → Rel 𝑅)
31, 2syl 17 . . . . . 6 (𝜑 → Rel 𝑅)
4 simpr 484 . . . . . 6 ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐵𝑅𝐶)
5 brrelex1 5631 . . . . . 6 ((Rel 𝑅𝐵𝑅𝐶) → 𝐵 ∈ V)
63, 4, 5syl2an 595 . . . . 5 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → 𝐵 ∈ V)
7 simpr 484 . . . . 5 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → (𝐴𝑅𝐵𝐵𝑅𝐶))
8 breq2 5074 . . . . . 6 (𝑥 = 𝐵 → (𝐴𝑅𝑥𝐴𝑅𝐵))
9 breq1 5073 . . . . . 6 (𝑥 = 𝐵 → (𝑥𝑅𝐶𝐵𝑅𝐶))
108, 9anbi12d 630 . . . . 5 (𝑥 = 𝐵 → ((𝐴𝑅𝑥𝑥𝑅𝐶) ↔ (𝐴𝑅𝐵𝐵𝑅𝐶)))
116, 7, 10spcedv 3527 . . . 4 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → ∃𝑥(𝐴𝑅𝑥𝑥𝑅𝐶))
12 simpl 482 . . . . . 6 ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐵)
13 brrelex1 5631 . . . . . 6 ((Rel 𝑅𝐴𝑅𝐵) → 𝐴 ∈ V)
143, 12, 13syl2an 595 . . . . 5 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → 𝐴 ∈ V)
15 brrelex2 5632 . . . . . 6 ((Rel 𝑅𝐵𝑅𝐶) → 𝐶 ∈ V)
163, 4, 15syl2an 595 . . . . 5 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → 𝐶 ∈ V)
17 brcog 5764 . . . . 5 ((𝐴 ∈ V ∧ 𝐶 ∈ V) → (𝐴(𝑅𝑅)𝐶 ↔ ∃𝑥(𝐴𝑅𝑥𝑥𝑅𝐶)))
1814, 16, 17syl2anc 583 . . . 4 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → (𝐴(𝑅𝑅)𝐶 ↔ ∃𝑥(𝐴𝑅𝑥𝑥𝑅𝐶)))
1911, 18mpbird 256 . . 3 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → 𝐴(𝑅𝑅)𝐶)
2019ex 412 . 2 (𝜑 → ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴(𝑅𝑅)𝐶))
21 df-er 8456 . . . . . 6 (𝑅 Er 𝑋 ↔ (Rel 𝑅 ∧ dom 𝑅 = 𝑋 ∧ (𝑅 ∪ (𝑅𝑅)) ⊆ 𝑅))
2221simp3bi 1145 . . . . 5 (𝑅 Er 𝑋 → (𝑅 ∪ (𝑅𝑅)) ⊆ 𝑅)
231, 22syl 17 . . . 4 (𝜑 → (𝑅 ∪ (𝑅𝑅)) ⊆ 𝑅)
2423unssbd 4118 . . 3 (𝜑 → (𝑅𝑅) ⊆ 𝑅)
2524ssbrd 5113 . 2 (𝜑 → (𝐴(𝑅𝑅)𝐶𝐴𝑅𝐶))
2620, 25syld 47 1 (𝜑 → ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐶))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wex 1783  wcel 2108  Vcvv 3422  cun 3881  wss 3883   class class class wbr 5070  ccnv 5579  dom cdm 5580  ccom 5584  Rel wrel 5585   Er wer 8453
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-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-br 5071  df-opab 5133  df-xp 5586  df-rel 5587  df-co 5589  df-er 8456
This theorem is referenced by:  ertrd  8472  erth  8505  iiner  8536  entr  8747  efginvrel2  19248  efgsrel  19255
  Copyright terms: Public domain W3C validator