diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2002-11-05 16:59:16 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2002-11-05 16:59:16 +0000 |
commit | 1f95f087d79d6c2c79012921ce68553caf20b090 (patch) | |
tree | 0b5d436b567148e5f5d74531f2324f47bfcaca52 /library/decl_kinds.ml | |
parent | 3667473c47297bb4b5adddf99b58b0000da729e6 (diff) |
Intégration des modifs de la branche mowgli :
- Simplification de strength qui est maintenant un simple drapeau Local/Global.
- Export des catégories de déclarations (Lemma/Theorem/Definition/.../
Axiom/Parameter/..) vers les .vo (nouveau fichier library/decl_kinds.ml).
- Export des variables de section initialement associées à une déclaration
(nouveau fichier library/dischargedhypsmap.ml).
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3212 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/decl_kinds.ml')
-rw-r--r-- | library/decl_kinds.ml | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/library/decl_kinds.ml b/library/decl_kinds.ml new file mode 100644 index 000000000..566da65d6 --- /dev/null +++ b/library/decl_kinds.ml @@ -0,0 +1,67 @@ +(***********************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* <O___,, * INRIA-Rocquencourt & LRI-CNRS-Orsay *) +(* \VV/ *************************************************************) +(* // * This file is distributed under the terms of the *) +(* * GNU Lesser General Public License Version 2.1 *) +(***********************************************************************) + +(* $Id$ *) + +(* Informal mathematical status of declarations *) + +(* Kinds used at parsing time *) + +type theorem_kind = + | Theorem + | Lemma + | Fact + | Remark + +type locality_flag = (*bool (* local = true; global = false *)*) + | Local + | Global + +type strength = locality_flag (* For compatibility *) + +type type_as_formula_kind = Definitional | Logical + +(* [assumption_kind] + + | Local | Global + ------------------------------------ + Definitional | Variable | Parameter + Logical | Hypothesis | Axiom +*) +type assumption_kind = locality_flag * type_as_formula_kind + +type definition_kind = locality_flag + +(* Kinds used in proofs *) + +type global_goal_kind = + | DefinitionBody + | Proof of theorem_kind + +type goal_kind = + | IsGlobal of global_goal_kind + | IsLocal + +(* Kinds used in library *) + +type local_theorem_kind = LocalStatement + +type 'a mathematical_kind = + | IsAssumption of type_as_formula_kind + | IsDefinition + | IsProof of 'a + +type global_kind = theorem_kind mathematical_kind +type local_kind = local_theorem_kind mathematical_kind + +(* Utils *) + +let theorem_kind_of_goal_kind = function + | DefinitionBody -> IsDefinition + | Proof s -> IsProof s + |