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

Theorem erinxp 8451
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 5669 . . 3 Rel (𝑅 ∩ (𝐵 × 𝐵))
21a1i 11 . 2 (𝜑 → Rel (𝑅 ∩ (𝐵 × 𝐵)))
3 simpr 488 . . . . 5 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦)
4 brinxp2 5611 . . . . 5 (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦 ↔ ((𝑥𝐵𝑦𝐵) ∧ 𝑥𝑅𝑦))
53, 4sylib 221 . . . 4 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → ((𝑥𝐵𝑦𝐵) ∧ 𝑥𝑅𝑦))
65simplrd 770 . . 3 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑦𝐵)
75simplld 768 . . 3 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑥𝐵)
8 erinxp.r . . . . 5 (𝜑𝑅 Er 𝐴)
98adantr 484 . . . 4 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑅 Er 𝐴)
105simprd 499 . . . 4 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑥𝑅𝑦)
119, 10ersym 8381 . . 3 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑦𝑅𝑥)
12 brinxp2 5611 . . 3 (𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑥 ↔ ((𝑦𝐵𝑥𝐵) ∧ 𝑦𝑅𝑥))
136, 7, 11, 12syl21anbrc 1346 . 2 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑥)
147adantrr 717 . . 3 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑥𝐵)
15 simprr 773 . . . . 5 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)
16 brinxp2 5611 . . . . 5 (𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧 ↔ ((𝑦𝐵𝑧𝐵) ∧ 𝑦𝑅𝑧))
1715, 16sylib 221 . . . 4 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → ((𝑦𝐵𝑧𝐵) ∧ 𝑦𝑅𝑧))
1817simplrd 770 . . 3 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑧𝐵)
198adantr 484 . . . 4 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑅 Er 𝐴)
2010adantrr 717 . . . 4 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑥𝑅𝑦)
2117simprd 499 . . . 4 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑦𝑅𝑧)
2219, 20, 21ertrd 8385 . . 3 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑥𝑅𝑧)
23 brinxp2 5611 . . 3 (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑧 ↔ ((𝑥𝐵𝑧𝐵) ∧ 𝑥𝑅𝑧))
2414, 18, 22, 23syl21anbrc 1346 . 2 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑧)
258adantr 484 . . . . . 6 ((𝜑𝑥𝐵) → 𝑅 Er 𝐴)
26 erinxp.a . . . . . . 7 (𝜑𝐵𝐴)
2726sselda 3887 . . . . . 6 ((𝜑𝑥𝐵) → 𝑥𝐴)
2825, 27erref 8389 . . . . 5 ((𝜑𝑥𝐵) → 𝑥𝑅𝑥)
2928ex 416 . . . 4 (𝜑 → (𝑥𝐵𝑥𝑅𝑥))
3029pm4.71rd 566 . . 3 (𝜑 → (𝑥𝐵 ↔ (𝑥𝑅𝑥𝑥𝐵)))
31 brin 5091 . . . 4 (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑥 ↔ (𝑥𝑅𝑥𝑥(𝐵 × 𝐵)𝑥))
32 brxp 5583 . . . . . 6 (𝑥(𝐵 × 𝐵)𝑥 ↔ (𝑥𝐵𝑥𝐵))
33 anidm 568 . . . . . 6 ((𝑥𝐵𝑥𝐵) ↔ 𝑥𝐵)
3432, 33bitri 278 . . . . 5 (𝑥(𝐵 × 𝐵)𝑥𝑥𝐵)
3534anbi2i 626 . . . 4 ((𝑥𝑅𝑥𝑥(𝐵 × 𝐵)𝑥) ↔ (𝑥𝑅𝑥𝑥𝐵))
3631, 35bitri 278 . . 3 (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑥 ↔ (𝑥𝑅𝑥𝑥𝐵))
3730, 36bitr4di 292 . 2 (𝜑 → (𝑥𝐵𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑥))
382, 13, 24, 37iserd 8395 1 (𝜑 → (𝑅 ∩ (𝐵 × 𝐵)) Er 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  wcel 2112  cin 3852  wss 3853   class class class wbr 5039   × cxp 5534  Rel wrel 5541   Er wer 8366
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2018  ax-8 2114  ax-9 2122  ax-11 2160  ax-12 2177  ax-ext 2708  ax-sep 5177  ax-nul 5184  ax-pr 5307
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-sb 2073  df-clab 2715  df-cleq 2728  df-clel 2809  df-ral 3056  df-rex 3057  df-rab 3060  df-v 3400  df-dif 3856  df-un 3858  df-in 3860  df-ss 3870  df-nul 4224  df-if 4426  df-sn 4528  df-pr 4530  df-op 4534  df-br 5040  df-opab 5102  df-xp 5542  df-rel 5543  df-cnv 5544  df-co 5545  df-dm 5546  df-er 8369
This theorem is referenced by:  frgpuplem  19116  pi1buni  23891  pi1addf  23898  pi1addval  23899  pi1grplem  23900
  Copyright terms: Public domain W3C validator