let n be Nat; :: thesis: for p being Prime
for m being non zero Nat st p |^ n divides m holds
n + 1 <= card (NatDivisors m)

let p be Prime; :: thesis: for m being non zero Nat st p |^ n divides m holds
n + 1 <= card (NatDivisors m)

let m be non zero Nat; :: thesis: ( p |^ n divides m implies n + 1 <= card (NatDivisors m) )
assume A1: p |^ n divides m ; :: thesis: n + 1 <= card (NatDivisors m)
set n1 = n + 1;
deffunc H1( Nat) -> set = p |^ $1;
consider f being Function such that
A2: dom f = Segm (n + 1) and
A3: for d being Element of Segm (n + 1) holds f . d = H1(d) from FUNCT_1:sch 4();
for x1, x2 being object st x1 in dom f & x2 in dom f & f . x1 = f . x2 holds
x1 = x2
proof
let x1, x2 be object ; :: thesis: ( x1 in dom f & x2 in dom f & f . x1 = f . x2 implies x1 = x2 )
assume A4: ( x1 in dom f & x2 in dom f & f . x1 = f . x2 ) ; :: thesis: x1 = x2
reconsider x1 = x1, x2 = x2 as Nat by A4, A2;
A5: ( H1(x1) = f . x1 & H1(x2) = f . x2 ) by A4, A2, A3;
A6: ( x1 < x2 & p > 1 implies p to_power x1 < p to_power x2 ) by POWER:39;
( x2 < x1 & p > 1 implies p to_power x2 < p to_power x1 ) by POWER:39;
hence x1 = x2 by A6, A5, A4, INT_2:def 4, XXREAL_0:1; :: thesis: verum
end;
then A7: card (Segm (n + 1)) c= card (rng f) by FUNCT_1:def 4, A2, CARD_1:10;
rng f c= { (p |^ k) where k is Element of NAT : k <= n }
proof
let y be object ; :: according to TARSKI:def 3 :: thesis: ( not y in rng f or y in { (p |^ k) where k is Element of NAT : k <= n } )
assume y in rng f ; :: thesis: y in { (p |^ k) where k is Element of NAT : k <= n }
then consider x being object such that
A8: ( x in dom f & f . x = y ) by FUNCT_1:def 3;
reconsider x = x as Element of NAT by A8, A2;
x < n + 1 by A8, A2, NAT_1:44;
then A9: x <= n by NAT_1:13;
f . x = H1(x) by A2, A3, A8;
hence y in { (p |^ k) where k is Element of NAT : k <= n } by A9, A8; :: thesis: verum
end;
then ( rng f c= NatDivisors (p |^ n) & NatDivisors (p |^ n) c= NatDivisors m ) by Th1, A1, NAT_5:19;
then rng f c= NatDivisors m by XBOOLE_1:1;
then card (rng f) c= card (NatDivisors m) by CARD_1:11;
then card (Segm (n + 1)) c= card (Segm (card (NatDivisors m))) by A7;
hence n + 1 <= card (NatDivisors m) by NAT_1:40; :: thesis: verum