leanprover-community / mathlib

  • Home
  • Zulip archive
  • API documentation
  • Lean web editor
  • Links

Zulip Chat Archive

Stream: general

Topic: easy way to find unused definition by `main` function


Asei Inoue (Jan 24 2026 at 13:23):

Is there an easy way to find unused definitions by main function?

Anne Baanen (Jan 26 2026 at 10:36):

ImportGraph defines docs#Lean.Name.transitivelyUsedConstants, so I would take all the constants (in a specific set of modules) and subtract the transitively used constants of main.


Last updated: Feb 28 2026 at 14:05 UTC

Theme Simple by wildflame © 2016 Powered by jekyll