doc(init/core): Document init_quotient in lean

This way people can search for "constant quot" and find it in the lean source. Plus the init_quotient command only occurs once, so this way people know what it means.
This commit is contained in:
Mario Carneiro 2017-06-30 05:16:42 -04:00 committed by Leonardo de Moura
parent dfbcb72f38
commit 89e860ac8b

View file

@ -120,6 +120,19 @@ prefix `¬` := not
inductive eq {α : Sort u} (a : α) : α → Prop
| refl : eq a
/-
Initialize the quotient module, which effectively adds the following definitions:
constant quot {α : Sort u} (r : αα → Prop) : Sort u
constant quot.mk {α : Sort u} (r : αα → Prop) (a : α) : quot r
constant quot.lift {α : Sort u} {r : αα → Prop} {β : Sort v} (f : α → β) :
(∀ a b : α, r a b → eq (f a) (f b)) → quot r → β
constant quot.ind {α : Sort u} {r : αα → Prop} {β : quot r → Prop} :
(∀ a : α, β (quot.mk r a)) → ∀ q : quot r, β q
-/
init_quotient
inductive heq {α : Sort u} (a : α) : Π {β : Sort u}, β → Prop