diff options
| author | corbinea | 2003-03-31 11:57:52 +0000 |
|---|---|---|
| committer | corbinea | 2003-03-31 11:57:52 +0000 |
| commit | d8da8cb7b9af7df65f63af30bfa5775531426165 (patch) | |
| tree | 869c7417522fda3f075402aa44199edc20f17ad2 /contrib/interface | |
| parent | 516a349d32dde37d8382df89733662a4e1ad9576 (diff) | |
factorisation des "constant" dans les contrib/* ( maintenant dans coqlib )
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3815 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/interface')
| -rw-r--r-- | contrib/interface/pbp.ml | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/contrib/interface/pbp.ml b/contrib/interface/pbp.ml index b5d6601c66..9b1602ad41 100644 --- a/contrib/interface/pbp.ml +++ b/contrib/interface/pbp.ml @@ -222,29 +222,21 @@ let (imply_elim2: pbp_rule) = function make_clears clear_names])) | _ -> None;; -let reference dir s = - let dir = make_dirpath - (List.map id_of_string (List.rev ("Coq"::"Init"::[dir]))) in - let id = id_of_string s in - try - Nametab.absolute_reference (Libnames.make_path dir id) - with Not_found -> - anomaly ("Coqlib: cannot find "^ - (Libnames.string_of_qualid (Libnames.make_qualid dir id))) - -let constant dir s = constr_of_reference (reference dir s);; +let reference dir s = Coqlib.gen_reference "Pbp" ("Init"::dir) s + +let constant dir s = Coqlib.gen_constant "Pbp" ("Init"::dir) s let andconstr: unit -> constr = Coqlib.build_coq_and;; -let prodconstr () = constant "Datatypes" "prod";; +let prodconstr () = constant ["Datatypes"] "prod";; let exconstr = Coqlib.build_coq_ex;; -let exTconstr () = constant "Logic_Type" "exT";; -let sigconstr () = constant "Specif" "sig";; +let exTconstr () = constant ["Logic_Type"] "exT";; +let sigconstr () = constant ["Specif"] "sig";; let sigTconstr () = (Coqlib.build_sigma_type()).Coqlib.typ;; let orconstr = Coqlib.build_coq_or;; let sumboolconstr = Coqlib.build_coq_sumbool;; -let sumconstr() = constant "Datatypes" "sum";; +let sumconstr() = constant ["Datatypes"] "sum";; let notconstr = Coqlib.build_coq_not;; -let notTconstr () = constant "Logic_Type" "notT";; +let notTconstr () = constant ["Logic_Type"] "notT";; let is_matching_local a b = is_matching (pattern_of_constr a) b;; |
