You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Goalforall (O obj : Type) (f : O -> obj) (x : O) (e : x = x)
(T : obj -> obj -> Type) (m : forall x0 : obj, T x0 x0),
match eq_sym e in (_ = y) return (T (f y) (f x)) with
| eq_refl => m (f x)
end = m (f x).
intros.
try case e.
In HoTT/coq, I get
Toplevel input, characters 19-25:
Error: Cannot instantiate metavariable P of type
"forall a : O, x = a -> Prop" with abstraction
"fun (x : O) (e : x = x) =>
match eq_sym e in (_ = y) return (T (f y) (f x)) with
| eq_refl => m (f x)
end = m (f x)" of incompatible type "forall x : O, x = x -> Prop".
which should not happen, because I wrapped the case e in a try.
The text was updated successfully, but these errors were encountered:
This code succeeds in Coq 8.4:
In HoTT/coq, I get
which should not happen, because I wrapped the
case e
in atry
.The text was updated successfully, but these errors were encountered: