Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] field_simplify for radicals

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] field_simplify for radicals


Chronological Thread 
  • From: Robert R <rxtreme AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] field_simplify for radicals
  • Date: Thu, 6 Jun 2019 13:07:20 -0400
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=rxtreme AT gmail.com; spf=Pass smtp.mailfrom=rxtreme AT gmail.com; spf=None smtp.helo=postmaster AT mail-lj1-f177.google.com
  • Ironport-phdr: 9a23:JFMRThJSKRaQS1CrsNmcpTZWNBhigK39O0sv0rFitYgQIvvxwZ3uMQTl6Ol3ixeRBMOHsqsC0raK+Pm4CSQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTagfL9+Ngi6oAreu8UZnIduNqU8wQbVr3VVfOhb2XlmLk+JkRbm4cew8p9j8yBOtP8k6sVNT6b0cbkmQLJBFDgpPHw768PttRnYUAuA/WAcXXkMkhpJGAfK8hf3VYrsvyTgt+p93C6aPdDqTb0xRD+v4btnRAPuhSwaMTMy7WPZhdFqjK9Drx2hqR5wzY7abo+WKfRwYL/ScMgASmZdRMtcTTBNDp++YoYJEuEPPfxYr474p1YWsRW+AhKjC/31yj9Um3T4wbAx3uM7EQDJwAwgBcwBsHHKo9juO6cSVPq6zKjMzTnZc/xW3jL95ZHOfxs8ov+MRap9fdTNxUQrDQ/IjVWdpZb7Mz+J1ekBqXWX4uhiWO+plmUpsRt+oiK1yccpkoTJhpwaylTD9ShhxYY6P9y4SEpibd6gEptcqjiWN4VrTs4gQWxkoik6yroBuZ60eCgF1o4ryALYa/yCa4SI4xTjW/iNITpgmn5pZLayiwyx/EWg0OHwSNW43VVQoiZYkNTBtGgB1xnJ5ciGTvt98F2h2TGK1w3L8OFFLlw0lbDFJJ4k3LE9jZUTsUHZES/3nEX6lrOZdkIh+uSw8eTofq3mpoOAN49zkgzxLqMumtWmDeskNggOQnOU9P+n1Lzj+E35WK9Fguc3kqnfqpDaJN4UqrS3Aw9Pgc4f7EO0CC7j29AFl1EGKkhEcVSJldvHIVbLdcr/B/qlnxyW2GNx1+zcM7jsKprIJ3nH1rzmeOAuuAZn1AMvwIUHtNpvAbYbLaerAxKjhJnjFhY8djeM7aPnBdF6jN1MXGuOBuqdMvqXvwbXuaQgJO6DYIJTszH4eaB8u6zeyEQhkFpYRpGHmIMNYSnhTPtjKkSdJ3Hrh4VZSDZYjk8FVOXvzWa6f3tWbne2Ubg742hiWo2jBIbHAIuqhe7Y0Q==

But doesn't it know that /y = x by my second hint? It's not clear to me if I'd need to keep adding more hints specific to the equation, or if there's some sufficient subset for raising with multiplication and division of sqrt2. 

On Thu, Jun 6, 2019, 12:56 PM Laurent Thery <Laurent.Thery AT inria.fr> wrote:


On 6/6/19 6:36 PM, Robert Rand wrote:
>
> Any idea what's going on with field_simplify_eq and if there's anything
> I can do besides wrap it in a repeat? (And likewise for field, with the
> alternative being said repeat followed by `field`.)

Ok the field works by abstracting away the goal
things that it does not know becomes variables:
in your example : sqrt(2) becomes x and sqrt(/2) becomes y
so it is missing that x * y = 1

If you add it it works.

Lemma test : 1 / √ 2 - / √ (/ 2) * (/ 2 * 1)  = 0.
Proof.
intros.
assert (H : 0 <= 2) by admit.
assert (H2 : sqrt 2 * sqrt (/ 2) = 1) by admit.
field [(pow2_sqrt _ H) H2].
Qed.






Archive powered by MHonArc 2.6.18.

Top of Page