aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorMaxime Dénès2014-04-30 00:53:29 -0400
committerMaxime Dénès2014-04-30 00:53:29 -0400
commitd439a29f2551c6c8de753d481e8b3e26c27d248e (patch)
tree005fb5bc3eafe43102f5de0a3515e3543e9e4a41 /kernel
parent1c7756adb95a70f8d382be062cc2d68bcf37e5a9 (diff)
Trying to improve the error messages of injection.
Below are a few examples where the previous messages were misleading: Module InProp. Inductive tree : Prop := Leaf | Node : tree -> tree -> tree. Variables x y : tree. (* Wrong msg: "Nothing to do, it is an equality between convertible terms." *) (* These terms are not convertible *) Goal Node Leaf Leaf = Leaf -> False. Fail intros H; injection H. Abort. End InProp. Module InSet. Inductive tree : Set := Leaf | Node : tree -> tree -> tree. Variables x y : tree. (* Wrong msg: "Not a projectable equality but a discriminable one." *) (* This equality is both projectable and discriminable *) Goal Node x (Node Leaf Leaf) = Node Leaf Leaf -> False. intros H. Fail injection H. Abort. End InSet.
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions