MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  fmptsng Structured version   Unicode version

Theorem fmptsng 5921
Description: Express a singleton function in maps-to notation. Version of fmptsn 5920 allowing the mapping value to depend on the mapping variable (usual case). (Contributed by AV, 27-Feb-2019.)
Hypothesis
Ref Expression
fmptsng.1  |-  ( x  =  A  ->  B  =  C )
Assertion
Ref Expression
fmptsng  |-  ( ( A  e.  V  /\  C  e.  W )  ->  { <. A ,  C >. }  =  ( x  e.  { A }  |->  B ) )
Distinct variable groups:    x, A    x, C
Allowed substitution hints:    B( x)    V( x)    W( x)

Proof of Theorem fmptsng
Dummy variables  p  y are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elsn 3912 . . . . 5  |-  ( x  e.  { A }  <->  x  =  A )
21bicomi 202 . . . 4  |-  ( x  =  A  <->  x  e.  { A } )
32anbi1i 695 . . 3  |-  ( ( x  =  A  /\  y  =  B )  <->  ( x  e.  { A }  /\  y  =  B ) )
43opabbii 4377 . 2  |-  { <. x ,  y >.  |  ( x  =  A  /\  y  =  B ) }  =  { <. x ,  y >.  |  ( x  e.  { A }  /\  y  =  B ) }
5 elsn 3912 . . . . 5  |-  ( p  e.  { <. A ,  C >. }  <->  p  =  <. A ,  C >. )
6 eqidd 2444 . . . . . . 7  |-  ( ( A  e.  V  /\  C  e.  W )  ->  A  =  A )
7 eqidd 2444 . . . . . . 7  |-  ( ( A  e.  V  /\  C  e.  W )  ->  C  =  C )
8 eqeq1 2449 . . . . . . . . . 10  |-  ( x  =  A  ->  (
x  =  A  <->  A  =  A ) )
98adantr 465 . . . . . . . . 9  |-  ( ( x  =  A  /\  y  =  C )  ->  ( x  =  A  <-> 
A  =  A ) )
10 eqeq1 2449 . . . . . . . . . 10  |-  ( y  =  C  ->  (
y  =  B  <->  C  =  B ) )
11 fmptsng.1 . . . . . . . . . . 11  |-  ( x  =  A  ->  B  =  C )
1211eqeq2d 2454 . . . . . . . . . 10  |-  ( x  =  A  ->  ( C  =  B  <->  C  =  C ) )
1310, 12sylan9bbr 700 . . . . . . . . 9  |-  ( ( x  =  A  /\  y  =  C )  ->  ( y  =  B  <-> 
C  =  C ) )
149, 13anbi12d 710 . . . . . . . 8  |-  ( ( x  =  A  /\  y  =  C )  ->  ( ( x  =  A  /\  y  =  B )  <->  ( A  =  A  /\  C  =  C ) ) )
1514opelopabga 4623 . . . . . . 7  |-  ( ( A  e.  V  /\  C  e.  W )  ->  ( <. A ,  C >.  e.  { <. x ,  y >.  |  ( x  =  A  /\  y  =  B ) } 
<->  ( A  =  A  /\  C  =  C ) ) )
166, 7, 15mpbir2and 913 . . . . . 6  |-  ( ( A  e.  V  /\  C  e.  W )  -> 
<. A ,  C >.  e. 
{ <. x ,  y
>.  |  ( x  =  A  /\  y  =  B ) } )
17 eleq1 2503 . . . . . 6  |-  ( p  =  <. A ,  C >.  ->  ( p  e. 
{ <. x ,  y
>.  |  ( x  =  A  /\  y  =  B ) }  <->  <. A ,  C >.  e.  { <. x ,  y >.  |  ( x  =  A  /\  y  =  B ) } ) )
1816, 17syl5ibrcom 222 . . . . 5  |-  ( ( A  e.  V  /\  C  e.  W )  ->  ( p  =  <. A ,  C >.  ->  p  e.  { <. x ,  y
>.  |  ( x  =  A  /\  y  =  B ) } ) )
195, 18syl5bi 217 . . . 4  |-  ( ( A  e.  V  /\  C  e.  W )  ->  ( p  e.  { <. A ,  C >. }  ->  p  e.  { <. x ,  y >.  |  ( x  =  A  /\  y  =  B ) } ) )
20 elopab 4618 . . . . 5  |-  ( p  e.  { <. x ,  y >.  |  ( x  =  A  /\  y  =  B ) } 
<->  E. x E. y
( p  =  <. x ,  y >.  /\  (
x  =  A  /\  y  =  B )
) )
21 opeq12 4082 . . . . . . . . . 10  |-  ( ( x  =  A  /\  y  =  B )  -> 
<. x ,  y >.  =  <. A ,  B >. )
2221eqeq2d 2454 . . . . . . . . 9  |-  ( ( x  =  A  /\  y  =  B )  ->  ( p  =  <. x ,  y >.  <->  p  =  <. A ,  B >. ) )
2311adantr 465 . . . . . . . . . . . 12  |-  ( ( x  =  A  /\  y  =  B )  ->  B  =  C )
2423opeq2d 4087 . . . . . . . . . . 11  |-  ( ( x  =  A  /\  y  =  B )  -> 
<. A ,  B >.  = 
<. A ,  C >. )
25 opex 4577 . . . . . . . . . . . 12  |-  <. A ,  C >.  e.  _V
2625snid 3926 . . . . . . . . . . 11  |-  <. A ,  C >.  e.  { <. A ,  C >. }
2724, 26syl6eqel 2531 . . . . . . . . . 10  |-  ( ( x  =  A  /\  y  =  B )  -> 
<. A ,  B >.  e. 
{ <. A ,  C >. } )
28 eleq1 2503 . . . . . . . . . 10  |-  ( p  =  <. A ,  B >.  ->  ( p  e. 
{ <. A ,  C >. }  <->  <. A ,  B >.  e.  { <. A ,  C >. } ) )
2927, 28syl5ibrcom 222 . . . . . . . . 9  |-  ( ( x  =  A  /\  y  =  B )  ->  ( p  =  <. A ,  B >.  ->  p  e.  { <. A ,  C >. } ) )
3022, 29sylbid 215 . . . . . . . 8  |-  ( ( x  =  A  /\  y  =  B )  ->  ( p  =  <. x ,  y >.  ->  p  e.  { <. A ,  C >. } ) )
3130impcom 430 . . . . . . 7  |-  ( ( p  =  <. x ,  y >.  /\  (
x  =  A  /\  y  =  B )
)  ->  p  e.  {
<. A ,  C >. } )
3231exlimivv 1689 . . . . . 6  |-  ( E. x E. y ( p  =  <. x ,  y >.  /\  (
x  =  A  /\  y  =  B )
)  ->  p  e.  {
<. A ,  C >. } )
3332a1i 11 . . . . 5  |-  ( ( A  e.  V  /\  C  e.  W )  ->  ( E. x E. y ( p  = 
<. x ,  y >.  /\  ( x  =  A  /\  y  =  B ) )  ->  p  e.  { <. A ,  C >. } ) )
3420, 33syl5bi 217 . . . 4  |-  ( ( A  e.  V  /\  C  e.  W )  ->  ( p  e.  { <. x ,  y >.  |  ( x  =  A  /\  y  =  B ) }  ->  p  e.  { <. A ,  C >. } ) )
3519, 34impbid 191 . . 3  |-  ( ( A  e.  V  /\  C  e.  W )  ->  ( p  e.  { <. A ,  C >. }  <-> 
p  e.  { <. x ,  y >.  |  ( x  =  A  /\  y  =  B ) } ) )
3635eqrdv 2441 . 2  |-  ( ( A  e.  V  /\  C  e.  W )  ->  { <. A ,  C >. }  =  { <. x ,  y >.  |  ( x  =  A  /\  y  =  B ) } )
37 df-mpt 4373 . . 3  |-  ( x  e.  { A }  |->  B )  =  { <. x ,  y >.  |  ( x  e. 
{ A }  /\  y  =  B ) }
3837a1i 11 . 2  |-  ( ( A  e.  V  /\  C  e.  W )  ->  ( x  e.  { A }  |->  B )  =  { <. x ,  y >.  |  ( x  e.  { A }  /\  y  =  B ) } )
394, 36, 383eqtr4a 2501 1  |-  ( ( A  e.  V  /\  C  e.  W )  ->  { <. A ,  C >. }  =  ( x  e.  { A }  |->  B ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    = wceq 1369   E.wex 1586    e. wcel 1756   {csn 3898   <.cop 3904   {copab 4370    e. cmpt 4371
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2423  ax-sep 4434  ax-nul 4442  ax-pr 4552
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2257  df-mo 2258  df-clab 2430  df-cleq 2436  df-clel 2439  df-nfc 2577  df-ne 2622  df-rab 2745  df-v 2995  df-dif 3352  df-un 3354  df-in 3356  df-ss 3363  df-nul 3659  df-if 3813  df-sn 3899  df-pr 3901  df-op 3905  df-opab 4372  df-mpt 4373
This theorem is referenced by:  mdet0pr  18425  m1detdiag  30931
  Copyright terms: Public domain W3C validator