| 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 |
Require Import Ltac2.Init. |
| 12 |
|
| 13 |
(** Abstract type representing a transparency state. *) |
| 14 |
Ltac2 Type t. |
| 15 |
|
| 16 |
(** [empty] is the empty transparency state (all constants are opaque). *) |
| 17 |
Ltac2 @ external empty : t := |
| 18 |
"rocq-runtime.plugins.ltac2" "empty_transparent_state". |
| 19 |
|
| 20 |
(** [full] is the full transparency state (all constants are transparent). *) |
| 21 |
Ltac2 @ external full : t := |
| 22 |
"rocq-runtime.plugins.ltac2" "full_transparent_state". |
| 23 |
|
| 24 |
(** [current ()] gives the transparency state of the goal, which is influenced |
| 25 |
by, e.g., the [Strategy] command, or the [with_strategy] Ltac tactic. *) |
| 26 |
Ltac2 @ external current : unit -> t := |
| 27 |
"rocq-runtime.plugins.ltac2" "current_transparent_state". |