let m be positive Nat; :: thesis: for k being Nat
for S being Sierp49FS of m,k
for q being CR_Sequence st q = PrimeDivisorsFS m holds
ex a, b being positive Nat st
( 2 * k = a - b & a,m are_coprime & b,m are_coprime & a = ((CRT (S,q)) + (Product q)) + (2 * k) & b = (CRT (S,q)) + (Product q) )

let k be Nat; :: thesis: for S being Sierp49FS of m,k
for q being CR_Sequence st q = PrimeDivisorsFS m holds
ex a, b being positive Nat st
( 2 * k = a - b & a,m are_coprime & b,m are_coprime & a = ((CRT (S,q)) + (Product q)) + (2 * k) & b = (CRT (S,q)) + (Product q) )

let S be Sierp49FS of m,k; :: thesis: for q being CR_Sequence st q = PrimeDivisorsFS m holds
ex a, b being positive Nat st
( 2 * k = a - b & a,m are_coprime & b,m are_coprime & a = ((CRT (S,q)) + (Product q)) + (2 * k) & b = (CRT (S,q)) + (Product q) )

let q be CR_Sequence; :: thesis: ( q = PrimeDivisorsFS m implies ex a, b being positive Nat st
( 2 * k = a - b & a,m are_coprime & b,m are_coprime & a = ((CRT (S,q)) + (Product q)) + (2 * k) & b = (CRT (S,q)) + (Product q) ) )

assume A1: q = PrimeDivisorsFS m ; :: thesis: ex a, b being positive Nat st
( 2 * k = a - b & a,m are_coprime & b,m are_coprime & a = ((CRT (S,q)) + (Product q)) + (2 * k) & b = (CRT (S,q)) + (Product q) )

deffunc H1( Integer) -> Element of INT = In (($1 * ($1 + (2 * k))),INT);
consider f being Function of INT,INT such that
A2: for x being Element of INT holds f . x = H1(x) from FUNCT_2:sch 4();
set X = PrimeDivisors m;
set x0 = (CRT (S,q)) + (1 * (Product q));
take a = ((CRT (S,q)) + (1 * (Product q))) + (2 * k); :: thesis: ex b being positive Nat st
( 2 * k = a - b & a,m are_coprime & b,m are_coprime & a = ((CRT (S,q)) + (Product q)) + (2 * k) & b = (CRT (S,q)) + (Product q) )

take b = (CRT (S,q)) + (1 * (Product q)); :: thesis: ( 2 * k = a - b & a,m are_coprime & b,m are_coprime & a = ((CRT (S,q)) + (Product q)) + (2 * k) & b = (CRT (S,q)) + (Product q) )
thus 2 * k = a - b ; :: thesis: ( a,m are_coprime & b,m are_coprime & a = ((CRT (S,q)) + (Product q)) + (2 * k) & b = (CRT (S,q)) + (Product q) )
len S = len q by A1, Def14;
then A3: dom S = dom q by FINSEQ_3:29;
(CRT (S,q)) + (1 * (Product q)) in INT by INT_1:def 2;
then A4: f . ((CRT (S,q)) + (1 * (Product q))) = H1((CRT (S,q)) + (1 * (Product q))) by A2;
A5: for i being Nat st i in dom q holds
f . ((CRT (S,q)) + (1 * (Product q))),f . (S . i) are_congruent_mod q . i
proof
let i be Nat; :: thesis: ( i in dom q implies f . ((CRT (S,q)) + (1 * (Product q))),f . (S . i) are_congruent_mod q . i )
assume A6: i in dom q ; :: thesis: f . ((CRT (S,q)) + (1 * (Product q))),f . (S . i) are_congruent_mod q . i
S . i in INT by INT_1:def 2;
then A7: f . (S . i) = H1(S . i) by A2;
CRT (S,q) solves_CRT S,q by A3, Def4;
then (CRT (S,q)) + (1 * (Product q)) solves_CRT S,q by A3, Th30;
then A8: (CRT (S,q)) + (1 * (Product q)),S . i are_congruent_mod q . i by A3, A6;
then ((CRT (S,q)) + (1 * (Product q))) + (2 * k),(S . i) + (2 * k) are_congruent_mod q . i ;
hence f . ((CRT (S,q)) + (1 * (Product q))),f . (S . i) are_congruent_mod q . i by A4, A7, A8, INT_1:18; :: thesis: verum
end;
A9: for i being Nat st i in dom q holds
not f . (S . i), 0 are_congruent_mod q . i
proof
let i be Nat; :: thesis: ( i in dom q implies not f . (S . i), 0 are_congruent_mod q . i )
S . i in INT by INT_1:def 2;
then f . (S . i) = H1(S . i) by A2;
hence ( i in dom q implies not f . (S . i), 0 are_congruent_mod q . i ) by A1, A3, Def14; :: thesis: verum
end;
for i being Nat st i in dom q holds
f . ((CRT (S,q)) + (1 * (Product q))),q . i are_coprime
proof
let i be Nat; :: thesis: ( i in dom q implies f . ((CRT (S,q)) + (1 * (Product q))),q . i are_coprime )
assume A10: i in dom q ; :: thesis: f . ((CRT (S,q)) + (1 * (Product q))),q . i are_coprime
A11: q . i is prime by A1, A10, Th47;
A12: |.(q . i).| = q . i ;
A13: f . ((CRT (S,q)) + (1 * (Product q))),f . (S . i) are_congruent_mod q . i by A5, A10;
not 0 ,f . (S . i) are_congruent_mod q . i by A9, A10, INT_1:14;
then not 0 ,f . ((CRT (S,q)) + (1 * (Product q))) are_congruent_mod q . i by A13, INT_1:15;
then not f . ((CRT (S,q)) + (1 * (Product q))), 0 are_congruent_mod q . i by INT_1:14;
then |.(f . ((CRT (S,q)) + (1 * (Product q)))).|,q . i are_coprime by A11, Th4, NUMBER10:4;
hence f . ((CRT (S,q)) + (1 * (Product q))),q . i are_coprime by A12, INT_2:34; :: thesis: verum
end;
then f . ((CRT (S,q)) + (1 * (Product q))),m * 1 are_coprime by A1, A4, Th53;
hence ( a,m are_coprime & b,m are_coprime & a = ((CRT (S,q)) + (Product q)) + (2 * k) & b = (CRT (S,q)) + (Product q) ) by A4, NEWTON01:41; :: thesis: verum