mathlib icon indicating copy to clipboard operation
mathlib copied to clipboard

refactor(set_theory/cardinal/basic): constrain universes

Open vihdzp opened this issue 3 years ago • 12 comments

We enforce a canonical way to compare cardinals a and b of different universes u and v, namely to compare cardinal.lift.{v} a and cardinal.lift.{u} b. By doing this, we alleviate some of the universe hell going on with cardinal.lift.

We rename basis.mk_eq_dim'' to basis.mk_eq_dim', since the latter name was used for a non-complying theorem that has been purged.


Open in Gitpod

vihdzp avatar Jun 28 '22 23:06 vihdzp

LGTM but let's wait for one more pair of eyes: I don't want to make decisions about universe-related questions by myself.

urkud avatar Jul 08 '22 04:07 urkud

Thanks! By the way, should I add a library note explaining the changes here?

vihdzp avatar Jul 08 '22 04:07 vihdzp

Yes.

urkud avatar Jul 08 '22 04:07 urkud

Sorry this has taken a long time. I am skeptical about the loss of generality, but if you can convince someone who know about the cardinal library I'm not going to object.

In the meantime, there are now merge conflicts with master. If you'd still like to proceed with this, can you please merge master?

kim-em avatar Nov 10 '22 22:11 kim-em

The recent renaming of vector space dimension theorems caused some annoying merge conflicts, but they seem to be fixed now.

vihdzp avatar Apr 05 '23 22:04 vihdzp

The recent renaming of vector space dimension theorems caused some annoying merge conflicts, but they seem to be fixed now.

vihdzp avatar Apr 05 '23 22:04 vihdzp

Apologies, my ongoing dimension refactor has created a few more conflicts, hopefully minor.

eric-wieser avatar Apr 06 '23 13:04 eric-wieser

CI is failing

eric-wieser avatar Apr 09 '23 13:04 eric-wieser

CI passes now. If we want this before the mathlib4 port of the vector space files it's probably best to merge this before any other major changes to these files.

vihdzp avatar Apr 09 '23 23:04 vihdzp

maintainer merge

alreadydone avatar Apr 10 '23 05:04 alreadydone

🚀 Pull request has been placed on the maintainer queue by alreadydone.

github-actions[bot] avatar Apr 10 '23 05:04 github-actions[bot]

I think per https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/New.20policy.20regarding.20mathlib3.20PRs.20that.20touch.20ported.20files this can't be merged for now, unless there is some reason this is needed for porting to proceed.

kim-em avatar Apr 10 '23 05:04 kim-em