Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Typeclass confusions

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Typeclass confusions


Chronological Thread 
  • From: Gaetan Gilbert <gaetan.gilbert AT ens-lyon.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Typeclass confusions
  • Date: Sat, 24 Jun 2017 17:23:12 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=gaetan.gilbert AT ens-lyon.fr; spf=Neutral smtp.mailfrom=gaetan.gilbert AT ens-lyon.fr; spf=None smtp.helo=postmaster AT labbe.ens-lyon.fr
  • Ironport-phdr: 9a23:yQyuihHMH/HVFvE03xDbPZ1GYnF86YWxBRYc798ds5kLTJ78osmwAkXT6L1XgUPTWs2DsrQf2rWQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbQhFgDiwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KOSMn/mHZisJ+j6xVrxyuqBN934Hab5qYNOZ9c67HYd8WWWRMU8RXWidcAo28dYwPD+8ZMOhZtYbyuUcOogG4BQKxBe3vyztIiWTo0q0gz+QqDAbL3AM6EN0QrHTbttP1OL0dUeC0yKnH1ivMb+lK2Trm9ofIdAshreiIXbNwdsrRz1MjFw3fjliJr4HuIjCb1vwVvmSG4OdsSfijhmwlpg1rvzSix8UhhpPXio4L1FzI7SR0zJgvKdGlVEJ3f8SoHIZfuiyZLYd6X8EvTm9utS0n0LMJo4S7czIPyJk/xx7QdfiHc4+Q7xLnTumeOix3i2x/dL2hgRay6lGsyun8V8mz1lZGtCRFksPUunAM0Rzc9NSHR+Ng8kquxTqDzQLe5+NeLUwplKfWKYQtzqAumpYNqUjDGzX5mETyjK+YbEUk/e2o5vzoYrr8uJCcK5V7igfkPqQhm8y/Bf83PRYUX2iH4umzyrvj/VbgTLVOjvw2la/ZvIrUJcQBvqK5GRNa0p4/6xajCDeryMgXnX4eLF5cZB2Hi5XpNErVLfDjDfa/hkysny1xy/DHOL3hGJTNIWLZnLfvZ7Yuo3JbnQE01JVU449eIrAHOvP6HEHr5/LCCRpsHAW53+/hQPp80okTQ37HVqCQPb/btxmH5+YlLvOQTIITo3P5Ov8jofD02yxq0WQBdLWkiMNEIEuzGe5rdh2U

You mean the error gotten by reverting a7ea32fbf3829d1ce39ce9cc24b71791727090c5 is in this case better?

Gaëtan Gilbert

On 24/06/2017 16:55, Emilio Jesús Gallego Arias wrote:
Gaetan Gilbert
<gaetan.gilbert AT ens-lyon.fr>
writes:

Why is the error

Error:
The term "Bool.eqb_prop" has type
"forall (a b : bool) (_ : @eq bool (Bool.eqb a b) true), @eq bool a b"
while it is expected to have type
"forall (x y : bool) (_ : @eq bool (@eqb bool ?e x y) true), @eq bool
x y".

though? I don't see a nat in there.
Gaëtan, this is likely due to the use of the wrong evar map in

let inh_conv_coerce_to_gen ?loc resolve_tc rigidonly env evd cj t =

if you change:

error_actual_type ?loc env best_failed_evd cj t e
to
error_actual_type ?loc env _evd cj t e

in the "saturate_evd" case (the responsible of triggering TC resolution
here) you should see the right error message.

I think this is a bug indeed.

E.




Archive powered by MHonArc 2.6.18.

Top of Page