From: Claudio Sacerdoti Coen Date: Thu, 23 Feb 2006 13:13:04 +0000 (+0000) Subject: During simplify, reduction of the argument of a Fix and of a MutCase is now X-Git-Tag: 0.4.95@7852~1631 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=2f4481184300cd4ffd3072555872f369ec8a008e;p=helm.git During simplify, reduction of the argument of a Fix and of a MutCase is now performed using simplify. (It used to be performed by whd). Pros: sometimes you should get simpler terms (but not so far) Cons: sometimes simplification could simplify less than expected (but not so far) --- diff --git a/components/tactics/proofEngineReduction.ml b/components/tactics/proofEngineReduction.ml index 1502b600f..db25ae575 100644 --- a/components/tactics/proofEngineReduction.ml +++ b/components/tactics/proofEngineReduction.ml @@ -701,7 +701,7 @@ let simpl context = reduceaux context tl' body' | t -> t in - (match decofix (CicReduction.whd context term) with + (match decofix (reduceaux context [] term) (*(CicReduction.whd context term)*) with C.MutConstruct (_,_,j,_) -> reduceaux context l (List.nth pl (j-1)) | C.Appl (C.MutConstruct (_,_,j,_) :: tl) -> let (arity, r) = @@ -814,7 +814,7 @@ let simpl context = with _ -> raise AlreadySimplified in - (match CicReduction.whd context recparam with + (match reduceaux context [] recparam (*CicReduction.whd context recparam*) with C.MutConstruct _ | C.Appl ((C.MutConstruct _)::_) -> let body' =