Closed ANogin closed 6 years ago
That's an error of Coq not Equations. One cannot rewrite in a dependent product domain type like this. For example, ssreflect's rewrite rightly complains with:
Dependent type error in rewrite of (fun _pattern_value_ : Type => forall val : _pattern_value_, num (List l) val = 0)
However you can set Transparent foo_type
and use simpl
with it.
Using the recent v8.8, in the following code
foo_type (List l)
is not reduced - and if I tryrewrite foo_type_equation_1
, it fails with