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

Theorem bezoutlemstep 11674
Description: Lemma for Bézout's identity. This is the induction step for the proof by induction. (Contributed by Jim Kingdon, 3-Jan-2022.)
Hypotheses
Ref Expression
bezoutlemstep.is-bezout  |-  ( ph  <->  E. s  e.  ZZ  E. t  e.  ZZ  r  =  ( ( A  x.  s )  +  ( B  x.  t
) ) )
bezoutlemstep.a  |-  ( th 
->  A  e.  NN0 )
bezoutlemstep.b  |-  ( th 
->  B  e.  NN0 )
bezoutlemstep.w  |-  ( th 
->  W  e.  NN )
bezoutlemstep.y-is-bezout  |-  ( th 
->  [ y  /  r ] ph )
bezoutlemstep.y-nn0  |-  ( th 
->  y  e.  NN0 )
bezoutlemstep.w-is-bezout  |-  ( th 
->  [. W  /  r ]. ph )
bezoutlemstep.sub-gcd  |-  ( ps  <->  A. z  e.  NN0  (
z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) ) )
bezoutlemstep.hyp  |-  ( ( th  /\  [. (
y  mod  W )  /  r ]. ph )  ->  E. r  e.  NN0  ( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  /\  ph )
)
bezoutlemstep.thx  |-  F/ x th
bezoutlemstep.thr  |-  F/ r th
Assertion
Ref Expression
bezoutlemstep  |-  ( th 
->  E. r  e.  NN0  ( [. W  /  x ]. ps  /\  ph )
)
Distinct variable groups:    A, r, s, t    B, r, s, t    W, r, x, y, z    W, s, t, y    ph, z    ph, s, t    ps, z    th, z    th, s, t
Allowed substitution hints:    ph( x, y, r)    ps( x, y, t, s, r)    th( x, y, r)    A( x, y, z)    B( x, y, z)

Proof of Theorem bezoutlemstep
Dummy variable  q is distinct from all other variables.
StepHypRef Expression
1 bezoutlemstep.is-bezout . . . 4  |-  ( ph  <->  E. s  e.  ZZ  E. t  e.  ZZ  r  =  ( ( A  x.  s )  +  ( B  x.  t
) ) )
2 bezoutlemstep.a . . . 4  |-  ( th 
->  A  e.  NN0 )
3 bezoutlemstep.b . . . 4  |-  ( th 
->  B  e.  NN0 )
4 bezoutlemstep.w . . . 4  |-  ( th 
->  W  e.  NN )
5 bezoutlemstep.y-is-bezout . . . 4  |-  ( th 
->  [ y  /  r ] ph )
6 bezoutlemstep.y-nn0 . . . 4  |-  ( th 
->  y  e.  NN0 )
7 bezoutlemstep.w-is-bezout . . . 4  |-  ( th 
->  [. W  /  r ]. ph )
81, 2, 3, 4, 5, 6, 7bezoutlemnewy 11673 . . 3  |-  ( th 
->  [. ( y  mod 
W )  /  r ]. ph )
9 bezoutlemstep.hyp . . 3  |-  ( ( th  /\  [. (
y  mod  W )  /  r ]. ph )  ->  E. r  e.  NN0  ( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  /\  ph )
)
108, 9mpdan 417 . 2  |-  ( th 
->  E. r  e.  NN0  ( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  /\  ph )
)
11 bezoutlemstep.thr . . 3  |-  F/ r th
12 eqidd 2138 . . . . . 6  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  ( y  mod 
W )  =  ( y  mod  W ) )
136nn0zd 9164 . . . . . . . 8  |-  ( th 
->  y  e.  ZZ )
1413ad2antrr 479 . . . . . . 7  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  y  e.  ZZ )
154ad2antrr 479 . . . . . . 7  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  W  e.  NN )
1613, 4zmodcld 10111 . . . . . . . 8  |-  ( th 
->  ( y  mod  W
)  e.  NN0 )
1716ad2antrr 479 . . . . . . 7  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  ( y  mod 
W )  e.  NN0 )
18 zq 9411 . . . . . . . . 9  |-  ( y  e.  ZZ  ->  y  e.  QQ )
1914, 18syl 14 . . . . . . . 8  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  y  e.  QQ )
2015nnzd 9165 . . . . . . . . 9  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  W  e.  ZZ )
21 zq 9411 . . . . . . . . 9  |-  ( W  e.  ZZ  ->  W  e.  QQ )
2220, 21syl 14 . . . . . . . 8  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  W  e.  QQ )
2315nngt0d 8757 . . . . . . . 8  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  0  <  W
)
24 modqlt 10099 . . . . . . . 8  |-  ( ( y  e.  QQ  /\  W  e.  QQ  /\  0  <  W )  ->  (
y  mod  W )  <  W )
2519, 22, 23, 24syl3anc 1216 . . . . . . 7  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  ( y  mod 
W )  <  W
)
26 modremain 11615 . . . . . . 7  |-  ( ( y  e.  ZZ  /\  W  e.  NN  /\  (
( y  mod  W
)  e.  NN0  /\  ( y  mod  W
)  <  W )
)  ->  ( (
y  mod  W )  =  ( y  mod 
W )  <->  E. q  e.  ZZ  ( ( q  x.  W )  +  ( y  mod  W
) )  =  y ) )
2714, 15, 17, 25, 26syl112anc 1220 . . . . . 6  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  ( ( y  mod  W )  =  ( y  mod  W
)  <->  E. q  e.  ZZ  ( ( q  x.  W )  +  ( y  mod  W ) )  =  y ) )
2812, 27mpbid 146 . . . . 5  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  E. q  e.  ZZ  ( ( q  x.  W )  +  ( y  mod  W ) )  =  y )
29 simplrl 524 . . . . . . . . . . . . . 14  |-  ( ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  /\  ph )
)  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  ->  [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps )
30 bezoutlemstep.thx . . . . . . . . . . . . . . . . 17  |-  F/ x th
31 bezoutlemstep.sub-gcd . . . . . . . . . . . . . . . . . . 19  |-  ( ps  <->  A. z  e.  NN0  (
z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) ) )
3231sbcbii 2963 . . . . . . . . . . . . . . . . . 18  |-  ( [. W  /  y ]. ps  <->  [. W  /  y ]. A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) ) )
33 breq2 3928 . . . . . . . . . . . . . . . . . . . . . . 23  |-  ( y  =  W  ->  (
z  ||  y  <->  z  ||  W ) )
3433anbi2d 459 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( y  =  W  ->  (
( z  ||  x  /\  z  ||  y )  <-> 
( z  ||  x  /\  z  ||  W ) ) )
3534imbi2d 229 . . . . . . . . . . . . . . . . . . . . 21  |-  ( y  =  W  ->  (
( z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) )  <->  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  W
) ) ) )
3635ralbidv 2435 . . . . . . . . . . . . . . . . . . . 20  |-  ( y  =  W  ->  ( A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) )  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  W ) ) ) )
3736sbcieg 2936 . . . . . . . . . . . . . . . . . . 19  |-  ( W  e.  NN  ->  ( [. W  /  y ]. A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) )  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  W ) ) ) )
384, 37syl 14 . . . . . . . . . . . . . . . . . 18  |-  ( th 
->  ( [. W  / 
y ]. A. z  e. 
NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  y
) )  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  W
) ) ) )
3932, 38syl5bb 191 . . . . . . . . . . . . . . . . 17  |-  ( th 
->  ( [. W  / 
y ]. ps  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  W
) ) ) )
4030, 39sbcbid 2961 . . . . . . . . . . . . . . . 16  |-  ( th 
->  ( [. ( y  mod  W )  /  x ]. [. W  / 
y ]. ps  <->  [. ( y  mod  W )  /  x ]. A. z  e. 
NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  W
) ) ) )
41 breq2 3928 . . . . . . . . . . . . . . . . . . . . 21  |-  ( x  =  ( y  mod 
W )  ->  (
z  ||  x  <->  z  ||  ( y  mod  W
) ) )
4241anbi1d 460 . . . . . . . . . . . . . . . . . . . 20  |-  ( x  =  ( y  mod 
W )  ->  (
( z  ||  x  /\  z  ||  W )  <-> 
( z  ||  (
y  mod  W )  /\  z  ||  W ) ) )
4342imbi2d 229 . . . . . . . . . . . . . . . . . . 19  |-  ( x  =  ( y  mod 
W )  ->  (
( z  ||  r  ->  ( z  ||  x  /\  z  ||  W ) )  <->  ( z  ||  r  ->  ( z  ||  ( y  mod  W
)  /\  z  ||  W ) ) ) )
4443ralbidv 2435 . . . . . . . . . . . . . . . . . 18  |-  ( x  =  ( y  mod 
W )  ->  ( A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  W ) )  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  (
y  mod  W )  /\  z  ||  W ) ) ) )
4544sbcieg 2936 . . . . . . . . . . . . . . . . 17  |-  ( ( y  mod  W )  e.  NN0  ->  ( [. ( y  mod  W
)  /  x ]. A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  W ) )  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  (
y  mod  W )  /\  z  ||  W ) ) ) )
4616, 45syl 14 . . . . . . . . . . . . . . . 16  |-  ( th 
->  ( [. ( y  mod  W )  /  x ]. A. z  e. 
NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  W
) )  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  ( y  mod  W
)  /\  z  ||  W ) ) ) )
4740, 46bitrd 187 . . . . . . . . . . . . . . 15  |-  ( th 
->  ( [. ( y  mod  W )  /  x ]. [. W  / 
y ]. ps  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  ( y  mod  W
)  /\  z  ||  W ) ) ) )
4847ad3antrrr 483 . . . . . . . . . . . . . 14  |-  ( ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  /\  ph )
)  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  -> 
( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  (
y  mod  W )  /\  z  ||  W ) ) ) )
4929, 48mpbid 146 . . . . . . . . . . . . 13  |-  ( ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  /\  ph )
)  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  ->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  (
y  mod  W )  /\  z  ||  W ) ) )
5049r19.21bi 2518 . . . . . . . . . . . 12  |-  ( ( ( ( ( th 
/\  r  e.  NN0 )  /\  ( [. (
y  mod  W )  /  x ]. [. W  /  y ]. ps  /\ 
ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod  W ) )  =  y ) )  /\  z  e. 
NN0 )  ->  (
z  ||  r  ->  ( z  ||  ( y  mod  W )  /\  z  ||  W ) ) )
5150imp 123 . . . . . . . . . . 11  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
( z  ||  (
y  mod  W )  /\  z  ||  W ) )
5251simprd 113 . . . . . . . . . 10  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
z  ||  W )
53 simplr 519 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
z  e.  NN0 )
5453nn0zd 9164 . . . . . . . . . . . . . 14  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
z  e.  ZZ )
55 simprl 520 . . . . . . . . . . . . . . 15  |-  ( ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  /\  ph )
)  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  -> 
q  e.  ZZ )
5655ad2antrr 479 . . . . . . . . . . . . . 14  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
q  e.  ZZ )
5720ad3antrrr 483 . . . . . . . . . . . . . 14  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  ->  W  e.  ZZ )
58 dvdsmultr2 11522 . . . . . . . . . . . . . 14  |-  ( ( z  e.  ZZ  /\  q  e.  ZZ  /\  W  e.  ZZ )  ->  (
z  ||  W  ->  z 
||  ( q  x.  W ) ) )
5954, 56, 57, 58syl3anc 1216 . . . . . . . . . . . . 13  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
( z  ||  W  ->  z  ||  ( q  x.  W ) ) )
6052, 59mpd 13 . . . . . . . . . . . 12  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
z  ||  ( q  x.  W ) )
6151simpld 111 . . . . . . . . . . . 12  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
z  ||  ( y  mod  W ) )
6256, 57zmulcld 9172 . . . . . . . . . . . . 13  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
( q  x.  W
)  e.  ZZ )
6317ad3antrrr 483 . . . . . . . . . . . . . 14  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
( y  mod  W
)  e.  NN0 )
6463nn0zd 9164 . . . . . . . . . . . . 13  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
( y  mod  W
)  e.  ZZ )
65 dvds2add 11516 . . . . . . . . . . . . 13  |-  ( ( z  e.  ZZ  /\  ( q  x.  W
)  e.  ZZ  /\  ( y  mod  W
)  e.  ZZ )  ->  ( ( z 
||  ( q  x.  W )  /\  z  ||  ( y  mod  W
) )  ->  z  ||  ( ( q  x.  W )  +  ( y  mod  W ) ) ) )
6654, 62, 64, 65syl3anc 1216 . . . . . . . . . . . 12  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
( ( z  ||  ( q  x.  W
)  /\  z  ||  ( y  mod  W
) )  ->  z  ||  ( ( q  x.  W )  +  ( y  mod  W ) ) ) )
6760, 61, 66mp2and 429 . . . . . . . . . . 11  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
z  ||  ( (
q  x.  W )  +  ( y  mod 
W ) ) )
68 simprr 521 . . . . . . . . . . . 12  |-  ( ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  /\  ph )
)  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  -> 
( ( q  x.  W )  +  ( y  mod  W ) )  =  y )
6968ad2antrr 479 . . . . . . . . . . 11  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
( ( q  x.  W )  +  ( y  mod  W ) )  =  y )
7067, 69breqtrd 3949 . . . . . . . . . 10  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
z  ||  y )
7152, 70jca 304 . . . . . . . . 9  |-  ( ( ( ( ( ( th  /\  r  e. 
NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  /\  z  e.  NN0 )  /\  z  ||  r )  -> 
( z  ||  W  /\  z  ||  y ) )
7271ex 114 . . . . . . . 8  |-  ( ( ( ( ( th 
/\  r  e.  NN0 )  /\  ( [. (
y  mod  W )  /  x ]. [. W  /  y ]. ps  /\ 
ph ) )  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod  W ) )  =  y ) )  /\  z  e. 
NN0 )  ->  (
z  ||  r  ->  ( z  ||  W  /\  z  ||  y ) ) )
7372ralrimiva 2503 . . . . . . 7  |-  ( ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  /\  ph )
)  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  ->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  W  /\  z  ||  y ) ) )
7431sbcbii 2963 . . . . . . . . 9  |-  ( [. W  /  x ]. ps  <->  [. W  /  x ]. A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) ) )
75 breq2 3928 . . . . . . . . . . . . . 14  |-  ( x  =  W  ->  (
z  ||  x  <->  z  ||  W ) )
7675anbi1d 460 . . . . . . . . . . . . 13  |-  ( x  =  W  ->  (
( z  ||  x  /\  z  ||  y )  <-> 
( z  ||  W  /\  z  ||  y ) ) )
7776imbi2d 229 . . . . . . . . . . . 12  |-  ( x  =  W  ->  (
( z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) )  <->  ( z  ||  r  ->  ( z  ||  W  /\  z  ||  y
) ) ) )
7877ralbidv 2435 . . . . . . . . . . 11  |-  ( x  =  W  ->  ( A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) )  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  W  /\  z  ||  y ) ) ) )
7978sbcieg 2936 . . . . . . . . . 10  |-  ( W  e.  NN  ->  ( [. W  /  x ]. A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) )  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  W  /\  z  ||  y ) ) ) )
804, 79syl 14 . . . . . . . . 9  |-  ( th 
->  ( [. W  /  x ]. A. z  e. 
NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  y
) )  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  W  /\  z  ||  y
) ) ) )
8174, 80syl5bb 191 . . . . . . . 8  |-  ( th 
->  ( [. W  /  x ]. ps  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  W  /\  z  ||  y
) ) ) )
8281ad3antrrr 483 . . . . . . 7  |-  ( ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  /\  ph )
)  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  -> 
( [. W  /  x ]. ps  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  W  /\  z  ||  y ) ) ) )
8373, 82mpbird 166 . . . . . 6  |-  ( ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  /\  ph )
)  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  ->  [. W  /  x ]. ps )
84 simplrr 525 . . . . . 6  |-  ( ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  /\  ph )
)  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  ->  ph )
8583, 84jca 304 . . . . 5  |-  ( ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod 
W )  /  x ]. [. W  /  y ]. ps  /\  ph )
)  /\  ( q  e.  ZZ  /\  ( ( q  x.  W )  +  ( y  mod 
W ) )  =  y ) )  -> 
( [. W  /  x ]. ps  /\  ph )
)
8628, 85rexlimddv 2552 . . . 4  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  ( [. W  /  x ]. ps  /\  ph ) )
8786exp31 361 . . 3  |-  ( th 
->  ( r  e.  NN0  ->  ( ( [. (
y  mod  W )  /  x ]. [. W  /  y ]. ps  /\ 
ph )  ->  ( [. W  /  x ]. ps  /\  ph )
) ) )
8811, 87reximdai 2528 . 2  |-  ( th 
->  ( E. r  e. 
NN0  ( [. (
y  mod  W )  /  x ]. [. W  /  y ]. ps  /\ 
ph )  ->  E. r  e.  NN0  ( [. W  /  x ]. ps  /\  ph ) ) )
8910, 88mpd 13 1  |-  ( th 
->  E. r  e.  NN0  ( [. W  /  x ]. ps  /\  ph )
)
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    = wceq 1331   F/wnf 1436    e. wcel 1480   [wsb 1735   A.wral 2414   E.wrex 2415   [.wsbc 2904   class class class wbr 3924  (class class class)co 5767   0cc0 7613    + caddc 7616    x. cmul 7618    < clt 7793   NNcn 8713   NN0cn0 8970   ZZcz 9047   QQcq 9404    mod cmo 10088    || cdvds 11482
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 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-13 1491  ax-14 1492  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2119  ax-coll 4038  ax-sep 4041  ax-nul 4049  ax-pow 4093  ax-pr 4126  ax-un 4350  ax-setind 4447  ax-iinf 4497  ax-cnex 7704  ax-resscn 7705  ax-1cn 7706  ax-1re 7707  ax-icn 7708  ax-addcl 7709  ax-addrcl 7710  ax-mulcl 7711  ax-mulrcl 7712  ax-addcom 7713  ax-mulcom 7714  ax-addass 7715  ax-mulass 7716  ax-distr 7717  ax-i2m1 7718  ax-0lt1 7719  ax-1rid 7720  ax-0id 7721  ax-rnegex 7722  ax-precex 7723  ax-cnre 7724  ax-pre-ltirr 7725  ax-pre-ltwlin 7726  ax-pre-lttrn 7727  ax-pre-apti 7728  ax-pre-ltadd 7729  ax-pre-mulgt0 7730  ax-pre-mulext 7731  ax-arch 7732
This theorem depends on definitions:  df-bi 116  df-dc 820  df-3or 963  df-3an 964  df-tru 1334  df-fal 1337  df-nf 1437  df-sb 1736  df-eu 2000  df-mo 2001  df-clab 2124  df-cleq 2130  df-clel 2133  df-nfc 2268  df-ne 2307  df-nel 2402  df-ral 2419  df-rex 2420  df-reu 2421  df-rmo 2422  df-rab 2423  df-v 2683  df-sbc 2905  df-csb 2999  df-dif 3068  df-un 3070  df-in 3072  df-ss 3079  df-nul 3359  df-if 3470  df-pw 3507  df-sn 3528  df-pr 3529  df-op 3531  df-uni 3732  df-int 3767  df-iun 3810  df-br 3925  df-opab 3985  df-mpt 3986  df-tr 4022  df-id 4210  df-po 4213  df-iso 4214  df-iord 4283  df-on 4285  df-ilim 4286  df-suc 4288  df-iom 4500  df-xp 4540  df-rel 4541  df-cnv 4542  df-co 4543  df-dm 4544  df-rn 4545  df-res 4546  df-ima 4547  df-iota 5083  df-fun 5120  df-fn 5121  df-f 5122  df-f1 5123  df-fo 5124  df-f1o 5125  df-fv 5126  df-riota 5723  df-ov 5770  df-oprab 5771  df-mpo 5772  df-1st 6031  df-2nd 6032  df-recs 6195  df-frec 6281  df-pnf 7795  df-mnf 7796  df-xr 7797  df-ltxr 7798  df-le 7799  df-sub 7928  df-neg 7929  df-reap 8330  df-ap 8337  df-div 8426  df-inn 8714  df-2 8772  df-n0 8971  df-z 9048  df-uz 9320  df-q 9405  df-rp 9435  df-fl 10036  df-mod 10089  df-seqfrec 10212  df-exp 10286  df-cj 10607  df-re 10608  df-im 10609  df-rsqrt 10763  df-abs 10764  df-dvds 11483
This theorem is referenced by:  bezoutlemmain  11675
  Copyright terms: Public domain W3C validator