Zulip Chat Archive

Stream: new members

Topic: Universe-related(?) error when renaming type variables


Michael Rothgang (Oct 09 2023 at 15:29):

As expressed in the style guide, I tried to rename the type variables in Topology.Homeomorph to match standard mathematics conventions. (I was touching the file anyway, in a different PR.)
Building this, however, yields an error I don't understand. The first error, on line 2506 in Topology.Module.Basic is

application type mismatch
  ↑(Homeomorph.funUnique ι) M
argument
  M
has type
  Type u_3 : Type (u_3 + 1)
but is expected to have type
  ι → ?m.2568875 : Type (max u_1 ?u.2568873)

Code in #7587, build errors also in the files tab.

I have only a vague understanding of universes; no particular idea what could be causing the issue here.

My best guess is that changing Homeomorph.refl is the culprit: but I have no idea why that should cause an issue. To me, the lines look basically identical. Apparently, this is deeper than I anticipated... apologies for inadvertedly causing a mess!

Michael Rothgang (Oct 09 2023 at 15:50):

Full set of errors, from the build log

Header

Michael Rothgang (Oct 09 2023 at 16:24):

Never mind: I've found the error. "Re-using" in funUnique caused issues; reverting that fixes things.

Yaël Dillies (Oct 09 2023 at 18:05):

Sorry, why do we care about the case of variables?


Last updated: Dec 20 2023 at 11:08 UTC