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

Theorem dfres3 5979
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 5666 . 2 (𝐴 ↾ 𝐵) = (𝐴 ∩ (𝐵 × V))
2 eleq1 2851 . . . . . . . . . 10 (𝑥 = ⟨𝑦, 𝑧⟩ → (𝑥 ∈ 𝐴 ↔ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
3 vex 3457 . . . . . . . . . . . 12 𝑧 ∈ V
43biantru 539 . . . . . . . . . . 11 (𝑦 ∈ 𝐵 ↔ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ V))
5 vex 3457 . . . . . . . . . . . . 13 𝑦 ∈ V
65, 3opelrn 5929 . . . . . . . . . . . 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 1958 . . . . . 6 (𝑥 ∈ 𝐴 → (∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ V)) ↔ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ ran 𝐴))))
13 elxp 5677 . . . . . 6 (𝑥 ∈ (𝐵 × V) ↔ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ V)))
14 elxp 5677 . . . . . 6 (𝑥 ∈ (𝐵 × ran 𝐴) ↔ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ ran 𝐴)))
1512, 13, 143bitr4g 317 . . . . 5 (𝑥 ∈ 𝐴 → (𝑥 ∈ (𝐵 × V) ↔ 𝑥 ∈ (𝐵 × ran 𝐴)))
1615pm5.32i 585 . . . 4 ((𝑥 ∈ 𝐴 ∧ 𝑥 ∈ (𝐵 × V)) ↔ (𝑥 ∈ 𝐴 ∧ 𝑥 ∈ (𝐵 × ran 𝐴)))
17 elin 4095 . . . 4 (𝑥 ∈ (𝐴 ∩ (𝐵 × ran 𝐴)) ↔ (𝑥 ∈ 𝐴 ∧ 𝑥 ∈ (𝐵 × ran 𝐴)))
1816, 17bitr4i 281 . . 3 ((𝑥 ∈ 𝐴 ∧ 𝑥 ∈ (𝐵 × V)) ↔ 𝑥 ∈ (𝐴 ∩ (𝐵 × ran 𝐴)))
1918ineqri 4111 . 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 1569  ∃wex 1811   ∈ wcel 2146  Vcvv 3453   ∩ cin 4091  ⟨cop 4837   × cxp 5652  ran crn 5655   ↾ cres 5656
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-ext 2735  ax-sep 5251  ax-pr 5394
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-sb 2101  df-clab 2742  df-cleq 2755  df-clel 2838  df-rab 3416  df-v 3455  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-sn 4588  df-pr 4590  df-op 4838  df-br 5106  df-opab 5170  df-xp 5660  df-cnv 5662  df-dm 5664  df-rn 5665  df-res 5666
This theorem is used by:  brrestrict  36840  dfrel6  39419
  Copyright terms: Public domain W3C validator