Skip to content

Commit f2d4360

Browse files
authored
Merge pull request #47 from SkySkimmer/fix-alg-univ
Remove algebraic universes in match return clauses.
2 parents 14e7d88 + a0a43d1 commit f2d4360

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

theories/Data/HList.v

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Proof.
3232
end.
3333
Defined.
3434

35+
Monomorphic Universe hlist_large.
36+
3537
(** Core Type and Functions **)
3638
Section hlist.
3739
Polymorphic Universe Ui Uv.
@@ -44,7 +46,7 @@ Section hlist.
4446
| Hcons : forall l ls, F l -> hlist ls -> hlist (l :: ls).
4547

4648
Definition hlist_hd {a b} (hl : hlist (a :: b)) : F a :=
47-
match hl in hlist x return match x with
49+
match hl in hlist x return match x return Type@{Uv} with
4850
| nil => unit
4951
| l :: _ => F l
5052
end with
@@ -53,7 +55,7 @@ Section hlist.
5355
end.
5456

5557
Definition hlist_tl {a b} (hl : hlist (a :: b)) : hlist b :=
56-
match hl in hlist x return match x with
58+
match hl in hlist x return match x return Type@{hlist_large} with
5759
| nil => unit
5860
| _ :: ls => hlist ls
5961
end with

0 commit comments

Comments
 (0)