| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | open Names |
| 12 | open Libnames |
| 13 | |
| 14 | type theorem_kind = |
| 15 | | Theorem |
| 16 | | Lemma |
| 17 | | Fact |
| 18 | | Remark |
| 19 | | Property |
| 20 | | Proposition |
| 21 | | Corollary |
| 22 | |
| 23 | type definition_object_kind = |
| 24 | | Definition |
| 25 | | Coercion |
| 26 | | SubClass |
| 27 | | CanonicalStructure |
| 28 | | Example |
| 29 | | Fixpoint |
| 30 | | CoFixpoint |
| 31 | | Scheme |
| 32 | | StructureComponent |
| 33 | | IdentityCoercion |
| 34 | | Instance |
| 35 | | Method |
| 36 | | Let |
| 37 | | LetContext |
| 38 | |
| 39 | type assumption_object_kind = Definitional | Logical | Conjectural | Context |
| 40 | |
| 41 | (* [assumption_kind] |
| 42 | |
| 43 | | Local | Global |
| 44 | ------------------------------------ |
| 45 | Definitional | Variable | Parameter |
| 46 | Logical | Hypothesis | Axiom |
| 47 | |
| 48 | *) |
| 49 | |
| 50 | (** Kinds used in library *) |
| 51 | |
| 52 | type logical_kind = |
| 53 | | IsPrimitive |
| 54 | | IsSymbol |
| 55 | | IsAssumption of assumption_object_kind |
| 56 | | IsDefinition of definition_object_kind |
| 57 | | IsProof of theorem_kind |
| 58 | |
| 59 | (** This module manages non-kernel informations about declarations. It |
| 60 | is either non-logical informations or logical informations that |
| 61 | have no place to be (yet) in the kernel *) |
| 62 | |
| 63 | (** Registration and access to the table of variable *) |
| 64 | |
| 65 | type variable_data = { |
| 66 | opaque:bool; |
| 67 | kind:logical_kind; |
| 68 | } |
| 69 | |
| 70 | val add_variable_data : variable -> variable_data -> unit |
| 71 | |
| 72 | (* Only used in dumpglob *) |
| 73 | val variable_secpath : variable -> qualid |
| 74 | val variable_kind : variable -> logical_kind |
| 75 | |
| 76 | (* User in Lemma, Very dubious *) |
| 77 | val variable_opacity : variable -> bool |
| 78 | |
| 79 | (* Used in declare, very dubious *) |
| 80 | val variable_exists : variable -> bool |