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

Theorem dfres3 5991
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 5670 . 2 (𝐴 ↾ 𝐵) = (𝐴 ∩ (𝐵 × V))
2 eleq1 2852 . . . . . . . . . 10 (𝑥 = ⟨𝑦, 𝑧⟩ → (𝑥 ∈ 𝐴 ↔ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
3 vex 3458 . . . . . . . . . . . 12 𝑧 ∈ V
43biantru 539 . . . . . . . . . . 11 (𝑦 ∈ 𝐵 ↔ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ V))
5 vex 3458 . . . . . . . . . . . . 13 𝑦 ∈ V
65, 3opelrn 5937 . . . . . . . . . . . 12 (⟨𝑦, 𝑧⟩ ∈ 𝐴 → 𝑧 ∈ ran 𝐴)
76biantrud 541 . . . . . . . . . . 11 (⟨𝑦, 𝑧⟩ ∈ 𝐴 → (𝑦 ∈ 𝐵 ↔ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ ran 𝐴)))
84, 7bitr3id 288 . . . . . . . . . 10 (⟨𝑦, 𝑧⟩ ∈ 𝐴 → ((𝑦 ∈ 𝐵 ∧ 𝑧 ∈ V) ↔ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ ran 𝐴)))
92, 8biimtrdi 256 . . . . . . . . 9 (𝑥 = ⟨𝑦, 𝑧⟩ → (𝑥 ∈ 𝐴 → ((𝑦 ∈ 𝐵 ∧ 𝑧 ∈ V) ↔ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ ran 𝐴))))
109com12 33 . . . . . . . 8 (𝑥 ∈ 𝐴 → (𝑥 = ⟨𝑦, 𝑧⟩ → ((𝑦 ∈ 𝐵 ∧ 𝑧 ∈ V) ↔ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ ran 𝐴))))
1110pm5.32d 588 . . . . . . 7 (𝑥 ∈ 𝐴 → ((𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ V)) ↔ (𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ ran 𝐴))))
12112exbidv 1959 . . . . . 6 (𝑥 ∈ 𝐴 → (∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ V)) ↔ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ ran 𝐴))))
13 elxp 5681 . . . . . 6 (𝑥 ∈ (𝐵 × V) ↔ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ V)))
14 elxp 5681 . . . . . 6 (𝑥 ∈ (𝐵 × ran 𝐴) ↔ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ ran 𝐴)))
1512, 13, 143bitr4g 317 . . . . 5 (𝑥 ∈ 𝐴 → (𝑥 ∈ (𝐵 × V) ↔ 𝑥 ∈ (𝐵 × ran 𝐴)))
1615pm5.32i 585 . . . 4 ((𝑥 ∈ 𝐴 ∧ 𝑥 ∈ (𝐵 × V)) ↔ (𝑥 ∈ 𝐴 ∧ 𝑥 ∈ (𝐵 × ran 𝐴)))
17 elin 4096 . . . 4 (𝑥 ∈ (𝐴 ∩ (𝐵 × ran 𝐴)) ↔ (𝑥 ∈ 𝐴 ∧ 𝑥 ∈ (𝐵 × ran 𝐴)))
1816, 17bitr4i 281 . . 3 ((𝑥 ∈ 𝐴 ∧ 𝑥 ∈ (𝐵 × V)) ↔ 𝑥 ∈ (𝐴 ∩ (𝐵 × ran 𝐴)))
1918ineqri 4112 . 2 (𝐴 ∩ (𝐵 × V)) = (𝐴 ∩ (𝐵 × ran 𝐴))
201, 19eqtri 2786 1 (𝐴 ↾ 𝐵) = (𝐴 ∩ (𝐵 × ran 𝐴))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2147  Vcvv 3454   ∩ cin 4092  ⟨cop 4840   × cxp 5656  ran crn 5659   ↾ cres 5660
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-ext 2735  ax-sep 5255  ax-pr 5398
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-sb 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4841  df-br 5109  df-opab 5174  df-xp 5664  df-cnv 5666  df-dm 5668  df-rn 5669  df-res 5670
This theorem is used by:  brrestrict  36928  dfrel6  39545
  Copyright terms: Public domain W3C validator