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

Theorem difinfsnlem 7064
Description: Lemma for difinfsn 7065. The case where we need to swap  B and  (inr `  (/) ) in building the mapping  G. (Contributed by Jim Kingdon, 9-Aug-2023.)
Hypotheses
Ref Expression
difinfsnlem.dc  |-  ( ph  ->  A. x  e.  A  A. y  e.  A DECID  x  =  y )
difinfsnlem.b  |-  ( ph  ->  B  e.  A )
difinfsnlem.f  |-  ( ph  ->  F : ( om 1o ) -1-1-> A )
difinfsnlem.fb  |-  ( ph  ->  ( F `  (inr `  (/) ) )  =/=  B
)
difinfsnlem.g  |-  G  =  ( n  e.  om  |->  if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) ) )
Assertion
Ref Expression
difinfsnlem  |-  ( ph  ->  G : om -1-1-> ( A  \  { B } ) )
Distinct variable groups:    A, n, x, y    B, n, x, y   
n, F, x, y    ph, n
Allowed substitution hints:    ph( x, y)    G( x, y, n)

Proof of Theorem difinfsnlem
Dummy variable  m is distinct from all other variables.
StepHypRef Expression
1 difinfsnlem.f . . . . . . . 8  |-  ( ph  ->  F : ( om 1o ) -1-1-> A )
2 f1f 5393 . . . . . . . 8  |-  ( F : ( om 1o )
-1-1-> A  ->  F :
( om 1o ) --> A )
31, 2syl 14 . . . . . . 7  |-  ( ph  ->  F : ( om 1o ) --> A )
4 0lt1o 6408 . . . . . . . 8  |-  (/)  e.  1o
5 djurcl 7017 . . . . . . . 8  |-  ( (/)  e.  1o  ->  (inr `  (/) )  e.  ( om 1o ) )
64, 5mp1i 10 . . . . . . 7  |-  ( ph  ->  (inr `  (/) )  e.  ( om 1o ) )
73, 6ffvelrnd 5621 . . . . . 6  |-  ( ph  ->  ( F `  (inr `  (/) ) )  e.  A
)
8 difinfsnlem.fb . . . . . . 7  |-  ( ph  ->  ( F `  (inr `  (/) ) )  =/=  B
)
9 elsni 3594 . . . . . . . 8  |-  ( ( F `  (inr `  (/) ) )  e.  { B }  ->  ( F `
 (inr `  (/) ) )  =  B )
109necon3ai 2385 . . . . . . 7  |-  ( ( F `  (inr `  (/) ) )  =/=  B  ->  -.  ( F `  (inr `  (/) ) )  e. 
{ B } )
118, 10syl 14 . . . . . 6  |-  ( ph  ->  -.  ( F `  (inr `  (/) ) )  e. 
{ B } )
127, 11eldifd 3126 . . . . 5  |-  ( ph  ->  ( F `  (inr `  (/) ) )  e.  ( A  \  { B } ) )
1312ad2antrr 480 . . . 4  |-  ( ( ( ph  /\  n  e.  om )  /\  ( F `  (inl `  n
) )  =  B )  ->  ( F `  (inr `  (/) ) )  e.  ( A  \  { B } ) )
143adantr 274 . . . . . . 7  |-  ( (
ph  /\  n  e.  om )  ->  F :
( om 1o ) --> A )
15 djulcl 7016 . . . . . . . 8  |-  ( n  e.  om  ->  (inl `  n )  e.  ( om 1o ) )
1615adantl 275 . . . . . . 7  |-  ( (
ph  /\  n  e.  om )  ->  (inl `  n
)  e.  ( om 1o ) )
1714, 16ffvelrnd 5621 . . . . . 6  |-  ( (
ph  /\  n  e.  om )  ->  ( F `  (inl `  n )
)  e.  A )
1817adantr 274 . . . . 5  |-  ( ( ( ph  /\  n  e.  om )  /\  -.  ( F `  (inl `  n ) )  =  B )  ->  ( F `  (inl `  n
) )  e.  A
)
19 elsni 3594 . . . . . . 7  |-  ( ( F `  (inl `  n ) )  e. 
{ B }  ->  ( F `  (inl `  n ) )  =  B )
2019con3i 622 . . . . . 6  |-  ( -.  ( F `  (inl `  n ) )  =  B  ->  -.  ( F `  (inl `  n
) )  e.  { B } )
2120adantl 275 . . . . 5  |-  ( ( ( ph  /\  n  e.  om )  /\  -.  ( F `  (inl `  n ) )  =  B )  ->  -.  ( F `  (inl `  n ) )  e. 
{ B } )
2218, 21eldifd 3126 . . . 4  |-  ( ( ( ph  /\  n  e.  om )  /\  -.  ( F `  (inl `  n ) )  =  B )  ->  ( F `  (inl `  n
) )  e.  ( A  \  { B } ) )
23 difinfsnlem.dc . . . . . 6  |-  ( ph  ->  A. x  e.  A  A. y  e.  A DECID  x  =  y )
2423adantr 274 . . . . 5  |-  ( (
ph  /\  n  e.  om )  ->  A. x  e.  A  A. y  e.  A DECID  x  =  y
)
25 difinfsnlem.b . . . . . . 7  |-  ( ph  ->  B  e.  A )
2625adantr 274 . . . . . 6  |-  ( (
ph  /\  n  e.  om )  ->  B  e.  A )
27 eqeq12 2178 . . . . . . . 8  |-  ( ( x  =  ( F `
 (inl `  n
) )  /\  y  =  B )  ->  (
x  =  y  <->  ( F `  (inl `  n )
)  =  B ) )
2827dcbid 828 . . . . . . 7  |-  ( ( x  =  ( F `
 (inl `  n
) )  /\  y  =  B )  ->  (DECID  x  =  y  <-> DECID  ( F `  (inl `  n ) )  =  B ) )
2928rspc2gv 2842 . . . . . 6  |-  ( ( ( F `  (inl `  n ) )  e.  A  /\  B  e.  A )  ->  ( A. x  e.  A  A. y  e.  A DECID  x  =  y  -> DECID  ( F `  (inl `  n ) )  =  B ) )
3017, 26, 29syl2anc 409 . . . . 5  |-  ( (
ph  /\  n  e.  om )  ->  ( A. x  e.  A  A. y  e.  A DECID  x  =  y  -> DECID 
( F `  (inl `  n ) )  =  B ) )
3124, 30mpd 13 . . . 4  |-  ( (
ph  /\  n  e.  om )  -> DECID  ( F `  (inl `  n ) )  =  B )
3213, 22, 31ifcldadc 3549 . . 3  |-  ( (
ph  /\  n  e.  om )  ->  if (
( F `  (inl `  n ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  e.  ( A 
\  { B }
) )
3332ralrimiva 2539 . 2  |-  ( ph  ->  A. n  e.  om  if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  e.  ( A  \  { B } ) )
34 simplr 520 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  ( F `  (inl `  m ) )  =  B )  -> 
( F `  (inl `  n ) )  =  B )
35 simpr 109 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  ( F `  (inl `  m ) )  =  B )  -> 
( F `  (inl `  m ) )  =  B )
3634, 35eqtr4d 2201 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  ( F `  (inl `  m ) )  =  B )  -> 
( F `  (inl `  n ) )  =  ( F `  (inl `  m ) ) )
371ad3antrrr 484 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  ( F `  (inl `  m ) )  =  B )  ->  F : ( om 1o )
-1-1-> A )
3815ad2antrl 482 . . . . . . . . . 10  |-  ( (
ph  /\  ( n  e.  om  /\  m  e. 
om ) )  -> 
(inl `  n )  e.  ( om 1o ) )
3938ad2antrr 480 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  ( F `  (inl `  m ) )  =  B )  -> 
(inl `  n )  e.  ( om 1o ) )
40 simprr 522 . . . . . . . . . . 11  |-  ( (
ph  /\  ( n  e.  om  /\  m  e. 
om ) )  ->  m  e.  om )
4140ad2antrr 480 . . . . . . . . . 10  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  ( F `  (inl `  m ) )  =  B )  ->  m  e.  om )
42 djulcl 7016 . . . . . . . . . 10  |-  ( m  e.  om  ->  (inl `  m )  e.  ( om 1o ) )
4341, 42syl 14 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  ( F `  (inl `  m ) )  =  B )  -> 
(inl `  m )  e.  ( om 1o ) )
44 f1veqaeq 5737 . . . . . . . . 9  |-  ( ( F : ( om 1o ) -1-1-> A  /\  (
(inl `  n )  e.  ( om 1o )  /\  (inl `  m )  e.  ( om 1o ) ) )  ->  ( ( F `  (inl `  n
) )  =  ( F `  (inl `  m ) )  -> 
(inl `  n )  =  (inl `  m )
) )
4537, 39, 43, 44syl12anc 1226 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  ( F `  (inl `  m ) )  =  B )  -> 
( ( F `  (inl `  n ) )  =  ( F `  (inl `  m ) )  ->  (inl `  n
)  =  (inl `  m ) ) )
4636, 45mpd 13 . . . . . . 7  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  ( F `  (inl `  m ) )  =  B )  -> 
(inl `  n )  =  (inl `  m )
)
47 inl11 7030 . . . . . . . 8  |-  ( ( n  e.  om  /\  m  e.  om )  ->  ( (inl `  n
)  =  (inl `  m )  <->  n  =  m ) )
4847ad3antlr 485 . . . . . . 7  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  ( F `  (inl `  m ) )  =  B )  -> 
( (inl `  n
)  =  (inl `  m )  <->  n  =  m ) )
4946, 48mpbid 146 . . . . . 6  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  ( F `  (inl `  m ) )  =  B )  ->  n  =  m )
5049a1d 22 . . . . 5  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  ( F `  (inl `  m ) )  =  B )  -> 
( if ( ( F `  (inl `  n ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  ->  n  =  m ) )
5140ad2antrr 480 . . . . . . . . . 10  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  m  e.  om )
52 djune 7043 . . . . . . . . . . 11  |-  ( ( m  e.  om  /\  (/) 
e.  1o )  -> 
(inl `  m )  =/=  (inr `  (/) ) )
5352necomd 2422 . . . . . . . . . 10  |-  ( ( m  e.  om  /\  (/) 
e.  1o )  -> 
(inr `  (/) )  =/=  (inl `  m )
)
5451, 4, 53sylancl 410 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  (inr `  (/) )  =/=  (inl `  m )
)
5554neneqd 2357 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  -.  (inr `  (/) )  =  (inl `  m ) )
561ad3antrrr 484 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  F :
( om 1o ) -1-1-> A
)
574, 5mp1i 10 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  (inr `  (/) )  e.  ( om 1o ) )
5840, 42syl 14 . . . . . . . . . 10  |-  ( (
ph  /\  ( n  e.  om  /\  m  e. 
om ) )  -> 
(inl `  m )  e.  ( om 1o ) )
5958ad2antrr 480 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  (inl `  m
)  e.  ( om 1o ) )
60 f1veqaeq 5737 . . . . . . . . 9  |-  ( ( F : ( om 1o ) -1-1-> A  /\  (
(inr `  (/) )  e.  ( om 1o )  /\  (inl `  m )  e.  ( om 1o ) ) )  ->  ( ( F `  (inr `  (/) ) )  =  ( F `  (inl `  m ) )  ->  (inr `  (/) )  =  (inl `  m )
) )
6156, 57, 59, 60syl12anc 1226 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  ( ( F `  (inr `  (/) ) )  =  ( F `  (inl `  m ) )  ->  (inr `  (/) )  =  (inl `  m )
) )
6255, 61mtod 653 . . . . . . 7  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  -.  ( F `  (inr `  (/) ) )  =  ( F `  (inl `  m ) ) )
63 simplr 520 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  ( F `  (inl `  n )
)  =  B )
6463iftrued 3527 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  if (
( F `  (inl `  n ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  ( F `
 (inr `  (/) ) ) )
65 simpr 109 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  -.  ( F `  (inl `  m
) )  =  B )
6665iffalsed 3530 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  if (
( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  =  ( F `
 (inl `  m
) ) )
6764, 66eqeq12d 2180 . . . . . . 7  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  ( if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  <->  ( F `  (inr `  (/) ) )  =  ( F `  (inl `  m ) ) ) )
6862, 67mtbird 663 . . . . . 6  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  -.  if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) ) )
6968pm2.21d 609 . . . . 5  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  /\  -.  ( F `
 (inl `  m
) )  =  B )  ->  ( if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  ->  n  =  m ) )
7023adantr 274 . . . . . . . 8  |-  ( (
ph  /\  ( n  e.  om  /\  m  e. 
om ) )  ->  A. x  e.  A  A. y  e.  A DECID  x  =  y )
713adantr 274 . . . . . . . . . 10  |-  ( (
ph  /\  ( n  e.  om  /\  m  e. 
om ) )  ->  F : ( om 1o ) --> A )
7271, 58ffvelrnd 5621 . . . . . . . . 9  |-  ( (
ph  /\  ( n  e.  om  /\  m  e. 
om ) )  -> 
( F `  (inl `  m ) )  e.  A )
7325adantr 274 . . . . . . . . 9  |-  ( (
ph  /\  ( n  e.  om  /\  m  e. 
om ) )  ->  B  e.  A )
74 eqeq12 2178 . . . . . . . . . . 11  |-  ( ( x  =  ( F `
 (inl `  m
) )  /\  y  =  B )  ->  (
x  =  y  <->  ( F `  (inl `  m )
)  =  B ) )
7574dcbid 828 . . . . . . . . . 10  |-  ( ( x  =  ( F `
 (inl `  m
) )  /\  y  =  B )  ->  (DECID  x  =  y  <-> DECID  ( F `  (inl `  m ) )  =  B ) )
7675rspc2gv 2842 . . . . . . . . 9  |-  ( ( ( F `  (inl `  m ) )  e.  A  /\  B  e.  A )  ->  ( A. x  e.  A  A. y  e.  A DECID  x  =  y  -> DECID  ( F `  (inl `  m ) )  =  B ) )
7772, 73, 76syl2anc 409 . . . . . . . 8  |-  ( (
ph  /\  ( n  e.  om  /\  m  e. 
om ) )  -> 
( A. x  e.  A  A. y  e.  A DECID  x  =  y  -> DECID  ( F `  (inl `  m
) )  =  B ) )
7870, 77mpd 13 . . . . . . 7  |-  ( (
ph  /\  ( n  e.  om  /\  m  e. 
om ) )  -> DECID  ( F `  (inl `  m
) )  =  B )
79 exmiddc 826 . . . . . . 7  |-  (DECID  ( F `
 (inl `  m
) )  =  B  ->  ( ( F `
 (inl `  m
) )  =  B  \/  -.  ( F `
 (inl `  m
) )  =  B ) )
8078, 79syl 14 . . . . . 6  |-  ( (
ph  /\  ( n  e.  om  /\  m  e. 
om ) )  -> 
( ( F `  (inl `  m ) )  =  B  \/  -.  ( F `  (inl `  m ) )  =  B ) )
8180adantr 274 . . . . 5  |-  ( ( ( ph  /\  (
n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  ->  ( ( F `
 (inl `  m
) )  =  B  \/  -.  ( F `
 (inl `  m
) )  =  B ) )
8250, 69, 81mpjaodan 788 . . . 4  |-  ( ( ( ph  /\  (
n  e.  om  /\  m  e.  om )
)  /\  ( F `  (inl `  n )
)  =  B )  ->  ( if ( ( F `  (inl `  n ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  ->  n  =  m ) )
83 simprl 521 . . . . . . . . . . 11  |-  ( (
ph  /\  ( n  e.  om  /\  m  e. 
om ) )  ->  n  e.  om )
8483ad2antrr 480 . . . . . . . . . 10  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  n  e.  om )
85 djune 7043 . . . . . . . . . 10  |-  ( ( n  e.  om  /\  (/) 
e.  1o )  -> 
(inl `  n )  =/=  (inr `  (/) ) )
8684, 4, 85sylancl 410 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  (inl `  n
)  =/=  (inr `  (/) ) )
8786neneqd 2357 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  -.  (inl `  n )  =  (inr
`  (/) ) )
881ad3antrrr 484 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  F :
( om 1o ) -1-1-> A
)
8938ad2antrr 480 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  (inl `  n
)  e.  ( om 1o ) )
904, 5mp1i 10 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  (inr `  (/) )  e.  ( om 1o ) )
91 f1veqaeq 5737 . . . . . . . . 9  |-  ( ( F : ( om 1o ) -1-1-> A  /\  (
(inl `  n )  e.  ( om 1o )  /\  (inr `  (/) )  e.  ( om 1o ) ) )  ->  ( ( F `
 (inl `  n
) )  =  ( F `  (inr `  (/) ) )  ->  (inl `  n )  =  (inr
`  (/) ) ) )
9288, 89, 90, 91syl12anc 1226 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  ( ( F `  (inl `  n
) )  =  ( F `  (inr `  (/) ) )  ->  (inl `  n )  =  (inr
`  (/) ) ) )
9387, 92mtod 653 . . . . . . 7  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  -.  ( F `  (inl `  n
) )  =  ( F `  (inr `  (/) ) ) )
94 simplr 520 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  -.  ( F `  (inl `  n
) )  =  B )
9594iffalsed 3530 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  if (
( F `  (inl `  n ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  ( F `
 (inl `  n
) ) )
96 simpr 109 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  ( F `  (inl `  m )
)  =  B )
9796iftrued 3527 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  if (
( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  =  ( F `
 (inr `  (/) ) ) )
9895, 97eqeq12d 2180 . . . . . . 7  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  ( if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  <->  ( F `  (inl `  n ) )  =  ( F `  (inr `  (/) ) ) ) )
9993, 98mtbird 663 . . . . . 6  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  -.  if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) ) )
10099pm2.21d 609 . . . . 5  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  ( F `
 (inl `  m
) )  =  B )  ->  ( if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  ->  n  =  m ) )
101 simplr 520 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  -.  ( F `  (inl `  m
) )  =  B )  ->  -.  ( F `  (inl `  n
) )  =  B )
102101iffalsed 3530 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  -.  ( F `  (inl `  m
) )  =  B )  ->  if (
( F `  (inl `  n ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  ( F `
 (inl `  n
) ) )
103 simpr 109 . . . . . . . . 9  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  -.  ( F `  (inl `  m
) )  =  B )  ->  -.  ( F `  (inl `  m
) )  =  B )
104103iffalsed 3530 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  -.  ( F `  (inl `  m
) )  =  B )  ->  if (
( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  =  ( F `
 (inl `  m
) ) )
105102, 104eqeq12d 2180 . . . . . . 7  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  -.  ( F `  (inl `  m
) )  =  B )  ->  ( if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  <->  ( F `  (inl `  n ) )  =  ( F `  (inl `  m ) ) ) )
1061ad3antrrr 484 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  -.  ( F `  (inl `  m
) )  =  B )  ->  F :
( om 1o ) -1-1-> A
)
10738ad2antrr 480 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  -.  ( F `  (inl `  m
) )  =  B )  ->  (inl `  n
)  e.  ( om 1o ) )
10858ad2antrr 480 . . . . . . . 8  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  -.  ( F `  (inl `  m
) )  =  B )  ->  (inl `  m
)  e.  ( om 1o ) )
109106, 107, 108, 44syl12anc 1226 . . . . . . 7  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  -.  ( F `  (inl `  m
) )  =  B )  ->  ( ( F `  (inl `  n
) )  =  ( F `  (inl `  m ) )  -> 
(inl `  n )  =  (inl `  m )
) )
110105, 109sylbid 149 . . . . . 6  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  -.  ( F `  (inl `  m
) )  =  B )  ->  ( if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  ->  (inl `  n
)  =  (inl `  m ) ) )
11147ad3antlr 485 . . . . . 6  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  -.  ( F `  (inl `  m
) )  =  B )  ->  ( (inl `  n )  =  (inl
`  m )  <->  n  =  m ) )
112110, 111sylibd 148 . . . . 5  |-  ( ( ( ( ph  /\  ( n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  /\  -.  ( F `  (inl `  m
) )  =  B )  ->  ( if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  ->  n  =  m ) )
11380adantr 274 . . . . 5  |-  ( ( ( ph  /\  (
n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  ->  ( ( F `  (inl `  m
) )  =  B  \/  -.  ( F `
 (inl `  m
) )  =  B ) )
114100, 112, 113mpjaodan 788 . . . 4  |-  ( ( ( ph  /\  (
n  e.  om  /\  m  e.  om )
)  /\  -.  ( F `  (inl `  n
) )  =  B )  ->  ( if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  ->  n  =  m ) )
115 exmiddc 826 . . . . . 6  |-  (DECID  ( F `
 (inl `  n
) )  =  B  ->  ( ( F `
 (inl `  n
) )  =  B  \/  -.  ( F `
 (inl `  n
) )  =  B ) )
11631, 115syl 14 . . . . 5  |-  ( (
ph  /\  n  e.  om )  ->  ( ( F `  (inl `  n
) )  =  B  \/  -.  ( F `
 (inl `  n
) )  =  B ) )
117116adantrr 471 . . . 4  |-  ( (
ph  /\  ( n  e.  om  /\  m  e. 
om ) )  -> 
( ( F `  (inl `  n ) )  =  B  \/  -.  ( F `  (inl `  n ) )  =  B ) )
11882, 114, 117mpjaodan 788 . . 3  |-  ( (
ph  /\  ( n  e.  om  /\  m  e. 
om ) )  -> 
( if ( ( F `  (inl `  n ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  ->  n  =  m ) )
119118ralrimivva 2548 . 2  |-  ( ph  ->  A. n  e.  om  A. m  e.  om  ( if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  ->  n  =  m ) )
120 difinfsnlem.g . . 3  |-  G  =  ( n  e.  om  |->  if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) ) )
121 2fveq3 5491 . . . . 5  |-  ( n  =  m  ->  ( F `  (inl `  n
) )  =  ( F `  (inl `  m ) ) )
122121eqeq1d 2174 . . . 4  |-  ( n  =  m  ->  (
( F `  (inl `  n ) )  =  B  <->  ( F `  (inl `  m ) )  =  B ) )
123122, 121ifbieq2d 3544 . . 3  |-  ( n  =  m  ->  if ( ( F `  (inl `  n ) )  =  B ,  ( F `  (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) ) )
124120, 123f1mpt 5739 . 2  |-  ( G : om -1-1-> ( A 
\  { B }
)  <->  ( A. n  e.  om  if ( ( F `  (inl `  n ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  e.  ( A 
\  { B }
)  /\  A. n  e.  om  A. m  e. 
om  ( if ( ( F `  (inl `  n ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  n ) ) )  =  if ( ( F `  (inl `  m ) )  =  B ,  ( F `
 (inr `  (/) ) ) ,  ( F `  (inl `  m ) ) )  ->  n  =  m ) ) )
12533, 119, 124sylanbrc 414 1  |-  ( ph  ->  G : om -1-1-> ( A  \  { B } ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 103    <-> wb 104    \/ wo 698  DECID wdc 824    = wceq 1343    e. wcel 2136    =/= wne 2336   A.wral 2444    \ cdif 3113   (/)c0 3409   ifcif 3520   {csn 3576    |-> cmpt 4043   omcom 4567   -->wf 5184   -1-1->wf1 5185   ` cfv 5188   1oc1o 6377   ⊔ cdju 7002  inlcinl 7010  inrcinr 7011
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-sep 4100  ax-nul 4108  ax-pow 4153  ax-pr 4187  ax-un 4411
This theorem depends on definitions:  df-bi 116  df-dc 825  df-3an 970  df-tru 1346  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-ral 2449  df-rex 2450  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-if 3521  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-br 3983  df-opab 4044  df-mpt 4045  df-tr 4081  df-id 4271  df-iord 4344  df-on 4346  df-suc 4349  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fv 5196  df-1st 6108  df-1o 6384  df-dju 7003  df-inl 7012  df-inr 7013
This theorem is referenced by:  difinfsn  7065
  Copyright terms: Public domain W3C validator