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: Laurent Thery <Laurent.Thery AT inria.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Using vm_compute and reflexivity
  • Date: Sat, 22 Apr 2017 15:07:51 +0200



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