X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Fcic_proof_checking%2FfreshNamesGenerator.ml;h=1edb35b0420656b16f728623aadfd9f4d7e29098;hb=4996fef9a745a372717fbc20bd5f0eef7a08552b;hp=5f3bfdbbd01a284190f10d6e618ed002981f8de5;hpb=730824d3dc60ff3d6d7cff3f5d11c3621eb0f552;p=helm.git diff --git a/components/cic_proof_checking/freshNamesGenerator.ml b/components/cic_proof_checking/freshNamesGenerator.ml index 5f3bfdbbd..1edb35b04 100755 --- a/components/cic_proof_checking/freshNamesGenerator.ml +++ b/components/cic_proof_checking/freshNamesGenerator.ml @@ -60,7 +60,9 @@ let rec guess_a_name context ty = | Cic.Implicit _ -> assert false | Cic.Cast (t1,t2) -> guess_a_name context t1 | Cic.Prod (na_,_,t) -> higher_name 1 t - | Cic.Lambda _ -> assert false +(* warning: on appl we should beta reduce before the recursive call + | Cic.Lambda _ -> assert false +*) | Cic.LetIn (_,s,t) -> guess_a_name context (CicSubstitution.subst ~avoid_beta_redexes:true s t) | Cic.Appl [] -> assert false | Cic.Appl (he::_) -> guess_a_name context he