| 1 |
Module Type TITI. |
| 2 |
Parameter B:Set. |
| 3 |
Parameter x:B. |
| 4 |
Inductive A:Set:= |
| 5 |
a1:B->A. |
| 6 |
Definition f2: A ->B |
| 7 |
:= fun (a:A) => |
| 8 |
match a with |
| 9 |
(a1 b)=>b |
| 10 |
end. |
| 11 |
Definition f: A -> B:=fun (a:A) => x. |
| 12 |
End TITI. |
| 13 |
|
| 14 |
|
| 15 |
Module Type TIT. |
| 16 |
Declare Module t:TITI. |
| 17 |
End TIT. |
| 18 |
|
| 19 |
Module Seq(titi:TIT). |
| 20 |
Module t:=titi.t. |
| 21 |
Inductive toto:t.A->t.B->Set:= |
| 22 |
t1:forall (a:t.A), (toto a (t.f a)) |
| 23 |
| t2:forall (a:t.A), (toto a (t.f2 a)). |
| 24 |
End Seq. |
| 25 |
|
| 26 |
Module koko(tit:TIT). |
| 27 |
Module seq:=Seq tit. |
| 28 |
Module t':=tit.t. |
| 29 |
|
| 30 |
Definition def:forall (a:t'.A), (seq.toto a (t'.f a)). |
| 31 |
intro ; constructor 1. |
| 32 |
Defined. |
| 33 |
|
| 34 |
Definition def2: forall (a:t'.A), (seq.toto a (t'.f2 a)). |
| 35 |
intro; constructor 2. |
| 36 |
(* Toplevel input, characters 0-13 |
| 37 |
constructor 2. |
| 38 |
^^^^^^^^^^^^^ |
| 39 |
Error: Impossible to unify (seq.toto ?3 (seq.t.f2 ?3)) with |
| 40 |
(seq.toto a (t'.f2 a)).*) |
| 41 |
Abort. |
| 42 |
End koko. |