Users' Mathboxes Mathbox for Peter Mazsa < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  eqvreltr Structured version   Visualization version   GIF version

Theorem eqvreltr 36720
Description: An equivalence relation is transitive. (Contributed by NM, 4-Jun-1995.) (Revised by Mario Carneiro, 12-Aug-2015.) (Revised by Peter Mazsa, 2-Jun-2019.)
Hypothesis
Ref Expression
eqvreltr.1 (𝜑 → EqvRel 𝑅)
Assertion
Ref Expression
eqvreltr (𝜑 → ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐶))

Proof of Theorem eqvreltr
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 eqvreltr.1 . . . . . . 7 (𝜑 → EqvRel 𝑅)
2 eqvrelrel 36710 . . . . . . 7 ( EqvRel 𝑅 → Rel 𝑅)
31, 2syl 17 . . . . . 6 (𝜑 → Rel 𝑅)
4 simpr 485 . . . . . 6 ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐵𝑅𝐶)
5 brrelex1 5640 . . . . . 6 ((Rel 𝑅𝐵𝑅𝐶) → 𝐵 ∈ V)
63, 4, 5syl2an 596 . . . . 5 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → 𝐵 ∈ V)
7 simpr 485 . . . . 5 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → (𝐴𝑅𝐵𝐵𝑅𝐶))
8 breq2 5078 . . . . . 6 (𝑥 = 𝐵 → (𝐴𝑅𝑥𝐴𝑅𝐵))
9 breq1 5077 . . . . . 6 (𝑥 = 𝐵 → (𝑥𝑅𝐶𝐵𝑅𝐶))
108, 9anbi12d 631 . . . . 5 (𝑥 = 𝐵 → ((𝐴𝑅𝑥𝑥𝑅𝐶) ↔ (𝐴𝑅𝐵𝐵𝑅𝐶)))
116, 7, 10spcedv 3537 . . . 4 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → ∃𝑥(𝐴𝑅𝑥𝑥𝑅𝐶))
12 simpl 483 . . . . . 6 ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐵)
13 brrelex1 5640 . . . . . 6 ((Rel 𝑅𝐴𝑅𝐵) → 𝐴 ∈ V)
143, 12, 13syl2an 596 . . . . 5 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → 𝐴 ∈ V)
15 brrelex2 5641 . . . . . 6 ((Rel 𝑅𝐵𝑅𝐶) → 𝐶 ∈ V)
163, 4, 15syl2an 596 . . . . 5 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → 𝐶 ∈ V)
17 brcog 5775 . . . . 5 ((𝐴 ∈ V ∧ 𝐶 ∈ V) → (𝐴(𝑅𝑅)𝐶 ↔ ∃𝑥(𝐴𝑅𝑥𝑥𝑅𝐶)))
1814, 16, 17syl2anc 584 . . . 4 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → (𝐴(𝑅𝑅)𝐶 ↔ ∃𝑥(𝐴𝑅𝑥𝑥𝑅𝐶)))
1911, 18mpbird 256 . . 3 ((𝜑 ∧ (𝐴𝑅𝐵𝐵𝑅𝐶)) → 𝐴(𝑅𝑅)𝐶)
2019ex 413 . 2 (𝜑 → ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴(𝑅𝑅)𝐶))
21 dfeqvrel2 36703 . . . . . 6 ( EqvRel 𝑅 ↔ ((( I ↾ dom 𝑅) ⊆ 𝑅𝑅𝑅 ∧ (𝑅𝑅) ⊆ 𝑅) ∧ Rel 𝑅))
2221simplbi 498 . . . . 5 ( EqvRel 𝑅 → (( I ↾ dom 𝑅) ⊆ 𝑅𝑅𝑅 ∧ (𝑅𝑅) ⊆ 𝑅))
2322simp3d 1143 . . . 4 ( EqvRel 𝑅 → (𝑅𝑅) ⊆ 𝑅)
241, 23syl 17 . . 3 (𝜑 → (𝑅𝑅) ⊆ 𝑅)
2524ssbrd 5117 . 2 (𝜑 → (𝐴(𝑅𝑅)𝐶𝐴𝑅𝐶))
2620, 25syld 47 1 (𝜑 → ((𝐴𝑅𝐵𝐵𝑅𝐶) → 𝐴𝑅𝐶))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wex 1782  wcel 2106  Vcvv 3432  wss 3887   class class class wbr 5074   I cid 5488  ccnv 5588  dom cdm 5589  cres 5591  ccom 5593  Rel wrel 5594   EqvRel weqvrel 36350
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-10 2137  ax-12 2171  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-nf 1787  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-br 5075  df-opab 5137  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-refrel 36630  df-symrel 36658  df-trrel 36688  df-eqvrel 36698
This theorem is referenced by:  eqvreltrd  36721  eqvrelth  36724
  Copyright terms: Public domain W3C validator