Open ezyang opened 11 years ago
This is due to a bug in pattern-matching compilation commiting too early to a solution when checking match y with inr y' => x' = y' | _ => Empty end
It infers the return type of the match be Prop (it is typechecking the inl _ => Empty branches first, always) but that's too small for x' = y'. I have a fix in my current version I hope to push soon, but in the meantime you can force the inference by adding a [return Type] to this match and the next on [f y].
This is still open in trunk-polyproj and HoTT/coq trunk.
The following proof script checks fine when indices-matter is disabled, but gives an error when it is turned on.
The error is this:
This bug might be related to https://github.com/HoTT/coq/issues/53#issuecomment-21957726