TransparentState#
Ltac2.TransparentState
type t = TransparentState.tType representing a transparency state. A transparency state is a set of variables, constants, and primitive projections.
val empty : tempty is the empty transparency state (all constants are opaque).
val full : tfull is the full transparency state (all constants are transparent).
val current : unit -> t Proofview.tacticcurrent () gives the transparency state of the goal, which is influenced by, e.g., the Strategy command, or the with_strategy tactic.
union t1 t2 builds a transparency state containing all the variables, constants, and primitive projections which are either in t1 or in t2.
inter t1 t2 builds a transparency state containing all the variables, constants, and primitive projections which are both in t1 and in t2.
diff t1 t2 builds a transparency state containing all the variables, constants, and primitive projections which are in t1 but not in t2.
add_constant c t adds the constant c to the transparency state t. Does nothing if the constant is already present.
val add_proj : projection -> t -> tadd_proj p t adds the primitive projection p to the transparency state t. Does nothing if the projection is already present.
add_var v t adds the local variable v to the transparency state t. Does nothing if the variable is already present.
remove_constant c t removes the constant c from the transparency state t. Does nothing if the constant is not present.
val remove_proj : projection -> t -> tremove_proj p t removes the primitive projection p from the transparency state t. Does nothing if the projection is not present.
remove_var v t removes the local variable v from the transparency state t. Does nothing if the variable is not present.
mem_constant c t checks whether the constant c is present in the transparency state t.
val mem_proj : projection -> t -> boolmem_proj p t checks whether the primitive projection p is present in the transparency state t.
mem_var v t checks whether the local variable v is present in the transparency state t.
Strategy levels used by with_strategy.
See Conv_oracle.level.
type strategy_level += val with_strategy :
strategy_level ->
reference list ->
'a Proofview.tactic ->
'a Proofview.tacticwith_strategy lvl refs tac temporarily sets the strategy level of all references in refs to lvl, executes tac, and then restores the original strategy levels. This is the Ltac2 analogue of the with_strategy Ltac tactic and the Strategy vernacular command.