Skip to Content.
Sympa Menu

coq-club - [Coq-Club] avoid recursive expansion with simpl or cbv

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] avoid recursive expansion with simpl or cbv


Chronological Thread 
  • From: <michael.soegtrop AT intel.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] avoid recursive expansion with simpl or cbv
  • Date: Mon, 21 Oct 2013 13:48:46 +0200

Dear COQ users,

I wonder if there is a way to specify the recursion depth in simpl or cbv
tactics. E.g. in the following case:

Fixpoint even (n:nat) : Prop :=
match n with
| 0 => True
| 1 => False
| S (S p) => even p
end.

Eval simpl in even(4).

is it possible to get even(2) as answer instead of True? This is of cause a
not so interesting example, but I have a case where I want to restrict the
evaluation depth in an inductive proof, because after one evaluation I can use
the induction hypothesis to simplify the goal, but not after full recursive
evalutaion.

Thanks & best regards,

Michael



Archive powered by MHonArc 2.6.18.

Top of Page