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

Theorem fvmptex 6871
Description: Express a function 𝐹 whose value 𝐵 may not always be a set in terms of another function 𝐺 for which sethood is guaranteed. (Note that ( I ‘𝐵) is just shorthand for if(𝐵 ∈ V, 𝐵, ∅), and it is always a set by fvex 6769.) Note also that these functions are not the same; wherever 𝐵(𝐶) is not a set, 𝐶 is not in the domain of 𝐹 (so it evaluates to the empty set), but 𝐶 is in the domain of 𝐺, and 𝐺(𝐶) is defined to be the empty set. (Contributed by Mario Carneiro, 14-Jul-2013.) (Revised by Mario Carneiro, 23-Apr-2014.)
Hypotheses
Ref Expression
fvmptex.1 𝐹 = (𝑥𝐴𝐵)
fvmptex.2 𝐺 = (𝑥𝐴 ↦ ( I ‘𝐵))
Assertion
Ref Expression
fvmptex (𝐹𝐶) = (𝐺𝐶)
Distinct variable group:   𝑥,𝐴
Allowed substitution hints:   𝐵(𝑥)   𝐶(𝑥)   𝐹(𝑥)   𝐺(𝑥)

Proof of Theorem fvmptex
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 csbeq1 3831 . . . 4 (𝑦 = 𝐶𝑦 / 𝑥𝐵 = 𝐶 / 𝑥𝐵)
2 fvmptex.1 . . . . 5 𝐹 = (𝑥𝐴𝐵)
3 nfcv 2906 . . . . . 6 𝑦𝐵
4 nfcsb1v 3853 . . . . . 6 𝑥𝑦 / 𝑥𝐵
5 csbeq1a 3842 . . . . . 6 (𝑥 = 𝑦𝐵 = 𝑦 / 𝑥𝐵)
63, 4, 5cbvmpt 5181 . . . . 5 (𝑥𝐴𝐵) = (𝑦𝐴𝑦 / 𝑥𝐵)
72, 6eqtri 2766 . . . 4 𝐹 = (𝑦𝐴𝑦 / 𝑥𝐵)
81, 7fvmpti 6856 . . 3 (𝐶𝐴 → (𝐹𝐶) = ( I ‘𝐶 / 𝑥𝐵))
91fveq2d 6760 . . . 4 (𝑦 = 𝐶 → ( I ‘𝑦 / 𝑥𝐵) = ( I ‘𝐶 / 𝑥𝐵))
10 fvmptex.2 . . . . 5 𝐺 = (𝑥𝐴 ↦ ( I ‘𝐵))
11 nfcv 2906 . . . . . 6 𝑦( I ‘𝐵)
12 nfcv 2906 . . . . . . 7 𝑥 I
1312, 4nffv 6766 . . . . . 6 𝑥( I ‘𝑦 / 𝑥𝐵)
145fveq2d 6760 . . . . . 6 (𝑥 = 𝑦 → ( I ‘𝐵) = ( I ‘𝑦 / 𝑥𝐵))
1511, 13, 14cbvmpt 5181 . . . . 5 (𝑥𝐴 ↦ ( I ‘𝐵)) = (𝑦𝐴 ↦ ( I ‘𝑦 / 𝑥𝐵))
1610, 15eqtri 2766 . . . 4 𝐺 = (𝑦𝐴 ↦ ( I ‘𝑦 / 𝑥𝐵))
17 fvex 6769 . . . 4 ( I ‘𝐶 / 𝑥𝐵) ∈ V
189, 16, 17fvmpt 6857 . . 3 (𝐶𝐴 → (𝐺𝐶) = ( I ‘𝐶 / 𝑥𝐵))
198, 18eqtr4d 2781 . 2 (𝐶𝐴 → (𝐹𝐶) = (𝐺𝐶))
202dmmptss 6133 . . . . 5 dom 𝐹𝐴
2120sseli 3913 . . . 4 (𝐶 ∈ dom 𝐹𝐶𝐴)
22 ndmfv 6786 . . . 4 𝐶 ∈ dom 𝐹 → (𝐹𝐶) = ∅)
2321, 22nsyl5 159 . . 3 𝐶𝐴 → (𝐹𝐶) = ∅)
24 fvex 6769 . . . . . 6 ( I ‘𝐵) ∈ V
2524, 10dmmpti 6561 . . . . 5 dom 𝐺 = 𝐴
2625eleq2i 2830 . . . 4 (𝐶 ∈ dom 𝐺𝐶𝐴)
27 ndmfv 6786 . . . 4 𝐶 ∈ dom 𝐺 → (𝐺𝐶) = ∅)
2826, 27sylnbir 330 . . 3 𝐶𝐴 → (𝐺𝐶) = ∅)
2923, 28eqtr4d 2781 . 2 𝐶𝐴 → (𝐹𝐶) = (𝐺𝐶))
3019, 29pm2.61i 182 1 (𝐹𝐶) = (𝐺𝐶)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3   = wceq 1539  wcel 2108  csb 3828  c0 4253  cmpt 5153   I cid 5479  dom cdm 5580  cfv 6418
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-fv 6426
This theorem is referenced by:  fvmptnf  6879  sumeq2ii  15333  prodeq2ii  15551
  Copyright terms: Public domain W3C validator