Zulip Chat Archive
Stream: mathlib4
Topic: policy for copyright header in deprecated modules
Kevin Buzzard (May 24 2025 at 12:04):
I see that the last two deprecated_modules PRs that we merged, namely #24942 and #24947, had different ideas about whether copyright headers should be put in the deprecated files. Do we have a policy about this? I was just checking them to see what such a PR looked like before I hit merge on #25148 and now I'm confused.
Edit: Is the idea that these files get deleted by Jeremy in 6 months' time anyway?
Edit: Andrew now added the copyright header so the question is kind of moot (to be honest I am slightly surprised that #24942 passed CI!)
Ruben Van de Velde (May 24 2025 at 12:48):
The header linter is turned off for deprecated modules
Ruben Van de Velde (May 24 2025 at 12:48):
When I added them, I copied the copyright from the pre-removal module
Damiano Testa (May 24 2025 at 13:55):
The automated tool for deprecating used to preserve the copyright header, but someone, possibly @Yaël Dillies ?, suggested that it did not include the header.
Kevin Buzzard (May 24 2025 at 14:28):
Do we have a policy? Or is the policy "we don't care"?
Mario Carneiro (May 24 2025 at 14:35):
IMO they should not be treated differently
Mario Carneiro (May 24 2025 at 14:36):
deprecation and copyright are completely unrelated concepts
Eric Wieser (May 24 2025 at 15:57):
I think the point is that the deprecated module has no code from the original file any more
Eric Wieser (May 24 2025 at 15:57):
So there is nothing left to copyright
Eric Wieser (May 24 2025 at 15:57):
It doesn't even share a git history with the original file, if things are working how we wanted them to
Eric Wieser (May 24 2025 at 15:58):
Phrased another way: these are generated files, and we don't currently have a copyright notice on such files (e.g. Mathlib.lean). It would probably reasonable to put a generic "mathlib project" copyright in such files, but I doubt it really matters
Last updated: Dec 20 2025 at 21:32 UTC