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

Theorem erinxp 8538
Description: A restricted equivalence relation is an equivalence relation. (Contributed by Mario Carneiro, 10-Jul-2015.) (Revised by Mario Carneiro, 12-Aug-2015.)
Hypotheses
Ref Expression
erinxp.r (𝜑𝑅 Er 𝐴)
erinxp.a (𝜑𝐵𝐴)
Assertion
Ref Expression
erinxp (𝜑 → (𝑅 ∩ (𝐵 × 𝐵)) Er 𝐵)

Proof of Theorem erinxp
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 relinxp 5713 . . 3 Rel (𝑅 ∩ (𝐵 × 𝐵))
21a1i 11 . 2 (𝜑 → Rel (𝑅 ∩ (𝐵 × 𝐵)))
3 simpr 484 . . . . 5 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦)
4 brinxp2 5655 . . . . 5 (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦 ↔ ((𝑥𝐵𝑦𝐵) ∧ 𝑥𝑅𝑦))
53, 4sylib 217 . . . 4 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → ((𝑥𝐵𝑦𝐵) ∧ 𝑥𝑅𝑦))
65simplrd 766 . . 3 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑦𝐵)
75simplld 764 . . 3 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑥𝐵)
8 erinxp.r . . . . 5 (𝜑𝑅 Er 𝐴)
98adantr 480 . . . 4 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑅 Er 𝐴)
105simprd 495 . . . 4 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑥𝑅𝑦)
119, 10ersym 8468 . . 3 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑦𝑅𝑥)
12 brinxp2 5655 . . 3 (𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑥 ↔ ((𝑦𝐵𝑥𝐵) ∧ 𝑦𝑅𝑥))
136, 7, 11, 12syl21anbrc 1342 . 2 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑥)
147adantrr 713 . . 3 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑥𝐵)
15 simprr 769 . . . . 5 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)
16 brinxp2 5655 . . . . 5 (𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧 ↔ ((𝑦𝐵𝑧𝐵) ∧ 𝑦𝑅𝑧))
1715, 16sylib 217 . . . 4 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → ((𝑦𝐵𝑧𝐵) ∧ 𝑦𝑅𝑧))
1817simplrd 766 . . 3 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑧𝐵)
198adantr 480 . . . 4 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑅 Er 𝐴)
2010adantrr 713 . . . 4 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑥𝑅𝑦)
2117simprd 495 . . . 4 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑦𝑅𝑧)
2219, 20, 21ertrd 8472 . . 3 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑥𝑅𝑧)
23 brinxp2 5655 . . 3 (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑧 ↔ ((𝑥𝐵𝑧𝐵) ∧ 𝑥𝑅𝑧))
2414, 18, 22, 23syl21anbrc 1342 . 2 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑧)
258adantr 480 . . . . . 6 ((𝜑𝑥𝐵) → 𝑅 Er 𝐴)
26 erinxp.a . . . . . . 7 (𝜑𝐵𝐴)
2726sselda 3917 . . . . . 6 ((𝜑𝑥𝐵) → 𝑥𝐴)
2825, 27erref 8476 . . . . 5 ((𝜑𝑥𝐵) → 𝑥𝑅𝑥)
2928ex 412 . . . 4 (𝜑 → (𝑥𝐵𝑥𝑅𝑥))
3029pm4.71rd 562 . . 3 (𝜑 → (𝑥𝐵 ↔ (𝑥𝑅𝑥𝑥𝐵)))
31 brin 5122 . . . 4 (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑥 ↔ (𝑥𝑅𝑥𝑥(𝐵 × 𝐵)𝑥))
32 brxp 5627 . . . . . 6 (𝑥(𝐵 × 𝐵)𝑥 ↔ (𝑥𝐵𝑥𝐵))
33 anidm 564 . . . . . 6 ((𝑥𝐵𝑥𝐵) ↔ 𝑥𝐵)
3432, 33bitri 274 . . . . 5 (𝑥(𝐵 × 𝐵)𝑥𝑥𝐵)
3534anbi2i 622 . . . 4 ((𝑥𝑅𝑥𝑥(𝐵 × 𝐵)𝑥) ↔ (𝑥𝑅𝑥𝑥𝐵))
3631, 35bitri 274 . . 3 (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑥 ↔ (𝑥𝑅𝑥𝑥𝐵))
3730, 36bitr4di 288 . 2 (𝜑 → (𝑥𝐵𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑥))
382, 13, 24, 37iserd 8482 1 (𝜑 → (𝑅 ∩ (𝐵 × 𝐵)) Er 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  wcel 2108  cin 3882  wss 3883   class class class wbr 5070   × cxp 5578  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:  frgpuplem  19293  pi1buni  24109  pi1addf  24116  pi1addval  24117  pi1grplem  24118
  Copyright terms: Public domain W3C validator