Metamath Proof Explorer


Theorem mapfset

Description: If B is a set, the value of the set exponentiation ( B ^m A ) is the class of all functions from A to B . Generalisation of mapvalg (which does not require ax-rep ) to arbitrary domains. Note that the class { f | f : A --> B } can only contain set-functions, as opposed to arbitrary class-functions. When A is a proper class, there can be no set-functions on it, so the above class is empty (see also fsetdmprc0 ), hence a set. In this case, both sides of the equality in this theorem are the empty set. (Contributed by AV, 8-Aug-2024)

Ref Expression
Assertion mapfset BVf|f:AB=BA

Proof

Step Hyp Ref Expression
1 vex mV
2 feq1 f=mf:ABm:AB
3 1 2 elab mf|f:ABm:AB
4 simpr m:ABBVBV
5 dmfex mVm:ABAV
6 1 5 mpan m:ABAV
7 6 adantr m:ABBVAV
8 4 7 elmapd m:ABBVmBAm:AB
9 8 exbiri m:ABBVm:ABmBA
10 9 pm2.43b BVm:ABmBA
11 elmapi mBAm:AB
12 10 11 impbid1 BVm:ABmBA
13 3 12 bitrid BVmf|f:ABmBA
14 13 eqrdv BVf|f:AB=BA