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

Theorem fvmptex 7008
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 6898.) 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 3857 . . . 4 (𝑦 = 𝐶𝑦 / 𝑥𝐵 = 𝐶 / 𝑥𝐵)
2 fvmptex.1 . . . . 5 𝐹 = (𝑥𝐴𝐵)
3 nfcv 2927 . . . . . 6 𝑦𝐵
4 nfcsb1v 3878 . . . . . 6 𝑥𝑦 / 𝑥𝐵
5 csbeq1a 3868 . . . . . 6 (𝑥 = 𝑦𝐵 = 𝑦 / 𝑥𝐵)
63, 4, 5cbvmpt 5215 . . . . 5 (𝑥𝐴𝐵) = (𝑦𝐴𝑦 / 𝑥𝐵)
72, 6eqtri 2788 . . . 4 𝐹 = (𝑦𝐴𝑦 / 𝑥𝐵)
81, 7fvmpti 6992 . . 3 (𝐶𝐴 → (𝐹𝐶) = ( I ‘𝐶 / 𝑥𝐵))
91fveq2d 6889 . . . 4 (𝑦 = 𝐶 → ( I ‘𝑦 / 𝑥𝐵) = ( I ‘𝐶 / 𝑥𝐵))
10 fvmptex.2 . . . . 5 𝐺 = (𝑥𝐴 ↦ ( I ‘𝐵))
11 nfcv 2927 . . . . . 6 𝑦( I ‘𝐵)
12 nfcv 2927 . . . . . . 7 𝑥 I
1312, 4nffv 6895 . . . . . 6 𝑥( I ‘𝑦 / 𝑥𝐵)
145fveq2d 6889 . . . . . 6 (𝑥 = 𝑦 → ( I ‘𝐵) = ( I ‘𝑦 / 𝑥𝐵))
1511, 13, 14cbvmpt 5215 . . . . 5 (𝑥𝐴 ↦ ( I ‘𝐵)) = (𝑦𝐴 ↦ ( I ‘𝑦 / 𝑥𝐵))
1610, 15eqtri 2788 . . . 4 𝐺 = (𝑦𝐴 ↦ ( I ‘𝑦 / 𝑥𝐵))
17 fvex 6898 . . . 4 ( I ‘𝐶 / 𝑥𝐵) ∈ V
189, 16, 17fvmpt 6993 . . 3 (𝐶𝐴 → (𝐺𝐶) = ( I ‘𝐶 / 𝑥𝐵))
198, 18eqtr4d 2803 . 2 (𝐶𝐴 → (𝐹𝐶) = (𝐺𝐶))
202dmmptss 6244 . . . . 5 dom 𝐹𝐴
2120sseli 3934 . . . 4 (𝐶 ∈ dom 𝐹𝐶𝐴)
22 ndmfv 6917 . . . 4 𝐶 ∈ dom 𝐹 → (𝐹𝐶) = ∅)
2321, 22nsyl5 160 . . 3 𝐶𝐴 → (𝐹𝐶) = ∅)
24 fvex 6898 . . . . . 6 ( I ‘𝐵) ∈ V
2524, 10dmmpti 6683 . . . . 5 dom 𝐺 = 𝐴
2625eleq2i 2857 . . . 4 (𝐶 ∈ dom 𝐺𝐶𝐴)
27 ndmfv 6917 . . . 4 𝐶 ∈ dom 𝐺 → (𝐺𝐶) = ∅)
2826, 27sylnbir 334 . . 3 𝐶𝐴 → (𝐺𝐶) = ∅)
2923, 28eqtr4d 2803 . 2 𝐶𝐴 → (𝐹𝐶) = (𝐺𝐶))
3019, 29pm2.61i 184 1 (𝐹𝐶) = (𝐺𝐶)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   = wceq 1570  wcel 2146  csb 3854  c0 4286  cmpt 5194   I cid 5557  dom cdm 5663  cfv 6540
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2195  ax-12 2216  ax-ext 2737  ax-sep 5259  ax-nul 5271  ax-pr 5406
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2569  df-eu 2599  df-clab 2744  df-cleq 2757  df-clel 2840  df-nfc 2914  df-ne 2961  df-ral 3082  df-rex 3092  df-rab 3419  df-v 3459  df-sbc 3747  df-csb 3855  df-dif 3909  df-un 3911  df-in 3913  df-ss 3923  df-nul 4287  df-if 4490  df-sn 4592  df-pr 4594  df-op 4598  df-uni 4875  df-br 5112  df-opab 5176  df-mpt 5195  df-id 5558  df-xp 5669  df-rel 5670  df-cnv 5671  df-co 5672  df-dm 5673  df-rn 5674  df-res 5675  df-ima 5676  df-iota 6496  df-fun 6542  df-fn 6543  df-fv 6548
This theorem is used by:  fvmptnf  7016  sumeq2ii  15763  prodeq2ii  15983
  Copyright terms: Public domain W3C validator