Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] "Core" Coq typeclasses

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] "Core" Coq typeclasses


Chronological Thread 
  • From: "Benjamin C. Pierce" <bcpierce AT cis.upenn.edu>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] "Core" Coq typeclasses
  • Date: Wed, 28 Jun 2017 14:07:06 -0400
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=bcpierce AT cis.upenn.edu; spf=Pass smtp.mailfrom=bcpierce AT cis.upenn.edu; spf=None smtp.helo=postmaster AT fox.seas.upenn.edu
  • Ironport-phdr: 9a23:csnXkRRR44wmUiG8EwgLX0EN8dpsv+yvbD5Q0YIujvd0So/mwa69YRGN2/xhgRfzUJnB7Loc0qyN4v+mATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSijewZbF/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/33YhcJtjKxUohyvqR9xw4DKZ4+YL+Bxcr/Yfd4ARWpNQsRcWipcCY28dYsPCO8BMP5Wo4TguVQOqxm+ChOpBOPuzD9Dm2H70bcn2Oo7EAHJwhYgEM4Qv3jasd74M7wdXvytzKnJ0zrDde9Z1inm5YfUcxAhuuuAXa9occXPz0kvERnJgUuNpoz4Jj6Y0PkGvWuD7+d4SO6ii20qpxtsrjWh2ssgkIvEip8PxlzZ6yl0xJ45KcC4RUN4e9KoDZVduz2AO4drQ84vTHtktDs1x7AGv5OwYTIEx449xxHFbvyKa4iI7QznVOaWOTp4inVleb2lixap70ev0Pb8WtOp0FZSsCVFlN/MumoT2BPO98iLUvp9/kG/1jaTzw3f9+FJLEMumabGJZMt3qQ8m5gOvUjZAyP6hkH7gLeTdko+++io7+rnYq/hpp+ZL4J7kR3xMrwvmsOhG+Q3LhYBUnOH9uS9z73v51D5QK1Ugf0wlKnVqo7VKtkGpqKhGQ9azp4j6wqjDzehyNkXgX4HLEtcdB2bi4jpJkrBLevjDfa/hlSsiC1ky+rHPr3nGJXNL2LMnK3vfbZnuAZgz184yska7JZJAJkAJujyUwn/ro/2FBg8ZkaezuDlAdB80Ms1Hyq3A6KDO66Y+QuC7fouLvOHaaceuS27NuAo4fiogHMkzwxONZK11IcaPSjrVs9tJF+UNCLh

(Sorry — the examples you were talking about were about the other issue.  I’m also interested in those, though!)

  - B

On Jun 19, 2017, at 11:23 AM, Soegtrop, Michael <michael.soegtrop AT intel.com> wrote:

What I had most problems with initially is that some type classes have implicit parameters. This works quite well when the nesting level of these parameters is small, but when the nesting of parameters gets deeper one can have the issue that unification takes long, that error messages are hard to understand and that later in a proof one might require certain relations between different parameters of a type class which are not explicit when the initial resolution was done and that an instance is chosen which is not compatible with these requirements, although there is one which would be compatible. The solution is typically to explicitly specify some of the implicit parameters, especially their relation to each other. Another advantage of stating certain things explicitly is that it is easier to understand what actually happens. Let me see if I can find a few examples.





Archive powered by MHonArc 2.6.18.

Top of Page