Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Performance of simpl

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Performance of simpl


Chronological Thread 
  • From: Kenneth Roe <kendroe AT hotmail.com>
  • To: Coq-Club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Performance of simpl
  • Date: Fri, 5 Apr 2013 07:21:27 -0700
  • Importance: Normal

Consider the following Coq declarations:

    Fixpoint fact (x : nat) := match x with
                               | 0 => 1
                               | (S y) => (S y) * (fact y)
                               end.

    Definition z := fact 10.

    Theorem q: (fact 10)=10*(fact 9).
    Proof.
        simpl.

The definition of "z" happens very quickly.  However, the "simpl" at the very end takes a long time.  And in fact generates a "Stack overflow" error.  However, the only meaningful operation of simpl is to do an evaluation of the "fact" function.  Is there an alternative to using "simpl" that is faster?  What else can I do to speed up performance?

          - Ken



Archive powered by MHonArc 2.6.18.

Top of Page