Zulip Chat Archive

Stream: mathlib4

Topic: No toplevel file for Digraph


Shreyas Srinivas (Nov 24 2025 at 10:15):

In the Combinatorics folder, there seems to be no file Digraph.lean corresponding to the Digraph folder. So import Mathlib.Combinatorics.Digraph fails. Is this deliberate?

Yaël Dillies (Nov 24 2025 at 10:19):

This isn't specific to digraphs at all. We almost never have top level folders, and the ones that we have are usually remnants of a past where the folder didn't exist yet (and so they should be moved to inside the folder).

Shreyas Srinivas (Nov 24 2025 at 10:20):

So how is Digraph accessible from the top level import Mathlib?

Shreyas Srinivas (Nov 24 2025 at 10:20):

Are all the files individually included in some higher folder?

Yaël Dillies (Nov 24 2025 at 10:21):

They are each imported separately in Mathlib.lean

Shreyas Srinivas (Nov 24 2025 at 10:37):

Anyway, the good news is I ported the Walk file to Digraph in 20 mins flat. Along with Darts


Last updated: Dec 20 2025 at 21:32 UTC