TheoremBase

By induction on the size of a subset J of I, removing one index at a time splits both the union and the sum into the part over J without that index plus one block, which gives the count of the disjoint union and, for blocks of equal size r, the value #I times r.

Proof

Each result cited below is universally quantified over the data in its own statement, and is applied to the data named where it is cited.

Notation. By the laws of The Natural Numbers and the Natural Numbers with Zero: Arithmetic, Order, Induction and Recursion §laws, the addition of N0\mathbb{N}_{0} is associative and commutative, and 00 is a neutral element of it, since m+0=mm+0=m and 0+m=m0+m=m for m∈N0m\in\mathbb{N}_{0} by Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §zero; so Sums and Products over a Finite Set and over an Interval §empty and Sums and Products over a Finite Set and over an Interval §subsets apply to it. As each CiC_{i} is finite, #Ci∈N0\#C_{i}\in\mathbb{N}_{0} is defined, and we let c:I→N0c:I\to\mathbb{N}_{0} be the map i↦#Cii\mapsto\#C_{i}; the sum ∑i∈I#Ci\sum_{i\in I}\#C_{i} is that of cc.

Let JJ be a subset of II; it is finite by Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §subset. Writing CC for the family (Ci)i∈I(C_{i})_{i\in I}, the restriction C∣JC|_{J} is a function with domain J∩I=JJ\cap I=J and values CjC_{j} at j∈Jj\in J, by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §restriction; so it is a family (Cj)j∈J(C_{j})_{j\in J} indexed by JJ. Let UJ=⋃j∈JCjU_{J}=\bigcup_{j\in J}C_{j} be its union, a set by The Union and Product of a Family of Sets Indexed by a Set, and the Intersection of a Family with an Inhabited Index Class, Are Sets §union and finite by Finite Sets: the Pigeonhole Principle, Uniqueness of the Length, Subsets, Unions, Products, Images, Bounded Sets of Natural Numbers, Extreme Elements, Sets of Maps, Finite Unions and Finite Choice §family-union; for every set uu, u∈UJu\in U_{J} if and only if u∈Cju\in C_{j} for some j∈Jj\in J. Let sJ=∑j∈J#Cjs_{J}=\sum_{j\in J}\#C_{j}, the sum of c∣Jc|_{J} as in Sums and Products over a Finite Set and over an Interval §subsets. For J′⊆JJ'\subseteq J, the functions (c∣J)∣J′(c|_{J})|_{J'} and c∣J′c|_{J'} both have domain J′J' and value #Cj\#C_{j} at each j∈J′j\in J' by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §restriction, so they are equal by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §equality; hence the sum over J′J' of c∣Jc|_{J} is sJ′s_{J'}. Note UI=⋃i∈ICiU_{I}=\bigcup_{i\in I}C_{i} and sI=∑i∈I#Cis_{I}=\sum_{i\in I}\#C_{i}, since C∣I=CC|_{I}=C and c∣I=cc|_{I}=c by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §equality, each restriction having domain I∩I=II\cap I=I and the same values as the unrestricted map by Basic Properties of Functions: Equality, Composition, Identity, Inverse and Restriction §restriction.

Step 1 (removing one index). Let J⊆IJ\subseteq I, x∈Jx\in J and J′=J∖{x}J'=J\setminus\{x\}, a subset of II; {x}\{x\} is a set with only element xx by The Empty Set, the Unordered Pair and the Singleton §singleton. We show

#J=#J′+1,#UJ=#UJ′+#Cx,sJ=sJ′+#Cx.\#J=\#J'+1,\qquad \#U_{J}=\#U_{J'}+\#C_{x},\qquad s_{J}=s_{J'}+\#C_{x}.

The first equation is Finite Sets: Removing an Element, Injective Self-Maps, Infinite Sets, Sets of Permutations, Pairs and Extended Tuples §remove-element, applied to the finite set JJ and x∈Jx\in J. Since x∈Jx\in J, J=J′∪{x}J=J'\cup\{x\} and J′∩{x}=∅J'\cap\{x\}=\emptyset. For a set uu: u∈UJu\in U_{J} if and only if u∈Cju\in C_{j} for some j∈J′j\in J' or u∈Cxu\in C_{x}, that is, if and only if u∈UJ′∪Cxu\in U_{J'}\cup C_{x}; so UJ=UJ′∪CxU_{J}=U_{J'}\cup C_{x} by extensionality. If u∈UJ′∩Cxu\in U_{J'}\cap C_{x}, then u∈Cju\in C_{j} for some j∈J′j\in J', so j≠xj\neq x and u∈Cj∩Cx=∅u\in C_{j}\cap C_{x}=\emptyset, which is impossible; so UJ′∩Cx=∅U_{J'}\cap C_{x}=\emptyset. As UJ′U_{J'} and CxC_{x} are finite, Counting: Intervals, Empty Sets and Singletons, Injective Images, Subsets, Unions and Products §union gives #UJ=#UJ′+#Cx\#U_{J}=\#U_{J'}+\#C_{x}. Finally, Iterated Operations over Finite Sets: Singletons, Disjoint Unions, Reindexing, Products of Sets, Termwise Combination, Homomorphisms and Intervals §disjoint-union, applied to the disjoint finite sets J′J' and {x}\{x\} and to c∣J:J′∪{x}→N0c|_{J}:J'\cup\{x\}\to\mathbb{N}_{0}, whose sum over J′∪{x}=JJ'\cup\{x\}=J is the sum sJs_{J} of c∣Jc|_{J}, together with Iterated Operations over Finite Sets: Singletons, Disjoint Unions, Reindexing, Products of Sets, Termwise Combination, Homomorphisms and Intervals §singleton, applied to c∣{x}c|_{\{x\}}, and the remark on restrictions above, gives sJ=sJ′+∑j∈{x}#Cj=sJ′+#Cxs_{J}=s_{J'}+\sum_{j\in\{x\}}\#C_{j}=s_{J'}+\#C_{x}.

Step 2 (the empty index set). If J⊆IJ\subseteq I and #J=0\#J=0, then J=∅J=\emptyset by Counting: Intervals, Empty Sets and Singletons, Injective Images, Subsets, Unions and Products §empty. Then UJU_{J} has no element, so UJ=∅U_{J}=\emptyset and #UJ=0\#U_{J}=0 by Counting: Intervals, Empty Sets and Singletons, Injective Images, Subsets, Unions and Products §empty; and sJ=0s_{J}=0 by Sums and Products over a Finite Set and over an Interval §empty.

Step 3 (nonempty index sets). If J⊆IJ\subseteq I and #J=n+1\#J=n+1 with n∈N0n\in\mathbb{N}_{0}, then J≠∅J\neq\emptyset: otherwise n+1=0n+1=0 by Counting: Intervals, Empty Sets and Singletons, Injective Images, Subsets, Unions and Products §empty, so 1=01=0 by Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §zero-sum, contradicting 1∈N=N0∖{0}1\in\mathbb{N}=\mathbb{N}_{0}\setminus\{0\} from the setting. Hence JJ has an element xx, as ∅\emptyset is the only set with no element; and for J′=J∖{x}J'=J\setminus\{x\} Step 1 gives #J′+1=n+1\#J'+1=n+1, so #J′=n\#J'=n by commutativity and Arithmetic of Addition on Omega: Recursion Rules, Associativity, Commutativity, Cancellation and Compatibility with the Order §cancellation.

The clause disjoint-union. For n∈N0n\in\mathbb{N}_{0} let P(n)P(n) state: for every subset JJ of II with #J=n\#J=n, #UJ=sJ\#U_{J}=s_{J}. P(0)P(0) holds by Step 2, both sides being 00. Assume P(n)P(n), and let J⊆IJ\subseteq I with #J=n+1\#J=n+1. By Step 3 there is x∈Jx\in J with J′=J∖{x}J'=J\setminus\{x\} of size #J′=n\#J'=n, so #UJ′=sJ′\#U_{J'}=s_{J'} by P(n)P(n), and by Step 1

#UJ=#UJ′+#Cx=sJ′+#Cx=sJ.\#U_{J}=\#U_{J'}+\#C_{x}=s_{J'}+\#C_{x}=s_{J}.

So P(n+1)P(n+1) holds, and by induction from 00 on N0\mathbb{N}_{0}, from the setting, P(n)P(n) holds for every n∈N0n\in\mathbb{N}_{0}. Applying P(#I)P(\#I) to J=IJ=I gives #⋃i∈ICi=#UI=sI=∑i∈I#Ci\#\bigcup_{i\in I}C_{i}=\#U_{I}=s_{I}=\sum_{i\in I}\#C_{i}.

The clause equal-blocks. Let r∈N0r\in\mathbb{N}_{0} with #Ci=r\#C_{i}=r for every i∈Ii\in I. For n∈N0n\in\mathbb{N}_{0} let Q(n)Q(n) state: for every subset JJ of II with #J=n\#J=n, sJ=n⋅rs_{J}=n\cdot r. Q(0)Q(0) holds since sJ=0s_{J}=0 by Step 2 and 0⋅r=00\cdot r=0 by Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order §zero. Assume Q(n)Q(n), and let J⊆IJ\subseteq I with #J=n+1\#J=n+1. By Step 3 there is x∈Jx\in J with #(J∖{x})=n\#(J\setminus\{x\})=n, so sJ∖{x}=n⋅rs_{J\setminus\{x\}}=n\cdot r by Q(n)Q(n), and by Step 1

sJ=sJ∖{x}+#Cx=n⋅r+r=(n+1)⋅r,s_{J}=s_{J\setminus\{x\}}+\#C_{x}=n\cdot r+r=(n+1)\cdot r,

the last equality by Arithmetic of Multiplication on Omega: Recursion Rules, Distributivity, Associativity, Commutativity, No Zero Divisors, Cancellation and Compatibility with the Order §successor, as n+1n+1 is the successor of nn by Natural Numbers Are the Successors in Omega: One Is Least and Not a Successor of a Natural Number, the Successor Is Injective, and N Is Closed under Addition and Multiplication §plus-one. So Q(n+1)Q(n+1) holds, and by induction from 00 on N0\mathbb{N}_{0}, Q(n)Q(n) holds for every n∈N0n\in\mathbb{N}_{0}. Applying Q(#I)Q(\#I) to J=IJ=I and the clause disjoint-union shown above,

#⋃i∈ICi=sI=#I⋅r.\#\bigcup_{i\in I}C_{i}=s_{I}=\#I\cdot r.

Citations

Loading…

Dependencies

Uses0

Loading…

Comments

Log in to comment.

Loading…