Zulip Chat Archive
Stream: general
Topic: silly bug in division_ring_has_div
Abhimanyu Pallavi Sudhir (Mar 26 2019 at 19:46):
division_ring_has_div
takes two identical instances of division_ring α
. Presumably this is a bug.
Abhimanyu Pallavi Sudhir (Mar 26 2019 at 19:46):
(it's in core, though)
Patrick Massot (Mar 26 2019 at 19:47):
Such bugs happen
Patrick Massot (Mar 26 2019 at 19:47):
And if it's in core it will stay there until Lean 4
Patrick Massot (Mar 26 2019 at 19:47):
Please don't open an issue or submit a PR fixing it, it wouldn't do any good.
Simon Hudon (Mar 26 2019 at 19:50):
Actually, I think we could take such issues on the leanprover-community
fork
Kevin Buzzard (Mar 26 2019 at 19:56):
@Abhimanyu Pallavi Sudhir I would recommend just writing division_ring_has_div'
and hoping that division_ring_has_div
isn't used in too many other places in lean or mathlib :-)
Kevin Buzzard (Mar 26 2019 at 19:59):
Oh it's even an instance! So you'd better make another instance with higher priority :-)
Johan Commelin (Mar 26 2019 at 19:59):
It seems that it isn't used in mathlib so far
Abhimanyu Pallavi Sudhir (Mar 26 2019 at 20:04):
Oh it's even an instance! So you'd better make another instance with higher priority :-)
Ah ok.
Wait -- is priority 100
lower or higher than priority 200
? Which direction does priority
go?
Johan Commelin (Mar 26 2019 at 20:08):
Higher priority is higher
Kevin Buzzard (Mar 26 2019 at 20:09):
It seems that it isn't used in mathlib so far
division_ring_has_div
doesn't appear in core other than that one occurrence -- but because it's an instance it might be used in other places.
Keeley Hoek (Mar 27 2019 at 04:45):
@Abhimanyu Pallavi Sudhir and the default priority is 1000
Last updated: Dec 20 2023 at 11:08 UTC