coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Vadim Zaliva <vzaliva AT cmu.edu>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] obligations
- Date: Mon, 9 May 2016 18:12:24 -0700
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=vadim.zaliva AT west.cmu.edu; spf=Pass smtp.mailfrom=vadim.zaliva AT west.cmu.edu; spf=None smtp.helo=postmaster AT mail-wm0-f52.google.com
- Ironport-phdr: 9a23:AqQ/zBLgRYNIcgSBp9mcpTZWNBhigK39O0sv0rFitYgUKf3xwZ3uMQTl6Ol3ixeRBMOAu6MC0rGd7/6ocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC3oLujKvupdX6WEZhunmUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD86Fpy8kVWqLjOq88ULZwDTI8Mmlz6te4mwPESF6x73cdVy0kmx5JHQGNuA/oV5PwrCLSve9gniSWIJulHvgPRT2+4vIzG1fTgyAdOmth/Q==
On Mon, May 9, 2016 at 5:38 PM, Daniel Schepler <dschepler AT gmail.com> wrote:
My guess would be you need "Obligation Tactic := program_simpl; ring."
That would have it perform the same simplifications that "Next
Obligation." performs before showing you the problem.
Thanks! I did not realize that "Next Obligation" performs simplification.
Your suggestion solved the problem. However I am stumbled at another one, illustrated by the following example:
Require Coq.Program.Tactics.
Record Matrix (m n : nat).
Definition kp {m n p q: nat} (A: Matrix m n) (B: Matrix p q):
Matrix (m*p) (n*q). Admitted.
Program Fact kp_assoc
(xr xc yr yc zr zc: nat)
(x: Matrix xr xc) (y: Matrix yr yc) (z: Matrix zr zc):
kp x (kp y z) = kp (kp x y) z.
Under Coq-8.4 it generates obligations which I could try to solve. However under Coq-8.5 it just gives me the following error:
Error: Cannot infer this placeholder of type
"xr * yr * zr = xr * (yr * zr)" in environment:
xr, xc, yr, yc, zr, zc : nat
x : Matrix xr xc
y : Matrix yr yc
z : Matrix zr zc
Any suggestions?
--
CMU ECE PhD candidate
Mobile: +1(510)220-1060
- [Coq-Club] obligations, Vadim Zaliva, 05/10/2016
- Re: [Coq-Club] obligations, Matthieu Sozeau, 05/10/2016
- Re: [Coq-Club] obligations, Daniel Schepler, 05/10/2016
- Re: [Coq-Club] obligations, Vadim Zaliva, 05/10/2016
- Re: [Coq-Club] obligations, Vadim Zaliva, 05/10/2016
- Re: [Coq-Club] obligations, Matthieu Sozeau, 05/10/2016
- Re: [Coq-Club] obligations, Vadim Zaliva, 05/11/2016
- Re: [Coq-Club] obligations, Vadim Zaliva, 05/12/2016
- Re: [Coq-Club] obligations, Matthieu Sozeau, 05/12/2016
- Re: [Coq-Club] obligations, Vadim Zaliva, 05/12/2016
- Re: [Coq-Club] obligations, Vadim Zaliva, 05/11/2016
- Re: [Coq-Club] obligations, Matthieu Sozeau, 05/10/2016
- Re: [Coq-Club] obligations, Vadim Zaliva, 05/10/2016
- Re: [Coq-Club] obligations, Vadim Zaliva, 05/10/2016
Archive powered by MHonArc 2.6.18.