Zulip Chat Archive

Stream: mathlib4

Topic: status of data.nat.bits


Arien Malec (Dec 04 2022 at 03:08):

I think the whole thing is a "don't port" right? Because of the status of bit0/bit1 and Nat.bit in Lean 4? I assume bitwise goes the same direction?

Mario Carneiro (Dec 04 2022 at 03:11):

No, bitwise ops are definitely desirable

Mario Carneiro (Dec 04 2022 at 03:11):

However, I think this is going to go the same way as data.rbtree: while important, it will be implemented entirely in core/std and the files here will only be alignments

Arien Malec (Dec 04 2022 at 03:11):

I wondered whether there was something in Lean 4 that was more direct...

Shreyas Srinivas (Dec 05 2022 at 19:07):

@Mario Carneiro are there lists of such files which should not be ported in the usual way? I tried to port data.nat.bits before coming across this issue on this thread.

Kevin Buzzard (Dec 05 2022 at 19:46):

I think it's one of those "hive mind" things. Did nobody put a comment about this in the wiki port-status file? I think that's the best approach to make these things known, at least right now.

Arien Malec (Dec 05 2022 at 20:27):

Good call -- I'll do that rn.

Arien Malec (Dec 05 2022 at 20:28):

already done...

Kevin Buzzard (Dec 05 2022 at 20:32):

Yeah after I posted I realised that it was silly just telling people to do something when I could just do it myself :-)

Siddhartha Gadgil (Dec 06 2022 at 03:30):

Thanks for doing this, especially as it shows up in Commelin's list: https://math.commelin.net/files/port_status.html which is very useful.


Last updated: Dec 20 2023 at 11:08 UTC