Created
August 2, 2021 17:10
-
-
Save siraben/7c043d30c0c99364c06e018dac1d4eb9 to your computer and use it in GitHub Desktop.
"countable choice" according to wikipedia
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* P is a family of nat-indexed sets of nat such that: | |
H: for all n, there is an m such that m ∈ P n | |
----------- | |
Then we show that there is a choice function f | |
*) | |
Theorem countable_choice_wikipedia | |
(P : nat -> (nat -> Prop)) (H : forall n, { m | P n m }) : { f | forall n, (exists m, P n m /\ f n = m)}. | |
Proof. | |
set (f := fun (n : nat) => let (m, Hm) := H n in m). | |
exists f. | |
intros n. exists (f n). | |
split; auto. | |
unfold f. now destruct (H n) as [m' Hm']. | |
Qed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment