| 1 |
Inductive sigT3 {A: Type} {P: A -> Type} (Q: forall a: A, P a -> Type) := |
| 2 |
existT3: forall a: A, forall b: P a, Q a b -> sigT3 Q |
| 3 |
. |
| 4 |
|
| 5 |
Definition projT3_1 {A: Type} {P: A -> Type} {Q: forall a: A, P a -> Type} (a: sigT3 Q) := |
| 6 |
let 'existT3 _ x0 _ _ := a in x0. |
| 7 |
|
| 8 |
Definition projT3_2 {A: Type} {P: A -> Type} {Q: forall a: A, P a -> Type} (a: sigT3 Q) : P (projT3_1 a) := |
| 9 |
let 'existT3 _ x0 x1 _ := a in x1. |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
Lemma projT3_3_eq' (A B: Type) (Q: B -> Type) (a b: sigT3 (fun (_: A) b => Q b)) (H: a = b) : |
| 14 |
unit. |
| 15 |
Proof. |
| 16 |
destruct a as [x0 x1 x2], b as [y0 y1 y2]. |
| 17 |
assert (H' := f_equal projT3_1 H). |
| 18 |
cbn in H'. |
| 19 |
subst x0. |
| 20 |
assert (H' := f_equal (projT3_2 (P := fun _ => B)) H). |
| 21 |
cbn in H'. |
| 22 |
subst x1. |
| 23 |
|
| 24 |
injection H as H'. |
| 25 |
exact tt. |
| 26 |
Qed. |