Zulip Chat Archive
Stream: lean4
Topic: Preventing a library from depending on another
Geoffrey Irving (Aug 15 2025 at 15:44):
Currently there is one Render library declared in https://github.com/girving/ray-render/blob/main/lakefile.lean, which depends on two upstream libraries, Interval and Ray. In order to minimize dependencies, I’d like to split Render into two libraries, one of which depends on Interval only (not Ray). Is there a good way to enforce this in the lakefile?
Geoffrey Irving (Aug 15 2025 at 15:45):
(The motivation is making the computational executables not depend on a bunch of mathematics, reducing the number of .o files built by several thousand.)
Eric Wieser (Aug 15 2025 at 23:52):
assert_not_exists in your Lean files might be enough
Geoffrey Irving (Aug 16 2025 at 08:47):
Thank you, that works!
Last updated: Dec 20 2025 at 21:32 UTC