| 1 |
Require Import Morphisms Setoid. |
| 2 |
|
| 3 |
Class Subst {Obj : Type} (Arr : Obj -> Obj -> Type) (Sub : Obj -> Type) |
| 4 |
{subst_of_arr : forall {A B}, Arr A B -> Sub A} : Prop := |
| 5 |
{ arrow_subst_proper A B :: Proper (eq ==> eq) (@subst_of_arr A B) }. |
| 6 |
|
| 7 |
Record PShf (Obj : Type) := { FO :> Obj -> Type; Peq : forall A, FO A -> FO A -> Prop }. |
| 8 |
|
| 9 |
Inductive kind : Set := KIND : kind. |
| 10 |
|
| 11 |
Axiom Ctx : Type. |
| 12 |
Axiom T : PShf Ctx. |
| 13 |
|
| 14 |
Axiom nf : Ctx -> kind -> Type. |
| 15 |
Axiom FunX : forall {Δ : Ctx}, T Δ. |
| 16 |
Axiom FunY : forall (Δ : Ctx), T Δ. |
| 17 |
Axiom reify : forall {κ : kind} {Δ : Ctx} (_ : T Δ), Basics.flip nf κ Δ. |
| 18 |
Axiom rew : forall (Δ : Ctx), @Peq Ctx T Δ (@FunY Δ) (@FunX Δ). |
| 19 |
|
| 20 |
Goal forall (Δ : Ctx) (r : nf Δ KIND), |
| 21 |
@eq (nf Δ KIND) (reify (@FunY Δ)) r. |
| 22 |
Proof. |
| 23 |
intros. |
| 24 |
Fail rewrite (rew Δ). |
| 25 |
Abort. |
| 26 |
(* Anomaly "ill-typed term: found a match on a partially applied constructor." *) |