feat(library/init/quot): add exists_rep theorem for quotients

This commit is contained in:
Leonardo de Moura 2015-06-02 10:52:07 -07:00
parent 1ea56038e3
commit e7448ca77e

View file

@ -36,6 +36,9 @@ namespace quot
protected theorem induction_on {A : Type} [s : setoid A] {B : quot s → Prop} (q : quot s) (H : ∀ a, B ⟦a⟧) : B q :=
ind H q
theorem exists_rep {A : Type} [s : setoid A] (q : quot s) : ∃ a : A, ⟦a⟧ = q :=
quot.induction_on q (λ a, exists.intro a rfl)
section
variable {A : Type}
variable [s : setoid A]