diff options
author | 2002-08-02 17:17:42 +0000 | |
---|---|---|
committer | 2002-08-02 17:17:42 +0000 | |
commit | 12965209478bd99dfbe57f07d5b525e51b903f22 (patch) | |
tree | 36a7f5e4802cd321caf02fed0be8349100be09fb /contrib/romega | |
parent | 8b26fd6ba739d4f49fae99ed764b086022e44b50 (diff) |
Modules dans COQ\!\!\!\!
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2957 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/romega')
-rw-r--r-- | contrib/romega/const_omega.ml | 18 | ||||
-rw-r--r-- | contrib/romega/refl_omega.ml | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/contrib/romega/const_omega.ml b/contrib/romega/const_omega.ml index 76a6bdf52..42b61a150 100644 --- a/contrib/romega/const_omega.ml +++ b/contrib/romega/const_omega.ml @@ -17,19 +17,19 @@ type result = let destructurate t = let c, args = Term.decompose_app t in - let env = Global.env() in +(* let env = Global.env() in*) match Term.kind_of_term c, args with | Term.Const sp, args -> Kapp (Names.string_of_id - (Termops.id_of_global env (Nametab.ConstRef sp)), + (Nametab.id_of_global None (Libnames.ConstRef sp)), args) | Term.Construct csp , args -> Kapp (Names.string_of_id - (Termops.id_of_global env (Nametab.ConstructRef csp)), + (Nametab.id_of_global None (Libnames.ConstructRef csp)), args) | Term.Ind isp, args -> Kapp (Names.string_of_id - (Termops.id_of_global env (Nametab.IndRef isp)),args) + (Nametab.id_of_global None (Libnames.IndRef isp)),args) | Term.Var id,[] -> Kvar(Names.string_of_id id) | Term.Prod (Names.Anonymous,typ,body), [] -> Kimp(typ,body) | Term.Prod (Names.Name _,_,_),[] -> @@ -42,12 +42,12 @@ let dest_const_apply t = let f,args = Term.decompose_app t in let ref = match Term.kind_of_term f with - | Term.Const sp -> Nametab.ConstRef sp - | Term.Construct csp -> Nametab.ConstructRef csp - | Term.Ind isp -> Nametab.IndRef isp + | Term.Const sp -> Libnames.ConstRef sp + | Term.Construct csp -> Libnames.ConstructRef csp + | Term.Ind isp -> Libnames.IndRef isp | _ -> raise Destruct in - Termops.id_of_global (Global.env()) ref, args + Nametab.id_of_global None ref, args let recognize_number t = let rec loop t = @@ -65,7 +65,7 @@ let recognize_number t = let constant dir s = try Declare.global_absolute_reference - (Names.make_path + (Libnames.make_path (Names.make_dirpath (List.map Names.id_of_string (List.rev dir))) (Names.id_of_string s)) with e -> print_endline (String.concat "." dir); print_endline s; diff --git a/contrib/romega/refl_omega.ml b/contrib/romega/refl_omega.ml index f87f3db96..e6e7074aa 100644 --- a/contrib/romega/refl_omega.ml +++ b/contrib/romega/refl_omega.ml @@ -818,7 +818,7 @@ let destructure_hyps gl = loop (pf_ids_of_hyps gl) (pf_hyps gl) gl let omega_solver gl = - Library.check_required_module ["Coq";"romega";"ROmega"]; + Library.check_required_library ["Coq";"romega";"ROmega"]; let concl = pf_concl gl in let rec loop t = match destructurate t with |