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

Theorem odd2np1lem 11831
Description: Lemma for odd2np1 11832. (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 2180 . . . 4  |-  ( j  =  0  ->  (
( ( 2  x.  n )  +  1 )  =  j  <->  ( (
2  x.  n )  +  1 )  =  0 ) )
21rexbidv 2471 . . 3  |-  ( j  =  0  ->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  j  <->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  0 ) )
3 eqeq2 2180 . . . 4  |-  ( j  =  0  ->  (
( k  x.  2 )  =  j  <->  ( k  x.  2 )  =  0 ) )
43rexbidv 2471 . . 3  |-  ( j  =  0  ->  ( E. k  e.  ZZ  ( k  x.  2 )  =  j  <->  E. k  e.  ZZ  ( k  x.  2 )  =  0 ) )
52, 4orbi12d 788 . 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 2180 . . . . 5  |-  ( j  =  m  ->  (
( ( 2  x.  n )  +  1 )  =  j  <->  ( (
2  x.  n )  +  1 )  =  m ) )
76rexbidv 2471 . . . 4  |-  ( j  =  m  ->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  j  <->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  m ) )
8 oveq2 5861 . . . . . . 7  |-  ( n  =  x  ->  (
2  x.  n )  =  ( 2  x.  x ) )
98oveq1d 5868 . . . . . 6  |-  ( n  =  x  ->  (
( 2  x.  n
)  +  1 )  =  ( ( 2  x.  x )  +  1 ) )
109eqeq1d 2179 . . . . 5  |-  ( n  =  x  ->  (
( ( 2  x.  n )  +  1 )  =  m  <->  ( (
2  x.  x )  +  1 )  =  m ) )
1110cbvrexv 2697 . . . 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 2180 . . . . 5  |-  ( j  =  m  ->  (
( k  x.  2 )  =  j  <->  ( k  x.  2 )  =  m ) )
1413rexbidv 2471 . . . 4  |-  ( j  =  m  ->  ( E. k  e.  ZZ  ( k  x.  2 )  =  j  <->  E. k  e.  ZZ  ( k  x.  2 )  =  m ) )
15 oveq1 5860 . . . . . 6  |-  ( k  =  y  ->  (
k  x.  2 )  =  ( y  x.  2 ) )
1615eqeq1d 2179 . . . . 5  |-  ( k  =  y  ->  (
( k  x.  2 )  =  m  <->  ( y  x.  2 )  =  m ) )
1716cbvrexv 2697 . . . 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 788 . 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 2180 . . . 4  |-  ( j  =  ( m  + 
1 )  ->  (
( ( 2  x.  n )  +  1 )  =  j  <->  ( (
2  x.  n )  +  1 )  =  ( m  +  1 ) ) )
2120rexbidv 2471 . . 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 2180 . . . 4  |-  ( j  =  ( m  + 
1 )  ->  (
( k  x.  2 )  =  j  <->  ( k  x.  2 )  =  ( m  +  1 ) ) )
2322rexbidv 2471 . . 3  |-  ( j  =  ( m  + 
1 )  ->  ( E. k  e.  ZZ  ( k  x.  2 )  =  j  <->  E. k  e.  ZZ  ( k  x.  2 )  =  ( m  +  1 ) ) )
2421, 23orbi12d 788 . 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 2180 . . . 4  |-  ( j  =  N  ->  (
( ( 2  x.  n )  +  1 )  =  j  <->  ( (
2  x.  n )  +  1 )  =  N ) )
2625rexbidv 2471 . . 3  |-  ( j  =  N  ->  ( E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  j  <->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  N ) )
27 eqeq2 2180 . . . 4  |-  ( j  =  N  ->  (
( k  x.  2 )  =  j  <->  ( k  x.  2 )  =  N ) )
2827rexbidv 2471 . . 3  |-  ( j  =  N  ->  ( E. k  e.  ZZ  ( k  x.  2 )  =  j  <->  E. k  e.  ZZ  ( k  x.  2 )  =  N ) )
2926, 28orbi12d 788 . 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 9223 . . . 4  |-  0  e.  ZZ
31 2cn 8949 . . . . 5  |-  2  e.  CC
3231mul02i 8309 . . . 4  |-  ( 0  x.  2 )  =  0
33 oveq1 5860 . . . . . 6  |-  ( k  =  0  ->  (
k  x.  2 )  =  ( 0  x.  2 ) )
3433eqeq1d 2179 . . . . 5  |-  ( k  =  0  ->  (
( k  x.  2 )  =  0  <->  (
0  x.  2 )  =  0 ) )
3534rspcev 2834 . . . 4  |-  ( ( 0  e.  ZZ  /\  ( 0  x.  2 )  =  0 )  ->  E. k  e.  ZZ  ( k  x.  2 )  =  0 )
3630, 32, 35mp2an 424 . . 3  |-  E. k  e.  ZZ  ( k  x.  2 )  =  0
3736olci 727 . 2  |-  ( E. n  e.  ZZ  (
( 2  x.  n
)  +  1 )  =  0  \/  E. k  e.  ZZ  (
k  x.  2 )  =  0 )
38 orcom 723 . . 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 9217 . . . . . . . . 9  |-  ( y  e.  ZZ  ->  y  e.  CC )
40 mulcom 7903 . . . . . . . . 9  |-  ( ( y  e.  CC  /\  2  e.  CC )  ->  ( y  x.  2 )  =  ( 2  x.  y ) )
4139, 31, 40sylancl 411 . . . . . . . 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 2179 . . . . . 6  |-  ( ( m  e.  NN0  /\  y  e.  ZZ )  ->  ( ( y  x.  2 )  =  m  <-> 
( 2  x.  y
)  =  m ) )
44 eqid 2170 . . . . . . . . 9  |-  ( ( 2  x.  y )  +  1 )  =  ( ( 2  x.  y )  +  1 )
45 oveq2 5861 . . . . . . . . . . . 12  |-  ( n  =  y  ->  (
2  x.  n )  =  ( 2  x.  y ) )
4645oveq1d 5868 . . . . . . . . . . 11  |-  ( n  =  y  ->  (
( 2  x.  n
)  +  1 )  =  ( ( 2  x.  y )  +  1 ) )
4746eqeq1d 2179 . . . . . . . . . 10  |-  ( n  =  y  ->  (
( ( 2  x.  n )  +  1 )  =  ( ( 2  x.  y )  +  1 )  <->  ( (
2  x.  y )  +  1 )  =  ( ( 2  x.  y )  +  1 ) ) )
4847rspcev 2834 . . . . . . . . 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 423 . . . . . . . 8  |-  ( y  e.  ZZ  ->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( ( 2  x.  y
)  +  1 ) )
50 oveq1 5860 . . . . . . . . . 10  |-  ( ( 2  x.  y )  =  m  ->  (
( 2  x.  y
)  +  1 )  =  ( m  + 
1 ) )
5150eqeq2d 2182 . . . . . . . . 9  |-  ( ( 2  x.  y )  =  m  ->  (
( ( 2  x.  n )  +  1 )  =  ( ( 2  x.  y )  +  1 )  <->  ( (
2  x.  n )  +  1 )  =  ( m  +  1 ) ) )
5251rexbidv 2471 . . . . . . . 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 2587 . . . 4  |-  ( m  e.  NN0  ->  ( E. y  e.  ZZ  (
y  x.  2 )  =  m  ->  E. n  e.  ZZ  ( ( 2  x.  n )  +  1 )  =  ( m  +  1 ) ) )
57 peano2z 9248 . . . . . . . 8  |-  ( x  e.  ZZ  ->  (
x  +  1 )  e.  ZZ )
5857adantl 275 . . . . . . 7  |-  ( ( m  e.  NN0  /\  x  e.  ZZ )  ->  ( x  +  1 )  e.  ZZ )
59 zcn 9217 . . . . . . . . 9  |-  ( x  e.  ZZ  ->  x  e.  CC )
60 mulcom 7903 . . . . . . . . . . . . 13  |-  ( ( x  e.  CC  /\  2  e.  CC )  ->  ( x  x.  2 )  =  ( 2  x.  x ) )
6131, 60mpan2 423 . . . . . . . . . . . 12  |-  ( x  e.  CC  ->  (
x  x.  2 )  =  ( 2  x.  x ) )
6231mulid2i 7923 . . . . . . . . . . . . 13  |-  ( 1  x.  2 )  =  2
6362a1i 9 . . . . . . . . . . . 12  |-  ( x  e.  CC  ->  (
1  x.  2 )  =  2 )
6461, 63oveq12d 5871 . . . . . . . . . . 11  |-  ( x  e.  CC  ->  (
( x  x.  2 )  +  ( 1  x.  2 ) )  =  ( ( 2  x.  x )  +  2 ) )
65 df-2 8937 . . . . . . . . . . . 12  |-  2  =  ( 1  +  1 )
6665oveq2i 5864 . . . . . . . . . . 11  |-  ( ( 2  x.  x )  +  2 )  =  ( ( 2  x.  x )  +  ( 1  +  1 ) )
6764, 66eqtrdi 2219 . . . . . . . . . 10  |-  ( x  e.  CC  ->  (
( x  x.  2 )  +  ( 1  x.  2 ) )  =  ( ( 2  x.  x )  +  ( 1  +  1 ) ) )
68 ax-1cn 7867 . . . . . . . . . . 11  |-  1  e.  CC
69 adddir 7911 . . . . . . . . . . 11  |-  ( ( x  e.  CC  /\  1  e.  CC  /\  2  e.  CC )  ->  (
( x  +  1 )  x.  2 )  =  ( ( x  x.  2 )  +  ( 1  x.  2 ) ) )
7068, 31, 69mp3an23 1324 . . . . . . . . . 10  |-  ( x  e.  CC  ->  (
( x  +  1 )  x.  2 )  =  ( ( x  x.  2 )  +  ( 1  x.  2 ) ) )
71 mulcl 7901 . . . . . . . . . . . 12  |-  ( ( 2  e.  CC  /\  x  e.  CC )  ->  ( 2  x.  x
)  e.  CC )
7231, 71mpan 422 . . . . . . . . . . 11  |-  ( x  e.  CC  ->  (
2  x.  x )  e.  CC )
73 addass 7904 . . . . . . . . . . . 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 1324 . . . . . . . . . . 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 2213 . . . . . . . . 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 5860 . . . . . . . . 9  |-  ( k  =  ( x  + 
1 )  ->  (
k  x.  2 )  =  ( ( x  +  1 )  x.  2 ) )
8079eqeq1d 2179 . . . . . . . 8  |-  ( k  =  ( x  + 
1 )  ->  (
( k  x.  2 )  =  ( ( ( 2  x.  x
)  +  1 )  +  1 )  <->  ( (
x  +  1 )  x.  2 )  =  ( ( ( 2  x.  x )  +  1 )  +  1 ) ) )
8180rspcev 2834 . . . . . . 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 5860 . . . . . . . 8  |-  ( ( ( 2  x.  x
)  +  1 )  =  m  ->  (
( ( 2  x.  x )  +  1 )  +  1 )  =  ( m  + 
1 ) )
8483eqeq2d 2182 . . . . . . 7  |-  ( ( ( 2  x.  x
)  +  1 )  =  m  ->  (
( k  x.  2 )  =  ( ( ( 2  x.  x
)  +  1 )  +  1 )  <->  ( k  x.  2 )  =  ( m  +  1 ) ) )
8584rexbidv 2471 . . . . . 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 2587 . . . 4  |-  ( m  e.  NN0  ->  ( E. x  e.  ZZ  (
( 2  x.  x
)  +  1 )  =  m  ->  E. k  e.  ZZ  ( k  x.  2 )  =  ( m  +  1 ) ) )
8856, 87orim12d 781 . . 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 9326 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 703    = wceq 1348    e. wcel 2141   E.wrex 2449  (class class class)co 5853   CCcc 7772   0cc0 7774   1c1 7775    + caddc 7777    x. cmul 7779   2c2 8929   NN0cn0 9135   ZZcz 9212
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 609  ax-in2 610  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-sep 4107  ax-pow 4160  ax-pr 4194  ax-un 4418  ax-setind 4521  ax-cnex 7865  ax-resscn 7866  ax-1cn 7867  ax-1re 7868  ax-icn 7869  ax-addcl 7870  ax-addrcl 7871  ax-mulcl 7872  ax-addcom 7874  ax-mulcom 7875  ax-addass 7876  ax-mulass 7877  ax-distr 7878  ax-i2m1 7879  ax-0lt1 7880  ax-1rid 7881  ax-0id 7882  ax-rnegex 7883  ax-cnre 7885  ax-pre-ltirr 7886  ax-pre-ltwlin 7887  ax-pre-lttrn 7888  ax-pre-ltadd 7890
This theorem depends on definitions:  df-bi 116  df-3or 974  df-3an 975  df-tru 1351  df-fal 1354  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ne 2341  df-nel 2436  df-ral 2453  df-rex 2454  df-reu 2455  df-rab 2457  df-v 2732  df-sbc 2956  df-dif 3123  df-un 3125  df-in 3127  df-ss 3134  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-int 3832  df-br 3990  df-opab 4051  df-id 4278  df-xp 4617  df-rel 4618  df-cnv 4619  df-co 4620  df-dm 4621  df-iota 5160  df-fun 5200  df-fv 5206  df-riota 5809  df-ov 5856  df-oprab 5857  df-mpo 5858  df-pnf 7956  df-mnf 7957  df-xr 7958  df-ltxr 7959  df-le 7960  df-sub 8092  df-neg 8093  df-inn 8879  df-2 8937  df-n0 9136  df-z 9213
This theorem is referenced by:  odd2np1  11832
  Copyright terms: Public domain W3C validator