Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Using vm_compute and reflexivity

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Using vm_compute and reflexivity


Chronological Thread 
  • From: Kenneth Roe <kendroe AT hotmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Using vm_compute and reflexivity
  • Date: Sat, 22 Apr 2017 17:35:11 -0400
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=kendroe AT hotmail.com; spf=SoftFail smtp.mailfrom=kendroe AT hotmail.com; spf=None smtp.helo=postmaster AT nm25-vm0.bullet.mail.ne1.yahoo.com
  • Ironport-phdr: 9a23:h1WZ5BRfmegREBXhM0wDcIi9Xtpsv+yvbD5Q0YIujvd0So/mwa69bBaN2/xhgRfzUJnB7Loc0qyN4vymATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSijewZbx/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4KBrSB/vlCcHMiQ28GDTisBpla5VoBysqh58zoLNfY2ZKud1cqfScN8GQGZMWNtaWS5cDYOmd4YBD/YOM+lXoIfgqVUOowWwCguvCu3o0TJImmb23agm3+QhDQ3L3gotFM8OvnTOq9X1Mb8fX+Wrw6nOyzXMce9W2Tfg44bUdRAuv+yHULVzccXPz0kgChnFjlKOpoH+PzOV0fgNs22B4OphUeKjkXIoqwZ0ojW2wMonl4rHhpoNx13A9ih12ps5KNO7RUJhZdOoDYFcuiOUOoduRs4vQHtktDs0x7AFo5K3YjYGxZU9yxLCZfGLb46F6Q/5WumLOzd3nndldaq/hxms9UigzfXxVs+x0FpUridJi8fMtnUR2xDJ8ceHV/99/kO/1jaTzQzT7/tLIUEwlabBLZ4u3KM8moATsEvZHi/2n0L2gLWKeUUj/+ik8+XnYrP4qZ+AL4J5jgLzPr4zlsGxAuk0KAwDU3WB9em+2rDv5Uj5T69Ljv0ynKnZqpfaJcEDq666HQBV1Jss6wy4Dzi4y9kYnX4HLE5AeB2djojpP0vCL+z/Dfe6m1isiitkx+jaPr39BZXANmTMkLD4fbpk90FczBczwstE6pJPCrABJerzVVXruNzZCB85KQ20zPz9BNVzzINNEV6IV6SeKebZtUKCzuMpOeiFIoEP6xjnLP1wxPPoi3IlmRcneqThiZgabnyiGflOI0KFZHPthpEKFmJc7Vl2d/DjlFDXCW0bXH21Ra9pumk2

This solution does not quite work. This does indeed apply vm_compute to the
?X term. However, this code will substitute the result or the existential
variable. The “reflexivity” tactic will then apply “simpl" to the original
“3+4” term. The “3+4” term needs to be evaluated exclusively by vm_compute
and nothing else.

- Ken

> On Apr 22, 2017, at 9:13 AM, Laurent Thery
> <Laurent.Thery AT inria.fr>
> wrote:
>
>
> Oops, if you really want to only use vm_compute it should be
>
> Theorem refl: exists x, x=3+4.
> Proof.
> match goal with |- exists _, _ = ?X =>
> let y := eval vm_compute in X in
> exists y; vm_cast_no_check (refl_equal y)
> end.
> Qed.
>
>
> On 04/22/2017 03:07 PM, Laurent Thery wrote:
>> On 04/22/2017 02:55 PM, Kenneth Roe wrote:
>>> Theorem refl: exists x, x=3+4.
>>> Proof.
>>> apply ex_intro.
>>> (* vm_compute. *)
>>> compute.
>>> reflexivity.
>>> Qed.
>> One way to go is to match the goal
>> Theorem refl: exists x, x=3+4.
>> Proof.
>> match goal with |- exists _, _ = ?X =>
>> let y := eval vm_compute in X in
>> exists y; reflexivity
>> end.
>> Qed.




Archive powered by MHonArc 2.6.18.

Top of Page