coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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
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
- [Coq-Club] Performance of simpl, Kenneth Roe, 04/05/2013
- Re: [Coq-Club] Performance of simpl, Adam Chlipala, 04/05/2013
- Re: [Coq-Club] Performance of simpl, Duckki Oe, 04/05/2013
- RE: [Coq-Club] Performance of simpl, Kenneth Roe, 04/05/2013
- Re: [Coq-Club] Performance of simpl, Jonas Oberhauser, 04/05/2013
- Re: [Coq-Club] Performance of simpl, Adam Chlipala, 04/05/2013
- Re: [Coq-Club] Performance of simpl, Gregory Malecha, 04/05/2013
- RE: [Coq-Club] Performance of simpl, Kenneth Roe, 04/06/2013
- Re: [Coq-Club] Performance of simpl, Arnaud Spiwack, 04/06/2013
- RE: [Coq-Club] Performance of simpl, Kenneth Roe, 04/06/2013
- Re: [Coq-Club] Performance of simpl, Thomas Braibant, 04/06/2013
- Re: [Coq-Club] Performance of simpl, Arnaud Spiwack, 04/06/2013
- RE: [Coq-Club] Performance of simpl, Kenneth Roe, 04/06/2013
Archive powered by MHonArc 2.6.18.