Require Export FiniteTypes Relation_Definitions ZArith QArith IndexedFamilies.
FunctionalExtensionality ProofIrrelevance
DependentTypeChoice ClassicalChoice
Arith ArithRing.
Local Close Scope Q_scope.
Set Asymmetric Patterns.
Inductive CountableT (X : Type) : Prop :=
| intro_nat_injection (f : X -> nat) : injective f -> CountableT X.
Definition Countable {X : Type} (S : Ensemble X) : Prop :=
CountableT {x:X | In S x}.

Lemma countable_img {X Y : Type} (f : X -> Y) (S : Ensemble X) :
Countable S -> Countable (Im S f).