let a, b be non zero Nat; :: thesis: ( a gcd b = 1 iff for c being non trivial Nat holds (c |-count a) * (c |-count b) = 0 )
thus ( a gcd b = 1 implies for c being non trivial Nat holds (c |-count a) * (c |-count b) = 0 ) :: thesis: ( ( for c being non trivial Nat holds (c |-count a) * (c |-count b) = 0 ) implies a gcd b = 1 )
proof end;
( ( for c being prime Nat holds (c |-count a) * (c |-count b) = 0 ) implies a gcd b = 1 )
proof
assume B1: for c being prime Nat holds (c |-count a) * (c |-count b) = 0 ; :: thesis: a gcd b = 1
for c being prime Nat holds
( not c divides a or not c divides b )
proof
let c be prime Nat; :: thesis: ( not c divides a or not c divides b )
C1: c <> 1 by INT_2:def 4;
(c |-count a) * (c |-count b) = 0 by B1;
then ( c |-count a = 0 or c |-count b = 0 ) ;
hence ( not c divides a or not c divides b ) by C1, NAT_3:27; :: thesis: verum
end;
then a,b are_coprime by PYTHTRIP:def 2;
hence a gcd b = 1 ; :: thesis: verum
end;
hence ( ( for c being non trivial Nat holds (c |-count a) * (c |-count b) = 0 ) implies a gcd b = 1 ) ; :: thesis: verum