Does it hold that if I can decide a proposition P n
for each specific n
, then I can also decide whether or not forall n, P n
? It feels like it should be doable by some induction over n
, but how can I prove that in Coq?
Lemma dec_forall:
forall (P : nat->Prop),
(forall n, decidable (P n)) ->
decidable (forall i, P i).