coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Samuel Gruetter <gruetter AT mit.edu>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport
- Date: Fri, 15 Nov 2019 23:01:24 +0000
- Accept-language: en-US
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=gruetter AT mit.edu; spf=Pass smtp.mailfrom=gruetter AT mit.edu; spf=None smtp.helo=postmaster AT outgoing-exchange-3.mit.edu
- Ironport-phdr: 9a23:p6UmYRR4ltN3TrkE/aDkKwdKZdpsv+yvbD5Q0YIujvd0So/mwa69YhyN2/xhgRfzUJnB7Loc0qyK6vumADdeqs7b+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe7x/IAi4oAnLq8Ubj4pvJqktxhfXv3BFZ/lYyWR0KFyJgh3y/N2w/Jlt8yRRv/Iu6ctNWrjkcqo7ULJVEi0oP3g668P3uxbDSxCP5mYHXWUNjhVIGQnF4wrkUZr3ryD3q/By2CiePc3xULA0RTGv5LplRRP0lCsKMSMy/WfKgcJyka1bugqsqRxhzYDJfIGbOvlwfq3fctMbWWVPUcleWjddAoyndYYDE/YNMfpaooT7ulAArQG+BQ6pBO731zFHnHr23bAk3OQlDArI3RYgH88Qv3TIsNX6Kr0SWv2ywanH1zXDcu1Z2Svh6IfWaBAsuvSMXbNsccbL10YgCh7Fg0yWpIf4PD2VzvwAv3WY4uZ6Ue+jkXArpgJrrjSyyMogkpTFipwWx1ze+yh13Jw5KcCkREJhfNKoDppduzmHO4Z1WM8vR3tktSkgxrEbpJK2cy4Hw4k9yRHFcfyIaY2I7wrjVOmPJTd4g2poeLWihxau/kigzez8Vs+70FpTsCVEncXDtnAX2BzV5ciIVOJx80m71TaK1gDT9vtILl4pmqrGM5Ihw7gwmYQPsUnbAyP7m1/6gauMekk6+eWk8fnrb7v+qp+ZLYB0iwX+Mqo0msy4BOQ1KgcOX3KG+euiyL3j4VP2QK9Rg/0zk6nZrIrWKtoGqa6kGwNVyJos6w6jDze619QVhWUILFVceB6ek4fpP0zOL+vjAPekg1WslS9ryOrcMr3gBJXNNHnDn637cbZz8U4PgDY0mJpU4IsRAbUcKtryXFXwvZrWFFVxZwez2qPsDMh3/oIYQ2OGRKGDZvD8q1iNs9kmJvSBYMc6oivwN+Qo/ba6gmUklEMBcLOB2JoLLn20A6I1cA2ifXPwj4JZQi8xtQ0kQbmy0QDQYXtof3+3GpkEyHQ7BYahV9aRQZ2xj7uA2ij+E41dZmlABV3JSjHtdpnCVvsROnrLfp1R1wccXL3kcLcPkAm0vV6ozrt7aOfY539A7MOx5J1O/+TW0CoK23lxBsWZ3XuKSjAmm2IUATI6wfImrA==
On Fri, 2019-11-15 at 23:13 +0100, Gaëtan Gilbert wrote:
> probably one side uses a primitive projection and the other uses the
> compatibility constant
> or both sides use the primitive projection but one is considered
> "unfolded" and the other isn't
If that's indeed the source of the problem, you're in trouble Dan :(
In bedrock2, we had to disable primitive projections because of this, but
that comes at a cost...
>
>
> Gaëtan Gilbert
>
> On 15/11/2019 23:05, Dan Christensen wrote:
> > I have attached a trimmed file that shows what might be a bug
> > in constr_eq. It's still 67 lines long and relies on the HoTT
> > library (tested with version b20bb57373928 from Oct 30).
> >
> > With this trimmed version, it's no longer true that renaming
> > the bound variable makes the problem go away, so it's not as
> > air tight a bug report as I wanted, but the file is much smaller.
> >
> > Any comments before I try submitting a bug report?
> >
> > Dan
> >
> > On Nov 15, 2019, Dan Christensen
> > <jdc AT uwo.ca>
> > wrote:
> >
> > > It's constr_eq that is failing on the two terms that only differ in the
> > > name of a bound variable. If I use the change tactic to rename the
> > > bound variable x to anything else, everything works. I'll work on
> > > trying to find a simpler reproducible example.
> > >
> > > So, except for this probable bug in Coq, the syntactic_unify approach
> > > is
> > > working very well for my use cases.
> > >
> > > Dan
> > >
> > > On Nov 14, 2019, Dan Christensen
> > > <jdc AT uwo.ca>
> > > wrote:
> > >
> > > > 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?
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, (continued)
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, Clément Pit-Claudel, 11/13/2019
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, Dan Christensen, 11/13/2019
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, Clément Pit-Claudel, 11/13/2019
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, Dan Christensen, 11/13/2019
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, Dan Christensen, 11/14/2019
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, Jason Gross, 11/14/2019
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, Dan Christensen, 11/15/2019
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, Dan Christensen, 11/15/2019
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, Dan Christensen, 11/15/2019
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, Gaëtan Gilbert, 11/15/2019
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, Samuel Gruetter, 11/16/2019
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, Dan Christensen, 11/16/2019
- Re: [Coq-Club] rewriting in an equality without eq_ind_r / transport, Samuel Gruetter, 11/13/2019
Archive powered by MHonArc 2.6.18.