Open barakmich opened 6 years ago
I have a similar issue https://github.com/idris-lang/Idris-dev/issues/4217
Thanks for reporting the issue. This does seem like a weird bug indeed.
As a workaround, consider using replace
explicitly instead of rewrite.
Out of curiosity, what would that workaround look like?
I don't know the concrete type, but usually you can replace rewrite p in e
with replace {P = \x => t x} p e
i.e., see type of replace
:
replace : (x = y) -> P x -> P y
Perform substitution in a term according to some equality.
Steps to Reproduce
Minimal code snippet reproduces:
Expected Behavior
Type check on ?t to finish the proof
Observed Behavior