| 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 | (** We can take advantage of non-cumulativity of SProp to avoid fully |
| 12 | retyping terms when we just want to know if they inhabit some |
| 13 | proof-irrelevant type. *) |
| 14 | |
| 15 | val relevance_of_term : Environ.env -> Constr.constr -> Sorts.relevance |
| 16 | |
| 17 | (** Helpers *) |
| 18 | open Names |
| 19 | val relevance_of_rel : Environ.env -> int -> Sorts.relevance |
| 20 | val relevance_of_var : Environ.env -> Id.t -> Sorts.relevance |
| 21 | val relevance_of_constant : Environ.env -> Constr.pconstant -> Sorts.relevance |
| 22 | val relevance_of_constructor : Environ.env -> Constr.pconstructor -> Sorts.relevance |
| 23 | val relevance_of_projection_repr : Environ.env -> Projection.Repr.t UVars.puniverses -> Sorts.relevance |
| 24 | val relevance_of_projection : Environ.env -> Projection.t UVars.puniverses -> Sorts.relevance |