fix(library/data/real/division): make temporary has_div only a local instance

This commit is contained in:
Jeremy Avigad 2016-02-14 10:16:13 -05:00 committed by Leonardo de Moura
parent 6cdbc0f79f
commit 15c9ec12cf

View file

@ -593,9 +593,11 @@ noncomputable definition real_has_inv [instance] [reducible] [priority real.prio
noncomputable protected definition div (x y : ) : :=
x * y⁻¹
noncomputable definition real_has_div [instance] [reducible] [priority real.prio] : has_div real :=
noncomputable definition real_has_div : has_div real :=
has_div.mk real.div
local attribute real_has_div [instance] [reducible] [priority real.prio]
protected theorem le_total (x y : ) : x ≤ y y ≤ x :=
quot.induction_on₂ x y (λ s t, rat_seq.r_le_total s t)