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

Theorem dfres3 5999
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 5678 . 2 (𝐴 ↾ 𝐵) = (𝐴 ∩ (𝐵 × V))
2 eleq1 2863 . . . . . . . . . 10 (𝑥 = ⟨𝑦, 𝑧⟩ → (𝑥 ∈ 𝐴 ↔ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
3 vex 3465 . . . . . . . . . . . 12 𝑧 ∈ V
43biantru 539 . . . . . . . . . . 11 (𝑦 ∈ 𝐵 ↔ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ V))
5 vex 3465 . . . . . . . . . . . . 13 𝑦 ∈ V
65, 3opelrn 5945 . . . . . . . . . . . 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 1966 . . . . . 6 (𝑥 ∈ 𝐴 → (∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ V)) ↔ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ ran 𝐴))))
13 elxp 5689 . . . . . 6 (𝑥 ∈ (𝐵 × V) ↔ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ V)))
14 elxp 5689 . . . . . 6 (𝑥 ∈ (𝐵 × ran 𝐴) ↔ ∃𝑦∃𝑧(𝑥 = ⟨𝑦, 𝑧⟩ ∧ (𝑦 ∈ 𝐵 ∧ 𝑧 ∈ ran 𝐴)))
1512, 13, 143bitr4g 317 . . . . 5 (𝑥 ∈ 𝐴 → (𝑥 ∈ (𝐵 × V) ↔ 𝑥 ∈ (𝐵 × ran 𝐴)))
1615pm5.32i 585 . . . 4 ((𝑥 ∈ 𝐴 ∧ 𝑥 ∈ (𝐵 × V)) ↔ (𝑥 ∈ 𝐴 ∧ 𝑥 ∈ (𝐵 × ran 𝐴)))
17 elin 4103 . . . 4 (𝑥 ∈ (𝐴 ∩ (𝐵 × ran 𝐴)) ↔ (𝑥 ∈ 𝐴 ∧ 𝑥 ∈ (𝐵 × ran 𝐴)))
1816, 17bitr4i 281 . . 3 ((𝑥 ∈ 𝐴 ∧ 𝑥 ∈ (𝐵 × V)) ↔ 𝑥 ∈ (𝐴 ∩ (𝐵 × ran 𝐴)))
1918ineqri 4119 . 2 (𝐴 ∩ (𝐵 × V)) = (𝐴 ∩ (𝐵 × ran 𝐴))
201, 19eqtri 2797 1 (𝐴 ↾ 𝐵) = (𝐴 ∩ (𝐵 × ran 𝐴))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1572  ∃wex 1818   ∈ wcel 2156  Vcvv 3461   ∩ cin 4099  ⟨cop 4848   × cxp 5664  ran crn 5667   ↾ cres 5668
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-ext 2746  ax-sep 5263  ax-pr 5406
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-rab 3424  df-v 3463  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-sn 4596  df-pr 4598  df-op 4849  df-br 5117  df-opab 5182  df-xp 5672  df-cnv 5674  df-dm 5676  df-rn 5677  df-res 5678
This theorem is used by:  brrestrict  37027  dfrel6  39647
  Copyright terms: Public domain W3C validator