Skip to content

Canonical Structures containing Type and algebraic universes #6682

@Janno

Description

@Janno

Version

8.8+alpha (and 8.7.1)

Description of the problem

The following snippet fails. I expected it to succeed (after #5368 was fixed, at least).

Set Universe Polymorphism. Unset Universe Minimization ToSet.
Structure NoProof := no_proof { np_type : Type }.
Canonical Structure NP_Type := no_proof Type. 
Check (fun np (T : np_type np) => I) _ Type.

Error message:

Error:
The term "Type@{Top.7}" has type "Type@{Top.7+1}"
while it is expected to have type "np_type@{Top.6} ?np".

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugAn error, flaw, fault or unintended behaviour.part: canonical structureThe Canonical Structure mechanism.part: universesThe universe system.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions