5 Factorials and combinations
5.1 Factorials
word(s,s) …
\(!\)We assume the following recurrence for the factorial.
!𝕄 …
\(\begin{cases} 0 ! = 1 \\ n \in \mathbb{M} \Longrightarrow ( n + 1 ) ! = n ! \cdot ( n + 1 ) \end{cases}\) !∈𝕄 …
\(n \in \mathbb{M} \Longrightarrow n ! \in \mathbb{M}\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,!𝕄 ,⋅𝕄:D ,⋅0X5.2 Number of combinations
word(c,s) …
\(\)set_. …
\(\dot\exists C \Longrightarrow C = C\) word(ss,s) …
\(\mathrm{C}\)Let the sets have \(n\) elements; the number of their \(k\)-element subsets is \(n \text{ choose } k\).
AxC …
\(\operatorname{\#} X , k \in \mathbb{M} \Longrightarrow \operatorname{\#} ( \{ A \in \wp X \mid \operatorname{\#} A = k \} ) = ( \operatorname{\#} X ) \mathrm{C} k\) 5.3 Removing one point, sum over fibers
Removing one point decreases the count by one.
If each \(s \in S\) corresponds under the relation \(R\) to exactly one \(a \in Y\), and the part over each \(a\) has \(q\) elements, then \(S\) has \(q \cdot \# Y\) elements. Remove one point \(a\) and use induction.
A point \(y\) can be taken from \(Y\) (\(\# (Y \setminus \{y\}) = k\)), so the step above holds in the case \(\# Y = k + 1\) for any such \(Y\).
LfibR …
\(k , q \in \mathbb{M} , \operatorname{\#} Y = k , \forall s \in S . \exists a \in Y . \langle s , a \rangle \in R , \forall s \in S . \forall a , b \, ( \langle s , a \rangle \in R , \langle s , b \rangle \in R \Longrightarrow a = b ) , \forall a \in Y . \forall F \, ( F = \{ s \in S \mid \langle s , a \rangle \in R \} \Longrightarrow \operatorname{\#} F = q ) \Longrightarrow \operatorname{\#} S = q \cdot k\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,ax_s ,⋅𝕄:D ,⋅0X ,Lm2RFor a relation \(R\) determining the destination of each \(s\) as \(a\), writing \(R = \{(s, a) \mid \langle c, a\rangle \in s\}\) (the value of \(s\) at \(c\)), we get the following form.
Lfib …
\(k , q \in \mathbb{M} , \operatorname{\#} Y = k , \forall s \in S . \exists a \in Y . \langle c , a \rangle \in s , \forall s \in S . \forall a , b \, ( \langle c , a \rangle \in s , \langle c , b \rangle \in s \Longrightarrow a = b ) , \forall a \in Y . \forall F \, ( F = \{ s \in S \mid \langle c , a \rangle \in s \} \Longrightarrow \operatorname{\#} F = q ) \Longrightarrow \operatorname{\#} S = q \cdot k\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,Axℤ ,ax_s ,⋅𝕄:D ,⋅0X ,LfibR