I have to determine the number $x$ of subsets with odd cardinalities of a set $S$ and then prove that I'm correct.
I determined the number $x$ is obtained using the formula $2^{n-1}$ where $|S| = n$.
Unfortunately, this rule doesn't work with the number $0$, so what can I do, it's pretty obvious that when $n$ is $0$, $x$ is also $0$. The assigment requires me to use the basic induction logic:
$$ P(0) \land \forall n : (P(n) \Rightarrow P(n+1)) \Rightarrow \forall n : P(n)$$
Can I consider $P(0)$ a special case of the proof, and then prove everything from $1$ onwards? I think it could be possible, but is there any way I can modify $P$ to work with $0$, in this case it doesnt'?
If you want to prove something like $P(n)$ for all $n\in\mathbb{N}$ and it turns out that $P(n)$ fails in some cases, say $P(n)$ might be wrong if $n<k$, then you can always come up with a different statement $Q(n)$ which stands for "$P(n) \lor n < k$" and instead prove $\forall n \in \mathbb{N}: Q(n)$ by induction.
Now, it might seem like with this modification the base case $Q(0)$ suddenly becomes suspiciously easy, but this is only because the real complication is now in the inductive step where you have to take special care of the step from $Q(k-1)$ to $Q(k)$.
But this is only the technical justification for why induction also works if you start with $P(k)$ instead of $P(0)$. In practice you can treat, as you suggested, $P(k)$ as the base case and proceed as usual to prove $\forall n \in \mathbb{N}: (n \geq k \Rightarrow P(n))$.