Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport


Chronological Thread 
  • From: Dan Christensen <jdc AT uwo.ca>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport
  • Date: Thu, 14 Nov 2019 22:27:31 -0500
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=Neutral smtp.pra=jdc AT uwo.ca; spf=None smtp.mailfrom=gsmlcc-coq-club AT m.gmane.org; spf=None smtp.helo=postmaster AT blaine.gmane.org
  • Cancel-lock: sha1:Qjhb+cNWpQrnMO1eOl4GpFPb9rk=
  • Ironport-phdr: 9a23:Zkv70xfvJNm/kPxjIi1b5d0slGMj4u6mDksu8pMizoh2WeGdxcu5ZB7h7PlgxGXEQZ/co6odzbaP6Oa5AjBLvMjJmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanbr5+MRu7oR/MusQYjoZuJaY8xxrUqXZUZupawn9lK0iOlBjm/Mew+5Bj8yVUu/0/8sNLTLv3caclQ7FGFToqK2866tHluhnFVguP+2ATUn4KnRpSAgjK9w/1U5HsuSbnrOV92S2aPcrrTbAoXDmp8qlmRAP0hCoBKjU09nzchM5tg6JBuB+vuRxxzZPabo+WOvpxcb/Sct0BSGpdQspcTTBNDp+mYocTCecKIOZWr5P6p1sLtRawCxOjBOXywTJWhn/2x6w60/89EQ7Y2gwgBMwBsHLJp9jyNqcdTPy6wbLVzTTNaPNawyvy55LRfx0nvPqCU7Vwcc/LxkkuEQPIllqQqY35PzOVy+QCqHKX4PZnVeKqjWMstgJ/oiC3y8sxjoTEhpgZxk3E+Ch92oo5ON+1RU9hbdK6DpddtieXPJZsTMw4WWFnoiM6x6UGuZGleCgKz4wqyAXba/OdcoiI5AzsWPyeITd9nn1lfqywiwy18Ui6xe3wTsi00FBUoSpZitTAq3QA2hzJ5sSaSvZw+l2t1SuN2g3S8O1IP144mKvDJ54k2LEwl54TsUrZHi/xnUX7lKCWdl4h+uis9+vofqzqqYObN49tkw3xLqAumtGkDukjNwgCRWeb+eGm273l40L1WrJKjuc5kqXBqpDVOdwbprKlAw9Syoss9xG/Dy6/3NsEmXkHMUlKdQmcj4npPlHOOOr3Ae2+g1SqijdrxurJMqfvApXXfTD/l+Lqeq844EpBwiIyy8pe7tRaEOIvOvX2D2P4spTzDgU4KBC5xf3qDp0p1I8VcX+QBemSOfWB4hez+uszLrzUN8cuszHnJq19vqO8vToCgVYYOJKR894XZXS/R6Q0KUGQYHzhxNgEGGEH+A0kQ76y0QzQYXtof3+3GpkEyHQ+AYOiA53EQ9n20rnH0yKyGJAQYXpJWAjVTSXYMr6cUvJJUxq8Z9d7m2xWSKemDYQoh0uj
  • Mail-copies-to: never

On Nov 14, 2019, Dan Christensen
<jdc AT uwo.ca>
wrote:

> On Nov 13, 2019, Samuel Gruetter
> <gruetter AT mit.edu>
> wrote:
>
>> https://github.com/mit-plv/coqutil/blob/master/src/coqutil/Tactics/syntactic_unify.v
>
> I tried the syntactic_unify tactic from there, and it worked better
> than the set method in some simple situations. But unfortunately
> syntactic_unify failed to unify some terms that look easy to unify.

I adding some idtac printing to _syntactic_unify, add see that in a
recursive call it gets passed the two terms

(fun x : X => @smin X Y (x, @point Y (ispointed_type Y)))
(fun a : X => @smin X Y (a, @point Y (ispointed_type Y)))

and fails to unify them in the last clause. But I can't reproduce this
in isolation. Whenever I try to trim things down, the problem goes away.

Here they are with universes:

(fun x : X => @smin@{smash.10422 smash.10423} X Y (x, @point@{smash.10423} Y
(ispointed_type@{smash.10423} Y)))
(fun a : X => @smin@{smash.10422 smash.10423} X Y (a, @point@{smash.10423} Y
(ispointed_type@{smash.10423} Y)))

Is there some information idtac wouldn't show that could still prevent
unification?

On Nov 14, 2019, Jason Gross
<jasongross9 AT gmail.com>
wrote:

> If the built-in unify fails on those terms, that sounds like a bug in
> Coq worth reporting. If you want to extract a stand-alone example, you
> can use my bug minimizer:
> https://github.com/JasonGross/coq-tools/blob/master/README.md#coq-bug-minimizer

That is a really amazing program! But it still left a pretty
complicated development, so I think I'll need to experiment more before
filing a bug report.

Dan




Archive powered by MHonArc 2.6.18.

Top of Page