Zulip Chat Archive

Stream: mathlib4

Topic: MathlibTest.order error


Violeta Hernández (Oct 13 2025 at 01:11):

Can someone please explain why my PR #30482 fails to build? The error is that some example in MathlibTest.order fails with an error that isn't exactly the same as the error that it's supposed to give? I can't really tell what's going on nor what caused it.

Violeta Hernández (Oct 13 2025 at 01:12):

Here's the exact error:

Violeta Hernández (Oct 13 2025 at 01:14):

I think all that really happened was that the messages got rearranged? Is the test non-deterministic? Seems like a bad test if so.

Bhavik Mehta (Oct 13 2025 at 15:47):

@Vasilii Nesterov might have an idea here

Vasilii Nesterov (Oct 13 2025 at 16:00):

Yes, the order in which types are printed here is arbitrary, and changes in the imports of order.lean can change this order. I realized it only after this test got merged. I delete the second type from the test in #30510.

Vasilii Nesterov (Oct 13 2025 at 16:02):

The right thing to do is to test the output up to permutation, but we don't have a tool for it


Last updated: Dec 20 2025 at 21:32 UTC