@@ -15,10 +15,10 @@ Set Asymmetric Patterns.
1515
1616(** Core Type and Functions * *)
1717Section hlist.
18- Context {iT : Type@{i} }.
19- Variable F : iT -> Type@{d} .
18+ Context {iT : Type}.
19+ Variable F : iT -> Type.
2020
21- Inductive hlist : list iT -> Type @{d} :=
21+ Inductive hlist : list iT -> Type :=
2222 | Hnil : hlist nil
2323 | Hcons : forall l ls, F l -> hlist ls -> hlist (l :: ls).
2424
@@ -332,7 +332,7 @@ Section hlist.
332332 end .
333333
334334 Polymorphic Fixpoint hlist_nth ls (h : hlist ls) (n : nat) :
335- match nth_error ls n return Type @{i} with
335+ match nth_error ls n return Type with
336336 | None => unit
337337 | Some t => F t
338338 end :=
@@ -398,10 +398,10 @@ Section hlist.
398398
399399 Theorem hlist_nth_hlist_app
400400 : forall l l' (h : hlist l) (h' : hlist l') n,
401- hlist_nth@{i} (hlist_app h h') n =
401+ hlist_nth (hlist_app h h') n =
402402 match nth_error l n as k
403403 return nth_error l n = k ->
404- match nth_error (l ++ l') n return Type @{i} with
404+ match nth_error (l ++ l') n return Type with
405405 | None => unit
406406 | Some t => F t
407407 end
@@ -410,17 +410,17 @@ Section hlist.
410410 match
411411 cast1 _ _ _ pf in _ = z ,
412412 eq_sym pf in _ = w
413- return match w return Type @{i} with
413+ return match w return Type with
414414 | None => unit
415415 | Some t => F t
416416 end ->
417- match z return Type @{i} with
417+ match z return Type with
418418 | None => unit
419419 | Some t => F t
420420 end
421421 with
422422 | eq_refl , eq_refl => fun x => x
423- end (hlist_nth@{i} h n)
423+ end (hlist_nth h n)
424424 | None => fun pf =>
425425 match cast2 _ _ _ pf in _ = z
426426 return match z with
@@ -471,7 +471,8 @@ Section hlist.
471471 { intro. induction ls; simpl.
472472 { rewrite (hlist_eta x); intros; constructor. }
473473 { rewrite (hlist_eta x); intros; intuition; constructor.
474- eapply preflexive; eauto with typeclass_instances.
474+ eapply preflexive; [ | eauto with typeclass_instances ].
475+ eauto with typeclass_instances.
475476 eapply IHls; eauto. } }
476477 { red. induction 1.
477478 { constructor. }
@@ -628,10 +629,10 @@ Section hlist.
628629
629630 Theorem nth_error_get_hlist_nth_Some
630631 : forall ls n s,
631- nth_error_get_hlist_nth@{i} ls n = Some s ->
632+ nth_error_get_hlist_nth ls n = Some s ->
632633 exists pf : nth_error ls n = Some (projT1 s),
633634 forall h, projT2 s h = match pf in _ = t
634- return match t return Type @{i} with
635+ return match t return Type with
635636 | Some t => F t
636637 | None => unit
637638 end
0 commit comments