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

Theorem bezoutlemstep 11685
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 11684 . . 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 2140 . . . . . 6  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  ( y  mod 
W )  =  ( y  mod  W ) )
136nn0zd 9171 . . . . . . . 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 10118 . . . . . . . 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 9418 . . . . . . . . 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 9172 . . . . . . . . 9  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  W  e.  ZZ )
21 zq 9418 . . . . . . . . 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 8764 . . . . . . . 8  |-  ( ( ( th  /\  r  e.  NN0 )  /\  ( [. ( y  mod  W
)  /  x ]. [. W  /  y ]. ps  /\  ph ) )  ->  0  <  W
)
24 modqlt 10106 . . . . . . . 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 11626 . . . . . . 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 2968 . . . . . . . . . . . . . . . . . 18  |-  ( [. W  /  y ]. ps  <->  [. W  /  y ]. A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) ) )
33 breq2 3933 . . . . . . . . . . . . . . . . . . . . . . 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 2437 . . . . . . . . . . . . . . . . . . . 20  |-  ( y  =  W  ->  ( A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) )  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  W ) ) ) )
3736sbcieg 2941 . . . . . . . . . . . . . . . . . . 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 2966 . . . . . . . . . . . . . . . 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 3933 . . . . . . . . . . . . . . . . . . . . 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 2437 . . . . . . . . . . . . . . . . . 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 2941 . . . . . . . . . . . . . . . . 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 2520 . . . . . . . . . . . 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 9171 . . . . . . . . . . . . . 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 11533 . . . . . . . . . . . . . 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 9179 . . . . . . . . . . . . 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 9171 . . . . . . . . . . . . 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 11527 . . . . . . . . . . . . 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 3954 . . . . . . . . . 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 2505 . . . . . . 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 2968 . . . . . . . . 9  |-  ( [. W  /  x ]. ps  <->  [. W  /  x ]. A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) ) )
75 breq2 3933 . . . . . . . . . . . . . 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 2437 . . . . . . . . . . 11  |-  ( x  =  W  ->  ( A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  x  /\  z  ||  y ) )  <->  A. z  e.  NN0  ( z  ||  r  ->  ( z  ||  W  /\  z  ||  y ) ) ) )
7978sbcieg 2941 . . . . . . . . . 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 2554 . . . 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 2530 . 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 2416   E.wrex 2417   [.wsbc 2909   class class class wbr 3929  (class class class)co 5774   0cc0 7620    + caddc 7623    x. cmul 7625    < clt 7800   NNcn 8720   NN0cn0 8977   ZZcz 9054   QQcq 9411    mod cmo 10095    || cdvds 11493
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 2121  ax-coll 4043  ax-sep 4046  ax-nul 4054  ax-pow 4098  ax-pr 4131  ax-un 4355  ax-setind 4452  ax-iinf 4502  ax-cnex 7711  ax-resscn 7712  ax-1cn 7713  ax-1re 7714  ax-icn 7715  ax-addcl 7716  ax-addrcl 7717  ax-mulcl 7718  ax-mulrcl 7719  ax-addcom 7720  ax-mulcom 7721  ax-addass 7722  ax-mulass 7723  ax-distr 7724  ax-i2m1 7725  ax-0lt1 7726  ax-1rid 7727  ax-0id 7728  ax-rnegex 7729  ax-precex 7730  ax-cnre 7731  ax-pre-ltirr 7732  ax-pre-ltwlin 7733  ax-pre-lttrn 7734  ax-pre-apti 7735  ax-pre-ltadd 7736  ax-pre-mulgt0 7737  ax-pre-mulext 7738  ax-arch 7739
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 2002  df-mo 2003  df-clab 2126  df-cleq 2132  df-clel 2135  df-nfc 2270  df-ne 2309  df-nel 2404  df-ral 2421  df-rex 2422  df-reu 2423  df-rmo 2424  df-rab 2425  df-v 2688  df-sbc 2910  df-csb 3004  df-dif 3073  df-un 3075  df-in 3077  df-ss 3084  df-nul 3364  df-if 3475  df-pw 3512  df-sn 3533  df-pr 3534  df-op 3536  df-uni 3737  df-int 3772  df-iun 3815  df-br 3930  df-opab 3990  df-mpt 3991  df-tr 4027  df-id 4215  df-po 4218  df-iso 4219  df-iord 4288  df-on 4290  df-ilim 4291  df-suc 4293  df-iom 4505  df-xp 4545  df-rel 4546  df-cnv 4547  df-co 4548  df-dm 4549  df-rn 4550  df-res 4551  df-ima 4552  df-iota 5088  df-fun 5125  df-fn 5126  df-f 5127  df-f1 5128  df-fo 5129  df-f1o 5130  df-fv 5131  df-riota 5730  df-ov 5777  df-oprab 5778  df-mpo 5779  df-1st 6038  df-2nd 6039  df-recs 6202  df-frec 6288  df-pnf 7802  df-mnf 7803  df-xr 7804  df-ltxr 7805  df-le 7806  df-sub 7935  df-neg 7936  df-reap 8337  df-ap 8344  df-div 8433  df-inn 8721  df-2 8779  df-n0 8978  df-z 9055  df-uz 9327  df-q 9412  df-rp 9442  df-fl 10043  df-mod 10096  df-seqfrec 10219  df-exp 10293  df-cj 10614  df-re 10615  df-im 10616  df-rsqrt 10770  df-abs 10771  df-dvds 11494
This theorem is referenced by:  bezoutlemmain  11686
  Copyright terms: Public domain W3C validator