let I be non empty set ; for A being ManySortedSet of I holds
( 2 c= card (product A) iff ( A is non-empty & not A is trivial-yielding ) )
let A be ManySortedSet of I; ( 2 c= card (product A) iff ( A is non-empty & not A is trivial-yielding ) )
A1:
dom A = I
by PARTFUN1:def 2;
thus
( 2 c= card (product A) implies ( A is non-empty & not A is trivial-yielding ) )
( A is non-empty & not A is trivial-yielding implies 2 c= card (product A) )
assume A11:
( A is non-empty & not A is trivial-yielding )
; 2 c= card (product A)
then consider r being set such that
A12:
r in rng A
and
A13:
not r is trivial
;
then
not product A is empty
by CARD_3:26;
then consider a1 being object such that
A14:
a1 in product A
;
consider p being object such that
A15:
p in dom A
and
A16:
r = A . p
by A12, FUNCT_1:def 3;
consider a being Function such that
A17:
a = a1
and
A18:
dom a = dom A
and
A19:
for o being object st o in dom A holds
a . o in A . o
by A14, CARD_3:def 5;
reconsider a = a as ManySortedSet of I by A1, A18, PARTFUN1:def 2, RELAT_1:def 18;
2 c= card r
by A13, Th4;
then consider t being object such that
A20:
t in r
and
A21:
t <> a . p
by Th3;
reconsider p = p as Element of I by A15, PARTFUN1:def 2;
set b = a +* (p,t);
dom (a +* (p,t)) =
I
by PARTFUN1:def 2
.=
dom A
by PARTFUN1:def 2
;
then A24:
a +* (p,t) in product A
by A22, CARD_3:9;
(a +* (p,t)) . p = t
by A18, A15, FUNCT_7:31;
hence
2 c= card (product A)
by A14, A17, A21, A24, Th2; verum