Zulip Chat Archive

Stream: nightly-testing

Topic: Mathlib/Data/Rat/Lemmas.lean


Kim Morrison (May 05 2025 at 22:44):

Sigh... I'm having a rough time getting Mathlib on to v4.20.0-rc3 (hopefully the last rc!), and at the least minute I've run into Mathlib/Data/Rat/Lemmas.lean having a broken proof... It's not used, so on #24621 I've just commented it out with an adaptation note.

If someone could sort it out in a subsequent PR that would be great, otherwise I can look tomorrow, but right now I would like to sleep for 4 hours before getting up to get on a plane. :-)

Eric Wieser (May 05 2025 at 22:48):

Is making it an axiom better or wore than commenting it out?

Mario Carneiro (May 06 2025 at 00:59):

is this related to batteries#1225? (the timing is very close, I'm not sure whether the version of batteries you are using includes this PR or not it does include this PR, so this seems very likely)

Mario Carneiro (May 06 2025 at 01:03):

the author contributed a fix so I think it just needs to be cherry-picked to nightly-testing

Kim Morrison (May 06 2025 at 03:36):

(To master, but yes! Thanks for identifying this, I'll see if I can get it queued up this morning.)

Kim Morrison (May 06 2025 at 04:43):

#24625

Ruben Van de Velde (May 06 2025 at 07:55):

Did you mean to change the repository url but not the commit hash for batteries?

Kim Morrison (May 06 2025 at 13:59):

Oops, no.

Kevin Buzzard (May 07 2025 at 09:14):

Eric Wieser said:

Is making it an axiom better or wore than commenting it out?

Making it an axiom opens us up to a drive-by code inspector going "wooah look mathlib has axioms, I thought the whole point was that it was axiom-free"

Andrew Yang (May 07 2025 at 09:17):

I don't think mathlib should add more axioms. Perhaps proof_wanted?

Mario Carneiro (May 07 2025 at 11:21):

Note, this is a temporary issue which has been fixed already. Using an axiom here is fine, insofar as we would not let it hit master

Mario Carneiro (May 07 2025 at 11:23):

commenting it out worked in this case only because the theorem had no users. In the general case we could comment out all the dependencies, but this could be a lot of work to track down and also could end up implicating a huge swath of the library, so axiom is much easier

Mario Carneiro (May 07 2025 at 11:25):

sorry would be even better than axiom (which still has some knock-on effects when it comes to noncomputable marking), but it will cause a build failure (which is fine actually? as long as downstream files are built)

Kim Morrison (May 07 2025 at 11:26):

Just noting that this was commented out (briefly) on master. There axiom is obviously a no go. For nightly-testing, maybe.

Mario Carneiro (May 07 2025 at 11:26):

if we want it not to be a build failure we will need to add some exception for nightly-testing to allow sorry (and we'll probably need this in the end if we ramp up axiom checking on master)

Mario Carneiro (May 07 2025 at 11:28):

I think this should not have hit master, it should have delayed the bump. In this case it was a minor fallout but if it was any worse I think we should just have waited for the fix

Mario Carneiro (May 07 2025 at 11:30):

(I think part of the issue in this case was that batteries had a merged PR in the middle of your bump process; an alternative fix would have been to downgrade the batteries commit you used for the bump to avoid it shifting in the middle of the process)

Kim Morrison (May 07 2025 at 13:26):

I agree with all of the above. This release was an exceptionally difficult one, and this "comment out an unused theorem on master" hack should be avoided in future.


Last updated: Dec 20 2025 at 21:32 UTC