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

Theorem odd2np1lem 11809
Description: Lemma for odd2np1 11810. (Contributed by Scott Fenton, 3-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Assertion
Ref Expression
odd2np1lem  |-  ( N  e.  NN0  ->  ( E. n  e.  ZZ  (
( 2  x.  n
)  +  1 )  =  N  \/  E. k  e.  ZZ  (
k  x.  2 )  =  N ) )
Distinct variable groups:    k, N    n, N

Proof of Theorem odd2np1lem
Dummy variables  j  m  x  y are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqeq2 2175 . . . 4  |-  ( j  =  0  ->  (
( ( 2  x.  n )  +  1 )  =  j  <->  ( (
2  x.  n )  +  1 )  =  0 ) )
21rexbidv 2467 . . 3  |-  ( j  =  0  ->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  j  <->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  0 ) )
3 eqeq2 2175 . . . 4  |-  ( j  =  0  ->  (
( k  x.  2 )  =  j  <->  ( k  x.  2 )  =  0 ) )
43rexbidv 2467 . . 3  |-  ( j  =  0  ->  ( E. k  e.  ZZ  ( k  x.  2 )  =  j  <->  E. k  e.  ZZ  ( k  x.  2 )  =  0 ) )
52, 4orbi12d 783 . 2  |-  ( j  =  0  ->  (
( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  j  \/  E. k  e.  ZZ  ( k  x.  2 )  =  j )  <->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  0  \/  E. k  e.  ZZ  ( k  x.  2 )  =  0 ) ) )
6 eqeq2 2175 . . . . 5  |-  ( j  =  m  ->  (
( ( 2  x.  n )  +  1 )  =  j  <->  ( (
2  x.  n )  +  1 )  =  m ) )
76rexbidv 2467 . . . 4  |-  ( j  =  m  ->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  j  <->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  m ) )
8 oveq2 5850 . . . . . . 7  |-  ( n  =  x  ->  (
2  x.  n )  =  ( 2  x.  x ) )
98oveq1d 5857 . . . . . 6  |-  ( n  =  x  ->  (
( 2  x.  n
)  +  1 )  =  ( ( 2  x.  x )  +  1 ) )
109eqeq1d 2174 . . . . 5  |-  ( n  =  x  ->  (
( ( 2  x.  n )  +  1 )  =  m  <->  ( (
2  x.  x )  +  1 )  =  m ) )
1110cbvrexv 2693 . . . 4  |-  ( E. n  e.  ZZ  (
( 2  x.  n
)  +  1 )  =  m  <->  E. x  e.  ZZ  ( ( 2  x.  x )  +  1 )  =  m )
127, 11bitrdi 195 . . 3  |-  ( j  =  m  ->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  j  <->  E. x  e.  ZZ  ( ( 2  x.  x )  +  1 )  =  m ) )
13 eqeq2 2175 . . . . 5  |-  ( j  =  m  ->  (
( k  x.  2 )  =  j  <->  ( k  x.  2 )  =  m ) )
1413rexbidv 2467 . . . 4  |-  ( j  =  m  ->  ( E. k  e.  ZZ  ( k  x.  2 )  =  j  <->  E. k  e.  ZZ  ( k  x.  2 )  =  m ) )
15 oveq1 5849 . . . . . 6  |-  ( k  =  y  ->  (
k  x.  2 )  =  ( y  x.  2 ) )
1615eqeq1d 2174 . . . . 5  |-  ( k  =  y  ->  (
( k  x.  2 )  =  m  <->  ( y  x.  2 )  =  m ) )
1716cbvrexv 2693 . . . 4  |-  ( E. k  e.  ZZ  (
k  x.  2 )  =  m  <->  E. y  e.  ZZ  ( y  x.  2 )  =  m )
1814, 17bitrdi 195 . . 3  |-  ( j  =  m  ->  ( E. k  e.  ZZ  ( k  x.  2 )  =  j  <->  E. y  e.  ZZ  ( y  x.  2 )  =  m ) )
1912, 18orbi12d 783 . 2  |-  ( j  =  m  ->  (
( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  j  \/  E. k  e.  ZZ  ( k  x.  2 )  =  j )  <->  ( E. x  e.  ZZ  ( ( 2  x.  x )  +  1 )  =  m  \/  E. y  e.  ZZ  ( y  x.  2 )  =  m ) ) )
20 eqeq2 2175 . . . 4  |-  ( j  =  ( m  + 
1 )  ->  (
( ( 2  x.  n )  +  1 )  =  j  <->  ( (
2  x.  n )  +  1 )  =  ( m  +  1 ) ) )
2120rexbidv 2467 . . 3  |-  ( j  =  ( m  + 
1 )  ->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  j  <->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( m  +  1 ) ) )
22 eqeq2 2175 . . . 4  |-  ( j  =  ( m  + 
1 )  ->  (
( k  x.  2 )  =  j  <->  ( k  x.  2 )  =  ( m  +  1 ) ) )
2322rexbidv 2467 . . 3  |-  ( j  =  ( m  + 
1 )  ->  ( E. k  e.  ZZ  ( k  x.  2 )  =  j  <->  E. k  e.  ZZ  ( k  x.  2 )  =  ( m  +  1 ) ) )
2421, 23orbi12d 783 . 2  |-  ( j  =  ( m  + 
1 )  ->  (
( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  j  \/  E. k  e.  ZZ  ( k  x.  2 )  =  j )  <->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( m  +  1 )  \/  E. k  e.  ZZ  ( k  x.  2 )  =  ( m  +  1 ) ) ) )
25 eqeq2 2175 . . . 4  |-  ( j  =  N  ->  (
( ( 2  x.  n )  +  1 )  =  j  <->  ( (
2  x.  n )  +  1 )  =  N ) )
2625rexbidv 2467 . . 3  |-  ( j  =  N  ->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  j  <->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  N ) )
27 eqeq2 2175 . . . 4  |-  ( j  =  N  ->  (
( k  x.  2 )  =  j  <->  ( k  x.  2 )  =  N ) )
2827rexbidv 2467 . . 3  |-  ( j  =  N  ->  ( E. k  e.  ZZ  ( k  x.  2 )  =  j  <->  E. k  e.  ZZ  ( k  x.  2 )  =  N ) )
2926, 28orbi12d 783 . 2  |-  ( j  =  N  ->  (
( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  j  \/  E. k  e.  ZZ  ( k  x.  2 )  =  j )  <->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  N  \/  E. k  e.  ZZ  ( k  x.  2 )  =  N ) ) )
30 0z 9202 . . . 4  |-  0  e.  ZZ
31 2cn 8928 . . . . 5  |-  2  e.  CC
3231mul02i 8288 . . . 4  |-  ( 0  x.  2 )  =  0
33 oveq1 5849 . . . . . 6  |-  ( k  =  0  ->  (
k  x.  2 )  =  ( 0  x.  2 ) )
3433eqeq1d 2174 . . . . 5  |-  ( k  =  0  ->  (
( k  x.  2 )  =  0  <->  (
0  x.  2 )  =  0 ) )
3534rspcev 2830 . . . 4  |-  ( ( 0  e.  ZZ  /\  ( 0  x.  2 )  =  0 )  ->  E. k  e.  ZZ  ( k  x.  2 )  =  0 )
3630, 32, 35mp2an 423 . . 3  |-  E. k  e.  ZZ  ( k  x.  2 )  =  0
3736olci 722 . 2  |-  ( E. n  e.  ZZ  (
( 2  x.  n
)  +  1 )  =  0  \/  E. k  e.  ZZ  (
k  x.  2 )  =  0 )
38 orcom 718 . . 3  |-  ( ( E. x  e.  ZZ  ( ( 2  x.  x )  +  1 )  =  m  \/ 
E. y  e.  ZZ  ( y  x.  2 )  =  m )  <-> 
( E. y  e.  ZZ  ( y  x.  2 )  =  m  \/  E. x  e.  ZZ  ( ( 2  x.  x )  +  1 )  =  m ) )
39 zcn 9196 . . . . . . . . 9  |-  ( y  e.  ZZ  ->  y  e.  CC )
40 mulcom 7882 . . . . . . . . 9  |-  ( ( y  e.  CC  /\  2  e.  CC )  ->  ( y  x.  2 )  =  ( 2  x.  y ) )
4139, 31, 40sylancl 410 . . . . . . . 8  |-  ( y  e.  ZZ  ->  (
y  x.  2 )  =  ( 2  x.  y ) )
4241adantl 275 . . . . . . 7  |-  ( ( m  e.  NN0  /\  y  e.  ZZ )  ->  ( y  x.  2 )  =  ( 2  x.  y ) )
4342eqeq1d 2174 . . . . . 6  |-  ( ( m  e.  NN0  /\  y  e.  ZZ )  ->  ( ( y  x.  2 )  =  m  <-> 
( 2  x.  y
)  =  m ) )
44 eqid 2165 . . . . . . . . 9  |-  ( ( 2  x.  y )  +  1 )  =  ( ( 2  x.  y )  +  1 )
45 oveq2 5850 . . . . . . . . . . . 12  |-  ( n  =  y  ->  (
2  x.  n )  =  ( 2  x.  y ) )
4645oveq1d 5857 . . . . . . . . . . 11  |-  ( n  =  y  ->  (
( 2  x.  n
)  +  1 )  =  ( ( 2  x.  y )  +  1 ) )
4746eqeq1d 2174 . . . . . . . . . 10  |-  ( n  =  y  ->  (
( ( 2  x.  n )  +  1 )  =  ( ( 2  x.  y )  +  1 )  <->  ( (
2  x.  y )  +  1 )  =  ( ( 2  x.  y )  +  1 ) ) )
4847rspcev 2830 . . . . . . . . 9  |-  ( ( y  e.  ZZ  /\  ( ( 2  x.  y )  +  1 )  =  ( ( 2  x.  y )  +  1 ) )  ->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( ( 2  x.  y )  +  1 ) )
4944, 48mpan2 422 . . . . . . . 8  |-  ( y  e.  ZZ  ->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( ( 2  x.  y
)  +  1 ) )
50 oveq1 5849 . . . . . . . . . 10  |-  ( ( 2  x.  y )  =  m  ->  (
( 2  x.  y
)  +  1 )  =  ( m  + 
1 ) )
5150eqeq2d 2177 . . . . . . . . 9  |-  ( ( 2  x.  y )  =  m  ->  (
( ( 2  x.  n )  +  1 )  =  ( ( 2  x.  y )  +  1 )  <->  ( (
2  x.  n )  +  1 )  =  ( m  +  1 ) ) )
5251rexbidv 2467 . . . . . . . 8  |-  ( ( 2  x.  y )  =  m  ->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( ( 2  x.  y )  +  1 )  <->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( m  +  1 ) ) )
5349, 52syl5ibcom 154 . . . . . . 7  |-  ( y  e.  ZZ  ->  (
( 2  x.  y
)  =  m  ->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( m  +  1 ) ) )
5453adantl 275 . . . . . 6  |-  ( ( m  e.  NN0  /\  y  e.  ZZ )  ->  ( ( 2  x.  y )  =  m  ->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( m  +  1 ) ) )
5543, 54sylbid 149 . . . . 5  |-  ( ( m  e.  NN0  /\  y  e.  ZZ )  ->  ( ( y  x.  2 )  =  m  ->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( m  +  1 ) ) )
5655rexlimdva 2583 . . . 4  |-  ( m  e.  NN0  ->  ( E. y  e.  ZZ  (
y  x.  2 )  =  m  ->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( m  +  1 ) ) )
57 peano2z 9227 . . . . . . . 8  |-  ( x  e.  ZZ  ->  (
x  +  1 )  e.  ZZ )
5857adantl 275 . . . . . . 7  |-  ( ( m  e.  NN0  /\  x  e.  ZZ )  ->  ( x  +  1 )  e.  ZZ )
59 zcn 9196 . . . . . . . . 9  |-  ( x  e.  ZZ  ->  x  e.  CC )
60 mulcom 7882 . . . . . . . . . . . . 13  |-  ( ( x  e.  CC  /\  2  e.  CC )  ->  ( x  x.  2 )  =  ( 2  x.  x ) )
6131, 60mpan2 422 . . . . . . . . . . . 12  |-  ( x  e.  CC  ->  (
x  x.  2 )  =  ( 2  x.  x ) )
6231mulid2i 7902 . . . . . . . . . . . . 13  |-  ( 1  x.  2 )  =  2
6362a1i 9 . . . . . . . . . . . 12  |-  ( x  e.  CC  ->  (
1  x.  2 )  =  2 )
6461, 63oveq12d 5860 . . . . . . . . . . 11  |-  ( x  e.  CC  ->  (
( x  x.  2 )  +  ( 1  x.  2 ) )  =  ( ( 2  x.  x )  +  2 ) )
65 df-2 8916 . . . . . . . . . . . 12  |-  2  =  ( 1  +  1 )
6665oveq2i 5853 . . . . . . . . . . 11  |-  ( ( 2  x.  x )  +  2 )  =  ( ( 2  x.  x )  +  ( 1  +  1 ) )
6764, 66eqtrdi 2215 . . . . . . . . . 10  |-  ( x  e.  CC  ->  (
( x  x.  2 )  +  ( 1  x.  2 ) )  =  ( ( 2  x.  x )  +  ( 1  +  1 ) ) )
68 ax-1cn 7846 . . . . . . . . . . 11  |-  1  e.  CC
69 adddir 7890 . . . . . . . . . . 11  |-  ( ( x  e.  CC  /\  1  e.  CC  /\  2  e.  CC )  ->  (
( x  +  1 )  x.  2 )  =  ( ( x  x.  2 )  +  ( 1  x.  2 ) ) )
7068, 31, 69mp3an23 1319 . . . . . . . . . 10  |-  ( x  e.  CC  ->  (
( x  +  1 )  x.  2 )  =  ( ( x  x.  2 )  +  ( 1  x.  2 ) ) )
71 mulcl 7880 . . . . . . . . . . . 12  |-  ( ( 2  e.  CC  /\  x  e.  CC )  ->  ( 2  x.  x
)  e.  CC )
7231, 71mpan 421 . . . . . . . . . . 11  |-  ( x  e.  CC  ->  (
2  x.  x )  e.  CC )
73 addass 7883 . . . . . . . . . . . 12  |-  ( ( ( 2  x.  x
)  e.  CC  /\  1  e.  CC  /\  1  e.  CC )  ->  (
( ( 2  x.  x )  +  1 )  +  1 )  =  ( ( 2  x.  x )  +  ( 1  +  1 ) ) )
7468, 68, 73mp3an23 1319 . . . . . . . . . . 11  |-  ( ( 2  x.  x )  e.  CC  ->  (
( ( 2  x.  x )  +  1 )  +  1 )  =  ( ( 2  x.  x )  +  ( 1  +  1 ) ) )
7572, 74syl 14 . . . . . . . . . 10  |-  ( x  e.  CC  ->  (
( ( 2  x.  x )  +  1 )  +  1 )  =  ( ( 2  x.  x )  +  ( 1  +  1 ) ) )
7667, 70, 753eqtr4d 2208 . . . . . . . . 9  |-  ( x  e.  CC  ->  (
( x  +  1 )  x.  2 )  =  ( ( ( 2  x.  x )  +  1 )  +  1 ) )
7759, 76syl 14 . . . . . . . 8  |-  ( x  e.  ZZ  ->  (
( x  +  1 )  x.  2 )  =  ( ( ( 2  x.  x )  +  1 )  +  1 ) )
7877adantl 275 . . . . . . 7  |-  ( ( m  e.  NN0  /\  x  e.  ZZ )  ->  ( ( x  + 
1 )  x.  2 )  =  ( ( ( 2  x.  x
)  +  1 )  +  1 ) )
79 oveq1 5849 . . . . . . . . 9  |-  ( k  =  ( x  + 
1 )  ->  (
k  x.  2 )  =  ( ( x  +  1 )  x.  2 ) )
8079eqeq1d 2174 . . . . . . . 8  |-  ( k  =  ( x  + 
1 )  ->  (
( k  x.  2 )  =  ( ( ( 2  x.  x
)  +  1 )  +  1 )  <->  ( (
x  +  1 )  x.  2 )  =  ( ( ( 2  x.  x )  +  1 )  +  1 ) ) )
8180rspcev 2830 . . . . . . 7  |-  ( ( ( x  +  1 )  e.  ZZ  /\  ( ( x  + 
1 )  x.  2 )  =  ( ( ( 2  x.  x
)  +  1 )  +  1 ) )  ->  E. k  e.  ZZ  ( k  x.  2 )  =  ( ( ( 2  x.  x
)  +  1 )  +  1 ) )
8258, 78, 81syl2anc 409 . . . . . 6  |-  ( ( m  e.  NN0  /\  x  e.  ZZ )  ->  E. k  e.  ZZ  ( k  x.  2 )  =  ( ( ( 2  x.  x
)  +  1 )  +  1 ) )
83 oveq1 5849 . . . . . . . 8  |-  ( ( ( 2  x.  x
)  +  1 )  =  m  ->  (
( ( 2  x.  x )  +  1 )  +  1 )  =  ( m  + 
1 ) )
8483eqeq2d 2177 . . . . . . 7  |-  ( ( ( 2  x.  x
)  +  1 )  =  m  ->  (
( k  x.  2 )  =  ( ( ( 2  x.  x
)  +  1 )  +  1 )  <->  ( k  x.  2 )  =  ( m  +  1 ) ) )
8584rexbidv 2467 . . . . . 6  |-  ( ( ( 2  x.  x
)  +  1 )  =  m  ->  ( E. k  e.  ZZ  ( k  x.  2 )  =  ( ( ( 2  x.  x
)  +  1 )  +  1 )  <->  E. k  e.  ZZ  ( k  x.  2 )  =  ( m  +  1 ) ) )
8682, 85syl5ibcom 154 . . . . 5  |-  ( ( m  e.  NN0  /\  x  e.  ZZ )  ->  ( ( ( 2  x.  x )  +  1 )  =  m  ->  E. k  e.  ZZ  ( k  x.  2 )  =  ( m  +  1 ) ) )
8786rexlimdva 2583 . . . 4  |-  ( m  e.  NN0  ->  ( E. x  e.  ZZ  (
( 2  x.  x
)  +  1 )  =  m  ->  E. k  e.  ZZ  ( k  x.  2 )  =  ( m  +  1 ) ) )
8856, 87orim12d 776 . . 3  |-  ( m  e.  NN0  ->  ( ( E. y  e.  ZZ  ( y  x.  2 )  =  m  \/ 
E. x  e.  ZZ  ( ( 2  x.  x )  +  1 )  =  m )  ->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( m  +  1 )  \/  E. k  e.  ZZ  ( k  x.  2 )  =  ( m  +  1 ) ) ) )
8938, 88syl5bi 151 . 2  |-  ( m  e.  NN0  ->  ( ( E. x  e.  ZZ  ( ( 2  x.  x )  +  1 )  =  m  \/ 
E. y  e.  ZZ  ( y  x.  2 )  =  m )  ->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( m  +  1 )  \/  E. k  e.  ZZ  ( k  x.  2 )  =  ( m  +  1 ) ) ) )
905, 19, 24, 29, 37, 89nn0ind 9305 1  |-  ( N  e.  NN0  ->  ( E. n  e.  ZZ  (
( 2  x.  n
)  +  1 )  =  N  \/  E. k  e.  ZZ  (
k  x.  2 )  =  N ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    \/ wo 698    = wceq 1343    e. wcel 2136   E.wrex 2445  (class class class)co 5842   CCcc 7751   0cc0 7753   1c1 7754    + caddc 7756    x. cmul 7758   2c2 8908   NN0cn0 9114   ZZcz 9191
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-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514  ax-cnex 7844  ax-resscn 7845  ax-1cn 7846  ax-1re 7847  ax-icn 7848  ax-addcl 7849  ax-addrcl 7850  ax-mulcl 7851  ax-addcom 7853  ax-mulcom 7854  ax-addass 7855  ax-mulass 7856  ax-distr 7857  ax-i2m1 7858  ax-0lt1 7859  ax-1rid 7860  ax-0id 7861  ax-rnegex 7862  ax-cnre 7864  ax-pre-ltirr 7865  ax-pre-ltwlin 7866  ax-pre-lttrn 7867  ax-pre-ltadd 7869
This theorem depends on definitions:  df-bi 116  df-3or 969  df-3an 970  df-tru 1346  df-fal 1349  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-nel 2432  df-ral 2449  df-rex 2450  df-reu 2451  df-rab 2453  df-v 2728  df-sbc 2952  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-int 3825  df-br 3983  df-opab 4044  df-id 4271  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-iota 5153  df-fun 5190  df-fv 5196  df-riota 5798  df-ov 5845  df-oprab 5846  df-mpo 5847  df-pnf 7935  df-mnf 7936  df-xr 7937  df-ltxr 7938  df-le 7939  df-sub 8071  df-neg 8072  df-inn 8858  df-2 8916  df-n0 9115  df-z 9192
This theorem is referenced by:  odd2np1  11810
  Copyright terms: Public domain W3C validator