Skip to Content.
Sympa Menu

coq-club - [Coq-Club]Applying reduction rules to generated proofs

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club]Applying reduction rules to generated proofs


chronological Thread 
  • From: mulhern <mulhern AT gmail.com>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club]Applying reduction rules to generated proofs
  • Date: Mon, 24 Apr 2006 20:08:01 -0500
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=bwEy2rFsJxq9ahPnWfvxdus96LT6BDdwp3rZotWAFD7i5PPOJa4UScT1HR0Sq1e52KE/19BB1glDim4pkU+nL1TBczuFAJVSZstfVQSnKi7bmmaILm8fPoZKAqTxE+fOISBZAbOsjR4dRXynrqzstiWB2mXMlR2eanHKFfdlUhY=
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hi!

Suppose I have developed a proof in the normal way.

Theorem name : <goal>.
Proof.
<lots of tactics>.
Qed.

I want to apply zeta reductions to the body of the proof once it has
been generated.

Currently the way I do this is:

Print name.

Then I copy the generated output and paste it into the command.

Definition name_reduced := Eval cbv zeta in
(
  <big chunk of text goes here at the paste operation>
).

Is there any way to do this through Coq instead of by this cumbersome
and not really scalable cut and paste method?

I have tried

Definition name_reduced := Eval cbv zeta in name.

The problem with that is that I can't tell what the body of
name_reduced consists of because I cannot Print it. When I use the
Print command I just get
name_reduced
=
name : goal

My purpose in performing these reductions is to transform the proof to
one that is more readily accepted by the refine tactic.

-mulhern





Archive powered by MhonArc 2.6.16.

Top of Page