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

Theorem dfres3 5856
Description: Alternate definition of restriction. (Contributed by Scott Fenton, 17-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Assertion
Ref Expression
dfres3 (𝐴𝐵) = (𝐴 ∩ (𝐵 × ran 𝐴))

Proof of Theorem dfres3
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-res 5563 . 2 (𝐴𝐵) = (𝐴 ∩ (𝐵 × V))
2 eleq1 2825 . . . . . . . . . 10 (𝑥 = ⟨𝑦, 𝑧⟩ → (𝑥𝐴 ↔ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
3 vex 3412 . . . . . . . . . . . 12 𝑧 ∈ V
43biantru 533 . . . . . . . . . . 11 (𝑦𝐵 ↔ (𝑦𝐵𝑧 ∈ V))
5 vex 3412 . . . . . . . . . . . . 13 𝑦 ∈ V
65, 3opelrn 5812 . . . . . . . . . . . 12 (⟨𝑦, 𝑧⟩ ∈ 𝐴𝑧 ∈ ran 𝐴)
76biantrud 535 . . . . . . . . . . 11 (⟨𝑦, 𝑧⟩ ∈ 𝐴 → (𝑦𝐵 ↔ (𝑦𝐵𝑧 ∈ ran 𝐴)))
84, 7bitr3id 288 . . . . . . . . . 10 (⟨𝑦, 𝑧⟩ ∈ 𝐴 → ((𝑦𝐵𝑧 ∈ V) ↔ (𝑦𝐵𝑧 ∈ ran 𝐴)))
92, 8syl6bi 256 . . . . . . . . 9 (𝑥 = ⟨𝑦, 𝑧⟩ → (𝑥𝐴 → ((𝑦𝐵𝑧 ∈ V) ↔ (𝑦𝐵𝑧 ∈ ran 𝐴))))
109com12 32 . . . . . . . 8 (𝑥𝐴 → (𝑥 = ⟨𝑦, 𝑧⟩ → ((𝑦𝐵𝑧 ∈ V) ↔ (𝑦𝐵𝑧 ∈ ran 𝐴))))
1110pm5.32d 580 . . . . . . 7 (𝑥𝐴 → ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ V)) ↔ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ ran 𝐴))))
12112exbidv 1932 . . . . . 6 (𝑥𝐴 → (∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ V)) ↔ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ ran 𝐴))))
13 elxp 5574 . . . . . 6 (𝑥 ∈ (𝐵 × V) ↔ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ V)))
14 elxp 5574 . . . . . 6 (𝑥 ∈ (𝐵 × ran 𝐴) ↔ ∃𝑦𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ ran 𝐴)))
1512, 13, 143bitr4g 317 . . . . 5 (𝑥𝐴 → (𝑥 ∈ (𝐵 × V) ↔ 𝑥 ∈ (𝐵 × ran 𝐴)))
1615pm5.32i 578 . . . 4 ((𝑥𝐴𝑥 ∈ (𝐵 × V)) ↔ (𝑥𝐴𝑥 ∈ (𝐵 × ran 𝐴)))
17 elin 3882 . . . 4 (𝑥 ∈ (𝐴 ∩ (𝐵 × ran 𝐴)) ↔ (𝑥𝐴𝑥 ∈ (𝐵 × ran 𝐴)))
1816, 17bitr4i 281 . . 3 ((𝑥𝐴𝑥 ∈ (𝐵 × V)) ↔ 𝑥 ∈ (𝐴 ∩ (𝐵 × ran 𝐴)))
1918ineqri 4119 . 2 (𝐴 ∩ (𝐵 × V)) = (𝐴 ∩ (𝐵 × ran 𝐴))
201, 19eqtri 2765 1 (𝐴𝐵) = (𝐴 ∩ (𝐵 × ran 𝐴))
Colors of variables: wff setvar class
Syntax hints:  wb 209  wa 399   = wceq 1543  wex 1787  wcel 2110  Vcvv 3408  cin 3865  cop 4547   × cxp 5549  ran crn 5552  cres 5553
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 2016  ax-8 2112  ax-9 2120  ax-ext 2708  ax-sep 5192  ax-nul 5199  ax-pr 5322
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 2071  df-clab 2715  df-cleq 2729  df-clel 2816  df-rab 3070  df-v 3410  df-dif 3869  df-un 3871  df-in 3873  df-nul 4238  df-if 4440  df-sn 4542  df-pr 4544  df-op 4548  df-br 5054  df-opab 5116  df-xp 5557  df-cnv 5559  df-dm 5561  df-rn 5562  df-res 5563
This theorem is referenced by:  brrestrict  33988  dfrel6  36219
  Copyright terms: Public domain W3C validator