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

Theorem iserd 8524
Description: A reflexive, symmetric, transitive relation is an equivalence relation on its domain. (Contributed by Mario Carneiro, 9-Jul-2014.) (Revised by Mario Carneiro, 12-Aug-2015.)
Hypotheses
Ref Expression
iserd.1 (𝜑 → Rel 𝑅)
iserd.2 ((𝜑𝑥𝑅𝑦) → 𝑦𝑅𝑥)
iserd.3 ((𝜑 ∧ (𝑥𝑅𝑦𝑦𝑅𝑧)) → 𝑥𝑅𝑧)
iserd.4 (𝜑 → (𝑥𝐴𝑥𝑅𝑥))
Assertion
Ref Expression
iserd (𝜑𝑅 Er 𝐴)
Distinct variable groups:   𝑥,𝑦,𝑧,𝑅   𝑥,𝐴   𝜑,𝑥,𝑦,𝑧
Allowed substitution hints:   𝐴(𝑦,𝑧)

Proof of Theorem iserd
StepHypRef Expression
1 iserd.1 . . 3 (𝜑 → Rel 𝑅)
2 eqidd 2739 . . 3 (𝜑 → dom 𝑅 = dom 𝑅)
3 iserd.2 . . . . . . . 8 ((𝜑𝑥𝑅𝑦) → 𝑦𝑅𝑥)
43ex 413 . . . . . . 7 (𝜑 → (𝑥𝑅𝑦𝑦𝑅𝑥))
5 iserd.3 . . . . . . . 8 ((𝜑 ∧ (𝑥𝑅𝑦𝑦𝑅𝑧)) → 𝑥𝑅𝑧)
65ex 413 . . . . . . 7 (𝜑 → ((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧))
74, 6jca 512 . . . . . 6 (𝜑 → ((𝑥𝑅𝑦𝑦𝑅𝑥) ∧ ((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧)))
87alrimiv 1930 . . . . 5 (𝜑 → ∀𝑧((𝑥𝑅𝑦𝑦𝑅𝑥) ∧ ((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧)))
98alrimiv 1930 . . . 4 (𝜑 → ∀𝑦𝑧((𝑥𝑅𝑦𝑦𝑅𝑥) ∧ ((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧)))
109alrimiv 1930 . . 3 (𝜑 → ∀𝑥𝑦𝑧((𝑥𝑅𝑦𝑦𝑅𝑥) ∧ ((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧)))
11 dfer2 8499 . . 3 (𝑅 Er dom 𝑅 ↔ (Rel 𝑅 ∧ dom 𝑅 = dom 𝑅 ∧ ∀𝑥𝑦𝑧((𝑥𝑅𝑦𝑦𝑅𝑥) ∧ ((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧))))
121, 2, 10, 11syl3anbrc 1342 . 2 (𝜑𝑅 Er dom 𝑅)
1312adantr 481 . . . . . . . 8 ((𝜑𝑥 ∈ dom 𝑅) → 𝑅 Er dom 𝑅)
14 simpr 485 . . . . . . . 8 ((𝜑𝑥 ∈ dom 𝑅) → 𝑥 ∈ dom 𝑅)
1513, 14erref 8518 . . . . . . 7 ((𝜑𝑥 ∈ dom 𝑅) → 𝑥𝑅𝑥)
1615ex 413 . . . . . 6 (𝜑 → (𝑥 ∈ dom 𝑅𝑥𝑅𝑥))
17 vex 3436 . . . . . . 7 𝑥 ∈ V
1817, 17breldm 5817 . . . . . 6 (𝑥𝑅𝑥𝑥 ∈ dom 𝑅)
1916, 18impbid1 224 . . . . 5 (𝜑 → (𝑥 ∈ dom 𝑅𝑥𝑅𝑥))
20 iserd.4 . . . . 5 (𝜑 → (𝑥𝐴𝑥𝑅𝑥))
2119, 20bitr4d 281 . . . 4 (𝜑 → (𝑥 ∈ dom 𝑅𝑥𝐴))
2221eqrdv 2736 . . 3 (𝜑 → dom 𝑅 = 𝐴)
23 ereq2 8506 . . 3 (dom 𝑅 = 𝐴 → (𝑅 Er dom 𝑅𝑅 Er 𝐴))
2422, 23syl 17 . 2 (𝜑 → (𝑅 Er dom 𝑅𝑅 Er 𝐴))
2512, 24mpbid 231 1 (𝜑𝑅 Er 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  wal 1537   = wceq 1539  wcel 2106   class class class wbr 5074  dom cdm 5589  Rel wrel 5594   Er wer 8495
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-br 5075  df-opab 5137  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-er 8498
This theorem is referenced by:  iseri  8525  iseriALT  8526  swoer  8528  iiner  8578  erinxp  8580  cicer  17518  eqger  18806  gaorber  18914  efgrelexlemb  19356  efgcpbllemb  19361  xmeter  23586  ercgrg  26878  metider  31844  prjsper  40447
  Copyright terms: Public domain W3C validator