ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  resfunexg GIF version

Theorem resfunexg 5936
Description: The restriction of a function to a set exists. Compare Proposition 6.17 of [TakeutiZaring] p. 28. (Contributed by NM, 7-Apr-1995.) (Revised by Mario Carneiro, 22-Jun-2013.)
Assertion
Ref Expression
resfunexg ((Fun 𝐴 ∧ 𝐵 ∈ 𝐶) → (𝐴 ↾ 𝐵) ∈ V)

Proof of Theorem resfunexg
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 funres 5418 . . . . 5 (Fun 𝐴 → Fun (𝐴 ↾ 𝐵))
2 funfvex 5712 . . . . . 6 ((Fun (𝐴 ↾ 𝐵) ∧ 𝑥 ∈ dom (𝐴 ↾ 𝐵)) → ((𝐴 ↾ 𝐵)‘𝑥) ∈ V)
32ralrimiva 2623 . . . . 5 (Fun (𝐴 ↾ 𝐵) → ∀𝑥 ∈ dom (𝐴 ↾ 𝐵)((𝐴 ↾ 𝐵)‘𝑥) ∈ V)
4 fnasrng 5889 . . . . 5 (∀𝑥 ∈ dom (𝐴 ↾ 𝐵)((𝐴 ↾ 𝐵)‘𝑥) ∈ V → (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ((𝐴 ↾ 𝐵)‘𝑥)) = ran (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩))
51, 3, 43syl 17 . . . 4 (Fun 𝐴 → (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ((𝐴 ↾ 𝐵)‘𝑥)) = ran (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩))
65adantr 276 . . 3 ((Fun 𝐴 ∧ 𝐵 ∈ 𝐶) → (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ((𝐴 ↾ 𝐵)‘𝑥)) = ran (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩))
71adantr 276 . . . . 5 ((Fun 𝐴 ∧ 𝐵 ∈ 𝐶) → Fun (𝐴 ↾ 𝐵))
8 funfn 5407 . . . . 5 (Fun (𝐴 ↾ 𝐵) ↔ (𝐴 ↾ 𝐵) Fn dom (𝐴 ↾ 𝐵))
97, 8sylib 122 . . . 4 ((Fun 𝐴 ∧ 𝐵 ∈ 𝐶) → (𝐴 ↾ 𝐵) Fn dom (𝐴 ↾ 𝐵))
10 dffn5im 5748 . . . 4 ((𝐴 ↾ 𝐵) Fn dom (𝐴 ↾ 𝐵) → (𝐴 ↾ 𝐵) = (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ((𝐴 ↾ 𝐵)‘𝑥)))
119, 10syl 14 . . 3 ((Fun 𝐴 ∧ 𝐵 ∈ 𝐶) → (𝐴 ↾ 𝐵) = (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ((𝐴 ↾ 𝐵)‘𝑥)))
12 vex 2824 . . . . . . . . 9 𝑥 ∈ V
13 opexg 4368 . . . . . . . . 9 ((𝑥 ∈ V ∧ ((𝐴 ↾ 𝐵)‘𝑥) ∈ V) → ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩ ∈ V)
1412, 2, 13sylancr 418 . . . . . . . 8 ((Fun (𝐴 ↾ 𝐵) ∧ 𝑥 ∈ dom (𝐴 ↾ 𝐵)) → ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩ ∈ V)
1514ralrimiva 2623 . . . . . . 7 (Fun (𝐴 ↾ 𝐵) → ∀𝑥 ∈ dom (𝐴 ↾ 𝐵)⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩ ∈ V)
16 dmmptg 5285 . . . . . . 7 (∀𝑥 ∈ dom (𝐴 ↾ 𝐵)⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩ ∈ V → dom (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩) = dom (𝐴 ↾ 𝐵))
171, 15, 163syl 17 . . . . . 6 (Fun 𝐴 → dom (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩) = dom (𝐴 ↾ 𝐵))
1817imaeq2d 5126 . . . . 5 (Fun 𝐴 → ((𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩) “ dom (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩)) = ((𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩) “ dom (𝐴 ↾ 𝐵)))
19 imadmrn 5136 . . . . 5 ((𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩) “ dom (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩)) = ran (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩)
2018, 19eqtr3di 2286 . . . 4 (Fun 𝐴 → ((𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩) “ dom (𝐴 ↾ 𝐵)) = ran (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩))
2120adantr 276 . . 3 ((Fun 𝐴 ∧ 𝐵 ∈ 𝐶) → ((𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩) “ dom (𝐴 ↾ 𝐵)) = ran (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩))
226, 11, 213eqtr4d 2281 . 2 ((Fun 𝐴 ∧ 𝐵 ∈ 𝐶) → (𝐴 ↾ 𝐵) = ((𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩) “ dom (𝐴 ↾ 𝐵)))
23 funmpt 5415 . . 3 Fun (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩)
24 dmresexg 5086 . . . 4 (𝐵 ∈ 𝐶 → dom (𝐴 ↾ 𝐵) ∈ V)
2524adantl 277 . . 3 ((Fun 𝐴 ∧ 𝐵 ∈ 𝐶) → dom (𝐴 ↾ 𝐵) ∈ V)
26 funimaexg 5465 . . 3 ((Fun (𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩) ∧ dom (𝐴 ↾ 𝐵) ∈ V) → ((𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩) “ dom (𝐴 ↾ 𝐵)) ∈ V)
2723, 25, 26sylancr 418 . 2 ((Fun 𝐴 ∧ 𝐵 ∈ 𝐶) → ((𝑥 ∈ dom (𝐴 ↾ 𝐵) ↦ ⟨𝑥, ((𝐴 ↾ 𝐵)‘𝑥)⟩) “ dom (𝐴 ↾ 𝐵)) ∈ V)
2822, 27eqeltrd 2315 1 ((Fun 𝐴 ∧ 𝐵 ∈ 𝐶) → (𝐴 ↾ 𝐵) ∈ V)
Colors of variables:    wff set class
This proof depends on syntax axioms:   → wi 4   ∧ wa 104   = wceq 1402   ∈ wcel 2209  ∀wral 2528  Vcvv 2821  ⟨cop 3712   ↦ cmpt 4192  dom cdm 4774  ran crn 4775   ↾ cres 4776   “ cima 4777  Fun wfun 5371   Fn wfn 5372  ‘cfv 5377
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-14 2212  ax-ext 2220  ax-coll 4246  ax-sep 4249  ax-pow 4311  ax-pr 4346
This proof depends on definitions:  df-bi 117  df-3an 1011  df-tru 1405  df-nf 1514  df-sb 1816  df-eu 2089  df-mo 2090  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ral 2533  df-rex 2534  df-reu 2535  df-rab 2537  df-v 2823  df-sbc 3052  df-csb 3148  df-un 3224  df-in 3226  df-ss 3233  df-pw 3690  df-sn 3715  df-pr 3716  df-op 3718  df-uni 3936  df-iun 4014  df-br 4131  df-opab 4193  df-mpt 4194  df-id 4438  df-xp 4780  df-rel 4781  df-cnv 4782  df-co 4783  df-dm 4784  df-rn 4785  df-res 4786  df-ima 4787  df-iota 5337  df-fun 5379  df-fn 5380  df-f 5381  df-f1 5382  df-fo 5383  df-f1o 5384  df-fv 5385
This theorem is used by:  fnex  5937  ofexg  6307  cofunexg  6338  rdgivallem  6652  frecex  6665  frecsuclem  6677  djudoml  7576  djudomr  7577  fihashf1rn  11243  qnnen  13374
  Copyright terms: Public domain W3C validator