Zulip Chat Archive

Stream: mathlib4

Topic: exact? test failure: le_antisymm vs ge_antisymm


Ruben Van de Velde (Nov 30 2023 at 13:55):

test/LibrarySearch/basic.lean:228:2: error: Tactic `exact?` produced `exact ge_antisymm hyx hxy`,
but was expecting it to produce `exact le_antisymm hxy hyx`!

Seems unfortunate to fail CI over that

Eric Wieser (Nov 30 2023 at 13:57):

Arguably that's a bug in exact?; it should be preferring docs#le_antisymm over docs#ge_antisymm

Jireh Loreaux (Nov 30 2023 at 14:57):

why do we even have docs#ge_antisymm ?

Ruben Van de Velde (Nov 30 2023 at 15:02):

Good question, I assumed it would be in core, but it's in mathlib

Notification Bot (Nov 30 2023 at 15:19):

4 messages were moved here from #mathlib4 > Obscure test fail by Eric Wieser.

Yaël Dillies (Nov 30 2023 at 16:09):

ge_antisymm was an ematch lemma in Lean 3. The port should have deleted it in favor of le_antisymm.

Ruben Van de Velde (Nov 30 2023 at 16:13):

Thanks for volunteering to remove it :)

Yaël Dillies (Dec 01 2023 at 07:32):

#8760

Yaël Dillies (Dec 01 2023 at 07:33):

I see you were talking about ge_antisymm, not le_antisymm'. I added ge_antisymm ages ago to make sure the API is symmetric (sometimes one is much eaier than the other, and you want it to come last).

Yaël Dillies (Dec 01 2023 at 07:34):

This is also useful for dualising proofs without having to shuffle arguments.

Ruben Van de Velde (Dec 01 2023 at 07:51):

Yeah, not sure what made you think about le_antisymm'

Yaël Dillies (Dec 01 2023 at 07:51):

Well, it's an exact copy of le_antisymm, so that was fitting with exact? getting confused.

Yaël Dillies (Dec 01 2023 at 08:53):

Seems I was quite spot on :smile: : https://github.com/leanprover-community/mathlib4/actions/runs/7057097484/job/19210170676

Winston Yin (尹維晨) (Dec 01 2023 at 23:59):

Getting the same CI error in #8397. Is there a fix?

Eric Wieser (Dec 02 2023 at 12:15):

I think the fix was merged yesterday; have you merged master recently?

Winston Yin (尹維晨) (Dec 03 2023 at 01:18):

Merged master again just now. Problem went away. Thanks!


Last updated: Dec 20 2023 at 11:08 UTC