\func DepPath {X : \Type} {x x' : X} {Y : X -> \Type} (p : x = x') (y : Y x) (y' : Y x'): \Type
| idp, y, y' => y = y' \where {
\func pe (p : x = x') (y : Y x) (y' : Y x'): Path (\lam i => Y (p @ i)) y y' = DepPath p y y' \elim p
| idp => idp
}
reports erros in pe definition on multiple "cannot resolve reference"
while this works
\func DepPath {X : \Type} {x x' : X} {Y : X -> \Type} (p : x = x') (y : Y x) (y' : Y x'): \Type \elim p
| idp => y = y' \where {
\func pe (p : x = x') (y : Y x) (y' : Y x'): Path (\lam i => Y (p @ i)) y y' = DepPath p y y' \elim p
| idp => idp
}
E.g. this code
reports erros in
pe
definition on multiple "cannot resolve reference" while this works