cubical icon indicating copy to clipboard operation
cubical copied to clipboard

The powerset is not universe polymorphic enough

Open anshwad10 opened this issue 5 months ago • 4 comments

Currently, for A : Type l, ℙ A is defined as A -> hProp l, however I frequently find myself needing to use A -> hProp l' where l' is greater than the universe level of A. I could use Embeddings instead which are maximally universe polymorphic, however I run into a problem: Subset→Embedding use , so I can't use that without compromising the universe polymorphism. Also, this causes more problems in the rest of the library: for example, subgroups and ideals are not maximally universe polymorphic because they use , and neither is ΣPropCat (though that is redundant because of FullSubcategory and should be removed anyways). I see two solutions to this:

  • Define an alternate version ℙ' and use that whenever the extra universe polymorphism is needed
  • Modify the definition of to take another universe level argument; This would be a breaking change and would require editing a lot of the library

Thoughts

anshwad10 avatar Jul 26 '25 07:07 anshwad10