X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_proof_checking%2FcicSubstitution.ml;h=a4ca7b5cda395a3ec2923e7c263d52efc21a7777;hb=40ee1eafdc2e61e9dece39642474a64fc9ce8be5;hp=28dbe24e3f40cb73964d86cbf1896fc67d8929e5;hpb=5a92117eeff70048d29e91ba24e113155d956e1b;p=helm.git diff --git a/helm/ocaml/cic_proof_checking/cicSubstitution.ml b/helm/ocaml/cic_proof_checking/cicSubstitution.ml index 28dbe24e3..a4ca7b5cd 100644 --- a/helm/ocaml/cic_proof_checking/cicSubstitution.ml +++ b/helm/ocaml/cic_proof_checking/cicSubstitution.ml @@ -65,7 +65,10 @@ let lift n = in C.CoFix (i, liftedfl) in - liftaux 1 + if n = 0 then + (function t -> t) + else + liftaux 1 ;; let subst arg =