Zulip Chat Archive

Stream: mathlib4

Topic: Order.Filter.NAry


Adam Topaz (Jan 23 2023 at 17:27):

In mathlib4#1786 I had to manually replace map₂ with Filter.map₂ on line 155 because Lean was treating map₂ as if it was Filter.NeBot.map₂ while inside of the Filter namespace. Is this expected behavior?

Adam Topaz (Jan 23 2023 at 17:27):

Specifically, the issue was (map₂ m f g).NeBot

Yury G. Kudryashov (Jan 23 2023 at 17:51):

It happens if you're proving NeBot.*. It seems that Lean opens NeBot in this case.

Yury G. Kudryashov (Jan 23 2023 at 17:51):

I added some protected as a workaround.

Yury G. Kudryashov (Jan 23 2023 at 17:52):

BTW, I have some golfs for proofs in this file, see #18258.

Yaël Dillies (Jan 23 2023 at 17:54):

This lemma should be protected anyway, indeed.

Yury G. Kudryashov (Jan 23 2023 at 17:55):

Another change of behavior: if you prove Function.Commute.blah, you can't use h.blah to call an existing Function.Semiconj.blah because it'll try Function.Commute.blah first and complain about a cyclic proof.

Yury G. Kudryashov (Jan 23 2023 at 17:55):

That's why I added Function.Commute.semiconj while porting order.filter.basic.

Yury G. Kudryashov (Jan 23 2023 at 17:58):

I guess, I'll have to drop #18258 and redo it in Lean 4 later.

Eric Wieser (Jan 23 2023 at 18:09):

Yury G. Kudryashov said:

you can't use h.blah to call an existing Function.Semiconj.blah because it'll try Function.Commute.blah first and complain about a cyclic proof.

Sure you can, use nonrec

Yury G. Kudryashov (Jan 24 2023 at 04:40):

@Johan Commelin https://math.commelin.net/files/port_status.html doesn't list mathlib4#1786 for order.filter.n_ary. Is it a bug?

Yury G. Kudryashov (Jan 24 2023 at 04:41):

@Adam Topaz Could you please merge master?

Yury G. Kudryashov (Jan 24 2023 at 04:43):

Also, @Lukas Miaskiwskyi ported order.filter.extr in mathlib4#1785. Port status doesn't know about this PR either.

Arien Malec (Jan 24 2023 at 04:43):

Data.Typevec was merged in mathlib4#891 but currently shows as unported

Johan Commelin (Jan 24 2023 at 05:16):

@Yury G. Kudryashov Yeah, there are some bugs, please use #port-status instead.

Yury G. Kudryashov (Jan 24 2023 at 05:17):

Sorry, I've accidentally opened a wrong page from browser history.

Johan Commelin (Jan 24 2023 at 05:19):

I've updated my page with links to the new page.


Last updated: Dec 20 2023 at 11:08 UTC