Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HoTT does not build with trunk #735

Closed
JasonGross opened this issue Mar 12, 2015 · 10 comments
Closed

HoTT does not build with trunk #735

JasonGross opened this issue Mar 12, 2015 · 10 comments

Comments

@JasonGross
Copy link
Contributor

We get

File "./theories/Modalities/Modality.v", line 325, characters 0-33:
Error: Signature components for label hprop_inO do not match:
polymorphic universe instances do not match.

Anybody (@mikeshulman? @mattam82?) want to take a look at this?

@JasonGross
Copy link
Contributor Author

When printed, we get

  Set Printing Universes.
  Print Modalities.
(*    Parameter hprop_inO :
     Funext ->
     forall (O : Modality@{Var(0) Var(1)}) (T : Type@{Var(2)}),
     IsHProp (In@{Var(0) Var(1) Var(2)} O T).
     (* Top.60
        Top.61
        Top.62 |= Set < Var(1)
                  Set < Var(2)
                  Var(1) < Var(0)
                  Var(1) <= Var(2)
                   *)
*)
  Print hprop_inO. (* hprop_inO =
fun (H : Funext) (O : Modality@{Top.343 Top.344}) (T : Type@{Top.345}) =>
hprop_isequiv@{Top.345 Top.345 Top.349 Top.345 Top.345 Top.345}
  (to@{Top.343 Top.344 Top.345} O T)
     : Funext ->
       forall (O : Modality@{Top.343 Top.344}) (T : Type@{Top.345}),
       IsHProp (In@{Top.343 Top.344 Top.345} O T)
(* Top.343
   Top.344
   Top.345
   Top.349 |= Set < Top.344
              Set < Top.345
              Top.344 < Top.343
              Top.344 <= Top.345
               *)

hprop_inO is universe polymorphic
Argument H is implicit and maximally inserted
Argument scopes are [_ _ type_scope]
 *)

(What's with these Var(*), @mattam82?) So it seems that we acquired an extra floating universe somewhere?

@mikeshulman
Copy link
Contributor

Looks like bug 3797 still isn't fixed. I'll look into the extra universe.

@mikeshulman
Copy link
Contributor

Looks like the extra universes comes from contr_paths_contr: it has two universe parameters but the second one appears totally unused; even with Set Printing All I don't see it anywhere in the term. @mattam82, any idea where that universe is coming from?

@JasonGross
Copy link
Contributor Author

It has something to do with Instance; if you change Instance to Definition (and strip off | 10000), then it has only one universe.

@mikeshulman
Copy link
Contributor

That sounds like a bug to me; I can't think of any valid reason for that.

@JasonGross
Copy link
Contributor Author

Bug 4121

@mikeshulman
Copy link
Contributor

The Hint Extern is necessary to reproduce the behavior? That's extremely odd.

@JasonGross
Copy link
Contributor Author

The Hint Extern is necessary for the definitions to typecheck at all.

@JasonGross
Copy link
Contributor Author

But, uh, yes, that Hint Extern is needed to reproduce the behavior (see comments on bug thread).

@mikeshulman
Copy link
Contributor

I see that bug 4121 was fixed; can we close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants