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

Theorem iserd 8482
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 412 . . . . . . 7 (𝜑 → (𝑥𝑅𝑦𝑦𝑅𝑥))
5 iserd.3 . . . . . . . 8 ((𝜑 ∧ (𝑥𝑅𝑦𝑦𝑅𝑧)) → 𝑥𝑅𝑧)
65ex 412 . . . . . . 7 (𝜑 → ((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧))
74, 6jca 511 . . . . . 6 (𝜑 → ((𝑥𝑅𝑦𝑦𝑅𝑥) ∧ ((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧)))
87alrimiv 1931 . . . . 5 (𝜑 → ∀𝑧((𝑥𝑅𝑦𝑦𝑅𝑥) ∧ ((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧)))
98alrimiv 1931 . . . 4 (𝜑 → ∀𝑦𝑧((𝑥𝑅𝑦𝑦𝑅𝑥) ∧ ((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧)))
109alrimiv 1931 . . 3 (𝜑 → ∀𝑥𝑦𝑧((𝑥𝑅𝑦𝑦𝑅𝑥) ∧ ((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧)))
11 dfer2 8457 . . 3 (𝑅 Er dom 𝑅 ↔ (Rel 𝑅 ∧ dom 𝑅 = dom 𝑅 ∧ ∀𝑥𝑦𝑧((𝑥𝑅𝑦𝑦𝑅𝑥) ∧ ((𝑥𝑅𝑦𝑦𝑅𝑧) → 𝑥𝑅𝑧))))
121, 2, 10, 11syl3anbrc 1341 . 2 (𝜑𝑅 Er dom 𝑅)
1312adantr 480 . . . . . . . 8 ((𝜑𝑥 ∈ dom 𝑅) → 𝑅 Er dom 𝑅)
14 simpr 484 . . . . . . . 8 ((𝜑𝑥 ∈ dom 𝑅) → 𝑥 ∈ dom 𝑅)
1513, 14erref 8476 . . . . . . 7 ((𝜑𝑥 ∈ dom 𝑅) → 𝑥𝑅𝑥)
1615ex 412 . . . . . 6 (𝜑 → (𝑥 ∈ dom 𝑅𝑥𝑅𝑥))
17 vex 3426 . . . . . . 7 𝑥 ∈ V
1817, 17breldm 5806 . . . . . 6 (𝑥𝑅𝑥𝑥 ∈ dom 𝑅)
1916, 18impbid1 224 . . . . 5 (𝜑 → (𝑥 ∈ dom 𝑅𝑥𝑅𝑥))
20 iserd.4 . . . . 5 (𝜑 → (𝑥𝐴𝑥𝑅𝑥))
2119, 20bitr4d 281 . . . 4 (𝜑 → (𝑥 ∈ dom 𝑅𝑥𝐴))
2221eqrdv 2736 . . 3 (𝜑 → dom 𝑅 = 𝐴)
23 ereq2 8464 . . 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 395  wal 1537   = wceq 1539  wcel 2108   class class class wbr 5070  dom cdm 5580  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-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-br 5071  df-opab 5133  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-er 8456
This theorem is referenced by:  iseri  8483  iseriALT  8484  swoer  8486  iiner  8536  erinxp  8538  cicer  17435  eqger  18721  gaorber  18829  efgrelexlemb  19271  efgcpbllemb  19276  xmeter  23494  ercgrg  26782  metider  31746  prjsper  40368
  Copyright terms: Public domain W3C validator