Zulip Chat Archive

Stream: mathlib4

Topic: Importing file listed twice on docs page


Michael Stoll (Apr 07 2024 at 18:25):

The docs page for Mathlib.Algebra.Order.Ring.CharZero lists Mathlib.Data.Nat.Choose.Bounds twice under "imported by".

Richard Osborn (Apr 07 2024 at 18:32):

That's because it is imported twice. Mathlib/Data/Nat/Choose/Bounds.lean#L7

Michael Stoll (Apr 07 2024 at 18:33):

It also imports Mathlib.Data.Nat.Cast.Order twice! Is there no linter for this?

Richard Osborn (Apr 07 2024 at 18:37):

The two imports were added separately in #9720 and #9749 and were likely merged at roughly the same time. Not familiar enough with CI to know how to lint for this.


Last updated: May 02 2025 at 03:31 UTC