Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club]automatically entering proof mode and inlining proofs

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club]automatically entering proof mode and inlining proofs


chronological Thread 
  • From: Thery Laurent <thery AT ns.di.univaq.it>
  • To: "Ryan J. Wisnesky" <ryan AT eecs.harvard.edu>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club]automatically entering proof mode and inlining proofs
  • Date: Tue, 27 Feb 2007 10:05:23 +0100 (CET)
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>


Hi,

A possibility is to use the refine tactic. Starting in proof mode,
giving the term value with refine and place holdeers and ending with definition in interactive mode. A little example:


Require Import ZArith.

Open Scope Z_scope.

Parameter Zdiv: forall (a b: Z), b<>0 -> Z.

Definition halft: Z.
refine (Zdiv 1 2 _).
auto with zarith.
Defined.






Archive powered by MhonArc 2.6.16.

Top of Page