X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FgTopLevel%2FvariousTactics.ml;h=604307cd35cb662b16631efb40cc16044b3d7a00;hb=3fcde61beded58d18775c13906b9741ba4735864;hp=7d074838526d76c3036f9a4bbcc300deddb6e402;hpb=52e8395bd1cf23f6bad6be55b406a526ecf3ac11;p=helm.git diff --git a/helm/gTopLevel/variousTactics.ml b/helm/gTopLevel/variousTactics.ml index 7d0748385..604307cd3 100644 --- a/helm/gTopLevel/variousTactics.ml +++ b/helm/gTopLevel/variousTactics.ml @@ -65,6 +65,9 @@ let assumption_tac ~status:(proof,goal)= (* ANCORA DA DEBUGGARE *) +(* serve una funzione che cerchi nel ty dal basso a partire da term, i lambda +e li aggiunga nel context, poi si conta la lunghezza di questo nuovo +contesto e si lifta *) let generalize_tac ~term ~status:((proof,goal) as status) = let module C = Cic in let module P = PrimitiveTactics in @@ -74,15 +77,15 @@ let generalize_tac ~term ~status:((proof,goal) as status) = T.thens ~start:(P.cut_tac ~term:( - C.Prod ( - (C.Name "dummy_for_gen")), - (CicTypeChecker.type_of_aux' metasenv context term)), + C.Prod( + (C.Name "dummy_for_gen"), + (CicTypeChecker.type_of_aux' metasenv context term), (ProofEngineReduction.replace_lifting_csc 1 ~equality:(==) ~what:term ~with_what:(C.Rel 1) (* C.Name "dummy_for_gen" *) ~where:ty) - ) + ))) ~continuations: [(P.apply_tac ~term:(C.Rel 1)) ; T.id_tac] ~status ;; @@ -112,10 +115,3 @@ let compare_tac ~term1 ~term2 ~status:((proof, goal) as status) = ;; *) - - -(*** DOMANDE *** - -- field, omega... come ring? - -*)