]> matita.cs.unibo.it Git - helm.git/commitdiff
add to the ids_to_father_ids table entries from hypothesis roots to hypothesis ids
authorStefano Zacchiroli <zack@upsilon.cc>
Mon, 12 Dec 2005 15:58:46 +0000 (15:58 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Mon, 12 Dec 2005 15:58:46 +0000 (15:58 +0000)
helm/ocaml/cic_acic/cic2acic.ml

index 1943616226aa19005b0031cf4f86a8c649b72b8f..79d9bd0da960bb21916897b44b89a080885bbb9a 100644 (file)
@@ -400,10 +400,14 @@ let aconjecture_of_conjecture seed ids_to_terms ids_to_father_ids
            match binding with
                Some (n,Cic.Def (t,_)) ->
                  let acic = acic_of_cic_context ~computeinnertypes context idrefs t None in
+                 Hashtbl.replace ids_to_father_ids (CicUtil.id_of_annterm acic)
+                  (Some hid);
                  (binding::context),
                    ((hid,Some (n,Cic.ADef acic))::acontext),(hid::idrefs)
              | Some (n,Cic.Decl t) ->
                  let acic = acic_of_cic_context ~computeinnertypes context idrefs t None in
+                 Hashtbl.replace ids_to_father_ids (CicUtil.id_of_annterm acic)
+                  (Some hid);
                  (binding::context),
                    ((hid,Some (n,Cic.ADecl acic))::acontext),(hid::idrefs)
              | None ->