Theorem search
{P : nat -> Prop} (dec : forall n, {P n} + {~P n})
: ~~(exists n, P n) -> {n | P n}.
Admitted.
I don't think this is provable in Coq without additional axioms, and it is provable when assuming LEM : forall A : Prop, A \/ ~A
. However, I don't think it proves LEM. What are the weakest axioms that prove search
? I'm not very familiar with all the versions of the axiom of choice, but I guess this is probably equivalent to one.