| 1 |
Polymorphic Fixpoint LIn (A : Type) (a:A) (l:list A) : Type := |
| 2 |
match l with |
| 3 |
| nil => False |
| 4 |
| cons b m => (b = a) + LIn A a m |
| 5 |
end. |
| 6 |
|
| 7 |
Polymorphic Inductive NTerm : Type := |
| 8 |
| cterm : NTerm |
| 9 |
| oterm : list NTerm -> NTerm. |
| 10 |
|
| 11 |
Polymorphic Fixpoint dummy {A B} (x : list (A * B)) : list (A * B) := |
| 12 |
match x with |
| 13 |
| nil => nil |
| 14 |
| cons (_, _) _ => nil |
| 15 |
end. |
| 16 |
|
| 17 |
Lemma foo : |
| 18 |
forall v t sub vars, |
| 19 |
LIn (nat * NTerm) (v, t) (dummy sub) |
| 20 |
-> |
| 21 |
( |
| 22 |
LIn (nat * NTerm) (v, t) sub |
| 23 |
* |
| 24 |
notT (LIn nat v vars) |
| 25 |
). |
| 26 |
Proof. |
| 27 |
induction sub; simpl; intros. |
| 28 |
destruct H. |
| 29 |
Set Printing Universes. |
| 30 |
try (apply IHsub in X). (* Toplevel input, characters 5-21: |
| 31 |
Error: Universe inconsistency (cannot enforce Top.47 = Set). *) |
| 32 |
Abort. |