Zulip Chat Archive

Stream: mathlib4

Topic: ZFC Class


Yury G. Kudryashov (Feb 28 2026 at 07:50):

I'm refactoring docs#Set to break the defeq with X → Prop. Should docs#Class become a Set or _ → Prop? The file uses one or another in different theorems/definitions.

Yury G. Kudryashov (Feb 28 2026 at 07:51):

CC: @Mario Carneiro

Yury G. Kudryashov (Feb 28 2026 at 07:51):

Also, should we rename it or move it to a namespace?

Violeta Hernández (Feb 28 2026 at 11:09):

We currently define it as Set ZFSet so we get the instances for free, but then we write it out as ZFSet -> Prop to match mathematical notation and avoid mixing up the two membership operations. I think this design was me four year ago's idea.

My current if controversial idea would be to get rid of Class altogether and just write down Set ZFSet directly. Or like, at least make it an abbrev.

Edward van de Meent (Feb 28 2026 at 11:13):

That still leaves the question of defeq abuse though...

Violeta Hernández (Feb 28 2026 at 11:14):

The former, is my answer to the original question.

Edward van de Meent (Feb 28 2026 at 11:15):

I agree that motivates the abuse, but doesn't suggest what way to avoid it

Violeta Hernández (Feb 28 2026 at 11:36):

That should be an easy fix, write x \in C instead of C x.

Violeta Hernández (Feb 28 2026 at 11:37):

This type is barely used so I imagine that refactor shouldn't take long

Violeta Hernández (Feb 28 2026 at 11:38):

I can probably do it if you're willing to give me a day or two


Last updated: Feb 28 2026 at 14:05 UTC