Zulip Chat Archive

Stream: Equational

Topic: MATHLIB: What Should We Upstream?


Pietro Monticone (Oct 21 2024 at 23:45):

It's probably time to start planning what we should upstream to Mathlib. I'd like to know your views on the following:

  1. What do you consider Mathlib-relevant?
  2. If Mathlib-relevant, what is ready to port?
  3. If ready to port, what should be prioritised?
  4. If not ready to port, what requires more work?

Cody Roux (Oct 22 2024 at 03:09):

I just finished a fiddly proof involving "boolean rings" taking from here: https://en.wikipedia.org/wiki/Boolean_algebra_(structure). I was surprised no one had done this, though the proof of associativity is finicky.

Cody Roux (Oct 22 2024 at 03:09):

Not particularly crucial, I imagine; this is 1930s stuff.

Bryan Gin-ge Chen (Oct 22 2024 at 03:19):

Out of curiosity, what did you prove about Boolean rings? We have them in mathlib4 (see docs4#BooleanRing) but there isn't anything there other than the equivalence with Boolean algebras.

Cody Roux (Oct 22 2024 at 16:05):

I gave an alternate definition (the one from wikipedia) and proved that the multiplication is indeed associative; this is fiddly, requires a careful setup, thankfully fully explained in the article.

Then I proved that the Sheffer laws axiomatizing the Sheffer stroke encode such a thing.

Cody Roux (Oct 22 2024 at 16:06):

But I'm getting pushback on this, so maybe I'll refactor it to omit creating such a structure

Shreyas Srinivas (Oct 22 2024 at 16:09):

I think you could also go for Option 2 you suggested in the PR comments, where you show that the Sheffer definition is indeed a BooleanRing in the mathlib sense

Shreyas Srinivas (Oct 22 2024 at 16:10):

But then upstreaming it to Mathlib is going to be difficult

Cody Roux (Oct 22 2024 at 16:17):

The main obstruction is just time, I'm a little busy ATM to do all this

Cody Roux (Oct 22 2024 at 16:17):

I'm happy with option 3, I think

Cody Roux (Oct 22 2024 at 16:17):

though it is confusing that the +-like operation does not become the ring +.

Bryan Gin-ge Chen (Oct 22 2024 at 19:22):

I gather the PR in question is equational#708. Feel free to ping me if / when you decide to upstream any parts to mathlib!

Cody Roux (Oct 22 2024 at 19:23):

Thanks! Probably not right away, unless someone wants to step in.


Last updated: May 02 2025 at 03:31 UTC