ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  updjudhf Unicode version

Theorem updjudhf 7081
Description: The mapping of an element of the disjoint union to the value of the corresponding function is a function. (Contributed by AV, 26-Jun-2022.)
Hypotheses
Ref Expression
updjud.f  |-  ( ph  ->  F : A --> C )
updjud.g  |-  ( ph  ->  G : B --> C )
updjudhf.h  |-  H  =  ( x  e.  ( A B )  |->  if ( ( 1st `  x
)  =  (/) ,  ( F `  ( 2nd `  x ) ) ,  ( G `  ( 2nd `  x ) ) ) )
Assertion
Ref Expression
updjudhf  |-  ( ph  ->  H : ( A B ) --> C )
Distinct variable groups:    x, A    x, B    x, C    ph, x
Allowed substitution hints:    F( x)    G( x)    H( x)

Proof of Theorem updjudhf
StepHypRef Expression
1 eldju2ndl 7074 . . . . . 6  |-  ( ( x  e.  ( A B )  /\  ( 1st `  x )  =  (/) )  ->  ( 2nd `  x )  e.  A
)
21ex 115 . . . . 5  |-  ( x  e.  ( A B )  ->  ( ( 1st `  x )  =  (/)  ->  ( 2nd `  x
)  e.  A ) )
3 updjud.f . . . . . 6  |-  ( ph  ->  F : A --> C )
4 ffvelcdm 5652 . . . . . . 7  |-  ( ( F : A --> C  /\  ( 2nd `  x )  e.  A )  -> 
( F `  ( 2nd `  x ) )  e.  C )
54ex 115 . . . . . 6  |-  ( F : A --> C  -> 
( ( 2nd `  x
)  e.  A  -> 
( F `  ( 2nd `  x ) )  e.  C ) )
63, 5syl 14 . . . . 5  |-  ( ph  ->  ( ( 2nd `  x
)  e.  A  -> 
( F `  ( 2nd `  x ) )  e.  C ) )
72, 6sylan9r 410 . . . 4  |-  ( (
ph  /\  x  e.  ( A B ) )  ->  ( ( 1st `  x )  =  (/)  ->  ( F `  ( 2nd `  x ) )  e.  C ) )
87imp 124 . . 3  |-  ( ( ( ph  /\  x  e.  ( A B )
)  /\  ( 1st `  x )  =  (/) )  ->  ( F `  ( 2nd `  x ) )  e.  C )
9 df-ne 2348 . . . . 5  |-  ( ( 1st `  x )  =/=  (/)  <->  -.  ( 1st `  x )  =  (/) )
10 eldju2ndr 7075 . . . . . . 7  |-  ( ( x  e.  ( A B )  /\  ( 1st `  x )  =/=  (/) )  ->  ( 2nd `  x )  e.  B
)
1110ex 115 . . . . . 6  |-  ( x  e.  ( A B )  ->  ( ( 1st `  x )  =/=  (/)  ->  ( 2nd `  x )  e.  B ) )
12 updjud.g . . . . . . 7  |-  ( ph  ->  G : B --> C )
13 ffvelcdm 5652 . . . . . . . 8  |-  ( ( G : B --> C  /\  ( 2nd `  x )  e.  B )  -> 
( G `  ( 2nd `  x ) )  e.  C )
1413ex 115 . . . . . . 7  |-  ( G : B --> C  -> 
( ( 2nd `  x
)  e.  B  -> 
( G `  ( 2nd `  x ) )  e.  C ) )
1512, 14syl 14 . . . . . 6  |-  ( ph  ->  ( ( 2nd `  x
)  e.  B  -> 
( G `  ( 2nd `  x ) )  e.  C ) )
1611, 15sylan9r 410 . . . . 5  |-  ( (
ph  /\  x  e.  ( A B ) )  ->  ( ( 1st `  x )  =/=  (/)  ->  ( G `  ( 2nd `  x ) )  e.  C ) )
179, 16biimtrrid 153 . . . 4  |-  ( (
ph  /\  x  e.  ( A B ) )  ->  ( -.  ( 1st `  x )  =  (/)  ->  ( G `  ( 2nd `  x ) )  e.  C ) )
1817imp 124 . . 3  |-  ( ( ( ph  /\  x  e.  ( A B )
)  /\  -.  ( 1st `  x )  =  (/) )  ->  ( G `
 ( 2nd `  x
) )  e.  C
)
19 eldju1st 7073 . . . . . 6  |-  ( x  e.  ( A B )  ->  ( ( 1st `  x )  =  (/)  \/  ( 1st `  x
)  =  1o ) )
20 1n0 6436 . . . . . . . 8  |-  1o  =/=  (/)
21 neeq1 2360 . . . . . . . 8  |-  ( ( 1st `  x )  =  1o  ->  (
( 1st `  x
)  =/=  (/)  <->  1o  =/=  (/) ) )
2220, 21mpbiri 168 . . . . . . 7  |-  ( ( 1st `  x )  =  1o  ->  ( 1st `  x )  =/=  (/) )
2322orim2i 761 . . . . . 6  |-  ( ( ( 1st `  x
)  =  (/)  \/  ( 1st `  x )  =  1o )  ->  (
( 1st `  x
)  =  (/)  \/  ( 1st `  x )  =/=  (/) ) )
2419, 23syl 14 . . . . 5  |-  ( x  e.  ( A B )  ->  ( ( 1st `  x )  =  (/)  \/  ( 1st `  x
)  =/=  (/) ) )
2524adantl 277 . . . 4  |-  ( (
ph  /\  x  e.  ( A B ) )  ->  ( ( 1st `  x )  =  (/)  \/  ( 1st `  x
)  =/=  (/) ) )
26 dcne 2358 . . . 4  |-  (DECID  ( 1st `  x )  =  (/)  <->  (
( 1st `  x
)  =  (/)  \/  ( 1st `  x )  =/=  (/) ) )
2725, 26sylibr 134 . . 3  |-  ( (
ph  /\  x  e.  ( A B ) )  -> DECID 
( 1st `  x
)  =  (/) )
288, 18, 27ifcldadc 3565 . 2  |-  ( (
ph  /\  x  e.  ( A B ) )  ->  if ( ( 1st `  x )  =  (/) ,  ( F `
 ( 2nd `  x
) ) ,  ( G `  ( 2nd `  x ) ) )  e.  C )
29 updjudhf.h . 2  |-  H  =  ( x  e.  ( A B )  |->  if ( ( 1st `  x
)  =  (/) ,  ( F `  ( 2nd `  x ) ) ,  ( G `  ( 2nd `  x ) ) ) )
3028, 29fmptd 5673 1  |-  ( ph  ->  H : ( A B ) --> C )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 104    \/ wo 708  DECID wdc 834    = wceq 1353    e. wcel 2148    =/= wne 2347   (/)c0 3424   ifcif 3536    |-> cmpt 4066   -->wf 5214   ` cfv 5218   1stc1st 6142   2ndc2nd 6143   1oc1o 6413   ⊔ cdju 7039
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 614  ax-in2 615  ax-io 709  ax-5 1447  ax-7 1448  ax-gen 1449  ax-ie1 1493  ax-ie2 1494  ax-8 1504  ax-10 1505  ax-11 1506  ax-i12 1507  ax-bndl 1509  ax-4 1510  ax-17 1526  ax-i9 1530  ax-ial 1534  ax-i5r 1535  ax-13 2150  ax-14 2151  ax-ext 2159  ax-sep 4123  ax-nul 4131  ax-pow 4176  ax-pr 4211  ax-un 4435
This theorem depends on definitions:  df-bi 117  df-dc 835  df-3an 980  df-tru 1356  df-nf 1461  df-sb 1763  df-eu 2029  df-mo 2030  df-clab 2164  df-cleq 2170  df-clel 2173  df-nfc 2308  df-ne 2348  df-ral 2460  df-rex 2461  df-rab 2464  df-v 2741  df-sbc 2965  df-csb 3060  df-dif 3133  df-un 3135  df-in 3137  df-ss 3144  df-nul 3425  df-if 3537  df-pw 3579  df-sn 3600  df-pr 3601  df-op 3603  df-uni 3812  df-br 4006  df-opab 4067  df-mpt 4068  df-tr 4104  df-id 4295  df-iord 4368  df-on 4370  df-suc 4373  df-xp 4634  df-rel 4635  df-cnv 4636  df-co 4637  df-dm 4638  df-rn 4639  df-res 4640  df-ima 4641  df-iota 5180  df-fun 5220  df-fn 5221  df-f 5222  df-f1 5223  df-fo 5224  df-f1o 5225  df-fv 5226  df-1st 6144  df-2nd 6145  df-1o 6420  df-dju 7040  df-inl 7049  df-inr 7050
This theorem is referenced by:  updjudhcoinlf  7082  updjudhcoinrg  7083  updjud  7084
  Copyright terms: Public domain W3C validator