:: CARD_FIN semantic presentation :: Showing IDV graph ... (Click the Palm Trees again to close it)
Lm1:
for x, X' being set st x in X' holds
(X' \ {x}) \/ {x} = X'
by ZFMISC_1:140;
Lm2:
for x, X' being set st not x in X' holds
(X' \/ {x}) \ {x} = X'
by ZFMISC_1:141;
theorem Th1: :: CARD_FIN:1 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th2: :: CARD_FIN:2 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th3: :: CARD_FIN:3 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th4: :: CARD_FIN:4 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th5: :: CARD_FIN:5 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem :: CARD_FIN:6 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th7: :: CARD_FIN:7 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th8: :: CARD_FIN:8 :: Showing IDV graph ... (Click the Palm Tree again to close it)
definition
let X be
finite set ;
let k be
Nat;
let x1,
x2 be
set ;
func Choose X,
k,
x1,
x2 -> Subset of
(Funcs X,{x1,x2}) means :
Def1:
:: CARD_FIN:def 1
for
x being
set holds
(
x in it iff ex
f being
Function of
X,
{x1,x2} st
(
f = x &
Card (f " {x1}) = k ) );
existence
ex b1 being Subset of (Funcs X,{x1,x2}) st
for x being set holds
( x in b1 iff ex f being Function of X,{x1,x2} st
( f = x & Card (f " {x1}) = k ) )
uniqueness
for b1, b2 being Subset of (Funcs X,{x1,x2}) st ( for x being set holds
( x in b1 iff ex f being Function of X,{x1,x2} st
( f = x & Card (f " {x1}) = k ) ) ) & ( for x being set holds
( x in b2 iff ex f being Function of X,{x1,x2} st
( f = x & Card (f " {x1}) = k ) ) ) holds
b1 = b2
end;
:: deftheorem Def1 defines Choose CARD_FIN:def 1 :
theorem :: CARD_FIN:9 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th10: :: CARD_FIN:10 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th11: :: CARD_FIN:11 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th12: :: CARD_FIN:12 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th13: :: CARD_FIN:13 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th14: :: CARD_FIN:14 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th15: :: CARD_FIN:15 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th16: :: CARD_FIN:16 :: Showing IDV graph ... (Click the Palm Tree again to close it)
Lm3:
for x, y, z being set
for X being finite set
for k being Nat st x <> y & not z in X holds
( { f where f is Function of X \/ {z},{x,y} : ( Card (f " {x}) = k + 1 & f . z = x ) } \/ { f where f is Function of X \/ {z},{x,y} : ( Card (f " {x}) = k + 1 & f . z = y ) } = Choose (X \/ {z}),(k + 1),x,y & { f where f is Function of X \/ {z},{x,y} : ( Card (f " {x}) = k + 1 & f . z = x ) } misses { f where f is Function of X \/ {z},{x,y} : ( Card (f " {x}) = k + 1 & f . z = y ) } )
theorem Th17: :: CARD_FIN:17 :: Showing IDV graph ... (Click the Palm Tree again to close it)
for
x,
y,
z being
set for
X being
finite set for
k being
Nat st
x <> y & not
z in X holds
card (Choose (X \/ {z}),(k + 1),x,y) = (card (Choose X,(k + 1),x,y)) + (card (Choose X,k,x,y))
theorem Th18: :: CARD_FIN:18 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th19: :: CARD_FIN:19 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th20: :: CARD_FIN:20 :: Showing IDV graph ... (Click the Palm Tree again to close it)
:: deftheorem Def2 defines Intersection CARD_FIN:def 2 :
theorem Th21: :: CARD_FIN:21 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th22: :: CARD_FIN:22 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem :: CARD_FIN:23 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th24: :: CARD_FIN:24 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem :: CARD_FIN:25 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th26: :: CARD_FIN:26 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem :: CARD_FIN:27 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th28: :: CARD_FIN:28 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th29: :: CARD_FIN:29 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th30: :: CARD_FIN:30 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th31: :: CARD_FIN:31 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th32: :: CARD_FIN:32 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th33: :: CARD_FIN:33 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th34: :: CARD_FIN:34 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th35: :: CARD_FIN:35 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th36: :: CARD_FIN:36 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th37: :: CARD_FIN:37 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th38: :: CARD_FIN:38 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem :: CARD_FIN:39 :: Showing IDV graph ... (Click the Palm Tree again to close it)
:: deftheorem Def3 defines finite-yielding CARD_FIN:def 3 :
theorem :: CARD_FIN:40 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th41: :: CARD_FIN:41 :: Showing IDV graph ... (Click the Palm Tree again to close it)
Lm4:
for k being Nat
for F being XFinSequence st k <= len F holds
( len (F | k) = k & dom (F | k) = k )
theorem Th42: :: CARD_FIN:42 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem :: CARD_FIN:43 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th44: :: CARD_FIN:44 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th45: :: CARD_FIN:45 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem :: CARD_FIN:46 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th47: :: CARD_FIN:47 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th48: :: CARD_FIN:48 :: Showing IDV graph ... (Click the Palm Tree again to close it)
Lm5:
for X being finite set ex P being Function of card X,X st P is one-to-one
definition
let k be
Nat;
let F be
finite-yielding Function;
assume A1:
dom F is
finite
;
func Card_Intersection F,
k -> Nat means :
Def4:
:: CARD_FIN:def 4
for
x,
y being
set for
X being
finite set for
P being
Function of
card (Choose X,k,x,y),
Choose X,
k,
x,
y st
dom F = X &
P is
one-to-one &
x <> y holds
ex
XFS being
XFinSequence of
NAT st
(
dom XFS = dom P & ( for
z being
set for
f being
Function st
z in dom XFS &
f = P . z holds
XFS . z = Card (Intersection F,f,x) ) &
it = Sum XFS );
existence
ex b1 being Nat st
for x, y being set
for X being finite set
for P being Function of card (Choose X,k,x,y), Choose X,k,x,y st dom F = X & P is one-to-one & x <> y holds
ex XFS being XFinSequence of NAT st
( dom XFS = dom P & ( for z being set
for f being Function st z in dom XFS & f = P . z holds
XFS . z = Card (Intersection F,f,x) ) & b1 = Sum XFS )
uniqueness
for b1, b2 being Nat st ( for x, y being set
for X being finite set
for P being Function of card (Choose X,k,x,y), Choose X,k,x,y st dom F = X & P is one-to-one & x <> y holds
ex XFS being XFinSequence of NAT st
( dom XFS = dom P & ( for z being set
for f being Function st z in dom XFS & f = P . z holds
XFS . z = Card (Intersection F,f,x) ) & b1 = Sum XFS ) ) & ( for x, y being set
for X being finite set
for P being Function of card (Choose X,k,x,y), Choose X,k,x,y st dom F = X & P is one-to-one & x <> y holds
ex XFS being XFinSequence of NAT st
( dom XFS = dom P & ( for z being set
for f being Function st z in dom XFS & f = P . z holds
XFS . z = Card (Intersection F,f,x) ) & b2 = Sum XFS ) ) holds
b1 = b2
end;
:: deftheorem Def4 defines Card_Intersection CARD_FIN:def 4 :
for
k being
Nat for
F being
finite-yielding Function st
dom F is
finite holds
for
b3 being
Nat holds
(
b3 = Card_Intersection F,
k iff for
x,
y being
set for
X being
finite set for
P being
Function of
card (Choose X,k,x,y),
Choose X,
k,
x,
y st
dom F = X &
P is
one-to-one &
x <> y holds
ex
XFS being
XFinSequence of
NAT st
(
dom XFS = dom P & ( for
z being
set for
f being
Function st
z in dom XFS &
f = P . z holds
XFS . z = Card (Intersection F,f,x) ) &
b3 = Sum XFS ) );
theorem :: CARD_FIN:49 :: Showing IDV graph ... (Click the Palm Tree again to close it)
for
k being
Nat for
Fy being
finite-yielding Function for
x,
y being
set for
X being
finite set for
P being
Function of
card (Choose X,k,x,y),
Choose X,
k,
x,
y st
dom Fy = X &
P is
one-to-one &
x <> y holds
for
XFS being
XFinSequence of
NAT st
dom XFS = dom P & ( for
z being
set for
f being
Function st
z in dom XFS &
f = P . z holds
XFS . z = Card (Intersection Fy,f,x) ) holds
Card_Intersection Fy,
k = Sum XFS
theorem :: CARD_FIN:50 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th51: :: CARD_FIN:51 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th52: :: CARD_FIN:52 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th53: :: CARD_FIN:53 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th54: :: CARD_FIN:54 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem :: CARD_FIN:55 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th56: :: CARD_FIN:56 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th57: :: CARD_FIN:57 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th58: :: CARD_FIN:58 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th59: :: CARD_FIN:59 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th60: :: CARD_FIN:60 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th61: :: CARD_FIN:61 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th62: :: CARD_FIN:62 :: Showing IDV graph ... (Click the Palm Tree again to close it)
:: deftheorem defines Sum CARD_FIN:def 5 :
theorem Th63: :: CARD_FIN:63 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th64: :: CARD_FIN:64 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th65: :: CARD_FIN:65 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th66: :: CARD_FIN:66 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th67: :: CARD_FIN:67 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th68: :: CARD_FIN:68 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th69: :: CARD_FIN:69 :: Showing IDV graph ... (Click the Palm Tree again to close it)
Lm6:
for X, Y being finite set st not X is empty & not Y is empty holds
ex F being XFinSequence of INT st
( dom F = card Y & ((card Y) |^ (card X)) - (Sum F) = Card { f where f is Function of X,Y : f is onto } & ( for n being Nat st n in dom F holds
F . n = (((- 1) |^ n) * ((card Y) choose (n + 1))) * ((((card Y) - n) - 1) |^ (card X)) ) )
theorem Th70: :: CARD_FIN:70 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem :: CARD_FIN:71 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem Th72: :: CARD_FIN:72 :: Showing IDV graph ... (Click the Palm Tree again to close it)
Lm7:
for X, Y being finite set
for F being Function of X,Y st dom F = X & F is one-to-one holds
ex XF being XFinSequence of INT st
( dom XF = card X & ((card X) ! ) - (Sum XF) = Card { h where h is Function of X, rng F : ( h is one-to-one & ( for x being set st x in X holds
h . x <> F . x ) ) } & ( for n being Nat st n in dom XF holds
XF . n = (((- 1) |^ n) * ((card X) ! )) / ((n + 1) ! ) ) )
theorem Th73: :: CARD_FIN:73 :: Showing IDV graph ... (Click the Palm Tree again to close it)
theorem :: CARD_FIN:74 :: Showing IDV graph ... (Click the Palm Tree again to close it)