From fbb6f2faab29ca3b851b2c710a76b785a8430a89 Mon Sep 17 00:00:00 2001 From: gregoire Date: Tue, 6 Dec 2005 08:56:29 +0000 Subject: j'avais oublie ces deux fichiers. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7642 85f007b7-540e-0410-9357-904b9bb8a0f7 --- kernel/pre_env.ml | 146 +++++++++++++++++++++++++++++++++++++++++++++++++++++ kernel/pre_env.mli | 86 +++++++++++++++++++++++++++++++ 2 files changed, 232 insertions(+) create mode 100644 kernel/pre_env.ml create mode 100644 kernel/pre_env.mli diff --git a/kernel/pre_env.ml b/kernel/pre_env.ml new file mode 100644 index 000000000..4b04a8862 --- /dev/null +++ b/kernel/pre_env.ml @@ -0,0 +1,146 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* id = id') env.env_named_vals) + +(* Warning all the names should be different *) +let env_of_named id env = env + +(* Global constants *) + +let lookup_constant_key kn env = + Cmap.find kn env.env_globals.env_constants + +let lookup_constant kn env = + fst (Cmap.find kn env.env_globals.env_constants) + +(* Mutual Inductives *) +let lookup_mind kn env = + KNmap.find kn env.env_globals.env_inductives diff --git a/kernel/pre_env.mli b/kernel/pre_env.mli new file mode 100644 index 000000000..d1250331c --- /dev/null +++ b/kernel/pre_env.mli @@ -0,0 +1,86 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(*