]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/gTopLevel/variousTactics.ml
New: refinement is now used to disambiguate parsing.
[helm.git] / helm / gTopLevel / variousTactics.ml
index 7d074838526d76c3036f9a4bbcc300deddb6e402..604307cd35cb662b16631efb40cc16044b3d7a00 100644 (file)
@@ -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?
-
-*)