Zulip Chat Archive

Stream: mathlib4

Topic: What to port?


Sky Wilshaw (Nov 29 2022 at 17:45):

I'm looking to start porting some of mathlib3 into mathlib4, and I want to find out what's free. I was thinking of working on Data.Multiset.Dedup and then Data.Multiset.FinsetOps, is anyone else working on these at the moment?

Jireh Loreaux (Nov 29 2022 at 17:46):

in a mathlib3 repo, you should run the port status script with ./scripts/port_status.py

Jireh Loreaux (Nov 29 2022 at 17:46):

This will tell you what currently needs porting.

Scott Morrison (Nov 29 2022 at 17:49):

(You won't be able to port those Multiset files yet, as various prerequisites are missing. You can use leanproject import-graph --to data.multiset.dedup --reduce --port-status --exclude-tactics out.pdf to generate a graph showing the prerequisites of that file, if for some reason you really want to aim there!)

Sky Wilshaw (Nov 29 2022 at 17:50):

Ah thank you, I was looking at mathport's generated imports to see the dependency tree, but they seem incomplete.

Scott Morrison (Nov 29 2022 at 17:51):

The current list of unclaimed ready-to-port files is:

algebra.order.monoid.order_dual
data.sigma.order
data.psigma.order

Sky Wilshaw (Nov 29 2022 at 17:52):

Right - there are more seemingly unclaimed files in the

# The following files have all dependencies ported already, and should be ready to port:

section, what is the difference with these ones?

Scott Morrison (Nov 29 2022 at 17:55):

Those ones have an unported transitive dependency, but all the immediate parents have been successfully ported, so with a bit of luck we can proceed anyway.

Sky Wilshaw (Nov 29 2022 at 17:57):

Ah, I see. One more question - do I need write access to mathlib4's non-master branches, or should I work from a fork and send in a PR later?

Sky Wilshaw (Nov 29 2022 at 18:00):

I might be misreading but it looks like it's the other way round - my port status execution looks like

# The following files have their immediate dependencies ported already, and may be ready to port:
order.with_bot    -- mathlib4#776 1fc36cc9c8264e6e81253f88be7fb2cb6c92d76a
order.rel_iso.basic    -- PRed mathlib4#772
algebra.order.monoid.canonical.defs    -- WIP 1fc36cc9c8264e6e81253f88be7fb2cb6c92d76a
algebra.order.monoid.order_dual    -- WIP by zeramorphic 1fc36cc9c8264e6e81253f88be7fb2cb6c92d76a
data.prod.lex    -- PRed mathlib4#783 1fc36cc9c8264e6e81253f88be7fb2cb6c92d76a
data.sigma.order
data.psigma.order

which seems to imply that the algebra.order.monoid.order_dual that you mentioned is one of those with only immediate dependencies but unported transitive dependencies.

Scott Morrison (Nov 29 2022 at 18:05):

It's best if you push from a branch, as CI works better that way.

Scott Morrison (Nov 29 2022 at 18:05):

If you tell me your github username I'll send an invite.

Sky Wilshaw (Nov 29 2022 at 18:06):

My username is zeramorphic, thanks!

Sky Wilshaw (Nov 29 2022 at 18:07):

Thank you!

Scott Morrison (Nov 29 2022 at 20:35):

Thanks, @Sky Wilshaw, I've left a comment on your PR. Almost good to go.


Last updated: Dec 20 2023 at 11:08 UTC