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

Theorem fvmptex 7009
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 6899.) 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 3849 . . . 4 (𝑦 = 𝐶 → ⦋𝑦 / 𝑥⦌𝐵 = ⦋𝐶 / 𝑥⦌𝐵)
2 fvmptex.1 . . . . 5 𝐹 = (𝑥 ∈ 𝐴 ↦ 𝐵)
3 nfcv 2922 . . . . . 6 Ⅎ𝑦𝐵
4 nfcsb1v 3870 . . . . . 6 Ⅎ𝑥⦋𝑦 / 𝑥⦌𝐵
5 csbeq1a 3860 . . . . . 6 (𝑥 = 𝑦 → 𝐵 = ⦋𝑦 / 𝑥⦌𝐵)
63, 4, 5cbvmpt 5206 . . . . 5 (𝑥 ∈ 𝐴 ↦ 𝐵) = (𝑦 ∈ 𝐴 ↦ ⦋𝑦 / 𝑥⦌𝐵)
72, 6eqtri 2783 . . . 4 𝐹 = (𝑦 ∈ 𝐴 ↦ ⦋𝑦 / 𝑥⦌𝐵)
81, 7fvmpti 6993 . . 3 (𝐶 ∈ 𝐴 → (𝐹‘𝐶) = ( I ‘⦋𝐶 / 𝑥⦌𝐵))
91fveq2d 6890 . . . 4 (𝑦 = 𝐶 → ( I ‘⦋𝑦 / 𝑥⦌𝐵) = ( I ‘⦋𝐶 / 𝑥⦌𝐵))
10 fvmptex.2 . . . . 5 𝐺 = (𝑥 ∈ 𝐴 ↦ ( I ‘𝐵))
11 nfcv 2922 . . . . . 6 Ⅎ𝑦( I ‘𝐵)
12 nfcv 2922 . . . . . . 7 Ⅎ𝑥 I
1312, 4nffv 6896 . . . . . 6 Ⅎ𝑥( I ‘⦋𝑦 / 𝑥⦌𝐵)
145fveq2d 6890 . . . . . 6 (𝑥 = 𝑦 → ( I ‘𝐵) = ( I ‘⦋𝑦 / 𝑥⦌𝐵))
1511, 13, 14cbvmpt 5206 . . . . 5 (𝑥 ∈ 𝐴 ↦ ( I ‘𝐵)) = (𝑦 ∈ 𝐴 ↦ ( I ‘⦋𝑦 / 𝑥⦌𝐵))
1610, 15eqtri 2783 . . . 4 𝐺 = (𝑦 ∈ 𝐴 ↦ ( I ‘⦋𝑦 / 𝑥⦌𝐵))
17 fvex 6899 . . . 4 ( I ‘⦋𝐶 / 𝑥⦌𝐵) ∈ V
189, 16, 17fvmpt 6994 . . 3 (𝐶 ∈ 𝐴 → (𝐺‘𝐶) = ( I ‘⦋𝐶 / 𝑥⦌𝐵))
198, 18eqtr4d 2798 . 2 (𝐶 ∈ 𝐴 → (𝐹‘𝐶) = (𝐺‘𝐶))
202dmmptss 6242 . . . . 5 dom 𝐹 ⊆ 𝐴
2120sseli 3904 . . . 4 (𝐶 ∈ dom 𝐹 → 𝐶 ∈ 𝐴)
22 ndmfv 6918 . . . 4 (¬ 𝐶 ∈ dom 𝐹 → (𝐹‘𝐶) = ∅)
2321, 22nsyl5 160 . . 3 (¬ 𝐶 ∈ 𝐴 → (𝐹‘𝐶) = ∅)
24 fvex 6899 . . . . . 6 ( I ‘𝐵) ∈ V
2524, 10dmmpti 6684 . . . . 5 dom 𝐺 = 𝐴
2625eleq2i 2852 . . . 4 (𝐶 ∈ dom 𝐺 ↔ 𝐶 ∈ 𝐴)
27 ndmfv 6918 . . . 4 (¬ 𝐶 ∈ dom 𝐺 → (𝐺‘𝐶) = ∅)
2826, 27sylnbir 334 . . 3 (¬ 𝐶 ∈ 𝐴 → (𝐺‘𝐶) = ∅)
2923, 28eqtr4d 2798 . 2 (¬ 𝐶 ∈ 𝐴 → (𝐹‘𝐶) = (𝐺‘𝐶))
3019, 29pm2.61i 184 1 (𝐹‘𝐶) = (𝐺‘𝐶)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   = wceq 1569   ∈ wcel 2144  ⦋csb 3846  ∅c0 4278   ↦ cmpt 5185   I cid 5544  dom cdm 5650  ‘cfv 6539
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 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390
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-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-iota 6494  df-fun 6541  df-fn 6542  df-fv 6547
This theorem is used by:  fvmptnf  7017  sumeq2ii  15866  prodeq2ii  16086
  Copyright terms: Public domain W3C validator