feat(library/init/quot): add exists_rep theorem for quotients
This commit is contained in:
parent
1ea56038e3
commit
e7448ca77e
1 changed files with 3 additions and 0 deletions
|
@ -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 :=
|
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
|
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
|
section
|
||||||
variable {A : Type}
|
variable {A : Type}
|
||||||
variable [s : setoid A]
|
variable [s : setoid A]
|
||||||
|
|
Loading…
Reference in a new issue