1
(* Check that "dependent inversion" behaves correctly w.r.t to universes *)
5
Set Implicit Arguments.
7
Inductive illist(A:Type) : nat -> Type :=
9
| illistc : forall n:nat, A -> illist A n -> illist A (S n).
11
Inductive isig (A:Type)(P:A -> Type) : Type :=
12
iexists : forall x : A, P x -> isig P.
14
Lemma inv : forall (A:Type)(n n':nat)(ts':illist A n'), n' = S n ->
15
isig (fun t => isig (fun ts =>
16
eq_dep nat (fun n => illist A n) n' ts' (S n) (illistc t ts))).
19
dependent inversion ts'.