If we replace the B type parameter in Reveal with a dependent version (say, A -> \Type), it won't the inferred in inspect.
So, the following code will cause an error:
\record Reveal {A : \Type} {B : A -> \Type} (f : \Pi (a : A) -> B a) (x : A) (y : B)
| eq : f x = y
\func inspect {A : \Type} {B : A -> \Type} (f : \Pi (a : A) -> B a) : Reveal f x (f x) \cowith
| eq => idp
Suppose we have the code example in #242.
If we replace the
B
type parameter inReveal
with a dependent version (say,A -> \Type
), it won't the inferred ininspect
. So, the following code will cause an error: